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 


How to inject code on keystroke?
Goto page Previous  1, 2
 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking
View previous topic :: View next topic  
Author Message
++METHOS
I post too much
Reputation: 92

Joined: 29 Oct 2010
Posts: 4197

PostPosted: Wed Apr 27, 2016 2:24 pm    Post subject: Reply with quote

If your originalcode is this:
Code:
originalcode:
movss xmm0,[rax+08]


Then you can't use this:
Code:
mov [rcx+000027C0],(float)70


You would want to use something like this:
Code:
mov [rax+08],(float)70.0
movss xmm0,[rax+08]
Back to top
View user's profile Send private message
Liquidious
How do I cheat?
Reputation: 0

Joined: 26 Apr 2016
Posts: 8

PostPosted: Wed Apr 27, 2016 3:22 pm    Post subject: Reply with quote

++METHOS wrote:
If your originalcode is this:
Code:
originalcode:
movss xmm0,[rax+08]


Then you can't use this:
Code:
mov [rcx+000027C0],(float)70


You would want to use something like this:
Code:
mov [rax+08],(float)70.0
movss xmm0,[rax+08]

You are my hero it worked. I'd lick your face if I could.

I was so dead set on changing "rcx+000027C0" and I don't understand why now suddenly we're writing float 70 to "rax+08" instead.

Can you explain this?

Also why do we crash if we do try to write to "rcx+000027C0"?
Back to top
View user's profile Send private message
++METHOS
I post too much
Reputation: 92

Joined: 29 Oct 2010
Posts: 4197

PostPosted: Wed Apr 27, 2016 3:31 pm    Post subject: Reply with quote

Each instruction is different. All of those instructions may be accessing the same address, but they may not be using the same registers or offsets. You have to work within the parameters of the instruction that you are hooking, otherwise, you may be making changes to other parts of the process that you shouldn't be changing or that don't even exist. When you understand more about assembly, it will make more sense.
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
Goto page Previous  1, 2
Page 2 of 2

 
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