 |
Cheat Engine The Official Site of Cheat Engine
|
View previous topic :: View next topic |
Author |
Message |
Astaroth4256 Advanced Cheater
Reputation: 0
Joined: 25 May 2014 Posts: 59
|
Posted: Sun May 25, 2014 7:29 pm Post subject: Finding offset to a string (or actually player's name) |
|
|
What I want to do, is to get the player's name after client reload/whatever, (optional) or select random objects/targets in the game and get their names/other stuff, I have found the adress in cheat engine by doing "search for text" and logging on a different character (making the logged in character's name change), I have the base adress of the char* (string) but I can't seem to find the offset that could be used to calculate string's adress after client reload.
I've been searching on the internets for a while and I couldn't find anything at all about calculating adresses for strings.
This is what I have found, (couldn't link to the image)
Code: |
004EA310 - 66 8B 14 47 - mov dx,[edi+eax*2]
004EA314 - 8B 8D 98000000 - mov ecx,[ebp+00000098]
004EA31A - 66 89 14 41 - mov [ecx+eax*2],dx <<
004EA31E - 03 C3 - add eax,ebx
004EA320 - 3B C6 - cmp eax,esi
EAX=00000000
EBX=00000001
ECX=10A7E0B0
EDX=86250042
ESI=00000008
EDI=10AA30E8
ESP=0012D6C8
EBP=10375558
EIP=004EA31E
|
tl;dr: how can I calculate adress for this text?
|
|
Back to top |
|
 |
Gniarf Grandmaster Cheater Supreme
Reputation: 43
Joined: 12 Mar 2012 Posts: 1285
|
Posted: Mon May 26, 2014 1:38 am Post subject: |
|
|
1-When you have something like "mov e**,[eXX+YYY*Number1+Number2]" you offset is YYY*Number1+Number2 (unless the is a "lea YYY,[***]" or "add YYY,***" above), in your case the last offset is eax*2+0=0 and the offset before that seems to be 98.
2-I know the tutorial says to use "find out what *** on this address", but this is impractical for real-life scenarios. Use right click on cheat table entry->pointerscanner instead, you are musch more likely to find what you want, event if it is very slow and hdd space consuming.
3-Given your code snippet, you can try "pointer paths must end with" 0, add, 98 in the pointer scanner menu.
_________________
DO NOT PM me if you want help on making/fixing/using a hack. |
|
Back to top |
|
 |
Astaroth4256 Advanced Cheater
Reputation: 0
Joined: 25 May 2014 Posts: 59
|
Posted: Mon May 26, 2014 11:35 am Post subject: |
|
|
Gniarf wrote: | 1-When you have something like "mov e**,[eXX+YYY*Number1+Number2]" you offset is YYY*Number1+Number2 (unless the is a "lea YYY,[***]" or "add YYY,***" above), in your case the last offset is eax*2+0=0 and the offset before that seems to be 98.
2-I know the tutorial says to use "find out what *** on this address", but this is impractical for real-life scenarios. Use right click on cheat table entry->pointerscanner instead, you are musch more likely to find what you want, event if it is very slow and hdd space consuming.
3-Given your code snippet, you can try "pointer paths must end with" 0, add, 98 in the pointer scanner menu. |
I never used the pointer scanner before, I tried it now but it returned me a lot adresses and I even wouldn't know how to use these multiple offsets, can you point me to a tutorial/guide about using the pointer scanner?
|
|
Back to top |
|
 |
Gniarf Grandmaster Cheater Supreme
Reputation: 43
Joined: 12 Mar 2012 Posts: 1285
|
Posted: Mon May 26, 2014 12:41 pm Post subject: |
|
|
The search button is a good start.
The first result for "pointerscanner tutorial" too: http://forum.cheatengine.org/viewtopic.php?t=559638
_________________
DO NOT PM me if you want help on making/fixing/using a hack. |
|
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
|
|