pardeike/HarmonyRimWorld

Babies and Children

Dune02 opened this issue · 1 comments

I get the following in the log when the mod is enabled. Mod doesnt really function. Will also post in that mod as im not sure if harmony or the mod is at fault.

[Children_and_Pregnancy][ERR] Failed to apply Harmony patches for babies.and.children. Exception was: HarmonyLib.HarmonyException: Patching exception in method System.Void Verse.PawnGraphicSet::ResolveApparelGraphics() ---> System.FormatException: Method System.Void Verse.PawnGraphicSet::ResolveApparelGraphics() cannot be patched. Reason: Invalid IL code in (wrapper dynamic-method) Verse.PawnGraphicSet:DMD<DMD<ResolveApparelGraphics_Patch0>?-1518161152::ResolveApparelGraphics_Patch0> (Verse.PawnGraphicSet): IL_004b: call 0x00000019

at HarmonyLib.PatchFunctions.UpdateWrapper (System.Reflection.MethodBase original, HarmonyLib.PatchInfo patchInfo) [0x00092] in <026284b8b4324a28a7825619702a3e16>:0
at HarmonyLib.PatchClassProcessor.ProcessPatchJob (HarmonyLib.PatchJobs1+Job[T] job) [0x0015d] in <026284b8b4324a28a7825619702a3e16>:0 --- End of inner exception stack trace --- at HarmonyLib.PatchClassProcessor.ReportException (System.Exception exception, System.Reflection.MethodBase original) [0x0010f] in <026284b8b4324a28a7825619702a3e16>:0 at HarmonyLib.PatchClassProcessor.Patch () [0x00082] in <026284b8b4324a28a7825619702a3e16>:0 at HarmonyLib.Harmony.<PatchAll>b__10_0 (System.Type type) [0x00007] in <026284b8b4324a28a7825619702a3e16>:0 at HarmonyLib.CollectionExtensions.Do[T] (System.Collections.Generic.IEnumerable1[T] sequence, System.Action`1[T] action) [0x00014] in <026284b8b4324a28a7825619702a3e16>:0
at HarmonyLib.Harmony.PatchAll (System.Reflection.Assembly assembly) [0x00006] in <026284b8b4324a28a7825619702a3e16>:0
at HugsLib.ModBase.ApplyHarmonyPatches () [0x0009a] in <10ab33f1eae94a23bbc00b4473477d27>:0
Verse.Log:Error(String, Boolean)
HugsLib.Utils.ModLogger:Error(String, Object[])
HugsLib.ModBase:ApplyHarmonyPatches()
HugsLib.HugsLibController:EnumerateChildMods(Boolean)
HugsLib.HugsLibController:LoadReloadInitialize()
Verse.LongEventHandler:RunEventFromAnotherThread(Action)
Verse.<>c: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()

As the error clearly states: Failed to apply Harmony patches for babies.and.children.

This is either a direct error in the babies.and.children mod or a mod conflict between that mod and another mod patching the same method.

The harmony mod does only the error reporting.