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 


Binary Help

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
gareth8433
How do I cheat?
Reputation: 0

Joined: 28 Mar 2021
Posts: 3
Location: UK

PostPosted: Wed Mar 31, 2021 1:37 pm    Post subject: Binary Help Reply with quote

Sorry this is probably a really basic question

What do the numbers stand for

binary:0->8
binary:0->5

The values match in cheat engine as shown on the game screen but when I use ReadProcessMemory in an external application the binary:0->5 number is shown incorrectly



Capture2.PNG
 Description:
 Filesize:  987 Bytes
 Viewed:  1344 Time(s)

Capture2.PNG



Capture1.PNG
 Description:
 Filesize:  3.24 KB
 Viewed:  1344 Time(s)

Capture1.PNG


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

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

PostPosted: Wed Mar 31, 2021 2:25 pm    Post subject: Reply with quote

binary 0->5 is the same as value & 0x3f
_________________
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
gareth8433
How do I cheat?
Reputation: 0

Joined: 28 Mar 2021
Posts: 3
Location: UK

PostPosted: Wed Mar 31, 2021 2:44 pm    Post subject: Reply with quote

I'm really sorry I still don't understand.

when I put 0x3f into the converter it gives me 63 in decimal.

When reading the value I'm not sure how 20 has ended up being displayed as 6029332

In previous attempts, these values have sometimes been shown as 0->4 or 0->7
Back to top
View user's profile Send private message
ParkourPenguin
I post too much
Reputation: 152

Joined: 06 Jul 2014
Posts: 4703

PostPosted: Wed Mar 31, 2021 3:02 pm    Post subject: Reply with quote

binary 0->5 refers to bits 0..5 (inclusive) of the byte at the address of the memory record.

0x3f is just a mask representing those bits.
https://en.wikipedia.org/wiki/Mask_%28computing%29

Using your image, this Lua code would work:
Code:
assert(readBytes('FD2A3641', 1) & 0x3f == 20)

_________________
I don't know where I'm going, but I'll figure it out when I get there.
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