边缘世界 RimWorld

边缘世界 RimWorld

Dual Wield [Dev]
Multiple red errors on Startup
HugsLib Log:
https://gist.github.com/HugsLibRecordKeeper/676da67179275c76e9a3d79408ab1cd3

Thank you for all your hard work and patience going into this mod!
Have a wonderful weekend!


Ingame Debug Log:


First:
Error in Dual Wield, assembly name: DualWield, method: FloatMenuMakerMap_AddHumanlikeOrders:Postfix, exception: System.MissingMethodException: Method not found: RimWorld.TargetingParameters RimWorld.TargetingParameters.ForSelf(Verse.Pawn)
[Ref F71B84BC] Duplicate stacktrace, see ref for original
UnityEngine.StackTraceUtility:ExtractStackTrace ()
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.Log.Error_Patch2 (string)
ModErrorChecker.ModErrorChecker/<StartChecks>d__1:MoveNext ()
System.Runtime.CompilerServices.AsyncMethodBuilderCore/MoveNextRunner:InvokeMoveNext (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.Runtime.CompilerServices.AsyncMethodBuilderCore/MoveNextRunner:Run ()
System.Threading.Tasks.SynchronizationContextAwaitTaskContinuation/<>c:<.cctor>b__7_0 (object)
UnityEngine.UnitySynchronizationContext/WorkRequest:Invoke ()
UnityEngine.UnitySynchronizationContext:Exec ()
UnityEngine.UnitySynchronizationContext:ExecuteTasks ()


Second:
Error in Dual Wield, assembly name: DualWield, method: Command_DualWield:GizmoUpdateOnMouseover, exception: System.MissingMethodException: Method not found: void Verse.VerbProperties.DrawRadiusRing(Verse.IntVec3)
[Ref F71B84BC] Duplicate stacktrace, see ref for original
UnityEngine.StackTraceUtility:ExtractStackTrace ()
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.Log.Error_Patch2 (string)
ModErrorChecker.ModErrorChecker/<StartChecks>d__1:MoveNext ()
System.Runtime.CompilerServices.AsyncMethodBuilderCore/MoveNextRunner:InvokeMoveNext (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.Runtime.CompilerServices.AsyncMethodBuilderCore/MoveNextRunner:Run ()
System.Threading.Tasks.SynchronizationContextAwaitTaskContinuation/<>c:<.cctor>b__7_0 (object)
UnityEngine.UnitySynchronizationContext/WorkRequest:Invoke ()
UnityEngine.UnitySynchronizationContext:Exec ()
UnityEngine.UnitySynchronizationContext:ExecuteTasks ()


Third:
Error in Dual Wield, assembly name: DualWield, method: Command_DualWield:GizmoOnGUI, exception: System.MissingMethodException: Method not found: void Verse.Widgets.DrawTextureFitted(UnityEngine.Rect,UnityEngine.Texture,single,UnityEngine.Vector2,UnityEngine.Rect,single,UnityEngine.Material)
[Ref F71B84BC]
(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 <e53399289d9b419d83f9f5b02c5cf609>:0
at HarmonyLib.MethodBodyReader.GenerateInstructions () [0x00022] in <e53399289d9b419d83f9f5b02c5cf609>:0
HarmonyLib.MethodCopier..ctor(MethodBase fromMethod, ILGenerator toILGenerator, LocalBuilder[] existingVariables)
at HarmonyLib.MethodCopier.GetInstructions (System.Reflection.Emit.ILGenerator generator, System.Reflection.MethodBase method, System.Int32 maxTranspilers) [0x00024] in <e53399289d9b419d83f9f5b02c5cf609>:0
at HarmonyLib.PatchProcessor.GetOriginalInstructions (System.Reflection.MethodBase original, System.Reflection.Emit.ILGenerator generator) [0x0000b] in <e53399289d9b419d83f9f5b02c5cf609>:0
at ModErrorChecker.ModErrorChecker.CheckAssemblies () [0x000af] in <c01cefb11f204c02a513919b7c43f698>:0
UnityEngine.StackTraceUtility:ExtractStackTrace ()
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.Log.Error_Patch2 (string)
ModErrorChecker.ModErrorChecker/<StartChecks>d__1:MoveNext ()
System.Runtime.CompilerServices.AsyncMethodBuilderCore/MoveNextRunner:InvokeMoveNext (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.Runtime.CompilerServices.AsyncMethodBuilderCore/MoveNextRunner:Run ()
System.Threading.Tasks.SynchronizationContextAwaitTaskContinuation/<>c:<.cctor>b__7_0 (object)
UnityEngine.UnitySynchronizationContext/WorkRequest:Invoke ()
UnityEngine.UnitySynchronizationContext:Exec ()
UnityEngine.UnitySynchronizationContext:ExecuteTasks ()


Fourth:
[Roolo.DualWield][ERR] Failed to apply Harmony patches for Roolo.DualWield. Exception was: HarmonyLib.HarmonyException: Patching exception in method null ---> System.ArgumentException: Undefined target method for patch method static System.Void DualWield.HarmonyInstance.FloatMenuMakerMap_AddHumanlikeOrders::Postfix(UnityEngine.Vector3 clickPos, Verse.Pawn pawn, System.Collections.Generic.List`1& opts)
[Ref 6CDD5CBC]
at HarmonyLib.PatchClassProcessor.PatchWithAttributes (System.Reflection.MethodBase& lastOriginal, System.Boolean unpatch) [0x00047] in <e53399289d9b419d83f9f5b02c5cf609>:0
at HarmonyLib.PatchClassProcessor.Patch () [0x00064] in <e53399289d9b419d83f9f5b02c5cf609>:0
--- End of inner exception stack trace ---
[Ref CA3B7804]
at HarmonyLib.PatchClassProcessor.ReportException (System.Exception exception, System.Reflection.MethodBase original) [0x00154] in <e53399289d9b419d83f9f5b02c5cf609>:0
at HarmonyLib.PatchClassProcessor.Patch () [0x00096] in <e53399289d9b419d83f9f5b02c5cf609>:0
at HarmonyLib.Harmony.<PatchAll>b__10_1 (System.Type type) [0x00007] in <e53399289d9b419d83f9f5b02c5cf609>:0
at HarmonyLib.CollectionExtensions.Do[T] (System.Collections.Generic.IEnumerable`1[T] sequence, System.Action`1[T] action) [0x00014] in <e53399289d9b419d83f9f5b02c5cf609>:0
at HarmonyLib.CollectionExtensions.DoIf[T] (System.Collections.Generic.IEnumerable`1[T] sequence, System.Func`2[T,TResult] condition, System.Action`1[T] action) [0x00007] in <e53399289d9b419d83f9f5b02c5cf609>:0
at HarmonyLib.Harmony.PatchAll (System.Reflection.Assembly assembly) [0x00006] in <e53399289d9b419d83f9f5b02c5cf609>:0
at HugsLib.ModBase.ApplyHarmonyPatches () [0x0009a] in <e92fb9c535b84355b807623efc376846>:0
UnityEngine.StackTraceUtility:ExtractStackTrace ()
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.Log.Error_Patch2 (string)
HugsLib.Utils.ModLogger:Error (string,object[])
HugsLib.ModBase:ApplyHarmonyPatches ()
HugsLib.HugsLibController:EnumerateChildMods (bool)
HugsLib.HugsLibController:LoadReloadInitialize ()
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 ()