View previous topic :: View next topic |
Author |
Message |
tedomedo Advanced Cheater
Reputation: 0
Joined: 27 Jul 2008 Posts: 53
|
Posted: Fri May 28, 2010 8:18 pm Post subject: 1 byte address type = max 255 value |
|
|
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 |
|
 |
Dark Byte Site Admin
Reputation: 470
Joined: 09 May 2003 Posts: 25806 Location: The netherlands
|
Posted: Fri May 28, 2010 9:00 pm Post subject: |
|
|
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 |
|
 |
CE Hacker How do I cheat?
Reputation: 0
Joined: 01 Jun 2010 Posts: 2
|
Posted: Tue Jun 01, 2010 6:08 pm Post subject: Impossible |
|
|
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 |
|
 |
raymond1100 How do I cheat?
Reputation: 0
Joined: 01 Oct 2012 Posts: 1
|
Posted: Sat Jul 11, 2015 8:44 am Post subject: |
|
|
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 |
|
 |
Dark Byte Site Admin
Reputation: 470
Joined: 09 May 2003 Posts: 25806 Location: The netherlands
|
Posted: Sat Jul 11, 2015 8:56 am Post subject: |
|
|
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 |
|
 |
|