View previous topic :: View next topic |
Author |
Message |
xnamkcor Newbie cheater
Reputation: 0
Joined: 02 Mar 2006 Posts: 14 Location: In A Gadda Da Vida
|
Posted: Fri Jul 15, 2011 1:35 am Post subject: 3,5,6,7-Byte Value Search |
|
|
I mostly just want 3-byte search, but the other may be useful.
|
|
Back to top |
|
 |
efficacy28 Cheater
Reputation: 0
Joined: 07 Jun 2010 Posts: 35
|
Posted: Sat Jul 16, 2011 4:49 pm Post subject: |
|
|
That is impossible... 3-byte is possible if you have a trinary system... but none of those exist or they are very rare.
Binary is on (1) and off (0)
Trinary is high (2) low (1) and off (0)
-or-
High (1) low (0) off (-1)
The reason for byte, 2-byte, 4-byte, 8-byte is because of binary; on and off. 2 options. Byte's maximum value is (16^(2*1) - 1) = 255. 2-byte's max value is (16^(2*2) - 1) = 65535. 4-byte's max value is (16^(2*4) - 1) = 4294967295.
There is a reason for the 2's.
_________________
I like pie so much, that no group could ever sum up to the value of how much of I like pie. |
|
Back to top |
|
 |
xnamkcor Newbie cheater
Reputation: 0
Joined: 02 Mar 2006 Posts: 14 Location: In A Gadda Da Vida
|
Posted: Sat Jul 16, 2011 6:01 pm Post subject: |
|
|
efficacy28 wrote: | That is impossible... 3-byte is possible if you have a trinary system... but none of those exist or they are very rare.
Binary is on (1) and off (0)
Trinary is high (2) low (1) and off (0)
-or-
High (1) low (0) off (-1)
The reason for byte, 2-byte, 4-byte, 8-byte is because of binary; on and off. 2 options. Byte's maximum value is (16^(2*1) - 1) = 255. 2-byte's max value is (16^(2*2) - 1) = 65535. 4-byte's max value is (16^(2*4) - 1) = 4294967295.
There is a reason for the 2's. |
We can do a single byte search for a value and we can do a 2-byte search for a value, but searching for a value from within 3 bytes is completely out of the question?
|
|
Back to top |
|
 |
efficacy28 Cheater
Reputation: 0
Joined: 07 Jun 2010 Posts: 35
|
Posted: Sat Jul 16, 2011 6:08 pm Post subject: |
|
|
It's impossible for any computer. Even if it is created for your computer, you would get NO results for any search. Memory isn't stored that way.
_________________
I like pie so much, that no group could ever sum up to the value of how much of I like pie. |
|
Back to top |
|
 |
xnamkcor Newbie cheater
Reputation: 0
Joined: 02 Mar 2006 Posts: 14 Location: In A Gadda Da Vida
|
Posted: Sat Jul 16, 2011 6:37 pm Post subject: |
|
|
efficacy28 wrote: | It's impossible for any computer. Even if it is created for your computer, you would get NO results for any search. Memory isn't stored that way. |
My computer didn't blow up or anything. And yet, there it is, a successful search for 3 bytes. Who wants to bet those 3 byte values can be converted into a decimal value?
Description: |
|
Filesize: |
30.36 KB |
Viewed: |
16391 Time(s) |

|
|
|
Back to top |
|
 |
Dark Byte Site Admin
Reputation: 470
Joined: 09 May 2003 Posts: 25785 Location: The netherlands
|
Posted: Sat Jul 16, 2011 6:37 pm Post subject: |
|
|
there is a situation where it happens: RGB colors
the color value is in the range of 0 to 16777215, and the 4th byte is usually completely unrelated to the color (alpha chanel, or other usage, like hidden messages)
Normally though, a compiler will append a few 0 bits to it so the cpu can work quicker with it
But, if you really wish to use something like this just create a custom type. Set alignment to 1 and bytesize to 3.
Easiest is doing a bytesize of 4 and just strip the last 8 bits of the value (AND it with ffffff )
For an example of a custom type check http://forum.cheatengine.org/viewtopic.php?t=529904
of course, the main question is: Do you understand what you are doing and why you are doing what you wish to do ? Why do you think that your app/game you're trying to modify uses this really bad and inefficient method of data management
_________________
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 |
|
 |
