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 


1 byte address type = max 255 value

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

Joined: 27 Jul 2008
Posts: 53

PostPosted: Fri May 28, 2010 8:18 pm    Post subject: 1 byte address type = max 255 value Reply with quote

But i need more than 255 for 1 byte addresses. Changing address type to 2 or 4 byte and then increasing value doesn't work, effect is still the same as for value 255.
Is there something i can do?
Thanks.
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 470

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

PostPosted: Fri May 28, 2010 9:00 pm    Post subject: Reply with quote

Just decompile the game and rewrite it completly so that it stores the values in a type bigger than 1 byte

In short, no, there's nothing you can do, the game just doesn't interpret the values higher than 1 byte

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

Joined: 01 Jun 2010
Posts: 2

PostPosted: Tue Jun 01, 2010 6:08 pm    Post subject: Impossible Reply with quote

A 1 byte variable value means that it uses 8 bits. (4 byte would use 32 bits)

Each bit can either be a 1 or a 0. (Each bit can store 2 possible data configurations)

So, 8 bits would be 2*2*2*2*2*2*2*2 or 256 possible configurations.

Therefore why would you ever need to search for a value higher than 256 in 1 byte if there could never possibly be a value higher than 1 byte within the game?[/b]
Back to top
View user's profile Send private message
raymond1100
How do I cheat?
Reputation: 0

Joined: 01 Oct 2012
Posts: 1

PostPosted: Sat Jul 11, 2015 8:44 am    Post subject: Reply with quote

Sorry to bump an old thread. But I have the solution, and thought I should share it since this thread shows up on the top of search results. \

To store a value greater than 255 is not possible but we can do something else, we can use a counter or one more byte. For example, think of it as having buckets of water, 1 address holds the number of full buckets and the other address holds the remaining amount(left over).

So for example 403 would be stored in a game as
(address 1)01AE280F = 147
(address 2)01AE280E = 1

This may or may not be the case in all games, but the counter is usually 1 address above or below the value.

Sorry for not posting this earlier as I did not come across this problem myself till now...
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 470

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

PostPosted: Sat Jul 11, 2015 8:56 am    Post subject: Reply with quote

no, that would judt be a 2 byte value (big endian in your case, e. g emulator)
if a game is designed as a 1byte value, it can't be easily changed

_________________
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