 |
Cheat Engine The Official Site of Cheat Engine
|
| View previous topic :: View next topic |
| Author |
Message |
Mr.realdoge Advanced Cheater
Reputation: 1
Joined: 01 Aug 2016 Posts: 56 Location: Lordran
|
Posted: Sat Jan 21, 2017 12:47 pm Post subject: Auto Assembly bug or is thier an error in the script? |
|
|
So i have an incomplete srcipt here
| Code: | [ENABLE]
//code from here to '[DISABLE]' will be used to enable the cheat
alloc(newmem,2048)
label(returnhere)
label(originalcode)
label(exit)
globalalloc(y,4)
label(tels)
label(tell)
label(code)
label(xpos)
label(ypos)
label(zpos)
label(s_enable)
label(l_enable)
registersymbol(s_enable)
registersymbol(l_enable)
code:
cmp[s_enable],1
je tels
cmp[l_enable],1
je tell
newmem:
//this is allocated memory, you have read,write,execute access
//place your code here
originalcode:
movq [esi+18],xmm0
exit:
jmp returnhere
"DARKSOULS.exe"+ABDBE0:
jmp newmem
returnhere:
[DISABLE]
//code from here till the end of the code will be used to disable the cheat
dealloc(newmem)
dealloc(y)
unregistersymbol(s_enable)
unregistersymbol(l_enable)
"DARKSOULS.exe"+ABDBE0:
movq [esi+18],xmm0
//Alt: db 66 0F D6 46 18 |
As soon as i press ok it gives me an error "Error in line 8 (label(tels)):label tels is not defined in the script".What am I doing Wrong?
|
|
| Back to top |
|
 |
++METHOS I post too much
Reputation: 92
Joined: 29 Oct 2010 Posts: 4197
|
Posted: Sat Jan 21, 2017 1:17 pm Post subject: |
|
|
| Script is incomplete.
|
|
| Back to top |
|
 |
STN I post too much
Reputation: 43
Joined: 09 Nov 2005 Posts: 2676
|
Posted: Sat Jan 21, 2017 1:21 pm Post subject: |
|
|
| Quote: | | What am I doing Wrong? |
A lot of things.
[ENABLE]
//code from here to '[DISABLE]' will be used to enable the cheat
alloc(newmem,2048)
label(returnhere)
label(originalcode)
label(exit)
globalalloc(y,4)
label(tels)
label(tell)
label(code)
label(xpos)
label(ypos)
label(zpos)
label(s_enable)
label(l_enable)
registersymbol(s_enable)
registersymbol(l_enable)
newmem:
code:
cmp[s_enable],1
je tels // no idea what this is but define it somewhere
cmp[l_enable],1
je tell // no idea what this is but define it somewhere
//this is allocated memory, you have read,write,execute access
//place your code here
originalcode:
movq [esi+18],xmm0
exit:
jmp returnhere
tels:
dd 0
tell:
dd 0
// define these too, i am too lazy to do that for you
//s_enable, l_enable, label(xpos)
//label(ypos)
//label(zpos)
"DARKSOULS.exe"+ABDBE0:
jmp newmem
returnhere:
[DISABLE]
//code from here till the end of the code will be used to disable the cheat
dealloc(newmem)
dealloc(y)
unregistersymbol(s_enable)
unregistersymbol(l_enable)
"DARKSOULS.exe"+ABDBE0:
movq [esi+18],xmm0
//Alt: db 66 0F D6 46 18
It looks like you copied this script from somewhere, there are undefined labels all over and idk what you are trying to do.
_________________
|
|
| Back to top |
|
 |
Mr.realdoge Advanced Cheater
Reputation: 1
Joined: 01 Aug 2016 Posts: 56 Location: Lordran
|
Posted: Sat Jan 21, 2017 9:05 pm Post subject: |
|
|
something has come up again
| Code: | [ENABLE]
//code from here to '[DISABLE]' will be used to enable the cheat
alloc(newmem,2048)
label(returnhere)
label(originalcode)
label(exit)
globalalloc(y,4)
label(code)
label(save_coords)
label(load_coords)
label(xpos)
label(ypos)
label(zpos)
label(s_enable)
label(l_enable)
registersymbol(s_enable)
registersymbol(l_enable)
s_enable:
dd 0
l_enable:
dd 0
xpos:
dd 0
ypos:
dd 0
zpos:
dd 0
code:
cmp[s_enable],1
je save_coords
cmp[l_enable],1
je load_coords
save_coords:
mov[s_enable],0
push edi
movss edi,xmm1
mov [xpos],edi
movss edi,xmm0
mov [ypos],edi
movss edi,xmm2
mov [zpos],edi
pop edi
jmp orignialcode
load_coords:
mov[l_enable],0
push edi
mov edi,[x-pos]
mov [esi+10],edi
mov edi,[y-pos]
mov [esi+18],edi
mov edi,[zpos]
mov [esi+14],edi
pop edi
jmp originalcode
newmem:
//this is allocated memory, you have read,write,execute access
//place your code here
originalcode:
movq [esi+18],xmm0
exit:
jmp returnhere
"DARKSOULS.exe"+ABDBE0:
jmp code
returnhere:
[DISABLE]
//code from here till the end of the code will be used to disable the cheat
dealloc(newmem)
dealloc(y)
unregistersymbol(l_enable)
unregistersymbol(s_enable)
"DARKSOULS.exe"+ABDBE0:
movq [esi+18],xmm0
//Alt: db 66 0F D6 46 18 |
this script is also giving me an error that "Error in line 31 (cmp[00000000],1):This instruction cannot be compiled".Plz help.
|
|
| Back to top |
|
 |
STN I post too much
Reputation: 43
Joined: 09 Nov 2005 Posts: 2676
|
Posted: Sat Jan 21, 2017 9:39 pm Post subject: |
|
|
Why don't you actually learn before trying these random things.
I moved code below newmem but you moved it back up. It points to nowhere now
_________________
|
|
| Back to top |
|
 |
Mr.realdoge Advanced Cheater
Reputation: 1
Joined: 01 Aug 2016 Posts: 56 Location: Lordran
|
Posted: Sat Jan 21, 2017 9:57 pm Post subject: |
|
|
| u r right i will try to look into more AA tutorials and hopefully rectify my extremly noobish mistakes(No Sarcasm Intended)
|
|
| Back to top |
|
 |
|
|
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
|
|