Jods-Its / Modders-Gear-Toolbox

A mod for The Long Dark that adds items for other modders to use.
0 stars 8 forks source link

Game crashes upon start #10

Open mhumanworldm opened 2 months ago

mhumanworldm commented 2 months ago

The game crashes right before I can enter the menu 24-7-15_12-44-39.log

philliprowland commented 4 days 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.

Screenshot 2024-09-13 140944

RABIDYOTE commented 3 days ago

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.