 |
Cheat Engine The Official Site of Cheat Engine
|
| View previous topic :: View next topic |
| Author |
Message |
kitesan Expert Cheater
Reputation: 0
Joined: 01 May 2014 Posts: 124
|
Posted: Sat Dec 19, 2015 8:06 pm Post subject: player base conceptual question |
|
|
hi , giving a look at most script i usually notice things like
mov esi, [game.exe+12345]
mov [pPlayer] , esi
people call it player base but what is it actually?
and how to find them?
you have to backtrace?
how?
|
|
| Back to top |
|
 |
ParkourPenguin I post too much
Reputation: 152
Joined: 06 Jul 2014 Posts: 4709
|
Posted: Sat Dec 19, 2015 8:24 pm Post subject: |
|
|
A script like that can copy any kind of address you want, but in your case, it's the address where the structure of the player begins. A structure is basically a section of memory that contains values somewhat related to each other. So, for the player, it could contain your health, mana, energy, coordinates, or whatever. It can also have pointers to other things the player has, like their inventory.
To find it, you usually find some value related to the player (e.g. health), and find out what instructions access it. It's usually of the form register+offset. The value of the register is the base of the structure, and the offset is how far into the structure the value is. For example, let's say mov eax,[ebx+2C] accesses health. ebx is the address where the structure begins, and the address of your health is 2C bytes away from that start.
Structures are useful because they can allow us to find values without having to search for them. It's not uncommon to find your health near your energy, or your player's coordinates not too far away from your health. It's especially useful for finding values that don't change that much or at all, like your max health.
As for backtracing... well, some structures are part of other structures. As I mentioned earlier, structures can have pointers to other structures inside them. If you look at the code leading up to the instruction that accesses some value, you can discern how it's calculating that address - where it's getting that from. So, for example, if you find the address of some item in the player's inventory, you can look at the ASM leading up to some instruction that accesses it, and you might find the player's structure somewhere in there.
For more information about structures, there's a good tutorial on them here.
_________________
I don't know where I'm going, but I'll figure it out when I get there. |
|
| Back to top |
|
 |
kitesan Expert Cheater
Reputation: 0
Joined: 01 May 2014 Posts: 124
|
Posted: Sat Dec 19, 2015 8:32 pm Post subject: |
|
|
| thanks infinitely
|
|
| 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
|
|