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 


Small inconvenience with AOBscan

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
Geri
Moderator
Reputation: 112

Joined: 05 Feb 2010
Posts: 5627

PostPosted: Fri Aug 13, 2010 3:16 pm    Post subject: Small inconvenience with AOBscan Reply with quote

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?

_________________
My trainers can be found here: http://www.szemelyesintegracio.hu/cheats

If you are interested in any of my crappy articles/tutorials about CE and game hacking, you can find them here:
http://www.szemelyesintegracio.hu/cheats/41-game-hacking-articles

Don't request cheats or updates.
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 474

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

PostPosted: Fri Aug 13, 2010 3:28 pm    Post subject: Reply with quote

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
View user's profile Send private message MSN Messenger
Geri
Moderator
Reputation: 112

Joined: 05 Feb 2010
Posts: 5627

PostPosted: Fri Aug 13, 2010 3:38 pm    Post subject: Reply with quote

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.

_________________
My trainers can be found here: http://www.szemelyesintegracio.hu/cheats

If you are interested in any of my crappy articles/tutorials about CE and game hacking, you can find them here:
http://www.szemelyesintegracio.hu/cheats/41-game-hacking-articles

Don't request cheats or updates.
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 474

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

PostPosted: Fri Aug 13, 2010 3:45 pm    Post subject: Reply with quote

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
View user's profile Send private message MSN Messenger
Geri
Moderator
Reputation: 112

Joined: 05 Feb 2010
Posts: 5627

PostPosted: Fri Aug 13, 2010 3:54 pm    Post subject: Reply with quote

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.

_________________
My trainers can be found here: http://www.szemelyesintegracio.hu/cheats

If you are interested in any of my crappy articles/tutorials about CE and game hacking, you can find them here:
http://www.szemelyesintegracio.hu/cheats/41-game-hacking-articles

Don't request cheats or updates.
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 474

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

PostPosted: Fri Aug 13, 2010 4:04 pm    Post subject: Reply with quote

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
View user's profile Send private message MSN Messenger
Geri
Moderator
Reputation: 112

Joined: 05 Feb 2010
Posts: 5627

PostPosted: Fri Aug 13, 2010 4:07 pm    Post subject: Reply with quote

Good to know I was not that retard when got these errors. Smile

Thanks for the fix.

_________________
My trainers can be found here: http://www.szemelyesintegracio.hu/cheats

If you are interested in any of my crappy articles/tutorials about CE and game hacking, you can find them here:
http://www.szemelyesintegracio.hu/cheats/41-game-hacking-articles

Don't request cheats or updates.
Back to top
View user's profile Send private message
rfreeman
Newbie cheater
Reputation: 0

Joined: 26 Jan 2010
Posts: 24

PostPosted: Sat Mar 26, 2011 3:06 am    Post subject: Reply with quote

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
View user's profile Send private message
Geri
Moderator
Reputation: 112

Joined: 05 Feb 2010
Posts: 5627

PostPosted: Sat Mar 26, 2011 6:07 pm    Post subject: Reply with quote

CE 6.0 does not have this issue already.
_________________
My trainers can be found here: http://www.szemelyesintegracio.hu/cheats

If you are interested in any of my crappy articles/tutorials about CE and game hacking, you can find them here:
http://www.szemelyesintegracio.hu/cheats/41-game-hacking-articles

Don't request cheats or updates.
Back to top
View user's profile Send private message
Rhagic
Advanced Cheater
Reputation: 4

Joined: 23 Aug 2011
Posts: 94

PostPosted: Mon Feb 13, 2012 5:51 pm    Post subject: Reply with quote

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
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