Cheat Engine Hack Script Tutorial
Cheat Engine Hack Script Tutorial
So basically all you're doing is changing some memory addresses in the game itself and once you close the
The game will restore back to original code but still keep the hack value in the game memory. Now the general
The purpose of Cheat Engine is to create hack scripts, and once you have a bit more practice, it's the same for...
most games and soon you will be able to do it on your own. So in this tutorial I will show you how to create
hack script from the hill climb racing 2 pc app game as simple way to demonstrate some basic technique.
IT WILL HELP IF YOU HAVE SOME BASIC UNDERSTANDING ABOUT ASSEMBLY LANGUAGE
HERE BASIC TUTORIAL LESSONS FOR BEGINNERS!
Watch Cheat Engine Trainer Making Tutorial Video 1: Finding Exact Memory Address Values!
This method is easy once you get to practice the basic part of making script hack code.~ My Video!
Finding Values:
You must always run the game first and then run Cheat Engine afterward.
02) Open 'process' and click on 'Processes' tab then open the 'HillClimbRacing2.exe' from the list:My Image!
03) Enter the coins value plus +1, e.g. If value is 1100 then change to 1101 then click 'First Scan':My Image!
04) Race and collect some more coins and enter new coins value +1, e.g. 1413 then click 'Next Scan'. If more address
are found then repeat this step again until down to lowest few memory addresses:My Image!
Beware, changes made to the find value address in the cheat table have been anti-hack protected and may cause the game to crash.
Watch Cheat Engine Trainer Making Tutorial Video 2: Auto Assemble & Code Injection!
Auto Assemble:
05) Now double click on the memory address and move to the bottom area of the cheat table.
06) Right click mouse button and select 'Find out what writes accesses this address' then click 'Yes' to attach the
A debugger will then display the opcode instruction box.
07) Need to buy any one item with coins and the assemble code will appear in the opcode instruction box and click on
the memory address then click on 'Show Disassembler':My Image!
08) In the memory viewer click on "mov [rdx+38],eax" then click 'Tools' tab and select "Auto Assemble".
Code Injection:
09) Now the Auto Assemble box will appear. Click the 'Template' tab, then select 'Cheat Table Framework Code' and click.
'Template' tab again and select "Code Injection" then click 'Ok'.
10) Under the line 'originalcode', change the assembly code as shown but don't click on the 'Execute':My Image!
Original Code:
Change “mov [rdx+38],eax” to “mov [rdx+38],(int)1000000000”
Instead click 'File' tab and select "Assign to current cheat table".
12) Go back to the cheat engine and you can now delete 'no description' find value memory addresses by right click
Select 'Delete the record' then you can also close all other extra command boxes. If there are more than one addresses to
To delete, you can hold down the shift key and click the left mouse button to select more addresses in a row.
You can double click on Auto Assemble script and rename description to anything you want, e.g. Coin Hack.
14) To enable the hack script, tick the active box to see 'Red Cross' and click again to disable:My Image!
15) The only thing left to do now is to test it and save the file, and if you want to create a trainer, click on the 'File' tab, then select 'Generate.'
Generic Trainer LUA Script From TableMy Image!(You will find the trainer tutorial at the bottom of this page!)
NOTE: If you can't find the exact value then sometimes use this +1 value method but not necessary on all games.
HOW TO CREATE GEMS, SCRAP AND CRAFT HACK SCRIPT:
The method is the same as before with the coin hack script, and the tutorial steps will be in less detail this time.~ My Video!
Finding Values:
01) Enter any of the gems, craft or scrap value +1 then click 'First Scan'.
Now buy any of the items and enter new value +1 then click 'Next Scan'.
03) If a lot more addresses are found, then repeat step 2 again until down to a few memory addresses.
Auto Assemble:
Now double click on the memory address and go to the bottom area of the cheat table.
05) Right click and select "Find out what writes accesses this address" then click 'Yes' to open Opcode box.
06) Buy one more item and in Opcode instruction box click 'Show Disassembler'.
In the memory viewer, click on the code you are going to change, then click the 'Tools' tab and select 'Auto Assemble'.
Code Injection:
08) In the auto assemble box, click the 'Template' tab, then select 'Cheat Table Framework Code' and click the 'Template' tab.
again to select 'Code Injection'.
09) Now underneath the line 'originalcode', change the following code, but remember, don't click on 'Execute'.
10) Now click on 'File' and select 'Assign to current cheat table' then close the auto assemble box.
11) Return to the main cheat engine and enable the hack script by ticking the active box and clicking again to disable.
NOTE: You’re not always going to be able to find values because on some games the values are kept on server side.
e.g. The Hill Climb Racing 2 challenger race season points' values for example.
This method is slightly different but useful to know if you don't have the exact value as it displays a bar or needle.
Watch Cheat Engine Trainer Making Tutorial Video 3: Finding Unknown Memory Address Values.~ My Video!
Finding Values:
01) Now select scan type to "Unknown Initial Value" and also tick pause the game but don't click 'First Scan' yet...
02) Start the adventure race and go in reverse until the car has stopped moving, then click 'First Scan':My Image!
03) When the first scan finishes but while the game is paused, change the scan type to 'Decreased Value' but don't click 'Next Scan'.
04) Now resume the race for 1 or 2 seconds then click 'Next Scan' to pause and wait scan finish:My Image!
Keep repeating this same step 4 a few times then change scan type to 'Unchanged Value' and click a few more times.
to remove any unwanted addresses then change scan type back to 'Decreased Value' again and resume the race and
Pause then click 'Next Scan' until you find memory addresses count has dropped down low as possible:My Image!
06) Press Ctrl + A on the remaining few addresses and click on the 'Red Arrow' to move all of them into the cheat table.
07) Now tick each active box and resume the race to see which one stops the fuel gauge from moving down then
Once you found the correct address, select 'Find out what writes to this address' and resume the race to find the code.
Beware, that the tick box method is now anti-hack protected and will cause the game to crash.My Image!
Auto Assemble:
09) Now you have found the 'movss [rdi+000003F0],xmm0' code, click 'Show Disassembler' then click 'Tools' tab
and select 'Auto Assemble':My Image!
Code Injection:
10) Now click 'Template' tab and select 'Cheat Table Framework Code' then select 'Code Injection'.
11) Underneath the 'originalcode' line, change movss to mov and change xmm0 to (float)98.
SS meaning scalar single-precision floating-point value and can cause an error message to pop up, if not deleted.
Also (float)98 hack code is to increase the maximum value and is useful for energy, health and fuel gauge or bar
Original Code:
Change "movss [rdi+000003F0],xmm0" to "mov [rdi+000003F0],(float)98"
12) Now click 'File' and select 'Assign to current cheat table' to return cheat table.
Right click on 'Auto Assemble' script and select 'Set Hotkeys' then click 'Create Keys' to activate & deactivate
function commend:My Image!
So by setting hotkeys to your script you can enable and disable the script without game pause. You can now play all
game modes and not worry about having low fuel or just for fun, fit thrusters, wings & air control but also craft all items
to the max on your vehicle and glide as far high in the air without running out of thrust fuel
NOTE: This form of method can be tricky and may take some practice. If you need help, watch:Stephen Chapmanvideo!
This method can be very useful if you need to activate two or more scripts at the same time.~ My Video!
Try to do this yourself; first you need to find the exact event points value then create an auto-assembly for code injection.
hack code "(int)500" into these two source codes. If you need assistance then watch this part ofGamers Universityvideo?
Original Code:
add [rcx+000003A8],esi
Original Code:
add [rax+2C], esi
move rcx,[rbx+000000C0]
2) Once the modification has been done, you will need to create a group header by right-clicking on one of the scripts and selecting
Create Header and give the header a group name.
3) Next task is to drag both of the hack scripts into that group header and right click select 'Group Config' and tick
both entry 'Activating & Deactivating its children', so that both scripts are enabled and disabled together:My Image!
4) To create hotkeys, right-click on 'Group Header' and select 'Set Hotkeys', then click 'Create Hotkeys':My Image!
5) The same as before but this time the enable command is known as freeze and disable is unfreeze then click 'Ok'.
NOTE: If you can create this event hack script without watching my video and do it successfully then congratulations!
This method is useful to test the area of unmodified code and once you have found the code you want to modify and have
Now auto assemble & code injection into the cheat table then save as 'ct' file and there is no need to reuse the find value.
Any more and all that needs to be done is to modify and test until you have a working hack code script.
1) From the main cheat table, double click on the script that you want to modify or test.
2) The auto assemble box will appear as before and underneath 'original code' then make changes to assembly code.
Once you have made the modifications, click 'Ok' and check the active box to test your hack code script.
You can keep modifying the test script and if the game crashes then restart the game and redo the whole process again.
NOTE: The common source code you are most likely to be used for hacking: mov, add, sub, inc, dec, int, jmp & float.
ADVANCED CHEAT ENGINE TRAINING:
Watch Cheat Engine Trainer Making Tutorial Video 4: Complete Walkthrough Guide& Read Forum Tutorial!
Watch how to hack almost any game using memory pointers method and create C++ trainer byGuided Hacking!
Watch complete playlist tutorial on everything you need to know about hacking technique byStephen Chapman!
The cheat engine comes with two methods: Generated Designer or Table Form for advanced users.~ My Video!
1) In the main cheat engine, click the 'File' tab and then select 'Generate Generic Trainer LUA Script Form Table.'
2) Click 'Add Hotkey' and choose hack script:My Image!
Press a key want to set as hotkey and toggle enable script:My Image!
4) This is optional: Enter description of hotkey action and if you want a beep choose a sound.
5) Click 'apply' and click 'create hotkey' to create disable script key then click 'Ok'. My Image!
6) Repeat the same steps from 2 for all the hotkey actions.
7) Fill in information: tick popup key press if you want a hotkey for about, give trainer a title and about info, set icon in the
top left corner and also set side image, uncheck stop users from resizing trainer and now once you are done then click
Generate TrainerMy Image!
8) Now give your trainer a save file name then click 'Save'.
9) Now choose your Windows bit version, either 32-bit or 64-bit, and click 'Generate,' then it will be successfully done.: My Image!
Creating an icon image is easy; just cut and paste the image into Microsoft Paint Editor and resize it to about 100kb.
convert image file to icon file from this free on-line website:icoconvert.comNow upload your image and tick the ICO
For 'Windows 7, Windows 8, Vista, and XP', then click on the convert 'ico' to download file.
Click the 'design user interface manually' to switch to table form editor then you will be able to modify or create your own trainer.
from beginning and when you have finished just click 'go back to generated designer':My Image!
If you need to reset the original cheat engine trainer settings to default, then go to the cheat table and press Ctrl + A to select all.
hack script and press Ctrl + C to copy then close cheat engine and restart it again and press Ctrl + V to paste hack
script into the cheat table then open process and select "HillClimbRacing2.exe" then save as "cetrainer" file. Now go
back to the trainer generated designer you have restored to the original cheat engine trainer setting:My Image!
Watch Cheat Engine Trainer Making Tutorial Video 5: Create Checkbox Trainer Using LUA Table Form Method!
NOTE: When saving your trainer, it is best to use the file extension "cetrainer" before compiling it into an exe program.
cause some antivirus programs to detect it as a "win32/hacktool" virus or malware even though it does no harm to anyone
Windows system and the file size is much larger to send by email. Now to protect your save 'cetrainer' from anyone.
Seeing your hack scripts, go to the cheat engine 'File' tab and select save as and save your file and pop-up message.
will appear to ask if you want to protect your File then click 'Yes' and you're done.
PS: All these cheat engine methods may seem a bit tricky at first but are not too hard to do as I have only been doing hack scripts.
for a month now, just give it a go and I also recommend downloading the first original hill climb racing to practise
Your new hacking skill and the more times you try, the easier it gets, so good luck, have fun, and enjoy!