 |
Cheat Engine The Official Site of Cheat Engine
|
View previous topic :: View next topic |
Author |
Message |
Niko Cheater
Reputation: 0
Joined: 28 Mar 2014 Posts: 33
|
Posted: Wed May 21, 2014 9:20 am Post subject: Change what addresses a code accesses and when it does? |
|
|
Hello everyone.
Sorry If I'm a bit noobish, but Is there any way to alter which addresses a code accesses and when? I don't mean see which ones it does, but direct which ones it does. Or is that some information contained in the opcode? Or its something coded deep in the game memory? For example we have a code that accessses/writes to address 0000001 every second. It also writes to address 0000002, however it does it once you do something in the game, lets say everytime you zoom in your sniper or something similar it writes/accesses that 2nd address. Is there any possibility to make this code constantly access that address? Or is there a way to make a new code that constantly writes to that address specifically (0000002) so you don't have to zoom in or whatever else it is in order for the code to access it. Again, this might be kind of noobish, but I want to know. Thanks in advance.
|
|
Back to top |
|
 |
Geri Moderator
Reputation: 111
Joined: 05 Feb 2010 Posts: 5636
|
Posted: Wed May 21, 2014 10:02 am Post subject: |
|
|
If the code is static, then it's easy, you just put
mov [address],number
in a script that is executed frequently and it's done.
But if the address is not static, you should look for a part in the game code that you can use to calculate the address you need.
Eg if your code is
mov eax,[esi+04]
and this is accessing to the ammo but you want to change damage which is stored right after the ammo, then you can put
mov [esi+08],(int)999999
in the script that is reading the ammo but instead of changing the ammo, it will change the damage which is stored behind the ammo.
But for that, you need to know that damage address = ammo address + 4 bytes.
_________________
|
|
Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum
|
|