Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Error while instantiating a mod of type Replace_Stuff.Mod: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> HarmonyLib.HarmonyException: Patching exception in method Verse.AcceptanceReport RimWorld.GenConstruct.CanPlaceBlueprintAt(Verse.BuildableDef, Verse.IntVec3, Verse.Rot4, Verse.Map, System.Boolean, Verse.Thing, Verse.Thing, Verse.ThingDef) ---> System.FormatException: Method Verse.AcceptanceReport RimWorld.GenConstruct.CanPlaceBlueprintAt(Verse.BuildableDef, Verse.IntVec3, Verse.Rot4, Verse.Map, System.Boolean, Verse.Thing, Verse.Thing, Verse.ThingDef) cannot be patched. Reason: Invalid IL code in (wrapper dynamic-method) RimWorld.GenConstruct:DMD<DMD<CanPlaceBlueprintAt_Patch1>?-1481511552::CanPlaceBlueprintAt_Patch1> (intptr,Verse.BuildableDef,Verse.IntVec3,Verse.Rot4,Verse.Map,bool,Verse.Thing,Verse.Thing,Verse.ThingDef): IL_012a: ldloc.s 8
- at HarmonyLib.PatchFunctions.UpdateWrapper (System.Reflection.MethodBase original, HarmonyLib.PatchInfo patchInfo) [0x00092] in <87c4518cb3764543b99c085dbdc108a0>:0
- at HarmonyLib.PatchClassProcessor.ProcessPatchJob (HarmonyLib.PatchJobs`1+Job[T] job) [0x0015d] in <87c4518cb3764543b99c085dbdc108a0>:0
- --- End of inner exception stack trace ---
- at HarmonyLib.PatchClassProcessor.ReportException (System.Exception exception, System.Reflection.MethodBase original) [0x00086] in <87c4518cb3764543b99c085dbdc108a0>:0
- at HarmonyLib.PatchClassProcessor.Patch () [0x00082] in <87c4518cb3764543b99c085dbdc108a0>:0
- at HarmonyLib.Harmony.<PatchAll>b__10_0 (System.Type type) [0x00007] in <87c4518cb3764543b99c085dbdc108a0>:0
- at HarmonyLib.CollectionExtensions.Do[T] (System.Collections.Generic.IEnumerable`1[T] sequence, System.Action`1[T] action) [0x00014] in <87c4518cb3764543b99c085dbdc108a0>:0
- at HarmonyLib.Harmony.PatchAll (System.Reflection.Assembly assembly) [0x00006] in <87c4518cb3764543b99c085dbdc108a0>:0
- at HarmonyLib.Harmony.PatchAll () [0x0001b] in <87c4518cb3764543b99c085dbdc108a0>:0
- at Replace_Stuff.Mod..ctor (Verse.ModContentPack content) [0x00018] in <411bba4559384eabbcfdf55242402133>: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 <567df3e0919241ba98db88bec4c6696f>:0
- --- End of inner exception stack trace ---
- at System.Reflection.MonoCMethod.InternalInvoke (System.Object obj, System.Object[] parameters) [0x00014] in <567df3e0919241ba98db88bec4c6696f>: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 <567df3e0919241ba98db88bec4c6696f>:0
- at System.Reflection.MonoCMethod.Invoke (System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <567df3e0919241ba98db88bec4c6696f>: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 <567df3e0919241ba98db88bec4c6696f>: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 <567df3e0919241ba98db88bec4c6696f>:0
- at System.Activator.CreateInstance (System.Type type, System.Object[] args) [0x00000] in <567df3e0919241ba98db88bec4c6696f>:0
- at Verse.LoadedModManager.CreateModClasses () [0x00076] in <a12d1ce36500429788a966a010bef562>:0
- Verse.Log:Error(String, Boolean)
- Verse.LoadedModManager:CreateModClasses()
- Verse.LoadedModManager:LoadAllActiveMods()
- Verse.PlayDataLoader:DoPlayLoad()
- Verse.PlayDataLoader:LoadAllPlayData(Boolean)
- Verse.<>c:<Start>b__6_1()
- Verse.LongEventHandler:RunEventFromAnotherThread(Action)
- Verse.<>c:<UpdateCurrentAsynchronousEvent>b__27_0()
- System.Threading.ThreadHelper:ThreadStart_Context(Object)
- System.Threading.ExecutionContext:RunInternal(ExecutionContext, ContextCallback, Object, Boolean)
- System.Threading.ExecutionContext:Run(ExecutionContext, ContextCallback, Object, Boolean)
- System.Threading.ExecutionContext:Run(ExecutionContext, ContextCallback, Object)
- System.Threading.ThreadHelper:ThreadStart()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement