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 


Simplifying some aobscan code

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
simonzack
Newbie cheater
Reputation: 0

Joined: 19 Jun 2014
Posts: 15

PostPosted: Thu Oct 30, 2014 3:33 am    Post subject: Simplifying some aobscan code Reply with quote

Is there any way to simplify the below aobscan code by moving the byte constants into variables/labels?

[ENABLE]
aobscan(addr, 01 02 03 04 05)

addr:
db 01 02 03 04 06

[DISABLE]
aobscan(addr, 01 02 03 04 06)

addr:
db 01 02 03 04 05

aobscan is used here due to loading/unloading of the game code.
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 458

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

PostPosted: Thu Oct 30, 2014 6:39 am    Post subject: Reply with quote

If it is .net or mono and the bytes point to jitted code you can activate those features first and then get the address from there using only the name

If it's just data or flash then aob's are the best option. (If it's java then you may be able to change the bytecode. Unlike .net and mono it only jit's a function after executing it thousands of times)

_________________
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
simonzack
Newbie cheater
Reputation: 0

Joined: 19 Jun 2014
Posts: 15

PostPosted: Thu Oct 30, 2014 2:04 pm    Post subject: Reply with quote

It's AS2 which is not jitted, so aobscan works, but the constants are really long in this case, is there a way to store the list of bytes as a variable?
Back to top
View user's profile Send private message
panraven
Grandmaster Cheater
Reputation: 55

Joined: 01 Oct 2008
Posts: 942

PostPosted: Fri Nov 07, 2014 2:29 pm    Post subject: Reply with quote

Let me guess... you want something like this.

@commonpart = 96 02 05 07

aobscan(addr1, @commonpart , 01 02 03 04 05)
// equivalent to aobscan(addr1, 96 02 05 07 01 02 03 04 05)

aobscan(addr2, @commonpart , 11 22 33 44 55)
// equivalent to aobscan(addr2, 96 02 05 07 11 12 13 14 15)

if yes, no for aa script up to ver 6.4.
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