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 to find values stored backwards?

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

Joined: 22 Aug 2012
Posts: 97

PostPosted: Sat Jun 07, 2014 1:42 pm    Post subject: How to find values stored backwards? Reply with quote

I have come across values that are stored in memory backwards where each group will represent 256^n in hex. Like so:

Code:

 16777216
 | 
 |  65536
 |  |
 |  |  256
 |  |  |
 |  |  |  1
 |  |  |  |
00 00 00 00


For example:


Code:

00 00 00 01 = 1
00 00 00 FF = 255
00 00 01 00 = 256
00 01 00 00 = 65,536
00 00 10 40 = 2600
etc.


What are these called and how do you find them? Even if you know they are stored this way and know the exact value you're looking for it can be hard to locate, but without it seems almost impossible. Thanks.
Back to top
View user's profile Send private message
justa_dude
Grandmaster Cheater
Reputation: 23

Joined: 29 Jun 2010
Posts: 893

PostPosted: Sat Jun 07, 2014 1:49 pm    Post subject: Reply with quote

Endianness

Values are always stored that way on x86. The search function picks them up just fine.

_________________
A nagy kapu mellett, mindig van egy kis kapu.
----------------------
Come on...
Back to top
View user's profile Send private message
Mark Danielle
Advanced Cheater
Reputation: 0

Joined: 22 Aug 2012
Posts: 97

PostPosted: Sat Jun 07, 2014 1:58 pm    Post subject: Reply with quote

justa_dude, thanks. Do you have to have to choose any special options to make it work then? Since I can't find it just by searching normally.

For example, I'm trying to find the value 32767 which I already know (because I've found it before) will be in memory as 7F FF. And if I search for either 32767, 7FFF 2-bytes or 00007FFF 4-bytes I don't find it. However if I search for just byte based on what I know the last value will be (FF) I can find it, but this only works if I know in advance what the value will be which is usually not the case.
Back to top
View user's profile Send private message
justa_dude
Grandmaster Cheater
Reputation: 23

Joined: 29 Jun 2010
Posts: 893

PostPosted: Sat Jun 07, 2014 2:07 pm    Post subject: Reply with quote

bmn wrote:
justa_dude, thanks. Do you have to have to choose any special options to make it work then?

You're welcome, and no. As I said, all values are encoded this way on X86. So, if there were special settings you'd have to use them every time.

bmn wrote:
Since I can't find it just by searching normally. For example, I'm trying to find the value 32767 which I already know (because I've found it before) will be in memory as 7F FF. And if I search for either 32767, 7FFF 2 bytes or 00007FFF 4 bytes I don't find it. However if I search for just byte based on what I know the last value will be (FF) I can find it, but this only works if I know in advance what the value will be which is usually not the case.

Are you sure it isn't stored in memory as FF 7F or FF 7F 00 00? Either way, searching for 32767 should catch it. You could try disabling fast scan or alignment options (I can't remember what the default is), but it's not something I remember having to do for simple values.

_________________
A nagy kapu mellett, mindig van egy kis kapu.
----------------------
Come on...
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 470

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

PostPosted: Sat Jun 07, 2014 2:30 pm    Post subject: Reply with quote

check out http://forum.cheatengine.org/viewtopic.php?p=5305367#5305367

it shows how to add big endian support to CE (scanning and editing)

_________________
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
Mark Danielle
Advanced Cheater
Reputation: 0

Joined: 22 Aug 2012
Posts: 97

PostPosted: Sat Jun 07, 2014 2:43 pm    Post subject: Reply with quote

Nope, definitely looks like 7F FF to me, unless I'm missing something. Even with fast scan disabled, searching for either 32767, 7FFF 2-bytes or 00007FFF 4-bytes just doesn't find it. Incidentally, this is in SheepShaver, a PowerPC emulator.

[/img]
Back to top
View user's profile Send private message
daspamer
Grandmaster Cheater Supreme
Reputation: 54

Joined: 13 Sep 2011
Posts: 1588

PostPosted: Sat Jun 07, 2014 4:53 pm    Post subject: Reply with quote

Search for FF7F0000 instead...
_________________
I'm rusty and getting older, help me re-learn lua.
Back to top
View user's profile Send private message Visit poster's website
justa_dude
Grandmaster Cheater
Reputation: 23

Joined: 29 Jun 2010
Posts: 893

PostPosted: Sat Jun 07, 2014 5:00 pm    Post subject: Reply with quote

After seeing that you're emulating powerpc I realize that I also misread your original question and assumed you were struggling w/ little endian. Sorry - you actually did a great job framing your question. My mistake. DB's earlier suggestion is worth looking into.
_________________
A nagy kapu mellett, mindig van egy kis kapu.
----------------------
Come on...
Back to top
View user's profile Send private message
Mark Danielle
Advanced Cheater
Reputation: 0

Joined: 22 Aug 2012
Posts: 97

PostPosted: Sat Jun 07, 2014 11:51 pm    Post subject: Reply with quote

Dark Byte, it looks like that did the trick. Thank you very much! Very Happy
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