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 


Script wont disable when using aobscan
Goto page 1, 2  Next
 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
DistortioN69
Newbie cheater
Reputation: 0

Joined: 14 Mar 2010
Posts: 16

PostPosted: Wed Apr 21, 2010 3:54 pm    Post subject: Script wont disable when using aobscan Reply with quote

My script will not disable after i added the aobscan...
Im probably doing something wrong ?

Code:
aobscan(_aZoom,F3 0F 10 47 04 EB)
[ENABLE]
alloc(newmem,1024)
label(_returnhere)
label(_originalcode)

newmem:
mov [edi+04],427f0000 // change value to maximum zoom
_originalcode:
movss xmm0,[edi+04]
jmp _returnhere

_aZoom:
jmp newmem
nop
nop
_returnhere:

[DISABLE]
_aZoom:
movss xmm0,[edi+04]
dealloc(newmem)




I also wanted to ask (for another script) if aobscan can pick an offset out of 4 results ?
results are :
00424031
004244C1
00539BEB
and 00796D8E -> and thats the one i need
so any way i can have it scan for 0079xxxx ?
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 470

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

PostPosted: Wed Apr 21, 2010 4:07 pm    Post subject: Reply with quote

You're making the usual chicken egg mistake

when disable is execute is will scan for the AOB "F3 0F 10 47 04 EB"
The thing is that when enable got executed, you overwrote F3 0F 10 47 04 EB with "E9 xx xx xx xx 90 90"

so when disable is executed and it does the scan it's not going to find it

what you could do:
Code:

[ENABLE]
aobscan(_aZoom,F3 0F 10 47 04 EB)
label(_aZoomLabel)
registersymbol(_aZoomLabel)

alloc(newmem,1024)
label(_returnhere)
label(_originalcode)

newmem:
mov [edi+04],427f0000 // change value to maximum zoom
_originalcode:
movss xmm0,[edi+04]
jmp _returnhere

_aZoom:
_aZoomLabel:
jmp newmem
nop
nop
_returnhere:

[DISABLE]
_aZoomLabel:
movss xmm0,[edi+04]
dealloc(newmem)

unregistersymbol(_aZoomLabel)


as for narrowing down the results: Do a scan for a longer aobscan and make use of wildcards
e.g: F3 0F 10 47 04 EB * 90 aa cd 34 e9 * * * * df 9c 12

alternatively, try a different way of finding the address

_________________
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
View user's profile Send private message MSN Messenger
DistortioN69
Newbie cheater
Reputation: 0

Joined: 14 Mar 2010
Posts: 16

PostPosted: Wed Apr 21, 2010 4:11 pm    Post subject: Reply with quote

i tryed something like your solution but i get the same error : Error in line 2 (_aZoomLabel): This adress specifier is not valid :s
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 470

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

PostPosted: Wed Apr 21, 2010 4:15 pm    Post subject: Reply with quote

don't forget the first registersymbol(_aZoomLabel)

if your current state is enabled, you have to restart the game since it will not enable again (same reason, AOBscan will not find it)

Or manually add that symbol to the symbollist, but restarting is easier

_________________
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


Last edited by Dark Byte on Wed Apr 21, 2010 4:16 pm; edited 1 time in total
Back to top
View user's profile Send private message MSN Messenger
DistortioN69
Newbie cheater
Reputation: 0

Joined: 14 Mar 2010
Posts: 16

PostPosted: Wed Apr 21, 2010 4:16 pm    Post subject: Reply with quote

its in there, i just copy pasted your script, i had the same error also when trying to go the same way you did.. Sad
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 470

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

PostPosted: Wed Apr 21, 2010 4:21 pm    Post subject: Reply with quote

don't forget to restart the game or undo the changes to memory since as I said, your enable will not work if it's already enabled
_________________
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
View user's profile Send private message MSN Messenger
DistortioN69
Newbie cheater
Reputation: 0

Joined: 14 Mar 2010
Posts: 16

PostPosted: Wed Apr 21, 2010 4:27 pm    Post subject: Reply with quote

same error, i cant save the script cause of that
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 470

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

PostPosted: Wed Apr 21, 2010 4:33 pm    Post subject: Reply with quote

