sinai-dev / UnityExplorer

An in-game UI for exploring, debugging and modifying IL2CPP and Mono Unity games.
GNU General Public License v3.0
2.37k stars 363 forks source link

Toggling Application causes game to hang and crash #27

Closed Scott-Crawley closed 3 years ago

Scott-Crawley commented 3 years ago

Game: Humankind - OpenDev LUCY Explorer Version: 3.1.2 Game Type: IL2CPP Loader: MelonLoader

image

This is the first time I've used your tool, so forgive me if I'm incorrect or even if this is simple!

In Humankind (it's an OpenDev but you need to have pre-ordered the game or watched 3hrs of streamers and get a Twitch drop to access), using Explorer toggles off Amplitude.Mercury.Application and thus the game stays on a black screen. If you enable it, the game begins to load and then hangs before needing to be forcefully closed.

Log file: (It hangs on AssetDatabase.Load UIData) https://gist.github.com/Scott-Crawley/09c35bfc67239031ce22e129851ed0e7

Part of me wonders if a delayed start for Explorer would fix this? An option in the config for that would be useful if that's the issue.

Scott-Crawley commented 3 years ago

Weird...

If I change the Scene to "Steam (Platform)" and toggle it off, then the game loads past the black screen.

E: New issue is now with loading into the actual game itself from the main menu Seems like it's toggling things off automatically and interrupting the loading process.

Is there a way to disable Explorer from auto-toggling things?

sinai-dev commented 3 years ago

Its probably because the EventSystem is on that gameobject. I'll see if we can get away with just disabling the component and not the gameobject.

sinai-dev commented 3 years ago

Alright, now only disabling the game's EventSystem component and not the entire GameObject that it's on, hopefully this fixes it for you.

Releases updated here -> https://github.com/sinai-dev/UnityExplorer/releases/edit/3.1.2