Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Change what addresses a code accesses and when it does?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking
View previous topic :: View next topic  
Author Message
Niko
Cheater
Reputation: 0

Joined: 28 Mar 2014
Posts: 33

PostPosted: Wed May 21, 2014 9:20 am    Post subject: Change what addresses a code accesses and when it does? Reply with quote

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
View user's profile Send private message
Geri
Moderator
Reputation: 111

Joined: 05 Feb 2010
Posts: 5636

PostPosted: Wed May 21, 2014 10:02 am    Post subject: Reply with quote

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.

_________________
My trainers can be found here: http://www.szemelyesintegracio.hu/cheats

If you are interested in any of my crappy articles/tutorials about CE and game hacking, you can find them here:
http://www.szemelyesintegracio.hu/cheats/41-game-hacking-articles

Don't request cheats or updates.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites