Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. Works only with Heroes of Hammerwatch v99 - on unmodded saves
  2.  
  3. 1. Cut and save bottom part as a HWR.CT file
  4. 2. Load CT file with Cheat Engine (CE) with attached process
  5. 3. Enable cheats with the checkbox in the CE
  6. 4. Use ~ (tilde key) in the game to open up a console
  7. 5. Enter: e_cheats = 1
  8. 6. Enjoy using any of the commands on: http://wiki.heroesofhammerwatch.com/Commands#Cheat_commands
  9.  
  10. === CUT HERE - Filename: HWR.CT ===
  11. <?xml version="1.0" encoding="utf-8"?>
  12. <CheatTable CheatEngineTableVersion="29">
  13.   <CheatEntries>
  14.     <CheatEntry>
  15.       <ID>0</ID>
  16.       <Description>"Enable cheats"</Description>
  17.       <LastState Activated="1"/>
  18.       <VariableType>Auto Assembler Script</VariableType>
  19.       <AssemblerScript>{ Game   : HWR.exe
  20.   Version: v99
  21.   Date   : 2019-10-06
  22.   Author : soulik
  23.  
  24.   Enables use of e_cheats even on unmodded saves
  25. }
  26.  
  27. [ENABLE]
  28.  
  29. aobscanmodule(cheats,HWR.exe,83 F9 04 72 06) // should be unique
  30. alloc(newmem,$1000)
  31.  
  32. label(code)
  33. label(return)
  34.  
  35. newmem:
  36.  
  37. code:
  38.   cmp ecx,00
  39.   jb HWR.exe+2C601
  40.   jmp return
  41.  
  42. cheats:
  43.   jmp newmem
  44. return:
  45. registersymbol(cheats)
  46.  
  47. [DISABLE]
  48.  
  49. cheats:
  50.   db 83 F9 04 72 06
  51.  
  52. unregistersymbol(cheats)
  53. dealloc(newmem)
  54.  
  55. {
  56. // ORIGINAL CODE - INJECTION POINT: "HWR.exe"+2C5F6
  57.  
  58. "HWR.exe"+2C5DB: 80 7D 08 00           -  cmp byte ptr [ebp+08],00
  59. "HWR.exe"+2C5DF: 74 35                 -  je HWR.exe+2C616
  60. "HWR.exe"+2C5E1: 85 F6                 -  test esi,esi
  61. "HWR.exe"+2C5E3: 74 1C                 -  je HWR.exe+2C601
  62. "HWR.exe"+2C5E5: 8B 4E 08              -  mov ecx,[esi+08]
  63. "HWR.exe"+2C5E8: 85 C9                 -  test ecx,ecx
  64. "HWR.exe"+2C5EA: 74 15                 -  je HWR.exe+2C601
  65. "HWR.exe"+2C5EC: E8 EF 9A FF FF        -  call HWR.exe+260E0
  66. "HWR.exe"+2C5F1: 8B 48 04              -  mov ecx,[eax+04]
  67. "HWR.exe"+2C5F4: 2B 08                 -  sub ecx,[eax]
  68. // ---------- INJECTING HERE ----------
  69. "HWR.exe"+2C5F6: 83 F9 04              -  cmp ecx,04
  70. "HWR.exe"+2C5F9: 72 06                 -  jb HWR.exe+2C601
  71. // ---------- DONE INJECTING  ----------
  72. "HWR.exe"+2C5FB: C6 45 D0 01           -  mov byte ptr [ebp-30],01
  73. "HWR.exe"+2C5FF: EB 15                 -  jmp HWR.exe+2C616
  74. "HWR.exe"+2C601: 80 7D 0C 00           -  cmp byte ptr [ebp+0C],00
  75. "HWR.exe"+2C605: 74 0F                 -  je HWR.exe+2C616
  76. "HWR.exe"+2C607: 68 E4 B1 8E 00        -  push HWR.exe+36B1E4
  77. "HWR.exe"+2C60C: 6A 02                 -  push 02
  78. "HWR.exe"+2C60E: E8 1D B0 0B 00        -  call HWR.exe+E7630
  79. "HWR.exe"+2C613: 83 C4 08              -  add esp,08
  80. "HWR.exe"+2C616: FF 75 D0              -  push [ebp-30]
  81. "HWR.exe"+2C619: E8 42 3D 0E 00        -  call HWR.exe+110360
  82. }
  83. </AssemblerScript>
  84.     </CheatEntry>
  85.   </CheatEntries>
  86.   <UserdefinedSymbols/>
  87. </CheatTable>