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 


Creating new thread script doesn't turn on

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking
View previous topic :: View next topic  
Author Message
deama1234
Master Cheater
Reputation: 3

Joined: 20 Dec 2014
Posts: 328

PostPosted: Wed Jun 28, 2017 9:44 am    Post subject: Creating new thread script doesn't turn on Reply with quote

I'm trying to create a thread that will periodically update a value, here's my code:

Code:
[ENABLE]
//[psi] + 00000408 -- psi (float)
//[hypo] + 54 -- psi hypo (4bytes)
alloc(newmem,4096)
createthread(newmem);

label(notValid)

alloc(mine,16)
alloc(divide,16)
alloc(end,16)
registersymbol(mine)
registersymbol(divide)
registersymbol(end)

divide:
dd (float)10

end:
dd 0

newmem:
//cmp [psi],0
//je notValid
//cmp [psih],0
//je notValid


mov rax,[hypo]
mov rbx,[psi]

//fild [rax+54]
//fild [psih]
//fdiv [divide]
//fadd [rax+00000408]
//fstp [rax+00000408]


notValid:
push #1000
call sleep
cmp [end],01
jne newmem

ret
 
 
[DISABLE]
end:
dd 1

dealloc(mine)
dealloc(divide)
unregistersymbol(mine)
unregistersymbol(divide)


The problem is that when I try to activate it, it doesn't activate (no red X comes up), but when I remove either "mov rax,[hypo]" or "mov rbx,[psi]" it works.
So if I just had "mov rax,[hypo]" or "mov rbx,[psi]" on its own then it would activate (the red X would come up).

If I have just "mov rax,[hypo]" or "mov rbx,[psi]" and then if I add in "mov rcx,01" then it works. It for some reason just doesn't want to activate when I have both [hypo] and [psi] in the script. Is there some sort of limitation? I have checked to make sure the spellings and the addresses exist.

Any ideas what the problem could be?
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking 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