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 


the problem when changing the value through the script

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking
View previous topic :: View next topic  
Author Message
supine64555
How do I cheat?
Reputation: 0

Joined: 28 Apr 2022
Posts: 2

PostPosted: Thu Apr 28, 2022 5:38 am    Post subject: the problem when changing the value through the script Reply with quote

as a result of executing the script, the [rax+98] is zero. should be 1100000000

--

newmem:
push dword ptr [jumps]
pop dword ptr [rax+98]

code:
movsd xmm0,[rax+00000098]
jmp return

jumps:
db 00 ab 90 41
// 1100000000
Back to top
View user's profile Send private message
ParkourPenguin
I post too much
Reputation: 138

Joined: 06 Jul 2014
Posts: 4275

PostPosted: Thu Apr 28, 2022 11:30 am    Post subject: Reply with quote

movsd moves a double. The value stored at jumps is an integer. Use cvtsi2sd to convert an integer to a double.
Code:
newmem:
  cvtsi2sd xmm0,[jumps]
  movsd [rax+98],xmm0
  jmp return

jumps:
  dd #1100000000

Or just store a double to begin with.
Code:
alloc(jumps,8)

newmem:
  movsd xmm0,[jumps]
  movsd [rax+98],xmm0
  jmp return

jumps:
  dq (double)1100000000.0

_________________
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
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