xnamkcor Newbie cheater
Reputation: 0
Joined: 02 Mar 2006 Posts: 14 Location: In A Gadda Da Vida
|
Posted: Sat Jul 16, 2011 6:39 pm Post subject: |
|
|
Dark Byte wrote: | there is a situation where it happens: RGB colors
the color value is in the range of 0 to 16777215, and the 4th byte is usually completely unrelated to the color (alpha chanel, or other usage, like hidden messages)
Normally though, a compiler will append a few 0 bits to it so the cpu can work quicker with it
But, if you really wish to use something like this just create a custom type. Set alignment to 1 and bytesize to 3.
Easiest is doing a bytesize of 4 and just strip the last 8 bits of the value (AND it with ffffff )
For an example of a custom type check |
Thanks. Keep up the good work. I love the program.
PS: I had to remove your URL from the quote because I can't post URLs yet.
PPS: Whoever thought of that color flashing and fading thing in the Memory Viewer, great job. And What's with the new check boxes in the list? I can barely see the "x" and when it's highlighted, it's even worse.
|
|
Back to top |
|
 |
HotBloodedHacker Cheater
Reputation: 2
Joined: 07 Aug 2015 Posts: 49 Location: Alabama , USA
|
Posted: Sat Nov 19, 2016 6:40 pm Post subject: |
|
|
Dark Byte wrote: |
If you really wish to use something like this just create a custom type. Set alignment to 1 and bytesize to 3.
Easiest is doing a bytesize of 4 and just strip the last 8 bits of the value (AND it with ffffff ) |
I have some questions.
Where is the alignment in the script?
And if I wanted to do the second option how do I do a bytesize 4 then strip the last 8 bytes?
Artmoney has a 3 bytes search but I noted something,
I take the 4 bytes hex value FFFFFFFF and when I switch it to 3 bytes
it shows 00FFFFFF.
Will cheat engine not just display it as FFFFFF without the two zeros at the beginning? Wouldn't 3 bytes really be 6 bytes? FF (2) FF (4) FF (6)
2 bytes = FF
4 bytes = FF FF
? bytes = FF FF FF
8 bytes = FF FF FF FF
? bytes = FF FF FF FF FF
2 bytes = 255
4 bytes = 65535
? bytes = 16777215
8 bytes = 4294967295
? bytes = 1099511627775
And last, what all do I have to change in the script to do and display odd bytes search like FFFFF=1048575 or is it even possible?
Sorry DB, it helps me hacking in this odd way so please don't ask how because it is hard to explain.
Oh can you please add all the byte types in the pointer options?
If I do a pointer scan for 2 bytes 65535 it only displays 4 bytes, float and double and I need to make sure the value is right without having to put it in the cheat table and change it to 2 bytes.
THANKS
_________________
You know nothing about the HOTBLOODEDHACKER.
Reputation Doesn't define me, just say thank you. |
|
Back to top |
|
 |
Dark Byte Site Admin
Reputation: 470
Joined: 09 May 2003 Posts: 25785 Location: The netherlands
|
Posted: Sat Nov 19, 2016 6:49 pm Post subject: |
|
|
alignment is the bytesize
but you can override it by adding
Code: |
alloc(preferedalignment,4)
preferedalignment:
dd youralignment
|
If you want no alignment, just turn of fast scan
Quote: |
And if I wanted to do the second option how do I do a bytesize 4 then strip the last 8 bytes?
|
if you mean 8 bits, just AND it with ffffff
if you mean bytes, just return 0 as that's what's left after stripping 8 bytes from a 4 byte value
to display odd bytes as fffff just AND the value with with fffff
And a workaround for doing a pointerscan for 2 bytes:
Just do a manual 2 byte scan for the value you're looking for, and then for every single result do a pointerscan.
That's what the pointerscan would have done anyhow.
_________________
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 |
|
 |
|