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 Crashing ;-;

 
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: Sun Oct 22, 2017 8:22 am    Post subject: Script Crashing ;-; Reply with quote

Fellas this script crashing plz help.
Code:
[ENABLE]
globalalloc(reg,4)
alloc(code,1024)
label(originalcode)
label(returnhere)
label(exit)
label(x)
label(y)
label(z)
registersymbol(x)
registersymbol(y)
registersymbol(z)
label(senable)
label(lenable)
label(savecoords)
label(loadcoords)
label(checker)
registersymbol(senable)
registersymbol(lenable)


code:

senable:
dd 0
lenable:
dd 0
x:
dq 0
y:
dq 0
z:
dq 0

checker:
cmp byte ptr [senable],1
je savecoords
cmp byte ptr [lenable],1
je loadcoords
jmp originalcode

savecoords:
mov [senable],0
cmp [coord],0
je originalcode
push eax
mov eax,[coord]
mov [x],eax
mov eax,[coord+4]
mov [z],eax
mov eax,[coord+8]
mov [y],eax
pop eax
jmp originalcode

loadcoords:
mov [lenable],0
cmp [x],0
je originalcode
push eax
mov eax,[x]
mov [coord],eax
mov eax,[y]
mov [coord+8],eax
mov eax,[z]
mov [coord+4],eax
pop eax
jmp originalcode

originalcode:
mov [reg],ebx
movq xmm0,[esp]


exit:
jmp returnhere

"DARKSOULS.exe"+ABDBCA:
jmp code
returnhere:

[DISABLE]
unregistersymbol(x)
unregistersymbol(y)
unregistersymbol(z)
unregistersymbol(s)
unregistersymbol(l)
dealloc(code)
"DARKSOULS.exe"+ABDBCA:
movq xmm0,[esp]

_________________
( ͡° ͜ʖ ͡°) its always christmas
Back to top
View user's profile Send private message
ParkourPenguin
I post too much
Reputation: 140

Joined: 06 Jul 2014
Posts: 4300

PostPosted: Sun Oct 22, 2017 9:11 am    Post subject: Reply with quote

Code:
"DARKSOULS.exe"+ABDBCA:
jmp code
...
code:
senable:
dd 0
...

You're jumping to where values are stored, not code. I'm guessing you want to jump to the label "checker" instead.

_________________
I don't know where I'm going, but I'll figure it out when I get there.
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: Mon Oct 23, 2017 3:56 am    Post subject: Reply with quote

It worked,thnx m8!
_________________
( ͡° ͜ʖ ͡°) its always christmas
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