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 


Error when searching with XOR Lua formula in the search box.

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
skynet888
!BEWARE! Deletes post on answer
Reputation: 1

Joined: 12 Apr 2021
Posts: 82

PostPosted: Wed Jun 01, 2022 6:59 pm    Post subject: Error when searching with XOR Lua formula in the search box. Reply with quote

Error when searching with XOR Lua formula in the search box. Or, CE does not tell the user how to use the XOR lua formula


11111111111.png
 Description:
 Filesize:  5.25 KB
 Viewed:  1743 Time(s)

11111111111.png


Back to top
View user's profile Send private message
ParkourPenguin
I post too much
Reputation: 155

Joined: 06 Jul 2014
Posts: 4773

PostPosted: Wed Jun 01, 2022 9:01 pm    Post subject: Reply with quote

I don't know where you got "XOR" from. The Lua xor operator is ~

Search for 0xB0 ~ 0x22

_________________
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
skynet888
!BEWARE! Deletes post on answer
Reputation: 1

Joined: 12 Apr 2021
Posts: 82

PostPosted: Thu Jun 02, 2022 8:42 pm    Post subject: Reply with quote

ParkourPenguin wrote:
I don't know where you got "XOR" from. The Lua xor operator is ~

Search for 0xB0 ~ 0x22

The problem is: we do not care who is on the left side of "xor". We just want to keep all the results that satisfy "xor B0==22".
Back to top
View user's profile Send private message
ParkourPenguin
I post too much
Reputation: 155

Joined: 06 Jul 2014
Posts: 4773

PostPosted: Thu Jun 02, 2022 10:33 pm    Post subject: Reply with quote

That isn't a problem. What you wrote is the same thing as what I wrote.
Code:
let `~` = XOR
Search for all x such that `x ~ 0xB0 == 0x22`

x ~ 0xB0 == 0x22
x ~ 0xB0 ~ 0xB0 == 0x22 ~ 0xB0
x ~ (0xB0 ~ 0xB0) == 0x22 ~ 0xB0
x ~ 0 = 0x22 ~ 0xB0
x = 0x22 ~ 0xB0
Search for all x such that `x = 0x22 ~ 0xB0`
All of the above operations come from the fact that the integers equipped with xor is an abelian group. also `0x22 ~ 0xB0 == 0xB0 ~ 0x22`

If you want something more complicated (e.g. if the xor key changes), use a custom type.

_________________
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
Dark Byte
Site Admin
Reputation: 474

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

PostPosted: Fri Jun 03, 2022 2:47 am    Post subject: Reply with quote

(value ~ 0xb0) == 0x22
_________________
Tools give you results. Knowledge gives you control.

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