Open mhumanworldm opened 2 months ago
I have the same thing. It crashes when calling GearSpawner. The log doesn't capture the exception. Below is the exception that's getting thrown for me. I'm not familiar with mod development specifically, but I'm happy to help where possible.
Having the same issue here! I managed to get the access violation in text format with OCR, so I hope everything is written correctly/as needed:
Fatal error. System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
Repeat 2 times:
--------------------------------
at Il2CppInterop.Runtime.IL2CPP.il2cpp_runtime_invoke(IntPtr, IntPtr, Void**, IntPtr ByRef)
--------------------------------
at DynamicClass.DMD<Il2Cpp.Container::PopulateWithRandomGear>(Il2Cpp.Container)
at DynamicClass.(il2cpp -> managed) PopulateWithRandomGear(il2cpp -> managed) PopulateWithRandomGear(IntPtr, Il2CppInterop.Runtime.Runtime.Il2CppMethodInfo*)
I tested a bit with all of MGT's dependencies by themselves, as well as some other common mod dependencies, and I can confirm the issue only occurs when MGT calls GearSpawner.
The game crashes right before I can enter the menu 24-7-15_12-44-39.log