View previous topic :: View next topic |
Author |
Message |
thenewcomer Newbie cheater Reputation: 0
Joined: 09 Mar 2013 Posts: 22 Location: Behind you
|
Posted: Sat Mar 09, 2013 10:33 pm Post subject: auto assemblers aobscan |
|
|
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 |
|
|
DaSpamer Grandmaster Cheater Supreme Reputation: 52
Joined: 13 Sep 2011 Posts: 1578
|
Posted: Sun Mar 10, 2013 10:24 am Post subject: |
|
|
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.
_________________
|
|
Back to top |
|
|
thenewcomer Newbie cheater Reputation: 0
Joined: 09 Mar 2013 Posts: 22 Location: Behind you
|
Posted: Sun Mar 10, 2013 11:03 am Post subject: |
|
|
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 |
|
|
Dark Byte Site Admin Reputation: 457
Joined: 09 May 2003 Posts: 25262 Location: The netherlands
|
Posted: Sun Mar 10, 2013 11:15 am Post subject: |
|
|
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 |
|
|
DaSpamer Grandmaster Cheater Supreme Reputation: 52
Joined: 13 Sep 2011 Posts: 1578
|
Posted: Sun Mar 10, 2013 1:30 pm Post subject: |
|
|
whoops my bad, confused. do what DB said .
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).
_________________
|
|
Back to top |
|
|
|