| View previous topic :: View next topic |
| Author |
Message |
Geri Moderator
Reputation: 112
Joined: 05 Feb 2010 Posts: 5627
|
Posted: Fri Aug 13, 2010 3:16 pm Post subject: Small inconvenience with AOBscan |
|
|
I have used AOBscan for few games already and I have a problem, most likely CE don't like my scripts.
So when I make a NEW script with AOBscan, I have no issues at all with it. However when I open an existing script and I update it with AOBscan, I click on OK and it is almost always giving me an error message regarding the DISABLE section, that the label I am using is not specified.
Eg.:
Error in line 4 (zhealtlabel:) :This address specifier is not valid.
For example in this script:
| Code: | [ENABLE]
//code from here to '[DISABLE]' will be used to enable the cheat
alloc(newmem,2048) //2kb should be enough
label(returnhere)
label(originalcode)
label(exit)
label(zhealthlabel)
registersymbol(zhealthlabel)
aobscan(aobzhealth,89 af c8 00 00 00)
aobzhealth:
zhealthlabel:
jmp newmem
nop
returnhere:
newmem: //this is allocated memory, you have read,write,execute access
mov [edi+000000c8],0
originalcode:
//mov [edi+000000c8],ebp
exit:
jmp returnhere
[DISABLE]
//code from here till the end of the code will be used to disable the cheat
dealloc(newmem)
zhealthlabel:
mov [edi+000000c8],ebp
//Alt: db 89 AF C8 00 00 00
unregistersymbol(zhealthlabel) |
If I would copy this code and add it as a new script, there would be no problem at all. If I would click on it and press OK without any changes, I would get the error message.
So something is not right I just don't know what. Funny thing is, it is not happening all the time, but I have a 95% chance to get this error. If I start changing the label's name, sooner or later it will accept it. I have no clue what could be the problem.
Should I use some specific names for labels or do things in other order?
_________________
|
|
| Back to top |
|
 |
Dark Byte Site Admin
Reputation: 474
Joined: 09 May 2003 Posts: 25929 Location: The netherlands
|
Posted: Fri Aug 13, 2010 3:28 pm Post subject: |
|
|
you are using ce 5.6.1 ?
and the script, are you sure you're in the script editing mode and not the "new script" mode ? (button says execute instead of ok )
_________________
Tools give you results. Knowledge gives you control.
Like my help? Join me on Patreon so i can keep helping |
|
| Back to top |
|
 |
Geri Moderator
Reputation: 112
Joined: 05 Feb 2010 Posts: 5627
|
Posted: Fri Aug 13, 2010 3:38 pm Post subject: |
|
|
| Dark Byte wrote: | you are using ce 5.6.1 ?
and the script, are you sure you're in the script editing mode and not the "new script" mode ? (button says execute instead of ok ) |
Yes, I am using CE 5.6.1
I am in the script editing mode. I never use the "Execute" order, I am adding the script to the Cheat Table and enable it from there so I can edit it later. But now that You have mentioned it, I have tried it out.
1. I copy the existing working script to clipboard. Press CTRL+ALT+A, copy the script in the window. I can click on Execute and I can also add it to the cheat table without any error message. So either way, I can make it work as a new script.
2. I open the existing working script in the cheat table, change nothing at all, click on OK and I get the error message.
So if I add it as a new script, no problem. Modifying a script does not work.
It happens with all my scripts that I have posted here. I had this issue with Starcraft 2 and Plants vs. Zombies. They are working correctly, thats not a problem. The strange thing is, I have to add every script as a new script and I am not able to edit existing ones.
_________________
|
|
| Back to top |
|
 |
Dark Byte Site Admin
Reputation: 474
Joined: 09 May 2003 Posts: 25929 Location: The netherlands
|
Posted: Fri Aug 13, 2010 3:45 pm Post subject: |
|
|
weird, syntaxcheckonly is enabled for both cases.
anyhow, can you post the exact error message you get ? (Just press ctrl+c in the error window and then paste it here)
Specific typos and ways I formulate error messages help me find out where exactly it goes wrong...
also, this problem is kinda obsolete since the next ce version will have a completly different underlying code to deal with this (so a load of new bugs)
_________________
Tools give you results. Knowledge gives you control.
Like my help? Join me on Patreon so i can keep helping |
|
| Back to top |
|
 |
Geri Moderator
Reputation: 112
Joined: 05 Feb 2010 Posts: 5627
|
Posted: Fri Aug 13, 2010 3:54 pm Post subject: |
|
|
Error in line 4 (zhealthlabel:) :This address specifier is not valid.
This is the exact message. It refers to the 4th line of the disable section
(with the comment, it takes 4 lines).
| Code: | [DISABLE]
//code from here till the end of the code will be used to disable the cheat
dealloc(newmem)
zhealthlabel: |
I can just copy the whole script, add it in a new window, change it and add it as a new script and it will work. But first when I have started to use AOBscan, I have tried to change my existing scripts which were using static addresses. It did not work so I was thinking I have messed up and I had no clue what am I doing wrong. So even if it can't be fixed, it is good to know for others who may have this issue.
EDIT:
I know it is not that important but I have checked it in CE 6 alpha too, and I have the same issue.
_________________
|
|
| Back to top |
|
 |
Dark Byte Site Admin
Reputation: 474
Joined: 09 May 2003 Posts: 25929 Location: The netherlands
|
Posted: Fri Aug 13, 2010 4:04 pm Post subject: |
|
|
thanks, because you said it also happens in ce 6 I found it's in the button handler code (fixed in svn if you feel like compiling it)
_________________
Tools give you results. Knowledge gives you control.
Like my help? Join me on Patreon so i can keep helping |
|
| Back to top |
|
 |
Geri Moderator
Reputation: 112
Joined: 05 Feb 2010 Posts: 5627
|
Posted: Fri Aug 13, 2010 4:07 pm Post subject: |
|
|
Good to know I was not that retard when got these errors.
Thanks for the fix.
_________________
|
|
| Back to top |
|
 |
rfreeman Newbie cheater
Reputation: 0
Joined: 26 Jan 2010 Posts: 24
|
Posted: Sat Mar 26, 2011 3:06 am Post subject: |
|
|
| I'm glad I found this post, as I'm having the same problem and I'm new to AOB and scripts.
|
|
| Back to top |
|
 |
Geri Moderator
Reputation: 112
Joined: 05 Feb 2010 Posts: 5627
|
Posted: Sat Mar 26, 2011 6:07 pm Post subject: |
|
|
CE 6.0 does not have this issue already.
_________________
|
|
| Back to top |
|
 |
Rhagic Advanced Cheater
Reputation: 4
Joined: 23 Aug 2011 Posts: 94
|
Posted: Mon Feb 13, 2012 5:51 pm Post subject: |
|
|
| rfreeman wrote: | | I'm glad I found this post, as I'm having the same problem and I'm new to AOB and scripts. |
I had the same error message during the same scenario in CE6.1 when I first tried using aobscan.
It turned out that (obviously when you think about it), you need to registersymbol for the label you're wanting to write back to in the [DISABLE].
|
|
| Back to top |
|
 |
|