Works only with Heroes of Hammerwatch v99 - on unmodded saves
1. Cut and save bottom part as a HWR.CT file
2. Load CT file with Cheat Engine (CE) with attached process
3. Enable cheats with the checkbox in the CE
4. Use ~ (tilde key) in the game to open up a console
5. Enter: e_cheats = 1
6. Enjoy using any of the commands on: http://wiki.heroesofhammerwatch.com/Commands#Cheat_commands
=== CUT HERE - Filename: HWR.CT ===
<?xml version="1.0" encoding="utf-8"?>
<CheatTable CheatEngineTableVersion="29">
<CheatEntries>
<CheatEntry>
<ID>0</ID>
<Description>"Enable cheats"</Description>
<LastState Activated="1"/>
<VariableType>Auto Assembler Script</VariableType>
<AssemblerScript>{ Game : HWR.exe
Version: v99
Date : 2019-10-06
Author : soulik
Enables use of e_cheats even on unmodded saves
}
[ENABLE]
aobscanmodule(cheats,HWR.exe,83 F9 04 72 06) // should be unique
alloc(newmem,$1000)
label(code)
label(return)
newmem:
code:
cmp ecx,00
jb HWR.exe+2C601
jmp return
cheats:
jmp newmem
return:
registersymbol(cheats)
[DISABLE]
cheats:
db 83 F9 04 72 06
unregistersymbol(cheats)
dealloc(newmem)
{
// ORIGINAL CODE - INJECTION POINT: "HWR.exe"+2C5F6
"HWR.exe"+2C5DB: 80 7D 08 00 - cmp byte ptr [ebp+08],00
"HWR.exe"+2C5DF: 74 35 - je HWR.exe+2C616
"HWR.exe"+2C5E1: 85 F6 - test esi,esi
"HWR.exe"+2C5E3: 74 1C - je HWR.exe+2C601
"HWR.exe"+2C5E5: 8B 4E 08 - mov ecx,[esi+08]
"HWR.exe"+2C5E8: 85 C9 - test ecx,ecx
"HWR.exe"+2C5EA: 74 15 - je HWR.exe+2C601
"HWR.exe"+2C5EC: E8 EF 9A FF FF - call HWR.exe+260E0
"HWR.exe"+2C5F1: 8B 48 04 - mov ecx,[eax+04]
"HWR.exe"+2C5F4: 2B 08 - sub ecx,[eax]
// ---------- INJECTING HERE ----------
"HWR.exe"+2C5F6: 83 F9 04 - cmp ecx,04
"HWR.exe"+2C5F9: 72 06 - jb HWR.exe+2C601
// ---------- DONE INJECTING ----------
"HWR.exe"+2C5FB: C6 45 D0 01 - mov byte ptr [ebp-30],01
"HWR.exe"+2C5FF: EB 15 - jmp HWR.exe+2C616
"HWR.exe"+2C601: 80 7D 0C 00 - cmp byte ptr [ebp+0C],00
"HWR.exe"+2C605: 74 0F - je HWR.exe+2C616
"HWR.exe"+2C607: 68 E4 B1 8E 00 - push HWR.exe+36B1E4
"HWR.exe"+2C60C: 6A 02 - push 02
"HWR.exe"+2C60E: E8 1D B0 0B 00 - call HWR.exe+E7630
"HWR.exe"+2C613: 83 C4 08 - add esp,08
"HWR.exe"+2C616: FF 75 D0 - push [ebp-30]
"HWR.exe"+2C619: E8 42 3D 0E 00 - call HWR.exe+110360
}
</AssemblerScript>
</CheatEntry>
</CheatEntries>
<UserdefinedSymbols/>
</CheatTable>