Eddio0141 / UniTAS

Tool that lets you TAS unity games
Other
24 stars 2 forks source link

Cuphead, soft restart issues #11

Open HimitsuYuki opened 2 years ago

HimitsuYuki commented 2 years ago

Once soft restart has started when loading a TAS, the console will first mention a NullReferenceException: [Error : Unity Log] NullReferenceException: Object reference not set to an instance of an object Stack trace: PlayerManager.get_Count () CupheadLevelCamera.Update ()

Afterwords it would spam an ArgumentException about a same key being in the dictionary, and no longer continue the game but permanently display the static animation screen that shows when you start the game. [Error : Unity Log] ArgumentException: An element with the same key already exists in the dictionary. Stack trace: System.Collections.Generic.Dictionary`2[FontLoader+FontType,UnityEngine.Font].Add (FontType key, UnityEngine.Font value) FontLoader+<Initialize>c__AnonStorey0.<>m__0 (UnityEngine.Font font) AssetBundleLoader+<loadAsset>c__Iterator1`1[UnityEngine.Font].MoveNext () UnityEngine.SetupCoroutine.InvokeMoveNext (IEnumerator enumerator, IntPtr returnValueAddress)

Unity version is 2017.4.9.7177439.

LogOutput.log

HimitsuYuki commented 1 year ago

The above has been fixed, now throws a NullReferenceException about AssetBundles already being loaded. See #232.

HimitsuYuki commented 3 weeks ago

Commit b23fd33 fixed inputs not working, 18fc950 fixed the above NullReferenceException.

As far as I'm aware the game seems to be fully TASable. However, soft restarting while in the map seems to unload graphics (such as Cuphead or obtaining items). You can soft restart in the main menu or inside levels without issue.

image image

There are no errors in console. The game runs completely fine even with the graphical issues.