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 


Structure Dissect Question

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

Joined: 01 Aug 2014
Posts: 3

PostPosted: Sat May 02, 2015 7:15 pm    Post subject: Structure Dissect Question Reply with quote

Hello, I would like to know -- how CE knows the data types of variables in Structure Dissect?
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 471

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

PostPosted: Sat May 02, 2015 7:21 pm    Post subject: Reply with quote

If .net or mono, it checks the metadata describing the object you're kooking at

Otherwise it just guesses blindly based on some rules.
E.g if it is unaligned, pick a type that will align the next entry
If the 4 byte value represents a human readable address (below 1000 or ending with a 0) it's a 4 byte
If the 4/8 bytes represent an currently allocated memory address, it's a pointer
And for float and double it also checks if the value is human readable If it requires an Exponent , then no

_________________
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
Fandom
How do I cheat?
Reputation: 0

Joined: 01 Aug 2014
Posts: 3

PostPosted: Sat May 02, 2015 7:40 pm    Post subject: Reply with quote

Few more questions Dark Bye, and thanks for your time.

i) What if two short ints are beside each other, how would you know if its an int or two shorts?

ii) For a 4 byte, how can you tell if its a pointer or variable?
eg. the 4 byte holds 0x40AA, it could be an address or data. Do you check and see if the address(0x40AA) is in the data section (from PE header)?
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 471

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

PostPosted: Sat May 02, 2015 7:44 pm    Post subject: Reply with quote

1: try a debugger and see what writes to it. CE will almost certainly not guess it
2: check if the address is currently allocated Also, windows will never allocate memory in the range of 00000000 to 000010000

_________________
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
Fandom
How do I cheat?
Reputation: 0

Joined: 01 Aug 2014
Posts: 3

PostPosted: Sat May 02, 2015 7:51 pm    Post subject: Reply with quote

Thanks a lot mate:)

Good day my friend and thanks for your time.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine 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