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 


[Help] Offset - Pointer

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking
View previous topic :: View next topic  
Author Message
mezilla
How do I cheat?
Reputation: 0

Joined: 22 Aug 2014
Posts: 4

PostPosted: Fri Aug 22, 2014 4:29 am    Post subject: [Help] Offset - Pointer Reply with quote

I have been trying to learn AutoIt and how to work with memory lately but I am having issues in setting a pointer to an offset address.

Is it possible for an offset to have a decimal? If so how can I manually point to it?

I have tried different ways of calculating the offset but I am not sure if I am correct or if I am doing something wrong..

Based on the picture i uploaded these are my calculations (I have tried following some examples I found). If I am wrong, please tell me a step by step example!

esi + eax * 8 + D8 = edx
esi = (edx-eax (17e7) -d8 (170f) )/8 (2e1.e)

2e1.e

Thank you! Smile



Screenshot 2014-08-21 15.29.23.png
 Description:
 Filesize:  11.47 KB
 Viewed:  6927 Time(s)

Screenshot 2014-08-21 15.29.23.png


Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 471

Joined: 09 May 2003
Posts: 25819
Location: The netherlands

PostPosted: Fri Aug 22, 2014 4:53 am    Post subject: Reply with quote

This instruction will write the value stored in edx to the address that esi+eax*8+d8 points to

The offset in this case is 2*8+d8=10+d8=e8

_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping


Last edited by Dark Byte on Fri Aug 22, 2014 7:15 am; edited 1 time in total
Back to top
View user's profile Send private message MSN Messenger
mezilla
How do I cheat?
Reputation: 0

Joined: 22 Aug 2014
Posts: 4

PostPosted: Fri Aug 22, 2014 5:11 am    Post subject: Reply with quote

wow lol that confused me a bit! ok lets go slowly...

004E7E44 will move [esi+eax*8+DC] into ecx.

ESI being the pointer, and [EAX * 8 + DC] the off set.

The offset would be - EC

Thank you! Smile
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 471

Joined: 09 May 2003
Posts: 25819
Location: The netherlands

PostPosted: Fri Aug 22, 2014 7:18 am    Post subject: Reply with quote

Sorry, I went to the wrong line while posting, I've adjusted my previous post

Quote:

004E7E44 will move [esi+eax*8+DC] into ecx.

The other way arround, it will move the value of ECX into [esi+eax*8+dc] (this notation means the bytes that the result o

Quote:

ESI being the pointer, and [EAX * 8 + DC] the off set.

ESI isn't the pointer, but the value of the pointer. (there is an important difference there that often gets mixed up)

and just to keep it from confusing, it's "EAX * 8 + DC" as the offset, not "[EAX*8+DC]" , as notations between brackets mean the bytes of the address the calculation ends up with

Quote:

The offset would be - EC

yes

_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
mezilla
How do I cheat?
Reputation: 0

Joined: 22 Aug 2014
Posts: 4

PostPosted: Wed Sep 03, 2014 4:46 am    Post subject: is there a way? Reply with quote

I have been trying to get the value of HP and Mana of a game called Tales of Pirates. However when I calculate the off set, it either returns a random value or a "???".

Having these results, is there a way to prevent memory hacking when developing such applications? Like encapsulation? or maybe keeping the variables private?
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