DF 101: Finding New AOB with cheat engine + Dnspy
To start this tutorial you gonna need some tools.
Tools
Dnspy
github.com/dnSpy/dnSpy
Cheat Engine
github.com/cheat-engine/cheat-engine
Notepad++
(not really needed)
Also you gonna need the Old Aob you need few to made the aob wildcard
sample wildcard 1 Hit
02 7B ?? 0F 00 04 7B ?? 0F 00 04 28 ?? ?? 00 06 16 6B 3D ??
I Use Cheat Engine with Dnspy instea of DeadFrontier.exe cause i already loaded the Assembly-UnityScript.dll this can be used on old versions to find the aobs and see how is changing the codes along versions.
if you need a old version of the game you can try download it from the official webiste you must change the xx to the version you are looking to check
Usually the wildcards dont change some bytes the changing ones we use ?? to tell cheat engine to fill this with any value he find

we already know what is the real one just for testing each one on game
Or we can check on Dnspy if the AOB go to the right path of the game code i show on the next screens how you can use the AOB to find the module inside dead frontier using Dnspy

We opened Dnspy We go to Archive

We Click on Open

We travel to the Dead Frontier/DeadFrontier_data/managed Folder, and Select Assembly-UnityScript.dll

We do Right Click and we press on Hex Editor

We do Right Click and we press Search

We place the AOB (02 7B 5E 0F 00 04 7B 03 0F 00 04 28 C3 29 00 06 16 6B 3D 4E) and press enter.

We Do Right Click on the Part Highlighted and we press on Go to code or structure

We Select the part of the code related with our aob
Sample Code i taked from the Dnspy
On the Code we can see the last Part 3D 4E to turn on the 1Hit we are changing the Max Life from Class Zombies (that is why only affect zombies, No NPC,Player Or Bandits) We Must Edit the 4E to 00 and they have 0 Life.
Tools
Dnspy
github.com/dnSpy/dnSpy
Cheat Engine
github.com/cheat-engine/cheat-engine
Notepad++
(not really needed)
Also you gonna need the Old Aob you need few to made the aob wildcard
sample wildcard 1 Hit
02 7B ?? 0F 00 04 7B ?? 0F 00 04 28 ?? ?? 00 06 16 6B 3D ??
I Use Cheat Engine with Dnspy instea of DeadFrontier.exe cause i already loaded the Assembly-UnityScript.dll this can be used on old versions to find the aobs and see how is changing the codes along versions.
if you need a old version of the game you can try download it from the official webiste you must change the xx to the version you are looking to check
Code:
files.deadfrontier.com/deadfrontier/DF3D/Installers/DeadFrontierWinXX.exe
we already know what is the real one just for testing each one on game
Or we can check on Dnspy if the AOB go to the right path of the game code i show on the next screens how you can use the AOB to find the module inside dead frontier using Dnspy
We opened Dnspy We go to Archive
We Click on Open
We travel to the Dead Frontier/DeadFrontier_data/managed Folder, and Select Assembly-UnityScript.dll
We do Right Click and we press on Hex Editor
We do Right Click and we press Search
We place the AOB (02 7B 5E 0F 00 04 7B 03 0F 00 04 28 C3 29 00 06 16 6B 3D 4E) and press enter.
We Do Right Click on the Part Highlighted and we press on Go to code or structure
We Select the part of the code related with our aob
Code:
/* 0x0004C9B9 02 */ IL_1341: ldarg.0 /* 0x0004C9BA 7B5E0F0004 */ IL_1342: ldfld class DF116_0d7ac554cfa5739b31e22b6b843f59151a54091b DF116_0d7ac554cfa5739b31e22b6b843f59151a54091b/$DF116_0b668a0a04406b5be3d23a5c82f2ca0bc3c7b3d0$2303/$::$self_$2353 /* 0x0004C9BF 7B030F0004 */ IL_1347: ldfld float32 DF116_0d7ac554cfa5739b31e22b6b843f59151a54091b::DF116_89a81f2632df7abcf988918932747126cc0bfe05 /* 0x0004C9C4 28C3290006 */ IL_134C: call float32 DF116_77d1e8dbc389f7cc13608f761e967a4811d793d0::DF116_011ae28517a002d361aa58a85d5ad3bc6c58ddcf(float32) /* 0x0004C9C9 16 */ IL_1351: ldc.i4.0 /* 0x0004C9CA 6B */ IL_1352: conv.r4 /* 0x0004C9CB 3D4E000000 */ IL_1353: bgt IL_13A6
On the Code we can see the last Part 3D 4E to turn on the 1Hit we are changing the Max Life from Class Zombies (that is why only affect zombies, No NPC,Player Or Bandits) We Must Edit the 4E to 00 and they have 0 Life.