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 


How do I change the same byte for all results of a scan?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
h3x1c
Master Cheater
Reputation: 17

Joined: 27 Apr 2013
Posts: 306

PostPosted: Sat Sep 03, 2016 5:01 pm    Post subject: How do I change the same byte for all results of a scan? Reply with quote

I'm fairly certain Lua is the way to go here, but I'm striking out so far with what I've tried to piecemeal together (my thought is to use a loop to change the same byte in all addresses found from a scan).

Basically, I'm doing a scan for four bytes (F2 0F 5C C1, which is subsd xmm0,xmm1) and getting a few hundred results. I'd like to change all of the results in one fell swoop. That said, there are some I'd like to avoid initially if possible (like results from other modules).

So far, I've been starting here, then Googling to find working examples in scripts of what seem to be relevant functions from that list.

A lot of the things I've tried have ended up with nothing happening when I click "Execute Script," so I can't tell if I'm even on the right track or not at times. Any guidance is greatly appreciated. I don't expect it to all be done for me; just looking to understand what the best approach here would be, and why. Even with examples of some of the functions being used in scripts, I don't understand what they're doing.

Thanks, everyone.

_________________
Back to top
View user's profile Send private message Visit poster's website
cooleko
Grandmaster Cheater
Reputation: 11

Joined: 04 May 2016
Posts: 717

PostPosted: Sat Sep 03, 2016 5:28 pm    Post subject: Reply with quote

http://forum.cheatengine.org/viewtopic.php?t=584688

You need to first search for the AOBs you dont want to change, and change them uniquely such that your subsequent running of the script above wont replace it, then you can change them back:

Find and replace the AOB you would like to keep the same (change it to be unique such as AB CD EF FE DC BA or w/e until your number of bytes is the appropriate length).

Find and replace all of the AOB you wanted to change.

Find and replace your unique aob with the originals that you didnt want to change.
Back to top
View user's profile Send private message
h3x1c
Master Cheater
Reputation: 17

Joined: 27 Apr 2013
Posts: 306

PostPosted: Sat Sep 03, 2016 5:29 pm    Post subject: Reply with quote

Damn it, I even tried searching for something like that before posting, lol. Thanks, Cooleko.
_________________
Back to top
View user's profile Send private message Visit poster's website
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