 |
Cheat Engine The Official Site of Cheat Engine
|
| View previous topic :: View next topic |
| Author |
Message |
Pie How do I cheat?
Reputation: 0
Joined: 22 Dec 2009 Posts: 0
|
Posted: Tue Dec 22, 2009 4:59 am Post subject: [AoE2] - changing pointers, can't seem to find base pointer |
|
|
Hi all, this is my first post here (so be nice ).
I'm trying to do make a trainer for Age of Empires 2, especially for the resources and the population limit. (yeah I know there's cheats, it's just nice to have a trainer, ).
So I started scanning for the resources, which was pretty simple. In this game, there's 4 resources (Food, wood, stone, gold).
I found out that if the address that holds the Food value = x, then:
wood.addr = x + 4
stone.addr = x + 8
gold.addr = x + c
Which might come in handy later on.
Now the issue: the game changes the addresses every time a new game is started. Of course I could scan again, but I'd rather find the pointer(s).
So I did as suggested in the tutorials. I clicked on the Food value -> "Find out what writes to this address"
Result:
| Code: |
EAX=0B5B1D8C
EBX=00000001
ECX=0AADFB18
EDX=0174F160
ESI=00000003
EDI=00000032
EBP=00000001
ESP=0013D6C4
EIP=005A0A89
Probable base pointer =0174F160
005a0a81 - fild dword ptr [esp+10]
005a0a85 - fadd dword ptr [edx]
>005a0a87 - fstp dword ptr [edx]<
005a0a89 - add eax,06
005a0a8c - dec esi
|
So it's telling me the base pointer is "0174F160". That is really strange, because that is the same address that HOLDS the Food value. How can an adress be it's own pointer? lol
So I'm gonna act dumb and just follow the tutorials. So I search for the 4-byte hex value "0174F160".
This returns 1 (non-static address). Is this then the pointer to the Food-value??
Let's just treat it like it is. Add as pointer, offset = 0. And tadaa, it actually gives me the Food value. Nice.
Okay, one level up then: clicking on the food pointer -> find out what writes to this pointer.
I start a new game. Result:
[ecx+eax*8]
(which = ecx + 375*
probable pointer: 0B5AB5E4
Okay! Now let's search this value. But hey? Nothing found! WHat the....
How can I go on if I can't find this anywhere by hex-searching for a 4-byte value (in the whole memory-range)?? |
|
| Back to top |
|
 |
darkwalker31 Newbie cheater
Reputation: 0
Joined: 02 Oct 2007 Posts: 16
|
Posted: Mon Jan 04, 2010 4:19 am Post subject: |
|
|
I read some stuff on the internet about finding pointers, i might not know much but i think ecx is the pointer eax*8 is the offset. Try adding an address manualy with a offset of 375 and a pointer address of 0174F160.
Im also having the same problem with emulator pointers, when i scan it returns with the same non-static value as before.
It could also be a multi-leveled pointer if it is you would have to find the main base pointer.
Also try Unknown Initial Value search since the actualy value of the food might contain a different value then the one you found, (might be multiples) etc to make it harder for hackers to change it, and they use the value that you found to access the text.
Good Luck |
|
| Back to top |
|
 |
Xenico Advanced Cheater
Reputation: 0
Joined: 27 Dec 2009 Posts: 94
|
Posted: Mon Jan 04, 2010 5:08 am Post subject: |
|
|
I would prefer "what accesses the address"...
Did you add the address(es) manually? |
|
| 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
|
|