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 make 2 AOB scan sripts into one?

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

Joined: 22 Dec 2015
Posts: 214
Location: Jupiter

PostPosted: Mon Feb 15, 2016 6:09 am    Post subject: How to make 2 AOB scan sripts into one? Reply with quote

ok so I got this:



Code:
[ENABLE]

 aobscanmodule(SEASONS_OPERATOR,Asphalt8_w8.exe,3B 54 88 08 73 21)
 alloc(newmem,$1000)

 label(code)
 label(return)

 newmem:

 code:
   cmp edx,0
   jae Asphalt8_w8.IGPLib::InitParams::operator=+2EF5D1
   jmp return

 SEASONS_OPERATOR:
   jmp code
   nop
 return:
 registersymbol(SEASONS_OPERATOR)

 [DISABLE]

 SEASONS_OPERATOR:
   db 3B 54 88 08 73 21

 unregistersymbol(SEASONS_OPERATOR)
 dealloc(newmem)


and:



Code:
[ENABLE]

 aobscanmodule(SEASONS_OPERATOR_2,Asphalt8_w8.exe,3B 53 70 73 08 )
 alloc(newmem,$1000)

 label(code)
 label(return)

 newmem:

 code:
   cmp edx,0
   jae Asphalt8_w8.IGPLib::InitParams::operator=+2EF272
   jmp return

 SEASONS_OPERATOR_2:
   jmp code
 return:
 registersymbol(SEASONS_OPERATOR_2)

 [DISABLE]

 SEASONS_OPERATOR_2:
   db 3B 53 70 73 08

 unregistersymbol(SEASONS_OPERATOR_2)
 dealloc(newmem)


What I want to do is make it into 1 script instead of having 2. How do I do that?

would this work??? :



Code:
[ENABLE]

 aobscanmodule(SEASONS_OPERATOR,Asphalt8_w8.exe,3B 54 88 08 73 21)
 alloc(newmem,$1000)

 label(code)
 label(return)

 newmem:

 code:
   cmp edx,0
   jae Asphalt8_w8.IGPLib::InitParams::operator=+2EF5D1
   jmp return

 SEASONS_OPERATOR:
   jmp code
   nop
 return:
 registersymbol(SEASONS_OPERATOR)

 aobscanmodule(SEASONS_OPERATOR_2,Asphalt8_w8.exe,3B 53 70 73 08 )
 alloc(newmem,$1000)

 label(code)
 label(return)

 newmem:

 code:
   cmp edx,0
   jae Asphalt8_w8.IGPLib::InitParams::operator=+2EF272
   jmp return

 SEASONS_OPERATOR_2:
   jmp code
 return:
 registersymbol(SEASONS_OPERATOR_2)

 [DISABLE]

 SEASONS_OPERATOR:
   db 3B 54 88 08 73 21

 unregistersymbol(SEASONS_OPERATOR)

 SEASONS_OPERATOR_2:
   db 3B 53 70 73 08

 unregistersymbol(SEASONS_OPERATOR_2)
 dealloc(newmem)


If this wont work then please tell me what I should do so I can make just 1 script please I have never combined 2 scripts before
Back to top
View user's profile Send private message
Daijobu
Master Cheater
Reputation: 13

Joined: 05 Feb 2013
Posts: 301
Location: the Netherlands

PostPosted: Mon Feb 15, 2016 6:25 am    Post subject: Reply with quote

Your script will break when there's an update to the application. Look at your conditional jumps. Those offsets are not set in stone.

Additionally, the way this is displayed below is for clear view. When you write a script I recommend you go with first in last out or LIFO (last in, first out). E.g.:

Code:
[ENABLE]
alloc(something1,8)
alloc(something2,8)
alloc(something3,8)
[DISABLE]
dealloc(something3)
dealloc(something2)
dealloc(something1)


Code:
[ENABLE]
 aobscanmodule(SEASONS_OPERATOR,Asphalt8_w8.exe,3B 54 88 08 73 21)
 alloc(newmem1,$1000)
 registersymbol(SEASONS_OPERATOR)
 aobscanmodule(SEASONS_OPERATOR_2,Asphalt8_w8.exe,3B 53 70 73 08 )
 alloc(newmem2,$1000)
 registersymbol(SEASONS_OPERATOR_2)

 label(code1)
 label(return1)
 label(code2)
 label(return2)

 newmem1:
 code1:
   cmp edx,0
   jae Asphalt8_w8.IGPLib::InitParams::operator=+2EF272
   jmp return1

 newmem2:
 code2:
   cmp edx,0
   jae Asphalt8_w8.IGPLib::InitParams::operator=+2EF5D1
   jmp return2

 SEASONS_OPERATOR:
   jmp code1
   nop
 return1:

 SEASONS_OPERATOR_2:
   jmp code2
 return2:

 [DISABLE]
 SEASONS_OPERATOR:
   db 3B 54 88 08 73 21
 unregistersymbol(SEASONS_OPERATOR)
 dealloc(newmem1)

 SEASONS_OPERATOR_2:
   db 3B 53 70 73 08
 unregistersymbol(SEASONS_OPERATOR_2)
 dealloc(newmem2)

_________________
Scripts/tables from scratch. Relation to other scripts is coincidental. Use of posted code is credited properly.
Euro Truck Simulator 2 Backwards Compatible Cheat
American Truck Simulator Backwards Compatible Cheat
Back to top
View user's profile Send private message
rog9001
Expert Cheater
Reputation: 2

Joined: 22 Dec 2015
Posts: 214
Location: Jupiter

PostPosted: Mon Feb 15, 2016 6:29 am    Post subject: Reply with quote

Thanks a lot for the help Smile
Back to top
View user's profile Send private message
++METHOS
I post too much
Reputation: 92

Joined: 29 Oct 2010
Posts: 4197

PostPosted: Mon Feb 15, 2016 1:46 pm    Post subject: Reply with quote

For future reference, CE will automatically combine scripts for you. Once you have a script made, whether you've added it to your table already or not, just highlight the next injection point in memory viewer, then, return to your Auto Assemble window and click on template again to choose your next injection type. You can repeat this as much as you want.
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