ckosmic/SM64BS

Mario crashes other mods after world position overflow

Closed this issue · 1 comments

Unfortunely I have a little driftstick on my controller so my mario is slowly going behind me, after playing some maps I've noiticed that somehow got himself out of walkable "boundary" and then when I played one more map, game UI crashed. After restarting the game mario haven't been seen anywhere, and some mods like Counters+ weren't working. You can reproduce the bug by changing the Mario position in USERDATA config file to:
x: 100000.999
y: 100000.999
z: 100000.999

After changing position to "normal" state, everything seems to work same as before.

Here's what I've seen in logs:
[CRITICAL @ 02:14:15 | UnityEngine] NullReferenceException: Object reference not set to an instance of an object
[CRITICAL @ 02:14:15 | UnityEngine] SM64BS.Managers.MenuMarioManager.Initialize () (at <8941466c57614d7986770d011ba51d06>:0)
[CRITICAL @ 02:14:15 | UnityEngine] Zenject.InitializableManager.Initialize () (at :0)
[CRITICAL @ 02:14:15 | UnityEngine] Rethrow as ZenjectException: Error occurred while initializing IInitializable with type 'MenuMarioManager'
[CRITICAL @ 02:14:15 | UnityEngine] Zenject.InitializableManager.Initialize () (at :0)
[CRITICAL @ 02:14:15 | UnityEngine] Zenject.MonoKernel.Initialize () (at :0)
[CRITICAL @ 02:14:15 | UnityEngine] Zenject.MonoKernel.Start () (at :0)

Thanks, this has been fixed in 0cf1843 and 03c7b96 of libsm64