RimWorld

RimWorld

Animals Logic
Error on Harmony(?) update 07/23
Error persists even with only Harmony, Core, Ideology, and Animals Logic loaded, so I think it's a Harmony update conflict.

Error while instantiating a mod of type AnimalsLogic.AnimalsLogic: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> HarmonyLib.HarmonyException: Patching exception in method System.Void RimWorld.Pawn_TrainingTracker::TrainingTrackerTickRare() ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Reflection.AmbiguousMatchException: Ambiguous match found.
[Ref 8AC64576]
at System.RuntimeType.GetMethodImplCommon (System.String name, System.Int32 genericParameterCount, System.Reflection.BindingFlags bindingAttr, System.Reflection.Binder binder, System.Reflection.CallingConventions callConv, System.Type[] types, System.Reflection.ParameterModifier[] modifiers) [0x00050] in <e3b07672ffbd43c1838e1ebbe94cbdf5>:0
at System.RuntimeType.GetMethodImpl (System.String name, System.Reflection.BindingFlags bindingAttr, System.Reflection.Binder binder, System.Reflection.CallingConventions callConv, System.Type[] types, System.Reflection.ParameterModifier[] modifiers) [0x00000] in <e3b07672ffbd43c1838e1ebbe94cbdf5>:0
at System.Type.GetMethod (System.String name, System.Reflection.BindingFlags bindingAttr) [0x0000e] in <e3b07672ffbd43c1838e1ebbe94cbdf5>:0
at System.Type.GetMethod (System.String name) [0x00000] in <e3b07672ffbd43c1838e1ebbe94cbdf5>:0
at AnimalsLogic.ForgetMeNot.PatchTamenessDecay (System.Collections.Generic.IEnumerable`1[T] instructions) [0x0002a] in <f4144af4c71c42dca81dbdb4c23d30c6>:0
at AnimalsLogic.ForgetMeNot+Pawn_TrainingTracker_TrainingTrackerTickRare_Patch.Transpiler (System.Collections.Generic.IEnumerable`1[T] instructions) [0x00000] in <f4144af4c71c42dca81dbdb4c23d30c6>:0
(wrapper managed-to-native) System.Reflection.RuntimeMethodInfo.InternalInvoke(System.Reflection.RuntimeMethodInfo,object,object[],System.Exception&)
at System.Reflection.RuntimeMethodInfo.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x0006a] in <e3b07672ffbd43c1838e1ebbe94cbdf5>:0
--- End of inner exception stack trace ---
[Ref 500C002E]
at System.Reflection.RuntimeMethodInfo.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00083] in <e3b07672ffbd43c1838e1ebbe94cbdf5>:0
at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in <e3b07672ffbd43c1838e1ebbe94cbdf5>:0
at HarmonyLib.CodeTranspiler+<>c__DisplayClass11_0.<GetResult>b__0 (System.Reflection.MethodInfo transpiler) [0x0004b] in <8124cc12bdf242eab0a5f7e7edecf387>:0
at System.Collections.Generic.List`1[T].ForEach (System.Action`1[T] action) [0x0001e] in <e3b07672ffbd43c1838e1ebbe94cbdf5>:0
at HarmonyLib.CodeTranspiler.GetResult (System.Reflection.Emit.ILGenerator generator, System.Reflection.MethodBase method) [0x00020] in <8124cc12bdf242eab0a5f7e7edecf387>:0
at HarmonyLib.MethodBodyReader.FinalizeILCodes (HarmonyLib.Emitter emitter, System.Collections.Generic.List`1[T] transpilers, System.Collections.Generic.List`1[T] endLabels, System.Boolean& hasReturnCode, System.Boolean& methodEndsInDeadCode) [0x0014d] in <8124cc12bdf242eab0a5f7e7edecf387>:0
at HarmonyLib.MethodCopier.Finalize (HarmonyLib.Emitter emitter, System.Collections.Generic.List`1[T] endLabels, System.Boolean& hasReturnCode, System.Boolean& methodEndsInDeadCode) [0x00000] in <8124cc12bdf242eab0a5f7e7edecf387>:0
at HarmonyLib.MethodPatcher.CreateReplacement (System.Collections.Generic.Dictionary`2[System.Int32,HarmonyLib.CodeInstruction]& finalInstructions) [0x00363] in <8124cc12bdf242eab0a5f7e7edecf387>:0
at HarmonyLib.PatchFunctions.UpdateWrapper (System.Reflection.MethodBase original, HarmonyLib.PatchInfo patchInfo) [0x00059] in <8124cc12bdf242eab0a5f7e7edecf387>:0
at HarmonyLib.PatchClassProcessor.ProcessPatchJob (HarmonyLib.PatchJobs`1+Job[T] job) [0x000be] in <8124cc12bdf242eab0a5f7e7edecf387>:0
--- End of inner exception stack trace ---
[Ref 255806C]
at HarmonyLib.PatchClassProcessor.ReportException (System.Exception exception, System.Reflection.MethodBase original) [0x0013c] 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
<0x402d06a0 + 0x0009f> <unknown method>
(wrapper managed-to-native) System.Reflection.RuntimeConstructorInfo.InternalInvoke(System.Reflection.RuntimeConstructorInfo,object,object[],System.Exception&)
at System.Reflection.RuntimeConstructorInfo.InternalInvoke (System.Object obj, System.Object[] parameters, System.Boolean wrapExceptions) [0x00005] in <e3b07672ffbd43c1838e1ebbe94cbdf5>:0
--- End of inner exception stack trace ---
[Ref EDAC45EC]
at System.Reflection.RuntimeConstructorInfo.InternalInvoke (System.Object obj, System.Object[] parameters, System.Boolean wrapExceptions) [0x0001a] in <e3b07672ffbd43c1838e1ebbe94cbdf5>:0
at System.Reflection.RuntimeConstructorInfo.DoInvoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00086] in <e3b07672ffbd43c1838e1ebbe94cbdf5>:0
at System.Reflection.RuntimeConstructorInfo.Invoke (System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <e3b07672ffbd43c1838e1ebbe94cbdf5>:0
at System.RuntimeType.CreateInstanceImpl (System.Reflection.BindingFlags bindingAttr, System.Reflection.Binder binder, System.Object[] args, System.Globalization.CultureInfo culture, System.Object[] activationAttributes, System.Threading.StackCrawlMark& stackMark) [0x0022b] in <e3b07672ffbd43c1838e1ebbe94cbdf5>:0
at System.Activator.CreateInstance (System.Type type, System.Reflection.BindingFlags bindingAttr, System.Reflection.Binder binder, System.Object[] args, System.Globalization.CultureInfo culture, System.Object[] activationAttributes) [0x0009c] in <e3b07672ffbd43c1838e1ebbe94cbdf5>:0
at System.Activator.CreateInstance (System.Type type, System.Object[] args) [0x00000] in <e3b07672ffbd43c1838e1ebbe94cbdf5>:0
at Verse.LoadedModManager.CreateModClasses () [0x00085] in <534f29aaa1c84f86ba2d2bace30f7afb>:0
UnityEngine.StackTraceUtility:ExtractStackTrace ()
Verse.Log:Error (string)
Verse.LoadedModManager:CreateModClasses ()
Verse.LoadedModManager:LoadAllActiveMods (bool)
Verse.PlayDataLoader:DoPlayLoad ()
Verse.PlayDataLoader:LoadAllPlayData (bool)
Verse.Root/<>c:<Start>b__10_1 ()
Verse.LongEventHandler:RunEventFromAnotherThread (System.Action)
Verse.LongEventHandler/<>c:<UpdateCurrentAsynchronousEvent>b__28_0 ()
System.Threading.ThreadHelper:ThreadStart_Context (object)
System.Threading.ExecutionContext:RunInternal (System.Threading.ExecutionContext,System.Threading.ContextCallback,object,bool)
System.Threading.ExecutionContext:Run (System.Threading.ExecutionContext,System.Threading.ContextCallback,object,bool)
System.Threading.ExecutionContext:Run (System.Threading.ExecutionContext,System.Threading.ContextCallback,object)
System.Threading.ThreadHelper:ThreadStart ()
Last edited by meteornge; 23 Jul @ 3:16pm