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 to nop code in multiple places in one script

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

Joined: 22 Dec 2021
Posts: 2

PostPosted: Wed Dec 22, 2021 4:22 pm    Post subject: How to nop code in multiple places in one script Reply with quote

hey guys, new user here.
im wondering how to nop multiple op code instructions in one script, currently i use an aob injection script and then just remove the line of code and save the script to the table but i have to do an aob injection script for every line of opcode i want to replace with nop (unless they rly close together). maybe theres a way to put multiple aob injection scripts into one script, i kinda want my table to clean and not like 20 aob scripts to make one change in the game as that doesnt look nice.
can anyone help, thanks/.

edit: im making a script to stop the game from writing to a value i want the value to not be written to as its apart of the game physics and using the cheat engine freeze isnt fast enough even with 1ms so im nopping everything that writes to that address. i nopped everything manually and it works good.
Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8587
Location: 127.0.0.1

PostPosted: Wed Dec 22, 2021 5:18 pm    Post subject: Reply with quote

You can use multiple address labels/symbols to do multiple edits in a single script. For example:

Code:

[ENABLE]

00400000:
  db 90 90

00500000:
  db 90 90 90 90

[DISABLE]
00400000:
  db AA BB

00500000:
  db AA BB CC DD


The same will work with symbols resolved from things like aobscan and similar functions instead of using the address as the label directly.

_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
xufauman
How do I cheat?
Reputation: 0

Joined: 22 Dec 2021
Posts: 2

PostPosted: Wed Dec 22, 2021 8:13 pm    Post subject: Reply with quote

[quote="atom0s"]You can use multiple address labels/symbols to do multiple edits in a single script. For example:

[code]
[ENABLE]

00400000:
db 90 90

00500000:
db 90 90 90 90

[DISABLE]
00400000:
db AA BB

00500000:
db AA BB CC DD
[/code]

The same will work with symbols resolved from things like aobscan and similar functions instead of using the address as the label directly.[/quote]

thanks works!
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