joshyliz / Add_or_Remove_Scurvy

Allows you to add scurvy back or remove it in The Long Dark
MIT License
0 stars 0 forks source link

Doesn't work on 2.32 #1

Open xxlukexx opened 1 month ago

xxlukexx commented 1 month ago

Thanks for making this mod. Unfortunately it doesn't seem to work for me on game version 2.32.

The mod is detected by melon loader and laoded at startup. When I press F6 it makes a noise and saves the game, but nothing scurvy risk remains and keeps increasing with time.

Here's the terminal output:

[NewEntryPoint] Passing ptr to LoadAssemblyAndGetFuncPtr back to host... [NewEntryPoint] Configuring imports... [NewEntryPoint] Initializing. In default load context: True [17:01:45.164] ------------------------------ [17:01:45.164] MelonLoader v0.6.4 Open-Beta [17:01:45.165] OS: Windows 10 [17:01:45.165] Hash Code: 57EE1B42E1FB9958A6BA7AB968E66098D05A9C82A5236075512B7E61BC7C2A65 [17:01:45.165] ------------------------------ [17:01:45.166] Game Type: Il2cpp [17:01:45.166] Game Arch: x64 [17:01:45.166] ------------------------------ [17:01:45.166] Core::BasePath = S:\SteamLibrary\steamapps\common\TheLongDark [17:01:45.166] Game::BasePath = S:\SteamLibrary\steamapps\common\TheLongDark [17:01:45.166] Game::DataPath = S:\SteamLibrary\steamapps\common\TheLongDark\tld_Data [17:01:45.177] Game::ApplicationPath = S:\SteamLibrary\steamapps\common\TheLongDark\tld.exe [17:01:45.177] Runtime Type: net6 [17:01:45.241] ------------------------------ [17:01:45.241] Game Name: TheLongDark [17:01:45.241] Game Developer: Hinterland [17:01:45.243] Unity Version: 2021.3.16f1 [17:01:45.243] Game Version: 2.32 [17:01:45.243] ------------------------------

[17:01:45.708] Preferences Loaded!

[17:01:45.881] Loading UserLibss from 'S:\SteamLibrary\steamapps\common\TheLongDark\UserLibs'...

[17:01:45.887] Loading Plugins from 'S:\SteamLibrary\steamapps\common\TheLongDark\Plugins'... [17:01:45.889] 0 Plugins loaded. [NewEntryPoint] PreStarting. [17:01:46.207] [MelonStartScreen] Initializing... [17:01:46.237] [MelonStartScreen] Using Start Screen Theme: "Default" [17:01:47.067] Loading Il2CppAssemblyGenerator... [17:01:47.079] [Il2CppAssemblyGenerator] Contacting RemoteAPI... [17:01:47.304] [Il2CppAssemblyGenerator] RemoteAPI.DumperVersion = null [17:01:47.304] [Il2CppAssemblyGenerator] RemoteAPI.ObfuscationRegex = null [17:01:47.305] [Il2CppAssemblyGenerator] RemoteAPI.MappingURL = null [17:01:47.305] [Il2CppAssemblyGenerator] RemoteAPI.MappingFileSHA512 = null [17:01:47.310] [Il2CppAssemblyGenerator] Using Dumper Version: 2022.1.0-pre-release.15 [17:01:47.311] [Il2CppAssemblyGenerator] Using Il2CppInterop Version = 1.4.6-ci.433+45e22c2cb80a9586114a1815d77cc20104fd896c [17:01:47.311] [Il2CppAssemblyGenerator] Using Unity Dependencies Version = 2021.3.16 [17:01:47.312] [Il2CppAssemblyGenerator] Using Deobfuscation Regex = null [17:01:47.312] [Il2CppAssemblyGenerator] Cpp2IL is up to date. [17:01:47.312] [Il2CppAssemblyGenerator] UnityDependencies is up to date. [17:01:47.313] [Il2CppAssemblyGenerator] Checking GameAssembly... [17:01:47.442] [Il2CppAssemblyGenerator] Assembly is up to date. No Generation Needed. [NewEntryPoint] Starting.

[17:01:47.476] Loading Mods from 'S:\SteamLibrary\steamapps\common\TheLongDark\Mods'... [17:01:47.476] ------------------------------ [17:01:47.481] Melon Assembly loaded: '.\Mods\Add_or_Remove_Scurvy.dll' [17:01:47.481] SHA256 Hash: '2fdf8d949749a78c3b7a0ca055b9faf7fd19cf723ef6af5f4f04564d8ce51426'

[17:01:47.639] ------------------------------ [17:01:47.640] Add or Remove Scurvy v1.0.0 [17:01:47.640] by Joshyliz [17:01:47.640] Assembly: Add_or_Remove_Scurvy.dll [17:01:47.641] ------------------------------ [17:01:47.641] ------------------------------ [17:01:47.641] 1 Mod loaded.

[17:01:48.195] Class::Init signatures have been exhausted, using a substitute! [17:01:48.368] Registered mono type Il2CppInterop.Runtime.DelegateSupport+Il2CppToMonoDelegateReference in il2cpp domain [17:01:48.394] Registered mono type MelonLoader.Support.MonoEnumeratorWrapper in il2cpp domain [17:01:48.395] Registered mono type MelonLoader.Support.SM_Component in il2cpp domain [17:01:48.402] Support Module Loaded: S:\SteamLibrary\steamapps\common\TheLongDark\MelonLoader\Dependencies\SupportModules\Il2Cpp.dll

joshyliz commented 1 month ago

This could be a bug due to newer updates ill look into it

joshyliz commented 1 month ago

I've made some changes to hopefully fix the problem. If it still won't work let me know

xxlukexx commented 3 weeks ago

Sorry for the slow reply, thanks a lot for doing this. I'm on holiday right now but will test it when I get back in a week.