- changed status to invalid
[#modding] it looks like failed harmony patches aren't consistently cleared out when reload...
Marked for crossposting by: autumn, waveform worm
Message (jump):
<Apollo (they) | Kizby> it looks like failed harmony patches aren't consistently cleared out when reloading mods? I was making a transpiler for XRLCore.PlayerTurn and screwed up a branch instruction, but when testing fixes to the transpiler, nothing made the error go away until I restarted the client, implying that it was still trying to run the original bugged code. in case it's relevant, the error was:
MODERROR [Clever Girl] - Exception applying harmony patches: HarmonyLib.HarmonyException: Patching exception in method System.Void XRL.Core.XRLCore::PlayerTurn() ---> System.FormatException: Method System.Void XRL.Core.XRLCore::PlayerTurn() cannot be patched. Reason: Invalid IL code in (wrapper dynamic-method) XRL.Core.XRLCore:XRL.Core.XRLCore.PlayerTurn_Patch0 (XRL.Core.XRLCore): IL_08c4: ldloc.s 26
Comments (4)
-
repo owner -
repo owner -
assigned issue to
- edited description
-
assigned issue to
-
repo owner - changed status to open
-
repo owner - changed version to 1.0
- changed milestone to small bugs
- Log in to comment
This is a harmony limitation.