| View previous topic :: View next topic |
| Author |
Message |
daspamer Grandmaster Cheater Supreme
Reputation: 54
Joined: 13 Sep 2011 Posts: 1588
|
Posted: Sun Jan 27, 2013 9:09 am Post subject: Possible bug in AutoAssembler? |
|
|
So I want to make an auto assembler script to aobscan and replace the hex..
Heres what I did
| Code: | [ENABLE]
label(restore)
label(oil)
label(metal)
label(time)
registersymbol(restore)
registersymbol(oil)
registersymbol(metal)
registersymbol(time)
aobscan(hack,86320200) //removed the full aobscan... just incase..
hack: //oil
restore:
oil:
db 86320200
hack+1: //metal
metal:
db 86320200
hack+2: //time
time:
db C6120000
[DISABLE]
restore:
db 86320200
restore+1:
db 86320200
restore+2:
db C6120000
unregistersymbol(restore)
unregistersymbol(oil)
unregistersymbol(metal)
unregistersymbol(time) |
Now if I try to add this to my cheat table, it gets added...
But if I try to add something like this
| Code: | [ENABLE]
label(restore_CC4)
label(oil)
label(metal)
label(time)
registersymbol(restore_CC4)
registersymbol(oil)
registersymbol(metal)
registersymbol(time)
aobscan(hack,86320200????????????????????????????????????????86320200????????C6120000)
hack: //oil
restore_CC4:
oil:
db 86320200
hack+18: //metal
metal:
db 86320200
hack+20: //time
time:
db C6120000
[DISABLE]
restore_CC4:
db 86320200
restore_CC4+18:
db 86320200
restore_CC4+28:
db C6120000
unregistersymbol(restore_CC4)
unregistersymbol(oil)
unregistersymbol(metal)
unregistersymbol(time) |
Its returning me this error
| Code: | | Error in line 28 (restore_CC4+18): This address specifier is not vaild |
So I'm starting to wonder, why you can do restore+18, and not restore_CC4+18, or even if you write CheatDisable+18 it gives error...
I want to disable and use my own registeredsymbol and label to disable, because it'll start to confuse later if you got 100+ enteries (thats what I'm planning to do..)
_________________
I'm rusty and getting older, help me re-learn lua. |
|
| Back to top |
|
 |
justa_dude Grandmaster Cheater
Reputation: 23
Joined: 29 Jun 2010 Posts: 893
|
Posted: Fri Feb 08, 2013 12:25 pm Post subject: |
|
|
There's a long-standing chicken & egg quirk with the autoassembler and the symbol handler, in that the syntax checker can't validate the symbol manipulation until the script has registered the symbol. You should try manually registering the symbol you're having trouble with (ctrl+m, ctrl+u).
That said, your script is confusing to me. I wonder if maybe your offsets aren't correct, because you're writing memory in one label and overwriting it in the next.
Cheers,
adude
|
|
| Back to top |
|
 |
daspamer Grandmaster Cheater Supreme
Reputation: 54
Joined: 13 Sep 2011 Posts: 1588
|
Posted: Fri Feb 08, 2013 12:52 pm Post subject: |
|
|
Nah, its a glitch...and it shouldn't have any issues since the first script has worked.. but the second one didn't...
_________________
I'm rusty and getting older, help me re-learn lua. |
|
| Back to top |
|
 |
Dark Byte Site Admin
Reputation: 475
Joined: 09 May 2003 Posts: 25989 Location: The netherlands
|
Posted: Fri Feb 08, 2013 1:03 pm Post subject: |
|
|
restore+18 won't work either. It only worked for you the first time because you most likely already had a symbol named restored registered
_________________
Tools give you results. Knowledge gives you control.
Like my help? Join me on Patreon so i can keep helping |
|
| Back to top |
|
 |
daspamer Grandmaster Cheater Supreme
Reputation: 54
Joined: 13 Sep 2011 Posts: 1588
|
|
| Back to top |
|
 |
|