RimWorld

RimWorld

Animals Logic
moo 24 Jun @ 2:48pm
Errors alongside VEF 1.6 release
With the release of VEF, AnimalsLogic is throwing errors:


Error while instantiating a mod of type AnimalsLogic.AnimalsLogic: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.MissingMethodException: Method not found: void Verse.GenExplosion.DoExplosion(Verse.IntVec3,Verse.Map,single,Verse.DamageDef,Verse.Thing,int,single,Verse.SoundDef,Verse.ThingDef,Verse.ThingDef,Verse.Thing,Verse.ThingDef,single,int,System.Nullable`1<Verse.GasType>,bool,Verse.ThingDef,single,int,single,bool,System.Nullable`1<single>,System.Collections.Generic.List`1<Verse.Thing>,System.Nullable`1<Verse.FloatRange>,bool,single,single,bool,Verse.ThingDef,single,Verse.SimpleCurve,System.Collections.Generic.List`1<Verse.IntVec3>,Verse.ThingDef,Verse.ThingDef)
[Ref 48B6D4F8]
(wrapper managed-to-native) System.Reflection.RuntimeModule.ResolveMethodToken(intptr,int,intptr[],intptr[],System.Reflection.ResolveTokenError&)
at System.Reflection.RuntimeModule.ResolveMethod (System.Reflection.Module module, System.IntPtr monoModule, System.Int32 metadataToken, System.Type[] genericTypeArguments, System.Type[] genericMethodArguments) [0x0000f] in <51fded79cd284d4d911c5949aff4cb21>:0
at System.Reflection.RuntimeModule.ResolveMethod (System.Int32 metadataToken, System.Type[] genericTypeArguments, System.Type[] genericMethodArguments) [0x00000] in <51fded79cd284d4d911c5949aff4cb21>:0
at HarmonyLib.MethodBodyReader.ReadOperand (HarmonyLib.ILInstruction instruction) [0x00366] in <8124cc12bdf242eab0a5f7e7edecf387>:0
at HarmonyLib.MethodBodyReader.GenerateInstructions () [0x00022] in <8124cc12bdf242eab0a5f7e7edecf387>:0
<0x1a8227ea590 + 0x0014a> <unknown method>
at HarmonyLib.MethodPatcher.CreateReplacement (System.Collections.Generic.Dictionary`2[System.Int32,HarmonyLib.CodeInstruction]& finalInstructions) [0x002f5] in <8124cc12bdf242eab0a5f7e7edecf387>:0
at HarmonyLib.PatchFunctions.UpdateWrapper (System.Reflection.MethodBase original, HarmonyLib.PatchInfo patchInfo) [0x00059] in <8124cc12bdf242eab0a5f7e7edecf387>:0
at HarmonyLib.PatchProcessor.Patch () [0x000fc] in <8124cc12bdf242eab0a5f7e7edecf387>:0
at HarmonyLib.Harmony.Patch (System.Reflection.MethodBase original, HarmonyLib.HarmonyMethod prefix, HarmonyLib.HarmonyMethod postfix, HarmonyLib.HarmonyMethod transpiler, HarmonyLib.HarmonyMethod finalizer) [0x0002a] in <8124cc12bdf242eab0a5f7e7edecf387>:0
at AnimalsLogic.NoBoomSlaughter.ApplyPatch (System.Type type) [0x00096] in <f4144af4c71c42dca81dbdb4c23d30c6>:0
at AnimalsLogic.NoBoomSlaughter.Patch () [0x00252] in <f4144af4c71c42dca81dbdb4c23d30c6>:0
<0x1a8274d6340 + 0x000fa> <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 <51fded79cd284d4d911c5949aff4cb21>:0
--- End of inner exception stack trace ---
[Ref 542C727A]
at System.Reflection.RuntimeConstructorInfo.InternalInvoke (System.Object obj, System.Object[] parameters, System.Boolean wrapExceptions) [0x0001a] in <51fded79cd284d4d911c5949aff4cb21>: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 <51fded79cd284d4d911c5949aff4cb21>:0
at System.Reflection.RuntimeConstructorInfo.Invoke (System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <51fded79cd284d4d911c5949aff4cb21>: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 <51fded79cd284d4d911c5949aff4cb21>: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 <51fded79cd284d4d911c5949aff4cb21>:0
at System.Activator.CreateInstance (System.Type type, System.Object[] args) [0x00000] in <51fded79cd284d4d911c5949aff4cb21>:0
at Verse.LoadedModManager.CreateModClasses () [0x00085] in <78bd3c897ba748f7a6d21cc5498c054e>:0
< >
Showing 1-13 of 13 comments
ignis  [developer] 24 Jun @ 4:30pm 
I can't replicate the issue.
moo 24 Jun @ 5:39pm 
If you want, you can try with this modlist. Constantly changing, but it might help highlight what's up

https://gtm.steamproxy.vip/sharedfiles/filedetails/?id=3507289931
Last edited by moo; 24 Jun @ 5:39pm
ignis  [developer] 27 Jun @ 6:41am 
Thats a lot to look through. Even with a binary search.
I got this similar error.
Only contain VEF, Alpha Mechs, Animal logic


Error while instantiating a mod of type AnimalsLogic.AnimalsLogic: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.MissingMethodException: Method not found: void Verse.GenExplosion.DoExplosion(Verse.IntVec3,Verse.Map,single,Verse.DamageDef,Verse.Thing,int,single,Verse.SoundDef,Verse.ThingDef,Verse.ThingDef,Verse.Thing,Verse.ThingDef,single,int,System.Nullable`1<Verse.GasType>,bool,Verse.ThingDef,single,int,single,bool,System.Nullable`1<single>,System.Collections.Generic.List`1<Verse.Thing>,System.Nullable`1<Verse.FloatRange>,bool,single,single,bool,Verse.ThingDef,single,Verse.SimpleCurve,System.Collections.Generic.List`1<Verse.IntVec3>,Verse.ThingDef,Verse.ThingDef)
[Ref 468F4DA6]
(wrapper managed-to-native) System.Reflection.RuntimeModule.ResolveMethodToken(intptr,int,intptr[],intptr[],System.Reflection.ResolveTokenError&)
at System.Reflection.RuntimeModule.ResolveMethod (System.Reflection.Module module, System.IntPtr monoModule, System.Int32 metadataToken, System.Type[] genericTypeArguments, System.Type[] genericMethodArguments) [0x0000f] in <51fded79cd284d4d911c5949aff4cb21>:0
at System.Reflection.RuntimeModule.ResolveMethod (System.Int32 metadataToken, System.Type[] genericTypeArguments, System.Type[] genericMethodArguments) [0x00000] in <51fded79cd284d4d911c5949aff4cb21>:0
at HarmonyLib.MethodBodyReader.ReadOperand (HarmonyLib.ILInstruction instruction) [0x00366] in <8124cc12bdf242eab0a5f7e7edecf387>:0
at HarmonyLib.MethodBodyReader.GenerateInstructions () [0x00022] in <8124cc12bdf242eab0a5f7e7edecf387>:0
<0x23b3913a590 + 0x0014a> <unknown method>
at HarmonyLib.MethodPatcher.CreateReplacement (System.Collections.Generic.Dictionary`2[System.Int32,HarmonyLib.CodeInstruction]& finalInstructions) [0x002f5] in <8124cc12bdf242eab0a5f7e7edecf387>:0
at HarmonyLib.PatchFunctions.UpdateWrapper (System.Reflection.MethodBase original, HarmonyLib.PatchInfo patchInfo) [0x00059] in <8124cc12bdf242eab0a5f7e7edecf387>:0
at HarmonyLib.PatchProcessor.Patch () [0x000fc] in <8124cc12bdf242eab0a5f7e7edecf387>:0
at HarmonyLib.Harmony.Patch (System.Reflection.MethodBase original, HarmonyLib.HarmonyMethod prefix, HarmonyLib.HarmonyMethod postfix, HarmonyLib.HarmonyMethod transpiler, HarmonyLib.HarmonyMethod finalizer) [0x0002a] in <8124cc12bdf242eab0a5f7e7edecf387>:0
at AnimalsLogic.NoBoomSlaughter.ApplyPatch (System.Type type) [0x00096] in <f4144af4c71c42dca81dbdb4c23d30c6>:0
at AnimalsLogic.NoBoomSlaughter.Patch () [0x00252] in <f4144af4c71c42dca81dbdb4c23d30c6>:0
<0x23b3c768dc0 + 0x000fa> <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 <51fded79cd284d4d911c5949aff4cb21>:0
--- End of inner exception stack trace ---
[Ref 88615891]
at System.Reflection.RuntimeConstructorInfo.InternalInvoke (System.Object obj, System.Object[] parameters, System.Boolean wrapExceptions) [0x0001a] in <51fded79cd284d4d911c5949aff4cb21>: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 <51fded79cd284d4d911c5949aff4cb21>:0
at System.Reflection.RuntimeConstructorInfo.Invoke (System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <51fded79cd284d4d911c5949aff4cb21>: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 <51fded79cd284d4d911c5949aff4cb21>: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 <51fded79cd284d4d911c5949aff4cb21>:0
at System.Activator.CreateInstance (System.Type type, System.Object[] args) [0x00000] in <51fded79cd284d4d911c5949aff4cb21>:0
at Verse.LoadedModManager.CreateModClasses () [0x00085] in <7a4ff24096e646578ec80b030e4544b3>:0
UnityEngine.StackTraceUtility:ExtractStackTrace ()
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.Log.Error_Patch1 (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 ()
arget03 17 Jul @ 4:19pm 
I got it as well.
Error while instantiating a mod of type AnimalsLogic.AnimalsLogic: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Reflection.ReflectionTypeLoadException: Exception of type 'System.Reflection.ReflectionTypeLoadException' was thrown.
Could not resolve type with token 0100007d from typeref (expected class 'VFECore.PregnancyApproachWorker' in assembly 'VFECore, Version=1.1.7.0, Culture=neutral, PublicKeyToken=null') assembly:VFECore, Version=1.1.7.0, Culture=neutral, PublicKeyToken=null type:VFECore.PregnancyApproachWorker member:(null)
[Ref 8E015D71]
(wrapper managed-to-native) System.Reflection.Assembly.GetTypes(System.Reflection.Assembly,bool)
at System.Reflection.Assembly.GetTypes () [0x00000] in <51fded79cd284d4d911c5949aff4cb21>:0
at AnimalsLogic.NoBoomSlaughter+<>c.<Patch>b__0_0 (System.Reflection.Assembly a) [0x00000] in <f4144af4c71c42dca81dbdb4c23d30c6>:0
at System.Linq.Enumerable+SelectManySingleSelectorIterator`2[TSource,TResult].MoveNext () [0x00051] in <1f993cbf88314b1baa1e10ca917bdc64>:0
at System.Linq.Enumerable+WhereEnumerableIterator`1[TSource].MoveNext () [0x0004e] in <1f993cbf88314b1baa1e10ca917bdc64>:0
at AnimalsLogic.NoBoomSlaughter.Patch () [0x00259] in <f4144af4c71c42dca81dbdb4c23d30c6>:0
<0x279e05d5a30 + 0x000fa> <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 <51fded79cd284d4d911c5949aff4cb21>:0
Same
biship 23 Jul @ 1:56pm 
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 284CAA93]
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 <51fded79cd284d4d911c5949aff4cb21>: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 <51fded79cd284d4d911c5949aff4cb21>:0
at System.Type.GetMethod (System.String name, System.Reflection.BindingFlags bindingAttr) [0x0000e] in <51fded79cd284d4d911c5949aff4cb21>:0
at System.Type.GetMethod (System.String name) [0x00000] in <51fded79cd284d4d911c5949aff4cb21>: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 <51fded79cd284d4d911c5949aff4cb21>:0
--- End of inner exception stack trace ---
[Ref 929851DB]
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 <51fded79cd284d4d911c5949aff4cb21>:0
at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in <51fded79cd284d4d911c5949aff4cb21>: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 <51fded79cd284d4d911c5949aff4cb21>: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 7C87CB9]
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
<0x1c51a6d87c0 + 0x000da> <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 <51fded79cd284d4d911c5949aff4cb21>:0
--- End of inner exception stack trace ---
[Ref 783D8819]
at System.Reflection.RuntimeConstructorInfo.InternalInvoke (System.Object obj, System.Object[] parameters, System.Boolean wrapExceptions) [0x0001a] in <51fded79cd284d4d911c5949aff4cb21>: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 <51fded79cd284d4d911c5949aff4cb21>:0
at System.Reflection.RuntimeConstructorInfo.Invoke (System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <51fded79cd284d4d911c5949aff4cb21>: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 <51fded79cd284d4d911c5949aff4cb21>: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 <51fded79cd284d4d911c5949aff4cb21>:0
at System.Activator.CreateInstance (System.Type type, System.Object[] args) [0x00000] in <51fded79cd284d4d911c5949aff4cb21>:0
at Verse.LoadedModManager.CreateModClasses () [0x00085] in <323997631b604b6db469e110087828ac>:0
UnityEngine.StackTraceUtility:ExtractStackTrace ()
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.Log.Error_Patch1 (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 ()
Got:
Error while instantiating a mod of type AnimalsLogic.AnimalsLogic: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.MissingMethodException: Method not found: void Verse.GenExplosion.DoExplosion(Verse.IntVec3,Verse.Map,single,Verse.DamageDef,Verse.Thing,int,single,Verse.SoundDef,Verse.ThingDef,Verse.ThingDef,Verse.Thing,Verse.ThingDef,single,int,System.Nullable`1<Verse.GasType>,bool,Verse.ThingDef,single,int,single,bool,System.Nullable`1<single>,System.Collections.Generic.List`1<Verse.Thing>,System.Nullable`1<Verse.FloatRange>,bool,single,single,bool,Verse.ThingDef,single,Verse.SimpleCurve,System.Collections.Generic.List`1<Verse.IntVec3>) [Ref 839895B6] (wrapper managed-to-native) System.Reflection.RuntimeModule.ResolveMethodToken(intptr,int,intptr[],intptr[],System.Reflection.ResolveTokenError&) at System.Reflection.RuntimeModule.ResolveMethod (System.Reflection.Module module, System.IntPtr monoModule, System.Int32 metadataToken, System.Type[] genericTypeArguments, System.Type[] genericMethodArguments) [0x0000f] in <51fded79cd284d4d911c5949aff4cb21>:0 at System.Reflection.RuntimeModule.ResolveMethod (System.Int32 metadataToken, System.Type[] genericTypeArguments, System.Type[] genericMethodArguments) [0x00000] in <51fded79cd284d4d911c5949aff4cb21>:0 at HarmonyLib.MethodBodyReader.ReadOperand (HarmonyLib.ILInstruction instruction) [0x00366] in <8124cc12bdf242eab0a5f7e7edecf387>:0 at HarmonyLib.MethodBodyReader.GenerateInstructions () [0x00022] in <8124cc12bdf242eab0a5f7e7edecf387>:0 <0x20ab9c51600 + 0x0014a> <unknown method> at HarmonyLib.MethodPatcher.CreateReplacement (System.Collections.Generic.Dictionary`2[System.Int32,HarmonyLib.CodeInstruction]& finalInstructions) [0x002f5] in <8124cc12bdf242eab0a5f7e7edecf387>:0 at HarmonyLib.PatchFunctions.UpdateWrapper (System.Reflection.MethodBase original, HarmonyLib.PatchInfo patchInfo) [0x00059] in <8124cc12bdf242eab0a5f7e7edecf387>:0 at HarmonyLib.PatchProcessor.Patch () [0x000fc] in <8124cc12bdf242eab0a5f7e7edecf387>:0 at HarmonyLib.Harmony.Patch (System.Reflection.MethodBase original, HarmonyLib.HarmonyMethod prefix, HarmonyLib.HarmonyMethod postfix, HarmonyLib.HarmonyMethod transpiler, HarmonyLib.HarmonyMethod finalizer) [0x0002a] in <8124cc12bdf242eab0a5f7e7edecf387>:0 at AnimalsLogic.NoBoomSlaughter.ApplyPatch (System.Type type) [0x00096] in <12585d00e2414d01974d347c1d90ddc8>:0 at AnimalsLogic.NoBoomSlaughter.Patch () [0x00252] in <12585d00e2414d01974d347c1d90ddc8>:0 <0x20abf7953c0 + 0x000fa> <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 <51fded79cd284d4d911c5949aff4cb21>:0 --- End of inner exception stack trace --- [Ref 8633B001] at System.Reflection.RuntimeConstructorInfo.InternalInvoke (System.Object obj, System.Object[] parameters, System.Boolean wrapExceptions) [0x0001a] in <51fded79cd284d4d911c5949aff4cb21>: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 <51fded79cd284d4d911c5949aff4cb21>:0 at System.Reflection.RuntimeConstructorInfo.Invoke (System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <51fded79cd284d4d911c5949aff4cb21>: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 <51fded79cd284d4d911c5949aff4cb21>: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 <51fded79cd284d4d911c5949aff4cb21>:0 at System.Activator.CreateInstance (System.Type type, System.Object[] args) [0x00000] in <51fded79cd284d4d911c5949aff4cb21>:0 at Verse.LoadedModManager.CreateModClasses () [0x00085] in <d2f9716cc2ac4cda9c2a174cc147bf37>:0 UnityEngine.StackTraceUtility:ExtractStackTrace () (wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.Log.Error_Patch1 (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 ()
it doesn't have any mod settings
As i only use the basic VEF for faction fixes i turned that off and cross referenced.

Animals still lose training with only animals logic affecting their behaviors.
Nebulos 26 Jul @ 12:28pm 
Yes, with vef the mod has no toggleable options, same error

Error while instantiating a mod of type AnimalsLogic.AnimalsLogic: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Reflection.ReflectionTypeLoadException: Exception of type 'System.Reflection.ReflectionTypeLoadException' was thrown.
Could not resolve type with token 0100001c from typeref (expected class 'HarmonyLib.CodeInstruction' in assembly '0Harmony, Version=2.3.6.0, Culture=neutral, PublicKeyToken=null') assembly:0Harmony, Version=2.3.6.0, Culture=neutral, PublicKeyToken=null type:HarmonyLib.CodeInstruction member:(null)
Could not resolve type with token 0100001c from typeref (expected class 'HarmonyLib.CodeInstruction' in assembly '0Harmony, Version=2.3.6.0, Culture=neutral, PublicKeyToken=null') assembly:0Harmony, Version=2.3.6.0, Culture=neutral, PublicKeyToken=null type:HarmonyLib.CodeInstruction member:(null)
[Ref B5A3C5F4]
(wrapper managed-to-native) System.Reflection.Assembly.GetTypes(System.Reflection.Assembly,bool)
at System.Reflection.Assembly.GetTypes () [0x00000] in <51fded79cd284d4d911c5949aff4cb21>:0
at AnimalsLogic.NoBoomSlaughter+<>c.<Patch>b__0_0 (System.Reflection.Assembly a) [0x00000] in <b2487bef655844629fd44cdb6c71315a>:0
at System.Linq.Enumerable+SelectManySingleSelectorIterator`2[TSource,TResult].MoveNext () [0x00051] in <1f993cbf88314b1baa1e10ca917bdc64>:0
at System.Linq.Enumerable+WhereEnumerableIterator`1[TSource].MoveNext () [0x0004e] in <1f993cbf88314b1baa1e10ca917bdc64>:0
at AnimalsLogic.NoBoomSlaughter.Patch () [0x00259] in <b2487bef655844629fd44cdb6c71315a>:0
<0x1723d1b57d0 + 0x000fa> <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 <51fded79cd284d4d911c5949aff4cb21>:0
--- End of inner exception stack trace ---
[Ref F827CB34] Duplicate stacktrace, see ref for original
UnityEngine.StackTraceUtility:ExtractStackTrace ()
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.Log.Error_Patch3 (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 ()
Exception ticking Alpaca81518 (at (128, 0, 152)): System.NullReferenceException: Object reference not set to an instance of an object
[Ref 95D97627]
at AnimalsLogic.ForgetMeNot.TamenessCanDecay (Verse.ThingDef def) [0x00000] in <12585d00e2414d01974d347c1d90ddc8>:0
at RimWorld.Pawn_TrainingTracker.TrainingTrackerTickRare () [0x001af] in <ed371ab4349b419183d9be3af652e6dc>:0
- TRANSPILER net.quicksilverfox.rimworld.mod.animalslogic: IEnumerable`1 AnimalsLogic.ForgetMeNot+Pawn_TrainingTracker_TrainingTrackerTickRare_Patch:Transpiler(IEnumerable`1 instructions)
- PREFIX RIMMSqol: Void RIMMSqol.PreventTamenessDecay_Pawn_TrainingTracker_TrainingTrackerTickRare:Prefix(DefMap`2 ___steps, DefMap`2& __state)
- PREFIX Neronix17.TabulaRasa.RimWorld: Boolean TabulaRasa.Patch_Pawn_TrainingTracker_TrainingTrackerTickRare:PreFix(Pawn& ___pawn)
- POSTFIX RIMMSqol: Void RIMMSqol.PreventTamenessDecay_Pawn_TrainingTracker_TrainingTrackerTickRare:Postfix(DefMap`2 ___steps, DefMap`2 __state)
at Verse.Pawn.TickRare () [0x00056] in <ed371ab4349b419183d9be3af652e6dc>:0
- PREFIX TKS_PriorityTreatment: Boolean TKS_PriorityTreatment.Pawn_Patches:TickRare_Prefix(Pawn& __instance)
- POSTFIX RedMattis.ConvertRecruit: Void Wololoo.HarmonyPatches:TickRarePostfix(Pawn __instance)
- POSTFIX vanillafactionsexpanded.settlers: Void VFE_Settlers.Utilities.Harmony+PawnTickRare_Patch:PostFix(Pawn __instance)
- POSTFIX XeoNovaDan.VisiblePants: Void VisiblePants.Patch_Pawn+Patch_TickRare:Postfix(Pawn __instance)
- POSTFIX rimworld.scurvyez.firefliestwoo: Void FirefliesTwoO.Patches:PawnTickRarePostfix(Pawn __instance)
at Verse.Pawn.Tick () [0x0005d] in <ed371ab4349b419183d9be3af652e6dc>:0
- PREFIX RIMMSqol: Boolean RIMMSqol.ThinkResultContextRecover:Prefix()
- POSTFIX alt4s.alliesarehelpful: Void PawnTendAndRescuePatch:Postfix(Pawn __instance)
at Verse.Thing.DoTick () [0x0007b] in <ed371ab4349b419183d9be3af652e6dc>:0
at Verse.TickList.Tick () [0x00139] in <ed371ab4349b419183d9be3af652e6dc>:0
UnityEngine.StackTraceUtility:ExtractStackTrace ()
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.Log.Error_Patch1 (string)
Verse.TickList:Tick ()
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.TickManager.DoSingleTick_Patch4 (Verse.TickManager)
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.TickManager.TickManagerUpdate_Patch0 (Verse.TickManager)
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.Game.UpdatePlay_Patch1 (Verse.Game)
Verse.Root_Play:Update ()
MrMali 2 Aug @ 3:34pm 
IDK if this will help you guys but I had this same error today. I took the two problem mods off (This and VEF) and completely closed out the game. Resubbed with the game off and waited for it to do the download at the bottom of steam. No this works fine no longer got this specific error. If you're like me and used to rimworld being so easy to mod that you do it while the game is active, turning off the game unsubbing and resubbing and waiting a minute for the download to start fixed the broken line for me
< >
Showing 1-13 of 13 comments
Per page: 1530 50