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-4 of 4 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://steamhost.cn/steamcommunity_com/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 ()
< >
Showing 1-4 of 4 comments
Per page: 1530 50