边缘世界 RimWorld

边缘世界 RimWorld

Animals Logic
Azraile 2021 年 10 月 25 日 下午 4:00
error help?

Animal Logic is unable to patch FoodUtility method.
UnityEngine.StackTraceUtility:ExtractStackTrace ()
(wrapper dynamic-method) Verse.Log:Verse.Log.Error_Patch1 (string)
AnimalsLogic.AnimalsUseDispenser:BestFoodSourcePatch (System.Collections.Generic.IEnumerable`1<HarmonyLib.CodeInstruction>)
System.Reflection.MonoMethod:Invoke (object,System.Reflection.BindingFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo)
System.Reflection.MethodBase:Invoke (object,object[])
HarmonyLib.CodeTranspiler/<>c__DisplayClass12_0:<GetResult>b__0 (System.Reflection.MethodInfo)
System.Collections.Generic.List`1<System.Reflection.MethodInfo>:ForEach (System.Action`1<System.Reflection.MethodInfo>)
HarmonyLib.CodeTranspiler:GetResult (System.Reflection.Emit.ILGenerator,System.Reflection.MethodBase)
HarmonyLib.MethodBodyReader:FinalizeILCodes (HarmonyLib.Emitter,System.Collections.Generic.List`1<System.Reflection.MethodInfo>,System.Collections.Generic.List`1<System.Reflection.Emit.Label>,bool&)
HarmonyLib.MethodCopier:Finalize (HarmonyLib.Emitter,System.Collections.Generic.List`1<System.Reflection.Emit.Label>,bool&)
HarmonyLib.MethodPatcher:CreateReplacement (System.Collections.Generic.Dictionary`2<int, HarmonyLib.CodeInstruction>&)
HarmonyLib.PatchFunctions:UpdateWrapper (System.Reflection.MethodBase,HarmonyLib.PatchInfo)
HarmonyLib.PatchClassProcessor:ProcessPatchJob (HarmonyLib.PatchJobs`1/Job<System.Reflection.MethodInfo>)
HarmonyLib.PatchClassProcessor:PatchWithAttributes (System.Reflection.MethodBase&)
HarmonyLib.PatchClassProcessor:Patch ()
HarmonyLib.Harmony:<PatchAll>b__10_0 (System.Type)
HarmonyLib.CollectionExtensions:Do<System.Type> (System.Collections.Generic.IEnumerable`1<System.Type>,System.Action`1<System.Type>)
HarmonyLib.Harmony:PatchAll (System.Reflection.Assembly)
HugsLib.ModBase:ApplyHarmonyPatches ()
HugsLib.HugsLibController:EnumerateChildMods (bool)
HugsLib.HugsLibController:LoadReloadInitialize ()
Verse.LongEventHandler:RunEventFromAnotherThread (System.Action)
Verse.LongEventHandler/<>c:<UpdateCurrentAsynchronousEvent>b__27_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 ()


any clue what all that means lol
< >
正在显示第 1 - 11 条,共 11 条留言
TurtleShroom 2021 年 11 月 1 日 下午 7:58 
Animal Logic is unable to patch FoodUtility method. UnityEngine.StackTraceUtility:ExtractStackTrace () (wrapper dynamic-method) Verse.Log:Verse.Log.Error_Patch2 (string) AnimalsLogic.AnimalsUseDispenser:BestFoodSourcePatch (System.Collections.Generic.IEnumerable`1<HarmonyLib.CodeInstruction>) System.Reflection.MonoMethod:Invoke (object,System.Reflection.BindingFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo) System.Reflection.MethodBase:Invoke (object,object[]) HarmonyLib.CodeTranspiler/<>c__DisplayClass12_0:<GetResult>b__0 (System.Reflection.MethodInfo) System.Collections.Generic.List`1<System.Reflection.MethodInfo>:ForEach (System.Action`1<System.Reflection.MethodInfo>) HarmonyLib.CodeTranspiler:GetResult (System.Reflection.Emit.ILGenerator,System.Reflection.MethodBase) HarmonyLib.MethodBodyReader:FinalizeILCodes (HarmonyLib.Emitter,System.Collections.Generic.List`1<System.Reflection.MethodInfo>,System.Collections.Generic.List`1<System.Reflection.Emit.Label>,bool&) HarmonyLib.MethodCopier:Finalize (HarmonyLib.Emitter,System.Collections.Generic.List`1<System.Reflection.Emit.Label>,bool&) HarmonyLib.MethodPatcher:CreateReplacement (System.Collections.Generic.Dictionary`2<int, HarmonyLib.CodeInstruction>&) HarmonyLib.PatchFunctions:UpdateWrapper (System.Reflection.MethodBase,HarmonyLib.PatchInfo) HarmonyLib.PatchClassProcessor:ProcessPatchJob (HarmonyLib.PatchJobs`1/Job<System.Reflection.MethodInfo>) HarmonyLib.PatchClassProcessor:PatchWithAttributes (System.Reflection.MethodBase&) HarmonyLib.PatchClassProcessor:Patch () RIMMSqol.HarmonyBootstrap/<>c__DisplayClass0_0:<.cctor>b__0 (System.Type) HarmonyLib.CollectionExtensions:Do<System.Type> (System.Collections.Generic.IEnumerable`1<System.Type>,System.Action`1<System.Type>) RIMMSqol.HarmonyBootstrap:.cctor () System.Runtime.CompilerServices.RuntimeHelpers:RunClassConstructor (System.RuntimeTypeHandle) Verse.StaticConstructorOnStartupUtility:CallAll () Verse.PlayDataLoader/<>c:<DoPlayLoad>b__4_3 () Verse.LongEventHandler:ExecuteToExecuteWhenFinished () Verse.LongEventHandler:UpdateCurrentAsynchronousEvent () Verse.LongEventHandler:LongEventsUpdate (bool&) (wrapper dynamic-method) Verse.Root:Verse.Root.Update_Patch1 (Verse.Root) Verse.Root_Entry:Update ()

I am reporting the same error.

This is my Hugs Library Log: https://gist.github.com/d3b7154ae28c0a4b18f24217235b6a18 .
NiXoN.pYv 2021 年 11 月 2 日 下午 5:46 
Just got the same error
ignis  [开发者] 2021 年 11 月 6 日 下午 1:00 
Looks like you still have old version. If this still happens, try unsubscribe and resubscribe to force update,
💔 Ms. Leading 💔 2021 年 11 月 6 日 下午 1:53 
Same error here, already tried unsub/resub, even deleting any XML and mod folder in between.
Error still occurs.
XML in: %appdata%\LocalLow\Ludeon Studios\RimWorld by Ludeon Studios\Config => Mod_1098354593_AnimalsLogic.xml
Mod Folder in: \steamapps\workshop\content\294100\1098354593
最后由 💔 Ms. Leading 💔 编辑于; 2021 年 11 月 6 日 下午 1:56
Undeadbanana 2022 年 11 月 18 日 上午 1:23 
That was an error for a short minute on the Unstable branch, devs added a parameter to food searching signatures but they ended up removing the parameter and put them in temporary methods so they wouldn't cause so many mod conflicts. So there shouldn't be any errors on release
最后由 Undeadbanana 编辑于; 2022 年 11 月 18 日 上午 1:23
Choosechee 2022 年 11 月 20 日 下午 5:21 
I'm still having the error:
Animal Logic is unable to patch FoodUtility method. UnityEngine.StackTraceUtility:ExtractStackTrace () Verse.Log:Error (string) AnimalsLogic.AnimalsUseDispenser:BestFoodSourcePatch (System.Collections.Generic.IEnumerable`1<HarmonyLib.CodeInstruction>) System.Reflection.MonoMethod:Invoke (object,System.Reflection.BindingFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo) System.Reflection.MethodBase:Invoke (object,object[]) HarmonyLib.CodeTranspiler/<>c__DisplayClass12_0:<GetResult>b__0 (System.Reflection.MethodInfo) System.Collections.Generic.List`1<System.Reflection.MethodInfo>:ForEach (System.Action`1<System.Reflection.MethodInfo>) HarmonyLib.CodeTranspiler:GetResult (System.Reflection.Emit.ILGenerator,System.Reflection.MethodBase) HarmonyLib.MethodBodyReader:FinalizeILCodes (HarmonyLib.Emitter,System.Collections.Generic.List`1<System.Reflection.MethodInfo>,System.Collections.Generic.List`1<System.Reflection.Emit.Label>,bool&) HarmonyLib.MethodCopier:Finalize (HarmonyLib.Emitter,System.Collections.Generic.List`1<System.Reflection.Emit.Label>,bool&) HarmonyLib.MethodPatcher:CreateReplacement (System.Collections.Generic.Dictionary`2<int, HarmonyLib.CodeInstruction>&) HarmonyLib.PatchFunctions:UpdateWrapper (System.Reflection.MethodBase,HarmonyLib.PatchInfo) HarmonyLib.PatchProcessor:Patch () HarmonyLib.Harmony:Patch (System.Reflection.MethodBase,HarmonyLib.HarmonyMethod,HarmonyLib.HarmonyMethod,HarmonyLib.HarmonyMethod,HarmonyLib.HarmonyMethod) AnimalsLogic.AnimalsUseDispenser:Patch () AnimalsLogic.AnimalsLogic:.ctor (Verse.ModContentPack) System.Reflection.MonoCMethod:InternalInvoke (object,object[]) System.Reflection.MonoCMethod:DoInvoke (object,System.Reflection.BindingFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo) System.Reflection.MonoCMethod:Invoke (System.Reflection.BindingFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo) System.RuntimeType:CreateInstanceImpl (System.Reflection.BindingFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo,object[],System.Threading.StackCrawlMark&) System.Activator:CreateInstance (System.Type,System.Reflection.BindingFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo,object[]) System.Activator:CreateInstance (System.Type,object[]) Verse.LoadedModManager:CreateModClasses () Verse.LoadedModManager:LoadAllActiveMods () Verse.PlayDataLoader:DoPlayLoad () Verse.PlayDataLoader:LoadAllPlayData (bool) Verse.Root/<>c:<Start>b__6_1 () Verse.LongEventHandler:RunEventFromAnotherThread (System.Action) Verse.LongEventHandler/<>c:<UpdateCurrentAsynchronousEvent>b__27_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 ()
Choosechee 2022 年 11 月 20 日 下午 5:27 
also this error:
[net.quicksilverfox.rimworld.mod.animalslogic] Patches on methods annotated as Obsolete were detected by HugsLib: RimWorld.FoodUtility.BestFoodSourceOnMap UnityEngine.StackTraceUtility:ExtractStackTrace () Verse.Log:Warning (string) HugsLib.Utils.HarmonyUtility:LogObsoleteMethodPatchErrors () HugsLib.Utils.HarmonyUtility:LogHarmonyPatchIssueErrors () Verse.LongEventHandler:ExecuteToExecuteWhenFinished () Verse.LongEventHandler:UpdateCurrentAsynchronousEvent () Verse.LongEventHandler:LongEventsUpdate (bool&) (wrapper dynamic-method) Verse.Root:Verse.Root.Update_Patch1 (Verse.Root) Verse.Root_Entry:Update ()
I've already verified the integrity of the game files. Or does Undeadbanana mean the problem will be fixed for the full release of the unstable patch?
ignis  [开发者] 2022 年 11 月 21 日 上午 7:06 
I can't make it work with both main and unstable branches ath the same time.
Choosechee 2022 年 11 月 21 日 下午 12:53 
Ah, I see. Oh well.
Fargotroniac 2022 年 11 月 22 日 上午 5:54 
I updated this mod and now I have this error:
Error while instantiating a mod of type AnimalsLogic.AnimalsLogic: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.NullReferenceException: Null method for net.quicksilverfox.rimworld.mod.animalslogic at HarmonyLib.PatchProcessor.Patch () [0x0001d] in <255414689d344b1385ae719f6cce8c55>:0 at HarmonyLib.Harmony.Patch (System.Reflection.MethodBase original, HarmonyLib.HarmonyMethod prefix, HarmonyLib.HarmonyMethod postfix, HarmonyLib.HarmonyMethod transpiler, HarmonyLib.HarmonyMethod finalizer) [0x00028] in <255414689d344b1385ae719f6cce8c55>:0 at AnimalsLogic.AnimalsUseDispenser.Patch () [0x00034] in <c44f22e972084a45a3628b3189193852>:0 at AnimalsLogic.AnimalsLogic..ctor (Verse.ModContentPack content) [0x00025] in <c44f22e972084a45a3628b3189193852>:0 at (wrapper managed-to-native) System.Reflection.MonoCMethod.InternalInvoke(System.Reflection.MonoCMethod,object,object[],System.Exception&) at System.Reflection.MonoCMethod.InternalInvoke (System.Object obj, System.Object[] parameters) [0x00002] in <eae584ce26bc40229c1b1aa476bfa589>:0 --- End of inner exception stack trace --- at System.Reflection.MonoCMethod.InternalInvoke (System.Object obj, System.Object[] parameters) [0x00014] in <eae584ce26bc40229c1b1aa476bfa589>:0 at System.Reflection.MonoCMethod.DoInvoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x0007a] in <eae584ce26bc40229c1b1aa476bfa589>:0 at System.Reflection.MonoCMethod.Invoke (System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <eae584ce26bc40229c1b1aa476bfa589>: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) [0x00213] in <eae584ce26bc40229c1b1aa476bfa589>: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) [0x00095] in <eae584ce26bc40229c1b1aa476bfa589>:0 at System.Activator.CreateInstance (System.Type type, System.Object[] args) [0x00000] in <eae584ce26bc40229c1b1aa476bfa589>:0 at Verse.LoadedModManager.CreateModClasses () [0x00076] in <4b53ac099a7e43a0bd38f6db4241a7ad>:0 UnityEngine.StackTraceUtility:ExtractStackTrace () Verse.Log:Error (string) Verse.LoadedModManager:CreateModClasses () Verse.LoadedModManager:LoadAllActiveMods () Verse.PlayDataLoader:DoPlayLoad () Verse.PlayDataLoader:LoadAllPlayData (bool) Verse.Root/<>c:<Start>b__6_1 () Verse.LongEventHandler:RunEventFromAnotherThread (System.Action) Verse.LongEventHandler/<>c:<UpdateCurrentAsynchronousEvent>b__27_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 ()
Mars 2022 年 12 月 13 日 下午 2:40 
I am getting the same error as above.

https://gist.github.com/128e52fafb0411b2e76d47c36267f5f3

Error while instantiating a mod of type AnimalsLogic.AnimalsLogic: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.NullReferenceException: Null method for net.quicksilverfox.rimworld.mod.animalslogic at HarmonyLib.PatchProcessor.Patch () [0x0001d] in <255414689d344b1385ae719f6cce8c55>:0 at HarmonyLib.Harmony.Patch (System.Reflection.MethodBase original, HarmonyLib.HarmonyMethod prefix, HarmonyLib.HarmonyMethod postfix, HarmonyLib.HarmonyMethod transpiler, HarmonyLib.HarmonyMethod finalizer) [0x00028] in <255414689d344b1385ae719f6cce8c55>:0 at AnimalsLogic.AnimalsUseDispenser.Patch () [0x00034] in <ddaff47aa50648faacb8d3cd4a520ce8>:0 at AnimalsLogic.AnimalsLogic..ctor (Verse.ModContentPack content) [0x00025] in <ddaff47aa50648faacb8d3cd4a520ce8>:0 at (wrapper managed-to-native) System.Reflection.MonoCMethod.InternalInvoke(System.Reflection.MonoCMethod,object,object[],System.Exception&) at System.Reflection.MonoCMethod.InternalInvoke (System.Object obj, System.Object[] parameters) [0x00002] in <eae584ce26bc40229c1b1aa476bfa589>:0 --- End of inner exception stack trace --- at System.Reflection.MonoCMethod.InternalInvoke (System.Object obj, System.Object[] parameters) [0x00014] in <eae584ce26bc40229c1b1aa476bfa589>:0 at System.Reflection.MonoCMethod.DoInvoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x0007a] in <eae584ce26bc40229c1b1aa476bfa589>:0 at System.Reflection.MonoCMethod.Invoke (System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <eae584ce26bc40229c1b1aa476bfa589>: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) [0x00213] in <eae584ce26bc40229c1b1aa476bfa589>: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) [0x00095] in <eae584ce26bc40229c1b1aa476bfa589>:0 at System.Activator.CreateInstance (System.Type type, System.Object[] args) [0x00000] in <eae584ce26bc40229c1b1aa476bfa589>:0 at Verse.LoadedModManager.CreateModClasses () [0x00076] in <da600864a9db4f8087fd0b640e5c28b6>:0 UnityEngine.StackTraceUtility:ExtractStackTrace () Verse.Log:Error (string) Verse.LoadedModManager:CreateModClasses () Verse.LoadedModManager:LoadAllActiveMods () Verse.PlayDataLoader:DoPlayLoad () Verse.PlayDataLoader:LoadAllPlayData (bool) Verse.Root/<>c:<Start>b__6_1 () Verse.LongEventHandler:RunEventFromAnotherThread (System.Action) Verse.LongEventHandler/<>c:<UpdateCurrentAsynchronousEvent>b__27_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 ()
< >
正在显示第 1 - 11 条,共 11 条留言
每页显示数: 1530 50