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 


Searching on a mask/flags

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

Joined: 01 Oct 2024
Posts: 1

PostPosted: Tue Oct 01, 2024 3:50 am    Post subject: Searching on a mask/flags Reply with quote

It this possible in Cheat Engine to search for a variable that has particular flags being set ?

Eg: let's say I have the following :

Code:
#define INVISIBLE 0x0400
#define FLYING 0x0001
player.flags |= INVISIBLE | FLYING;


I would like to search on any variable that has this pattern :

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

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

PostPosted: Tue Oct 01, 2024 7:05 am    Post subject: Reply with quote

I think you missed one x, as 1xxxxxxxx1 has a mask of 0x201 instead of 401

anyhow, set type to binary and scan for 1********1
(ignore the value being shown, add to the addresslist to see the real value)


you may have more luck with an unknown initial value of 2 byte changed/unchanged scans and then when limited enough do an exact value scan with lua formula set and scan for:

(value & 0x201)==0x201

_________________
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