-
Notifications
You must be signed in to change notification settings - Fork 59
Description
[VEF] Failed running uncategorized patches:
HarmonyLib.HarmonyException: Patching exception in method virtual System.Boolean RimWorld.d__81::MoveNext() ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.InvalidCastException: Specified cast is not valid.
[Ref FF4D7BF4]
at System.Convert.ToInt32 (System.Object value) [0x00003] in <51fded79cd284d4d911c5949aff4cb21>:0
at HarmonyLib.CodeInstructionExtensions.LocalIndex (HarmonyLib.CodeInstruction code) [0x000bc] in <8124cc12bdf242eab0a5f7e7edecf387>:0
at VEF.Buildings.GravshipUtility_PreLaunchConfirmation_Patch.Transpiler (System.Collections.Generic.IEnumerable1[T] instr, System.Reflection.Emit.ILGenerator ilGenerator) [0x00093] in <5ea4541f885544c68f7c17a2531f8b1e>: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.List1[T].ForEach (System.Action1[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.List1[T] transpilers, System.Collections.Generic.List1[T] endLabels, System.Boolean& hasReturnCode, System.Boolean& methodEndsInDeadCode) [0x0014d] in <8124cc12bdf242eab0a5f7e7edecf387>:0 at HarmonyLib.MethodCopier.Finalize (HarmonyLib.Emitter emitter, System.Collections.Generic.List1[T] endLabels, System.Boolean& hasReturnCode, System.Boolean& methodEndsInDeadCode) [0x00000] in <8124cc12bdf242eab0a5f7e7edecf387>:0
at HarmonyLib.MethodPatcher.CreateReplacement (System.Collections.Generic.Dictionary2[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.PatchJobs1+Job[T] job) [0x000be] in <8124cc12bdf242eab0a5f7e7edecf387>:0
--- End of inner exception stack trace ---
[Ref 9AC002F]
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+<>c.b__12_1 (HarmonyLib.PatchClassProcessor patchClass) [0x00000] in <8124cc12bdf242eab0a5f7e7edecf387>:0
at HarmonyLib.CollectionExtensions.Do[T] (System.Collections.Generic.IEnumerable1[T] sequence, System.Action1[T] action) [0x00014] in <8124cc12bdf242eab0a5f7e7edecf387>:0
at HarmonyLib.CollectionExtensions.DoIf[T] (System.Collections.Generic.IEnumerable1[T] sequence, System.Func2[T,TResult] condition, System.Action`1[T] action) [0x00007] in <8124cc12bdf242eab0a5f7e7edecf387>:0
at HarmonyLib.Harmony.PatchAllUncategorized (System.Reflection.Assembly assembly) [0x0001d] in <8124cc12bdf242eab0a5f7e7edecf387>:0
at HarmonyLib.Harmony.PatchAllUncategorized () [0x0001d] in <8124cc12bdf242eab0a5f7e7edecf387>:0
at VEF.VEF_HarmonyCategories.TryPatchAll (HarmonyLib.Harmony harmony) [0x0000d] in <5ea4541f885544c68f7c17a2531f8b1e>:0
UnityEngine.StackTraceUtility:ExtractStackTrace ()
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.Log.Error_Patch1 (string)
VEF.VEF_HarmonyCategories:TryPatchAll (HarmonyLib.Harmony)
VEF.VEF_Mod:.ctor (Verse.ModContentPack)
System.Reflection.RuntimeConstructorInfo:InternalInvoke (object,object[],bool)
System.Reflection.RuntimeConstructorInfo:DoInvoke (object,System.Reflection.BindingFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo)
System.Reflection.RuntimeConstructorInfo: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 (bool)
Verse.PlayDataLoader:DoPlayLoad ()
Verse.PlayDataLoader:LoadAllPlayData (bool)
Verse.Root/<>c:b__10_1 ()
Verse.LongEventHandler:RunEventFromAnotherThread (System.Action)
Verse.LongEventHandler/<>c: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 ()