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 


[HELP]How can i modify this?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
jeck00119
Cheater
Reputation: 0

Joined: 11 Aug 2014
Posts: 27

PostPosted: Thu Aug 19, 2021 4:44 am    Post subject: [HELP]How can i modify this? Reply with quote

Hi guys!How can I only change the value in the image?

Here is the original code:

Code:


[ENABLE]
//code from here to '[DISABLE]' will be used to enable the cheat

 
 
aobscanmodule(INJECT,0F 29 81 20 01 00 00 48) // should be unique
alloc(newmem,$1000,INJECT)

label(code)
label(return)

newmem:

code:
  movaps [rcx+00000120],xmm0
  jmp return

INJECT:
  jmp newmem
  nop 2
return:
registersymbol(INJECT)

[DISABLE]
//code from here till the end of the code will be used to disable the cheat
INJECT:
  db 0F 29 81 20 01 00 00

unregistersymbol(INJECT)
dealloc(newmem)




Thanks in advance for your help!



Xmm0.png
 Description:
 Filesize:  10.06 KB
 Viewed:  1425 Time(s)

Xmm0.png


Back to top
View user's profile Send private message
ParkourPenguin
I post too much
Reputation: 152

Joined: 06 Jul 2014
Posts: 4718

PostPosted: Thu Aug 19, 2021 11:53 am    Post subject: Reply with quote

If you just want to change the value in memory, that's simple:
Code:
movaps [rcx+120],xmm0
movss xmm0,[myValue]
movss [rcx+128],xmm0


If you need the xmm register to reflect the change:
Code:
movss xmm2,[myValue]
movaps xmm1,xmm0
movss xmm1,xmm2
shufps xmm0,xmm1,C4
movaps [rcx+120],xmm0
Or with AVX:
Code:
vmovss xmm1,[myValue]
vinsertps xmm0,xmm0,xmm1,20
vmovaps [rcx+120],xmm0

_________________
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
jeck00119
Cheater
Reputation: 0

Joined: 11 Aug 2014
Posts: 27

PostPosted: Thu Aug 19, 2021 12:16 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 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