UniTAS icon indicating copy to clipboard operation
UniTAS copied to clipboard

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

Open SebatheDragonbear opened this issue 1 year ago • 16 comments

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

SebatheDragonbear avatar Aug 12 '24 21:08 SebatheDragonbear

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

Eddio0141 avatar Aug 12 '24 22:08 Eddio0141

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

SebatheDragonbear avatar Aug 12 '24 22:08 SebatheDragonbear

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

Eddio0141 avatar Aug 12 '24 22:08 Eddio0141

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.

SebatheDragonbear avatar Aug 13 '24 01:08 SebatheDragonbear

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

Eddio0141 avatar Aug 13 '24 02:08 Eddio0141

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

SebatheDragonbear avatar Aug 13 '24 02:08 SebatheDragonbear

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

SebatheDragonbear avatar Aug 13 '24 02:08 SebatheDragonbear

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

Eddio0141 avatar Aug 13 '24 02:08 Eddio0141

UniTAS.zip here it is compressed

SebatheDragonbear avatar Aug 13 '24 02:08 SebatheDragonbear

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

Eddio0141 avatar Aug 20 '24 17:08 Eddio0141

UniTAS.log

Opens and instant crash.

SebatheDragonbear avatar Aug 20 '24 19:08 SebatheDragonbear

Uploading Desktop 2024.08.20 - 16.47.26.01_1.mp4…

SebatheDragonbear avatar Aug 20 '24 19:08 SebatheDragonbear

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

Eddio0141 avatar Aug 21 '24 02:08 Eddio0141

@SebatheDragonbear Issue should be fixed on latest build, I successfully loaded to the main menu without crashes or blackscreen now

https://github.com/Eddio0141/UniTAS/actions/runs/11691396856

Eddio0141 avatar Nov 05 '24 19:11 Eddio0141

The game is Playable both Vanilla & Downpour campagins, and even is not tested I bet they are also beatable. However, downpour menus like Expedition, Jolly Co-Op & Remix do Softlock the game. The only one that manages to load is the Expedition, loading a glitched version but also softlocking the game.

Haven't tested movies yet. I'm gonna need to make a Hello World first.

SebatheDragonbear avatar Nov 18 '24 02:11 SebatheDragonbear

Try this one I've fixed things related to assets not loading correctly, which fixed quite a few games

Eddio0141 avatar Nov 18 '24 02:11 Eddio0141