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 


Possible bug in AutoAssembler?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
daspamer
Grandmaster Cheater Supreme
Reputation: 54

Joined: 13 Sep 2011
Posts: 1588

PostPosted: Sun Jan 27, 2013 9:09 am    Post subject: Possible bug in AutoAssembler? Reply with quote

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
View user's profile Send private message Visit poster's website
justa_dude
Grandmaster Cheater
Reputation: 23

Joined: 29 Jun 2010
Posts: 893

PostPosted: Fri Feb 08, 2013 12:25 pm    Post subject: Reply with quote

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
View user's profile Send private message
daspamer
Grandmaster Cheater Supreme
Reputation: 54

Joined: 13 Sep 2011
Posts: 1588

PostPosted: Fri Feb 08, 2013 12:52 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Dark Byte
Site Admin
Reputation: 475

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

PostPosted: Fri Feb 08, 2013 1:03 pm    Post subject: Reply with quote

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
View user's profile Send private message MSN Messenger
daspamer
Grandmaster Cheater Supreme
Reputation: 54

Joined: 13 Sep 2011
Posts: 1588

PostPosted: Fri Feb 08, 2013 1:53 pm    Post subject: Reply with quote

oh damn.. maybe I did had it..
Anyway, is it possible to add that option? Razz that'd be awesome.. because it has many changed values between each..

_________________
I'm rusty and getting older, help me re-learn lua.
Back to top
View user's profile Send private message Visit poster's website
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