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 


How CE Scan Multi Byte Values

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
lylcheat
Cheater
Reputation: 0

Joined: 14 Feb 2009
Posts: 27
Location: Planet 3 Solar System Orion Arm Spiral Galaxy Milky Way

PostPosted: Mon Mar 02, 2009 3:02 am    Post subject: How CE Scan Multi Byte Values Reply with quote

How does CE locate the first byte of a multibyte value? For example, for a float value (I assume float means 4 byte, right?), the addresses could be, say:
(0x10FC000,0x10FC001,x010FC002,x010FC003)

or shifted by 1 byte:
(0x10FC001,x010FC002,x010FC003,0x10FC004)

or shifted by 2 bytes:
(x010FC002,x010FC003,0x10FC004,0x10FC005)
etc
Does it assume all these are possible bytes for a single float value?
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 471

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

PostPosted: Mon Mar 02, 2009 6:54 am    Post subject: Reply with quote

it just sets a float pointer to respectively 0x10fc0000, 0x10fc001 and 0x10fc002 and then evaluates the value.
_________________
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
lylcheat
Cheater
Reputation: 0

Joined: 14 Feb 2009
Posts: 27
Location: Planet 3 Solar System Orion Arm Spiral Galaxy Milky Way

PostPosted: Tue Mar 03, 2009 11:21 pm    Post subject: Reply with quote

But wouldn't that create a problem?

e.g. Say the value I want is a 4-bytes value with actual location starts at 0x10fc0003. I make the game to change the value and the byte value at 0x10fc0003 changed. But, this also causes an illusion that all the 4-byte values starting at 0x10fc000 to 0x10fc002 are changing at the same time (since the single byte at 0x10fc0003 changed).

That means there is no simple way to narrow down to 1 single 4-bytes value. And we need to manually eliminate these "false" report. Am I right?
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 471

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

PostPosted: Wed Mar 04, 2009 2:01 am    Post subject: Reply with quote

yes, thats why ce has implemented the "Next scan" option

also, if you do an exact value scan, it wouldn't even take the ones at 0x10fc000 to 0x10fc002 (value wouldn't match)

oh yes, there is a 98% chance the floating point value is NOT stored at 0x10fc003, but at 0x10fc000 or 0x10fc004 due to compiler optimizations that make it so values of specific sizes have to be memory aligned

tip: I get the feeling your memory scan routine is reading the memory byte by byte and putting 4 byte values together to be evaluated separately. (Might be wrong, but thats what I get from your byte specific questions) It is a lot faster and more efficient to read the memory in bigger blocks (e.g 4096 bytes at a time, or even more) and then go through that block with one pointer that just points to that block

_________________
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
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