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 


Can some one help me plz (AA script crashing my game)

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
Mr.realdoge
Advanced Cheater
Reputation: 1

Joined: 01 Aug 2016
Posts: 56
Location: Lordran

PostPosted: Tue Jan 24, 2017 6:44 am    Post subject: Can some one help me plz (AA script crashing my game) Reply with quote

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
View user's profile Send private message
STN
I post too much
Reputation: 43

Joined: 09 Nov 2005
Posts: 2676

PostPosted: Tue Jan 24, 2017 3:21 pm    Post subject: Reply with quote

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

_________________
Cheat Requests/Tables- Fearless Cheat Engine
https://fearlessrevolution.com
Back to top
View user's profile Send private message
Mr.realdoge
Advanced Cheater
Reputation: 1

Joined: 01 Aug 2016
Posts: 56
Location: Lordran

PostPosted: Wed Jan 25, 2017 5:41 am    Post subject: Reply with quote

im really sorry(the last thing I want 2 do is piss off a moderator)
Back to top
View user's profile Send private message
STN
I post too much
Reputation: 43

Joined: 09 Nov 2005
Posts: 2676

PostPosted: Wed Jan 25, 2017 1:57 pm    Post subject: Reply with quote

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.

_________________
Cheat Requests/Tables- Fearless Cheat Engine
https://fearlessrevolution.com
Back to top
View user's profile Send private message
Mr.realdoge
Advanced Cheater
Reputation: 1

Joined: 01 Aug 2016
Posts: 56
Location: Lordran

PostPosted: Thu Jan 26, 2017 9:26 pm    Post subject: Reply with quote

Trust me I know my mistake was incredibly stupid .But thnx and sry for being annoying Embarassed .Btw is it possible to inject one script in more than one memory location?
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
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