View previous topic :: View next topic |
Author |
Message |
DistortioN69 Newbie cheater
Reputation: 0
Joined: 14 Mar 2010 Posts: 16
|
Posted: Wed Apr 21, 2010 3:54 pm Post subject: Script wont disable when using aobscan |
|
|
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 |
|
 |
Dark Byte Site Admin
Reputation: 470
Joined: 09 May 2003 Posts: 25785 Location: The netherlands
|
Posted: Wed Apr 21, 2010 4:07 pm Post subject: |
|
|
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 |
|
 |
DistortioN69 Newbie cheater
Reputation: 0
Joined: 14 Mar 2010 Posts: 16
|
Posted: Wed Apr 21, 2010 4:11 pm Post subject: |
|
|
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 |
|
 |
Dark Byte Site Admin
Reputation: 470
Joined: 09 May 2003 Posts: 25785 Location: The netherlands
|
Posted: Wed Apr 21, 2010 4:15 pm Post subject: |
|
|
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 |
|
 |
DistortioN69 Newbie cheater
Reputation: 0
Joined: 14 Mar 2010 Posts: 16
|
Posted: Wed Apr 21, 2010 4:16 pm Post subject: |
|
|
its in there, i just copy pasted your script, i had the same error also when trying to go the same way you did..
|
|
Back to top |
|
 |
Dark Byte Site Admin
Reputation: 470
Joined: 09 May 2003 Posts: 25785 Location: The netherlands
|
Posted: Wed Apr 21, 2010 4:21 pm Post subject: |
|
|
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 |
|
 |
DistortioN69 Newbie cheater
Reputation: 0
Joined: 14 Mar 2010 Posts: 16
|
Posted: Wed Apr 21, 2010 4:27 pm Post subject: |
|
|
same error, i cant save the script cause of that
|
|
Back to top |
|
 |
Dark Byte Site Admin
Reputation: 470
Joined: 09 May 2003 Posts: 25785 Location: The netherlands
|
Posted: Wed Apr 21, 2010 4:33 pm Post subject: |
|
|
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 |
|
 |
DistortioN69 Newbie cheater
Reputation: 0
Joined: 14 Mar 2010 Posts: 16
|
Posted: Wed Apr 21, 2010 4:36 pm Post subject: |
|
|
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 |
|
 |
Dark Byte Site Admin
Reputation: 470
Joined: 09 May 2003 Posts: 25785 Location: The netherlands
|
Posted: Wed Apr 21, 2010 4:40 pm Post subject: |
|
|
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 |
|
 |
DistortioN69 Newbie cheater
Reputation: 0
Joined: 14 Mar 2010 Posts: 16
|
Posted: Wed Apr 21, 2010 4:44 pm Post subject: |
|
|
yeah im using 5.6, i know its a new feature not availible in older versions.
|
|
Back to top |
|
 |
Dark Byte Site Admin
Reputation: 470
Joined: 09 May 2003 Posts: 25785 Location: The netherlands
|
Posted: Wed Apr 21, 2010 4:48 pm Post subject: |
|
|
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 |
|
 |
DistortioN69 Newbie cheater
Reputation: 0
Joined: 14 Mar 2010 Posts: 16
|
Posted: Wed Apr 21, 2010 4:51 pm Post subject: |
|
|
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 |
|
 |
Dark Byte Site Admin
Reputation: 470
Joined: 09 May 2003 Posts: 25785 Location: The netherlands
|
Posted: Wed Apr 21, 2010 4:54 pm Post subject: |
|
|
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 |
|
 |
DistortioN69 Newbie cheater
Reputation: 0
Joined: 14 Mar 2010 Posts: 16
|
Posted: Wed Apr 21, 2010 4:56 pm Post subject: |
|
|
correct !! xD
when adding it to a new script it worked
thanks for the help m8
|
|
Back to top |
|
 |
|