newman55/unity-mod-manager

Two Point Hospital won't open when trying to debug through doorstop

LintharC opened this issue · 0 comments

When I try to launch Two Point Hospital (newest version, Steam, all DLCs) with --doorstop-mono-debug-enabled true as per https://wiki.nexusmods.com/index.php/How_to_debug_mod_(UMM) the game won't open, it basically crashes right off the bat and the game crash logs don't have any info I know how to deal with, such as "No mono DLL path set. This app is either running IL2CPP, or the crash occurred before mono was initialized." or "Attempt to access invalid address."

I've got UMM 0.25.4.0 installed through DoorstopProxy, the game works fine when I have it installed through Assembly or when I have the Steam launch options set with that commandline mentioned above, but it crashes when both doorstop and command are present.
I've tried both debugging and attaching to the process through dnSpy v6.1.8 in every possible way, by opening both the .dll file and .dll.randomNumber.cache file, and no breakpoints are being hit. Debugging by Unity Connect throws "No connection could be made because the target machine actively refused it." even despite trying to turn firewall and defender off.

I have VS2022 with Unity plugins and VS2019 with .NET 4.5 installed. Attaching the game crash dump below.
Crash_2023-01-24_234054277.zip