| View previous topic :: View next topic |
| Author |
Message |
Mr.realdoge Advanced Cheater
Reputation: 1
Joined: 01 Aug 2016 Posts: 56 Location: Lordran
|
Posted: Tue Jan 24, 2017 6:44 am Post subject: Can some one help me plz (AA script crashing my game) |
|
|
| Code: | [ENABLE]
//code from here to '[DISABLE]' will be used to enable the cheat
alloc(newmem,2048)
label(returnhere)
label(originalcode)
label(exit)
label(code)
label(save_coords)
label(load_coords)
label(ypos)
label(s_enable)
label(l_enable)
registersymbol(s_enable)
registersymbol(l_enable)
s_enable:
dd 0
l_enable:
dd 0
ypos:
dd 0
code:
cmp [s_enable],1
je save_coords
cmp [l_enable],1
je load_coords
jmp originalcode
save_coords:
mov [s_enable],0
movss [ypos],xmm0
jmp originalcode
load_coords:
mov [l_enable],0
push edi
mov edi,[ypos]
mov [esi+18],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)
unregistersymbol(l_enable)
unregistersymbol(s_enable)
"DARKSOULS.exe"+ABDBE0:
movq [esi+18],xmm0
//Alt: db 66 0F D6 46 18 |
Its crashing my game.Btw im currently trying to save y coordinates of the player and then loading them later on basically a teleport hack but only for y axis,it crashes my game as soon as i activate it ;/
|
|
| Back to top |
|
 |
STN I post too much
Reputation: 43
Joined: 09 Nov 2005 Posts: 2676
|
Posted: Tue Jan 24, 2017 3:21 pm Post subject: |
|
|
Dude i explained in the old thread what the issue was. You didn't even use the script i posted. Your biggest issue is this
s_enable:
dd 0
l_enable:
dd 0
ypos:
dd 0
code:
cmp [s_enable],1
je save_coords
cmp [l_enable],1
je load_coords
jmp originalcode
save_coords:
mov [s_enable],0
movss [ypos],xmm0
jmp originalcode
load_coords:
mov [l_enable],0
push edi
mov edi,[ypos]
mov [esi+18],edi
pop edi
jmp originalcode
newmem:
Like i said before, why are you placing them before newmem? You are so clueless and resistant to taking advice or reading tutorials, i give up
_________________
|
|
| Back to top |
|
 |
Mr.realdoge Advanced Cheater
Reputation: 1
Joined: 01 Aug 2016 Posts: 56 Location: Lordran
|
Posted: Wed Jan 25, 2017 5:41 am Post subject: |
|
|
| im really sorry(the last thing I want 2 do is piss off a moderator)
|
|
| Back to top |
|
 |
STN I post too much
Reputation: 43
Joined: 09 Nov 2005 Posts: 2676
|
Posted: Wed Jan 25, 2017 1:57 pm Post subject: |
|
|
I am not a moderator or pissed off, just annoyed you don't listen to help people are trying to give you.
This isn't really that hard, you just need to learn the basics and build upon that. I pointed out your errors in the post above, its crashing because you are jumping to an area which doesn't exist.
_________________
|
|
| Back to top |
|
 |
Mr.realdoge Advanced Cheater
Reputation: 1
Joined: 01 Aug 2016 Posts: 56 Location: Lordran
|
Posted: Thu Jan 26, 2017 9:26 pm Post subject: |
|
|
Trust me I know my mistake was incredibly stupid .But thnx and sry for being annoying .Btw is it possible to inject one script in more than one memory location?
|
|
| Back to top |
|
 |
|