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 


3,5,6,7-Byte Value Search

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
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

PostPosted: Fri Jul 15, 2011 1:35 am    Post subject: 3,5,6,7-Byte Value Search Reply with quote

I mostly just want 3-byte search, but the other may be useful.
Back to top
View user's profile Send private message AIM Address MSN Messenger
efficacy28
Cheater
Reputation: 0

Joined: 07 Jun 2010
Posts: 35

PostPosted: Sat Jul 16, 2011 4:49 pm    Post subject: Reply with quote

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
View user's profile Send private message
xnamkcor
Newbie cheater
Reputation: 0

Joined: 02 Mar 2006
Posts: 14
Location: In A Gadda Da Vida

PostPosted: Sat Jul 16, 2011 6:01 pm    Post subject: Reply with quote

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
View user's profile Send private message AIM Address MSN Messenger
efficacy28
Cheater
Reputation: 0

Joined: 07 Jun 2010
Posts: 35

PostPosted: Sat Jul 16, 2011 6:08 pm    Post subject: Reply with quote

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
View user's profile Send private message
xnamkcor
Newbie cheater
Reputation: 0

Joined: 02 Mar 2006
Posts: 14
Location: In A Gadda Da Vida

PostPosted: Sat Jul 16, 2011 6:37 pm    Post subject: Reply with quote

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?



imsomesortofwizard.PNG
 Description:
 Filesize:  30.36 KB
 Viewed:  16381 Time(s)

imsomesortofwizard.PNG


Back to top
View user's profile Send private message AIM Address MSN Messenger
Dark Byte
Site Admin
Reputation: 470

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

PostPosted: Sat Jul 16, 2011 6:37 pm    Post subject: Reply with quote

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
View user's profile Send private message MSN Messenger
xnamkcor
Newbie cheater
Reputation: 0

Joined: 02 Mar 2006
Posts: 14
Location: In A Gadda Da Vida

PostPosted: Sat Jul 16, 2011 6:39 pm    Post subject: Reply with quote

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
View user's profile Send private message AIM Address MSN Messenger
HotBloodedHacker
Cheater
Reputation: 2

Joined: 07 Aug 2015
Posts: 49
Location: Alabama , USA

PostPosted: Sat Nov 19, 2016 6:40 pm    Post subject: Reply with quote

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
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 470

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

PostPosted: Sat Nov 19, 2016 6:49 pm    Post subject: Reply with quote

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