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 scan for multiple array of bytes in one script.

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

Joined: 22 May 2017
Posts: 33

PostPosted: Tue Jul 18, 2017 2:10 pm    Post subject: How to scan for multiple array of bytes in one script. Reply with quote

I am trying to make a instant kill cheat so when I enable the script the enemies will die in one hit. However there are different variants of enemies throughout the game, and each variant runs on a different array of bytes. So my question is how could I scan for variant 1's and variant 2's bytes, then edit each array of bytes differently using the same script?

Example:
Code:

aobscanmodule(varient1,popcapgame1.exe,89 AF C8 00 00 00) // variant 1
aobscanmodule(varient2,popcapgame1.exe,5C 4F 68 00 00 00) // variant 2

varient1:
mov [edi+000000C8],(int)0

varient2:
mov [edx+000000D0],(int)0
Back to top
View user's profile Send private message
++METHOS
I post too much
Reputation: 92

Joined: 29 Oct 2010
Posts: 4197

PostPosted: Tue Jul 18, 2017 3:10 pm    Post subject: Reply with quote

CE can automatically combine the scripts for you. Highlight your first injection location and let CE build a script out for you using the auto assembler. Keep the window open and locate your second injection point. With the second injection location highlighted, have CE create another script for you with the same auto assemble window. Repeat as needed.

Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 458

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

PostPosted: Tue Jul 18, 2017 3:25 pm    Post subject: Reply with quote

I think this is some kind of vtable lookup and he wants all instances of that object.

I suggest using lua's aobscan (or memscan and set the region) and get the list like that

_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

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