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 


Change the different part of the search code. (How?)

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
ByTransient
Expert Cheater
Reputation: 5

Joined: 05 Sep 2020
Posts: 240

PostPosted: Tue Jan 05, 2021 7:51 am    Post subject: Change the different part of the search code. (How?) Reply with quote

Sample; I have a long Aob code.
Code:
?? ?? ?? 00 00 00 00 00 ?? ?? ?? 00 00 00 00 00 ?? ?? ?? ?? ?? 0? 00 00 ?? ?? ?? 00 00 00 00 00 00 00 00 ?? ?? ?? ?? ?? 0? 00 00 ?? ?? ?? ?? ?? 00 00 00 ?? ?? ?? ?? ?? 00 00 00 00 00 00 00 40 9A 99 99 99 99 99 ?? ?? 33 33 33 33 33 33 F3 3F 00

When I scan this code, it takes a lot of time and the PC contracts.
Who does this "??" They are wildcards that I assign to variables.
My bad luck is; My non-variable constants are at the end of the code.
Code:
00 00 00 00 00 00 00 40 9A 99 99 99 99 99 ?? ?? 33 33 33 33 33 33 F3 3F 00

If the constants were at the beginning of the code, I wouldn't be asking this question, it would be easier.
Question; How can I search the variables at the end of the code and change the code backwards from the 168th row?
(The code has been shortened to give an example. Total length; 411 characters.)
Sample;
Code:
Search="00 00 00 00 00 00 00 40 9A 99 99 99 99 99 ?? ?? 33 33 33 33 33 33 F3 3F 00"
replace="88 13 00 00 00 00 00 00 88 13 00 00 00 00 00 00 ?? ?? ?? ?? ?? 0? 00 00 88 13 00 00 00 00 00 00 00 00 00 ?? ?? ?? ?? ?? 0? 00 00 ?? ?? ?? ?? ?? 00 00 00 ?? ?? ?? ?? ?? 00 00 00 00 00 00 00 40 9A 99 99 99 99 99 ?? ?? 33 33 33 33 33 33 F3 3F 00"

I saw an example like this in Asm; "C + 4".
Can we apply this as "C-168" in Asm!
(I apologize if I wrote something ridiculous. Smile I still need an example.)
Thanks in advance for the answers.
Back to top
View user's profile Send private message
ByTransient
Expert Cheater
Reputation: 5

Joined: 05 Sep 2020
Posts: 240

PostPosted: Wed Jan 06, 2021 5:05 am    Post subject: Reply with quote

There is an example in the picture that I want to tell.
How can I add this to my calling code?

https://i.hizliresim.com/IHkELj.jpg




Ek1.JPG
 Description:
 Filesize:  47.04 KB
 Viewed:  909 Time(s)

Ek1.JPG


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