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 


Curious on how to modify multiple Addresses with One script

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking
View previous topic :: View next topic  
Author Message
D1g1Byt3
Cheater
Reputation: 0

Joined: 02 Dec 2015
Posts: 40

PostPosted: Wed Dec 02, 2015 10:54 pm    Post subject: Curious on how to modify multiple Addresses with One script Reply with quote

Is there a way that I can Modify Multiple Addresses/Places with one Script?

I'm Trying to take the instructions here, and Modify all the different Addresses with one Script...Hopefully:

Quote:

For GOTY Version Steps:
Click "Memory View".
Right-click at the address and choose "Go to Address".
Type "00541CDA". Then click OK.
Double-click the selected Address.
Change the selected Address' Assembler Code to "sub ebp,ebp".
Click OK.
Right-click at the address and choose "Go to Address".
Type "00542223". Then click OK.
Double-click the selected Address.
Change the selected Address' Assembler Code to "jmp 0054222d".
Click OK.
Right-click at the address and choose "Go to Address".
Type "00542214". Then click OK.
Double-click the selected Address.
Change the selected Address' Assembler Code to "nop".
Click OK.
Right-click at the address and choose "Go to Address".
Type "0047169B". Then click OK.
Double-click the selected Address.
Change the selected Address' Assembler Code to "add [eax+40],edx".
Click OK.
DONE.


In case anyone is Wondering, I'm just making a Trainer for Plants vs. Zombies GOTYE.. I know there is tons out there. But I want to Make one from Scratch. Just sort of a Challenge for myself.

I just want to know if its Possible to Consolidate all these Instructions into One Script.. Even if its in Lua... Just need to know. Thanks in Advance
Back to top
View user's profile Send private message
Gniarf
Grandmaster Cheater Supreme
Reputation: 43

Joined: 12 Mar 2012
Posts: 1285

PostPosted: Wed Dec 02, 2015 11:51 pm    Post subject: Reply with quote

Code:
[enable]
00541CDA:
sub ebp,ebp

00542223:
jmp 0054222d

00542214:
nop

0047169B:
add [eax+40],edx

[disable]
00541CDA:
//write here what was at 00541CDA before you overwrote it with "sub ebp,ebp"

00542223:
//write here what was at 00542223

00542214:
//write here what was at 00542214

0047169B:
//write here what was at 0047169B
When you do the replacements by hand you'll notice that sometimes CE adds some nop(s) after what you typed. You MUST add those nops to the script above. No need to type their addresses, just put them under the sub/jmp/nop/add.
_________________
DO NOT PM me if you want help on making/fixing/using a hack.
Back to top
View user's profile Send private message
D1g1Byt3
Cheater
Reputation: 0

Joined: 02 Dec 2015
Posts: 40

PostPosted: Thu Dec 03, 2015 12:47 am    Post subject: Thanks Reply with quote

Ok Thanks, Really appreciate your help Smile

Edit: Ok correct me if I'm wrong, but I'm assuming I don't have to Allocate any more memory, or add any labels/symbols? Maybe I'm looking at it wrong
Back to top
View user's profile Send private message
Rydian
Grandmaster Cheater Supreme
Reputation: 31

Joined: 17 Sep 2012
Posts: 1358

PostPosted: Thu Dec 03, 2015 3:27 am    Post subject: Reply with quote

If all you're doing is overwriting existing static code with code the same size (using nops for padding if it's smaller), no allocation or labels are needed.
_________________
Back to top
View user's profile Send private message
D1g1Byt3
Cheater
Reputation: 0

Joined: 02 Dec 2015
Posts: 40

PostPosted: Thu Dec 03, 2015 4:07 am    Post subject: Reply with quote

Ok, great. Thanks for the help
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking 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