Gamedev-Eira / Jar-Con-VR

For Making The Metaverse (2022 - 2023)
2 stars 0 forks source link

Connecting more than 1 Joy-Con in the compiled project causes crashes #14

Closed Gamedev-Eira closed 1 year ago

Gamedev-Eira commented 1 year ago

Just tested functionality with connecting more than 1 Joy-Con at a time, and it causes a crash when trying to load the 'TooManyJoycons' scene. If you connect a second Joy-Con while the jar scene is running, it breaks the gyro input which is treated like your Joy-Con disconnected - the "disconnect" scene will then try to load the 'TooManyJoycons' scene and cause the same crash. This issue is only occurring in the compiled version of the program - in the Unity editor this error did not occur.

This is sadly going to need to be a wontfix, purely because I have run out of time for this project, and this was an additional feature. I may return to this project after handing it in and trying to fix this issue, however, as I suspect it's a build-issue with the 'too-many-joycons' scene

Gamedev-Eira commented 1 year ago

Ok nevermind, turns out this was a really simple issue I noticed when opening up Unity for screenshots.

I accidentally included the JoyconManager script in 'TooManyJoycons', which in it's Awake() function calls 'TooManyJoycons' if... well, there are too many Joy-Cons. I accidentally created an infinite loop of the scene trying to call itself, only to call itself again before it's began loading. My itch.io page has been updated.