Eddio0141 / UniTAS

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

[Bug]: Game not loading for rainworld, stuck on black screen #303

Open SebatheDragonbear opened 1 month ago

SebatheDragonbear commented 1 month ago

What happened?

Opening the game crashes instantly upon opening it.

What should have happened?

Open the game and upon reaching the title screen, see the GUI after pressing F1.

UniTAS version

v0.5.0

BepInEx version

v5.4.x

Game name

Rain World

Game build

Windows x64 - Mono

How to reproduce

Drag the UniTAS folder into the patchers folder inside BepInEx, and then launch the game either trough the exe or Steam.

Must say that I'm using the pre-built BepInEx, which seems to be 5.4.17.

Log output

[Message:   BepInEx] BepInEx 5.4.17.0 - RainWorld (28/3/2024 20:33:27)
[Info   :   BepInEx] Running under Unity v2020.3.45.6687953
[Info   :   BepInEx] CLR runtime version: 4.0.30319.42000
[Info   :   BepInEx] Supports SRE: True
[Info   :   BepInEx] System platform: Bits64, Windows
[Message:   BepInEx] Preloader started
[Info   :   BepInEx] Loaded 1 patcher method from [BepInEx.Preloader 5.4.17.0]
[Info   :   BepInEx] Loaded 1 patcher method from [BepInEx.MonoMod.Loader 1.0.0.0]
[Info   :   BepInEx] Loaded 1 patcher method from [BepInEx.MultiFolderLoader 1.3.1.0]
[Info   :   BepInEx] Loaded 1 patcher method from [Dragons.PublicDragon 1.0.0.0]
[Info   :   BepInEx] Loaded 1 patcher method from [UniTAS.Patcher 0.5.1.0]
[Info   :   BepInEx] 5 patcher plugins loaded
[Info   :MultiFolderLoader] [multifolderloader].enabledModsListPath found in doorstop_config.ini, enabling enabled mods list
[Info   :MultiFolderLoader] [multifolderloader].gameVersionPath and [multifolderloader].enabledVersionPath found in doorstop_config.ini, verifying game version
[Info   :MultiFolderLoader] Current game version is: v1.9.15b, old game version was: v1.9.15b
[Info   :MultiFolderLoader] [multifolderloader].whiteListPath found in doorstop_config.ini, enabling whitelist for cleanup
[Warning:MultiFolderLoader] Skipping loading [devtools] because it's not enabled
[Warning:MultiFolderLoader] Skipping loading [expedition] because it's not enabled
[Warning:MultiFolderLoader] Skipping loading [jollycoop] because it's not enabled
[Warning:MultiFolderLoader] Skipping loading [moreslugcats] because it's not enabled
[Warning:MultiFolderLoader] Skipping loading [rwremix] because it's not enabled
[Info   :MultiFolderLoader] Loading preloader patchers from mod
[Info   :MultiFolderLoader] Loading 0 preloader patchers from mods...
[Error  :   BepInEx] Failed to run Initializer of UniTAS.Patcher.Entry: System.IO.FileNotFoundException: Could not load file or assembly 'MonoMod.Backports, Version=1.0.1.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies.
File name: 'MonoMod.Backports, Version=1.0.1.0, Culture=neutral, PublicKeyToken=null'
  at BepInEx.Preloader.Patching.AssemblyPatcher.InitializePatchers () [0x0001e] in <20f8bb4264e44cfaa119110623716c77>:0 