I'll just assume you forget to mention that the second time enable is executed it fails, but the first time it works

anyhow, your script is bad from the start

Code:

movss xmm0,[edi+04]

is 5 bytes

yet you have a jmp followed by 2 nops, so 7 bytes get replaced. And I have no idea why you'd do that

In your disable you only restore the 5 bytes, but not the 2 other bytes you replaced with a nop
and seeing your aobscan assumes the 6th byte is EB and not 90, it'll then fail

_________________
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
View user's profile Send private message MSN Messenger
DistortioN69
Newbie cheater
Reputation: 0

Joined: 14 Mar 2010
Posts: 16

PostPosted: Wed Apr 21, 2010 4:36 pm    Post subject: Reply with quote

yeah my bad, i must have copy pasted something wrong, i removed one nop.
but still i cant save the new script because of the error : Error in line 2 (_aZoomLabel): This adress specifier is not valid


Code:
[ENABLE]
aobscan(_aZoom,F3 0F 10 47 04 EB)
label(_aZoomLabel)
registersymbol(_aZoomLabel)
alloc(newmem,1024)
label(_returnhere)

newmem:
mov [edi+04],427f0000 // change value to maximum zoom
movss xmm0,[edi+04]
jmp _returnhere

_aZoom:
_aZoomLabel:
jmp newmem
nop
_returnhere:

[DISABLE]
_aZoomLabel:
movss xmm0,[edi+04]
dealloc(newmem)
unregistersymbol(_aZoomLabel)
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 470

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

PostPosted: Wed Apr 21, 2010 4:40 pm    Post subject: Reply with quote

Make sure you use ce5.6

and try different names

_________________
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
View user's profile Send private message MSN Messenger
DistortioN69
Newbie cheater
Reputation: 0

Joined: 14 Mar 2010
Posts: 16

PostPosted: Wed Apr 21, 2010 4:44 pm    Post subject: Reply with quote

yeah im using 5.6, i know its a new feature not availible in older versions.
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 470

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

PostPosted: Wed Apr 21, 2010 4:48 pm    Post subject: Reply with quote

have you also restarted the game AND ce ?

The following code works fine
Code:

[ENABLE]
aobscan(_aZoom,F3 0F 10 47 04 EB)
label(_aZoomLabel)
registersymbol(_aZoomLabel)
alloc(newmem,1024)
label(_returnhere)

newmem:
mov [edi+04],427f0000 // change value to maximum zoom
movss xmm0,[edi+04]
jmp _returnhere

_aZoom:
_aZoomLabel:
jmp newmem
nop
_returnhere:

[DISABLE]
_aZoomLabel:
movss xmm0,[edi+04]
dealloc(newmem)
unregistersymbol(_aZoomLabel)

and can be saved without a problem, even if that aob doesn't find anything.
I can even save it without even opening a process

_________________
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
View user's profile Send private message MSN Messenger
DistortioN69
Newbie cheater
Reputation: 0

Joined: 14 Mar 2010
Posts: 16

PostPosted: Wed Apr 21, 2010 4:51 pm    Post subject: Reply with quote

yeah i restarted everything, but the code you give now works indeed, weird cause its seems to do the same thing..
thanks for all the help


edit : the first code you gave me (the empty script with aobscan) worked
then you edited your post i belive, and added the whole script to it, and that didnt work


Last edited by DistortioN69 on Wed Apr 21, 2010 4:54 pm; edited 1 time in total
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 470

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

PostPosted: Wed Apr 21, 2010 4:54 pm    Post subject: Reply with quote

I see the problem, it's when editing an existing script that has already been saved once, the disable part then fails on the unknown symbol

In that case just go to memory views, press ctrl+U and add it manually

_________________
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
View user's profile Send private message MSN Messenger
DistortioN69
Newbie cheater
Reputation: 0

Joined: 14 Mar 2010
Posts: 16

PostPosted: Wed Apr 21, 2010 4:56 pm    Post subject: Reply with quote

correct !! xD
when adding it to a new script it worked Laughing
thanks for the help m8 Cool
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
Goto page 1, 2  Next
Page 1 of 2

 
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