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. does not work

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
Roman012
!BEWARE! Deletes post on answer
Reputation: 0

Joined: 25 Dec 2022
Posts: 41

PostPosted: Fri Sep 29, 2023 9:38 am    Post subject: Script. does not work Reply with quote

Script. Why doesn't it work?
If manually change works.
and if the script doesn't work
[ENABLE]
aobscanmodule(INJECT,---.exe,F2 0F 10 40 10 8B)
alloc(newmem,$1000)
label(code)
label(return)

newmem:
mov [eax+10],(double)-1128.2892673767
code:
movsd xmm0,[eax+10]
jmp return

INJECT:
jmp newmem
return:
registersymbol(INJECT)

[DISABLE]

INJECT:
db F2 0F 10 40 10

unregistersymbol(INJECT)
dealloc(newmem)

---------------------------------------------------------------
Tried
it doesn't work

newmem:
mov [eax+10],(double)-1128.2892673767
code:
movsd xmm0,[eax+10]
jmp return

INJECT:
----------------------------
Tried
it doesn't work

newmem:
mov [eax+10],(double)-1128.2892673767
code:
//movsd xmm0,[eax+10]
jmp return

INJECT:



541025.jpg
 Description:
 Filesize:  176.57 KB
 Viewed:  2196 Time(s)

541025.jpg


Back to top
View user's profile Send private message
Y.A.K.E
Advanced Cheater
Reputation: 0

Joined: 15 Jul 2019
Posts: 56

PostPosted: Fri Sep 29, 2023 10:25 am    Post subject: Reply with quote

This is not a Lua script.


try

mov qword ptr [eax+10],(double)-1128.22
Back to top
View user's profile Send private message
ParkourPenguin
I post too much
Reputation: 152

Joined: 06 Jul 2014
Posts: 4715

PostPosted: Fri Sep 29, 2023 11:06 am    Post subject: Reply with quote

There is no `mov r/m64,imm64` instruction. You can't move a 64-bit immediate value into a memory location.

Code:
label(my_value)

newmem:
  movsd xmm0,[my_value]
  movsd [eax+10],xmm0
  jmp return

align 8 CC
my_value:
  dq (double)-1128.2892673767

_________________
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
Roman012
!BEWARE! Deletes post on answer
Reputation: 0

Joined: 25 Dec 2022
Posts: 41

PostPosted: Fri Sep 29, 2023 2:12 pm    Post subject: Reply with quote

Thank you very much!
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 Lua Scripting 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