Trying to show messages for debugging, not sure my patched routine is being called

Users who are viewing this thread

EvZone

On probation
Hello,

Using Harmony, I'm trying to patch CustomBattleMoraleModel.GetImportance() (for kicks, mostly) which checks if the killed agent is the team's general. In that case, I put a

InformationManager.DisplayMessage(new InformationMessage("Killed General ! Flee ye little rabbits !"));

to try and check if the function is called. However this doesn't show anything, as far as I can tell.

In std_module_strings_xml.xml, I found the line

<string id="3wS4uOvU" text="{TROOP_NAMES_BEGIN}{?IS_PLURAL} and {?}{\?}{TROOP_NAMES_END} {?IS_PLURAL}are{?}is{\?} skirmishing from behind." />

which I know is used in battle (since I saw it on one of my test runs) to produce the type of message I'm looking for. However searching for 3wS4uOvU in code yielded nothing, so I imagine it's a hashed out string...

Anyways, how would you go about making sure your function is called? I'd even be down to doing a call exit() of sorts, if it existed. Anything visible would be fine.
 
Back
Top Bottom