Skip to content

Harmony Patch Error #2

@librarianmage

Description

@librarianmage
MODERROR [Live and Think] - Exception applying harmony patches: HarmonyLib.HarmonyException: Patching exception in method System.Boolean XRL.World.AI.GoalHandlers.Kill::TryMissileWeapon() ---> System.FormatException: Method System.Boolean XRL.World.AI.GoalHandlers.Kill::TryMissileWeapon() cannot be patched. Reason: Invalid IL code in (wrapper dynamic-method) XRL.World.AI.GoalHandlers.Kill:XRL.World.AI.GoalHandlers.Kill.TryMissileWeapon_Patch0 (XRL.World.AI.GoalHandlers.Kill): IL_02f7: call      0x000000a5


  at HarmonyLib.PatchFunctions.UpdateWrapper (System.Reflection.MethodBase original, HarmonyLib.PatchInfo patchInfo) [0x00092] in <28a34da201e449be81fe5efb7481a26c>:0 
  at HarmonyLib.PatchClassProcessor.ProcessPatchJob (HarmonyLib.PatchJobs`1+Job[T] job) [0x0015d] in <28a34da201e449be81fe5efb7481a26c>:0 
   --- End of inner exception stack trace ---
  at HarmonyLib.PatchClassProcessor.ReportException (System.Exception exception, System.Reflection.MethodBase original) [0x0010f] in <28a34da201e449be81fe5efb7481a26c>:0 
  at HarmonyLib.PatchClassProcessor.Patch () [0x00084] in <28a34da201e449be81fe5efb7481a26c>:0 
  at HarmonyLib.Harmony.<PatchAll>b__10_0 (System.Type type) [0x00007] in <28a34da201e449be81fe5efb7481a26c>:0 
  at HarmonyLib.CollectionExtensions.Do[T] (System.Collections.Generic.IEnumerable`1[T] sequence, System.Action`1[T] action) [0x00014] in <28a34da201e449be81fe5efb7481a26c>:0 
  at HarmonyLib.Harmony.PatchAll (System.Reflection.Assembly assembly) [0x00006] in <28a34da201e449be81fe5efb7481a26c>:0 
  at XRL.ModInfo.ApplyHarmonyPatches () [0x00070] in <d1c56756612a4239b34b3f132d109638>:0

Using latest workshop version and Caves of Qud 204.63

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions