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 


auto assemblers aobscan

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

Joined: 09 Mar 2013
Posts: 22
Location: Behind you

PostPosted: Sat Mar 09, 2013 10:33 pm    Post subject: auto assemblers aobscan Reply with quote

ok so i've been having a somewhat stupid problem with the auto assembler's aobscan function. ive searched for hours but couldnt find the solution. everything is fine until wildcards come into play. it says wildcards are are functional, but thats only half true. here i will give an example of a working aobscan, and one that throws an error.

Code:

Aobscan(firstobject,66 ?? ?? 66 ?? ?? 24 05 46)
firstobject:
db 66 00 00 66 00 00 24 7f 46
---------------------------------------------------------------------
Aobscan(secondobject,66 ?? ?? 66 ?? ?? 24 05 46)
secondobject:
db 66 ?? ?? 66 ?? ?? 24 7f 46


the top one works while the bottom does not.

the problem with this is that some aob's have bytes that change every so often, but the replacement code doesnt focus on those, rather it focuses on an opcode or other section and leaves those bytes alone. which is why a replacement code would have wildcards.

my question is why are we able to do the second one manually, but not in the autoassembler's aobscan? is there a way to do this that isnt ridiculously roundabout? perhaps one of the devs can explain it or possibly add that functionality into the next CE.


ps: on a completely unrelated note, is there a place where i can find the autoassemblers functions (like aobscan) and how they work. like why i have to put db in front of the replacement aob. ive searched and couldnt find it, thanks.

_________________
-TNC
Back to top
View user's profile Send private message
DaSpamer
Grandmaster Cheater Supreme
Reputation: 52

Joined: 13 Sep 2011
Posts: 1578

PostPosted: Sun Mar 10, 2013 10:24 am    Post subject: Reply with quote

AAssembler, is first scanning for the bytes and only after that replacing the codes..
Like, it scans for 66 ?? ?? 66 ?? ?? 24 05 46 at first (twice), there 2 results, but AA picksup the first result only... so it changes the same result twice.

You can only replace this only if you got 2 different AA scripts.
Or make the AoB bit longer, until there will be 1 byte diff from 1 AoB from the 2nd.

_________________
HEY Hitler
Do you get lazy when making trainers?
Well no more!
My CETrainer will generate it for you in seconds, so you won't get lazy! Very Happy

http://forum.cheatengine.org/viewtopic.php?t=564919
Back to top
View user's profile Send private message
thenewcomer
Newbie cheater
Reputation: 0

Joined: 09 Mar 2013
Posts: 22
Location: Behind you

PostPosted: Sun Mar 10, 2013 11:03 am    Post subject: Reply with quote

Flashacking wrote:
AAssembler, is first scanning for the bytes and only after that replacing the codes..
Like, it scans for 66 ?? ?? 66 ?? ?? 24 05 46 at first (twice), there 2 results, but AA picksup the first result only... so it changes the same result twice.

You can only replace this only if you got 2 different AA scripts.
Or make the AoB bit longer, until there will be 1 byte diff from 1 AoB from the 2nd.


useful information. except that isnt what i asked at all.

as previousy stated, i want the replacement code to be able to use wildcards. you can do it manually but using AA throws an error when using "db (replacement)" and the replacement has wildcards.

_________________
-TNC
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 457

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

PostPosted: Sun Mar 10, 2013 11:15 am    Post subject: Reply with quote

do something like this:
Code:

Aobscan(secondobject,66 ?? ?? 66 ?? ?? 24 05 46)
secondobject+7:
db 7f

_________________
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
DaSpamer
Grandmaster Cheater Supreme
Reputation: 52

Joined: 13 Sep 2011
Posts: 1578

PostPosted: Sun Mar 10, 2013 1:30 pm    Post subject: Reply with quote

whoops my bad, confused. do what DB said Razz.
Didn't read the whole thing, though you were saying you trying replacing 2 codes at once, but only 1 gets repalced.

Another TIP:
Code:

66 ?? ?? 66 ?? ?? 24 05 46
00 01 02 03 04 05 06 07

first byte counts as index(0).

_________________
HEY Hitler
Do you get lazy when making trainers?
Well no more!
My CETrainer will generate it for you in seconds, so you won't get lazy! Very Happy

http://forum.cheatengine.org/viewtopic.php?t=564919
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 Lua Scripting 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