Skip to content

Unknown Error on OverlayMap #33

Description

@Nicolas4146

Hi, I recently got the urge to play Two Crowns again after a looooooong time (months, maybe years). So I updated the game, 🏴‍☠️ downloaded🏴‍☠️ and installed a bunch of free stuff, and also updated my mods. However, when I try to play I get a big biggol error (it's somewhere down here, and it's NOT easy to miss) and my game freezes during the start load.

What I've tried so far: I tried all versions of the mod in descending order until I founded one that worked. Fortunately it was quick, unfortunately version 2.4.1 didn't work 'cause I encountered that same error where the map doesn't appear and only the archer values ​​(and some others I think) show up. And even worse, the solution given for this one problem is to update the mod... Yeah... Update :[

I've been using the latest version of BepInEx Mono 6.0.0 x86. I've also tried the version that came in the mod description on Nexus and the most recent 5-something version. The 64-bit ones obviously weren't going to work, but I tried anyway, just to clear my conscience. I really don't think it's a compatibility issue since absolutely all the others worked perfectly (not just in the log, but in-game as well [including other people mods]).

Finally, if you want the complete log or an image proving what I'm saying, I'll gladly provide it. If you're not keen on working too hard for free, you can still help a poor, forgetful soul by giving me some pointers on what to do (something a layman would be able to). I really love this mod, not even for the map, but for the values, since I came with built-in amnesia.

[Error :KingdomMod.OverlayMap] [Patcher.cs][0025][PatchAll] [Patcher] => HarmonyLib.HarmonyException: IL Compile Error (unknown location) ---> HarmonyLib.HarmonyException: IL Compile Error (unknown location) ---> System.TypeInitializationException: The type initializer for 'IslandSaveData' threw an exception. ---> System.NullReferenceException: Object reference not set to an instance of an object at IslandSaveData.UpdateFileProps () [0x00040] in <1436807a3f8449d68adcf5d69154d3b6>:0 at IslandSaveData.Init () [0x0002f] in <1436807a3f8449d68adcf5d69154d3b6>:0 at IslandSaveData..cctor () [0x00083] in <1436807a3f8449d68adcf5d69154d3b6>:0 --- End of inner exception stack trace --- at (wrapper managed-to-native) System.RuntimeMethodHandle.GetFunctionPointer(intptr) at System.RuntimeMethodHandle.GetFunctionPointer () [0x00000] in <73ac12a12f9a4ebca156b41ddce95fbe>:0 at MonoMod.RuntimeDetour.Platforms.DetourRuntimeILPlatform.GetFunctionPointer (System.Reflection.MethodBase method, System.RuntimeMethodHandle handle) [0x00000] in <7e79d87a23084646a4f7750a6feaa4c0>:0 at MonoMod.RuntimeDetour.Platforms.DetourRuntimeILPlatform.GetNativeStart (System.Reflection.MethodBase method) [0x0004d] in <7e79d87a23084646a4f7750a6feaa4c0>:0 at MonoMod.RuntimeDetour.DetourHelper.GetNativeStart (System.Reflection.MethodBase method) [0x00005] in <7e79d87a23084646a4f7750a6feaa4c0>:0 at MonoMod.RuntimeDetour.Detour._RefreshChain (System.Reflection.MethodBase method) [0x000fb] in <7e79d87a23084646a4f7750a6feaa4c0>:0 at MonoMod.RuntimeDetour.Detour.Apply () [0x00053] in <7e79d87a23084646a4f7750a6feaa4c0>:0 at MonoMod.RuntimeDetour.Detour..ctor (System.Reflection.MethodBase from, System.Reflection.MethodBase to, MonoMod.RuntimeDetour.DetourConfig& config) [0x002e1] in <7e79d87a23084646a4f7750a6feaa4c0>:0 at (wrapper dynamic-method) MonoMod.RuntimeDetour.ILHook+Context.DMD<MonoMod.RuntimeDetour.ILHook+Context::Refresh>(MonoMod.RuntimeDetour.ILHook/Context) at (wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition.Trampoline<MonoMod.RuntimeDetour.ILHook+Context::Refresh>?1726317368(object) at HarmonyLib.Internal.RuntimeFixes.StackTraceFixes.OnILChainRefresh (System.Object self) [0x00000] in <f4f7f0eb0ebb4eef99467c9366235b60>:0 at MonoMod.RuntimeDetour.ILHook.Apply () [0x00059] in <7e79d87a23084646a4f7750a6feaa4c0>:0 at HarmonyLib.Public.Patching.ManagedMethodPatcher.DetourTo (System.Reflection.MethodBase replacement) [0x00047] in <f4f7f0eb0ebb4eef99467c9366235b60>:0 --- End of inner exception stack trace --- at HarmonyLib.Public.Patching.ManagedMethodPatcher.DetourTo (System.Reflection.MethodBase replacement) [0x0005f] in <f4f7f0eb0ebb4eef99467c9366235b60>:0 at HarmonyLib.PatchFunctions.UpdateWrapper (System.Reflection.MethodBase original, HarmonyLib.PatchInfo patchInfo) [0x00033] in <f4f7f0eb0ebb4eef99467c9366235b60>:0 --- End of inner exception stack trace --- at HarmonyLib.PatchClassProcessor.ReportException (System.Exception exception, System.Reflection.MethodBase original) [0x00045] in <f4f7f0eb0ebb4eef99467c9366235b60>:0 at HarmonyLib.PatchClassProcessor.Patch () [0x00095] in <f4f7f0eb0ebb4eef99467c9366235b60>:0 at HarmonyLib.Harmony.<PatchAll>b__11_0 (System.Type type) [0x00007] in <f4f7f0eb0ebb4eef99467c9366235b60>:0 at HarmonyLib.CollectionExtensions.Do[T] (System.Collections.Generic.IEnumerable1[T] sequence, System.Action1[T] action) [0x00014] in <f4f7f0eb0ebb4eef99467c9366235b60>:0 at HarmonyLib.Harmony.PatchAll (System.Reflection.Assembly assembly) [0x00006] in <f4f7f0eb0ebb4eef99467c9366235b60>:0 at HarmonyLib.Harmony.PatchAll () [0x0001b] in <f4f7f0eb0ebb4eef99467c9366235b60>:0 at KingdomMod.OverlayMap.Patchers.Patcher.PatchAll () [0x00011] in <ec557fd83e024b45ba5e013fa9e4b353>:0

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions