RimWorld

RimWorld

NANAME Floors
Bugs
I'm getting the error with some Harmony patch - maybe due to the Harmony being updated:

Error in static constructor of NanameFloors.HarmonyPatches: System.TypeInitializationException: The type initializer for 'NanameFloors.HarmonyPatches' threw an exception. ---> System.ArgumentOutOfRangeException: Token 0x6000003 is not valid in the scope of module data-000001B453887370
Parameter name: metadataToken
[Ref 45AE5359]
at System.Reflection.RuntimeModule.ResolveMethod (System.Reflection.Module module, System.IntPtr monoModule, System.Int32 metadataToken, System.Type[] genericTypeArguments, System.Type[] genericMethodArguments) [0x00036] in <51fded79cd284d4d911c5949aff4cb21>:0
at System.Reflection.RuntimeModule.ResolveMethod (System.Int32 metadataToken, System.Type[] genericTypeArguments, System.Type[] genericMethodArguments) [0x00000] in <51fded79cd284d4d911c5949aff4cb21>:0
at System.Reflection.Module.ResolveMethod (System.Int32 metadataToken) [0x00000] in <51fded79cd284d4d911c5949aff4cb21>:0
at HarmonyLib.Patch.get_PatchMethod () [0x0006c] in <8124cc12bdf242eab0a5f7e7edecf387>:0
at HarmonyLib.PatchProcessor+<>c__DisplayClass22_0.<VersionInfo>b__2 (HarmonyLib.Patch fix) [0x00000] in <8124cc12bdf242eab0a5f7e7edecf387>:0
at HarmonyLib.CollectionExtensions.Do[T] (System.Collections.Generic.IEnumerable`1[T] sequence, System.Action`1[T] action) [0x00014] in <8124cc12bdf242eab0a5f7e7edecf387>:0
at HarmonyLib.PatchProcessor+<>c__DisplayClass22_0.<VersionInfo>b__0 (System.Reflection.MethodBase method) [0x00023] in <8124cc12bdf242eab0a5f7e7edecf387>:0
at HarmonyLib.CollectionExtensions.Do[T] (System.Collections.Generic.IEnumerable`1[T] sequence, System.Action`1[T] action) [0x00014] in <8124cc12bdf242eab0a5f7e7edecf387>:0
at HarmonyLib.PatchProcessor.VersionInfo (System.Version& currentVersion) [0x00031] in <8124cc12bdf242eab0a5f7e7edecf387>:0
at HarmonyLib.Harmony.VersionInfo (System.Version& currentVersion) [0x00000] in <8124cc12bdf242eab0a5f7e7edecf387>:0
at HarmonyLib.PatchClassProcessor.ReportException (System.Exception exception, System.Reflection.MethodBase original) [0x00020] in <8124cc12bdf242eab0a5f7e7edecf387>:0
at HarmonyLib.PatchClassProcessor.Patch () [0x000a0] in <8124cc12bdf242eab0a5f7e7edecf387>:0
at HarmonyLib.Harmony.<PatchAll>b__10_0 (System.Type type) [0x00007] in <8124cc12bdf242eab0a5f7e7edecf387>:0
at HarmonyLib.CollectionExtensions.Do[T] (System.Collections.Generic.IEnumerable`1[T] sequence, System.Action`1[T] action) [0x00014] in <8124cc12bdf242eab0a5f7e7edecf387>:0
at HarmonyLib.Harmony.PatchAll (System.Reflection.Assembly assembly) [0x00006] in <8124cc12bdf242eab0a5f7e7edecf387>:0
<0x1bc304bf300 + 0x00072> <unknown method>
--- End of inner exception stack trace ---
[Ref 73521F0F]
(wrapper managed-to-native) System.Runtime.CompilerServices.RuntimeHelpers.RunClassConstructor(intptr)
at System.Runtime.CompilerServices.RuntimeHelpers.RunClassConstructor (System.RuntimeTypeHandle type) [0x0002a] in <51fded79cd284d4d911c5949aff4cb21>:0
at Verse.StaticConstructorOnStartupUtility.CallAll () [0x00028] in <a8415f8caa724a8e95fd8d71f79ba573>:0
- POSTFIX LunarFramework.Bootstrap: Void LunarFramework.Internal.Patches.Patch_Verse_StaticConstructorOnStartupUtility:CallAll_Postfix()
- POSTFIX net.avilmask.rimworld.mod.ResearchWhatever: Void ResearchWhatever.StaticConstructorOnStartupUtility_Patch+StaticConstructorOnStartupUtility_CallAll_ResearchWhateverPatch:Postfix()
UnityEngine.StackTraceUtility:ExtractStackTrace ()
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.Log.Error_Patch1 (string)
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.StaticConstructorOnStartupUtility.CallAll_Patch2 ()
Verse.PlayDataLoader/<>c:<DoPlayLoad>b__4_4 ()
Verse.LongEventHandler:ExecuteToExecuteWhenFinished ()
Verse.LongEventHandler:UpdateCurrentAsynchronousEvent ()
Verse.LongEventHandler:LongEventsUpdate (bool&)
Verse.Root:Update ()
Verse.Root_Entry:Update ()
< >
Showing 1-1 of 1 comments
LS  [developer] 25 Aug @ 9:21pm 
I was a little late noticing because the new thread didn't notify me, but I updated the reference. If the problem persists, please send me the full log.
< >
Showing 1-1 of 1 comments
Per page: 1530 50