[Info   :   BepInEx] Patching [UnityEngine.CoreModule] with [BepInEx.Chainloader]
[Info   :   MonoMod] Collecting target assemblies from mods
[Info   :   BepInEx] Patching [Unity.TextMeshPro] with [Dragons.PublicDragon.Patcher]
[Fatal  :   BepInEx] Could not run preloader!
[Fatal  :   BepInEx] System.TypeInitializationException: The type initializer for 'UniTAS.Patcher.Entry' threw an exception. ---> System.TypeLoadException: Could not load type of field 'UniTAS.Patcher.Patches.Preloader.MonoBehaviourPatch:EventMethods' (15) due to: Could not load file or assembly 'MonoMod.Backports, Version=1.0.1.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. assembly:MonoMod.Backports, Version=1.0.1.0, Culture=neutral, PublicKeyToken=null type:<unknown type> member:(null) signature:<none>
  at UniTAS.Patcher.Entry..cctor () [0x00000] in <06e2d94b57ab4f0884ed0743c61dfdbd>:0 
   --- End of inner exception stack trace ---
  at BepInEx.Preloader.Patching.AssemblyPatcher.PatchAndLoad (System.String[] directories) [0x00133] in <20f8bb4264e44cfaa119110623716c77>:0 
  at BepInEx.Preloader.Preloader.Run () [0x00216] in <20f8bb4264e44cfaa119110623716c77>:0 
[Info   :   Console] BepInEx.Preloader.PreloaderConsoleListener
System.TypeInitializationException: The type initializer for 'UniTAS.Patcher.Entry' threw an exception. ---> System.TypeLoadException: Could not load type of field 'UniTAS.Patcher.Patches.Preloader.MonoBehaviourPatch:EventMethods' (15) due to: Could not load file or assembly 'MonoMod.Backports, Version=1.0.1.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. assembly:MonoMod.Backports, Version=1.0.1.0, Culture=neutral, PublicKeyToken=null type:<unknown type> member:(null) signature:<none>
  at UniTAS.Patcher.Entry..cctor () [0x00000] in <06e2d94b57ab4f0884ed0743c61dfdbd>:0 
   --- End of inner exception stack trace ---
  at BepInEx.Preloader.Patching.AssemblyPatcher.PatchAndLoad (System.String[] directories) [0x00133] in <20f8bb4264e44cfaa119110623716c77>:0 
  at BepInEx.Preloader.Preloader.Run () [0x00216] in <20f8bb4264e44cfaa119110623716c77>:0 

Additional context

No response

Eddio0141 commented 1 month ago

That's an unusual error, don't think I've seen that before Might be something with the built in BepInEx

Could you try with the latest build from https://github.com/Eddio0141/UniTAS/actions/runs/10326756674/artifacts/1796921203 Lots of things has been fixed so worth a shot before I look into this

SebatheDragonbear commented 1 month ago

on an initial view, It worked!... wierd I thought I downloaded the latest version.

Eddio0141 commented 1 month ago

Ok ok I'm glad! Yeah the versions in the release tab are snapshots I put there once in a while, so its stable but out of date compared to the newly built ones in https://github.com/Eddio0141/UniTAS/actions coming from code changes

SebatheDragonbear commented 1 month ago

and... I managed to open it once, and then it's a black screen every time I open it...

But hey, the menu atleast appears this time!... except the rest of the game.

Eddio0141 commented 1 month ago

Yeah that's something I gotta fix Can you attach UniTAS.log? Should be in the BepInEx folder

SebatheDragonbear commented 1 month ago

Sure! didn't want to make another issue to avoid being annoying. (despite being a different issue with the same game)

SebatheDragonbear commented 1 month ago

exceptionLog.txt LogOutput.log

the UniTAS log is a bit too long. and goes over the 25MB limit, but for most of the files seems like it writes the exception log.

I'll send this while I see how to send the UniTAS.log

Eddio0141 commented 1 month ago

Yeah I already see something I did wrong in the log Also compressing might work

SebatheDragonbear commented 1 month ago

UniTAS.zip here it is compressed

Eddio0141 commented 3 weeks ago

https://github.com/Eddio0141/UniTAS/actions/runs/10463201309/artifacts/1830157157

can you try out this build? I think it was a simple fix I did that wasn't in the build you tried

SebatheDragonbear commented 3 weeks ago

UniTAS.log

Opens and instant crash.

SebatheDragonbear commented 3 weeks ago

Uploading Desktop 2024.08.20 - 16.47.26.01_1.mp4…

Eddio0141 commented 3 weeks ago

Yeah that's odd, I'll have to check myself