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 


Some help with a script/command

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

Joined: 28 Mar 2014
Posts: 33

PostPosted: Sat May 17, 2014 3:11 am    Post subject: Some help with a script/command Reply with quote

Hi all.

I have this script that I generated with auto assmble>code injection:
Code:
 [ENABLE]
//code from here to '[DISABLE]' will be used to enable the cheat
alloc(newmem,2048) //2kb should be enough
label(returnhere)
label(originalcode)
label(exit)

newmem: //this is allocated memory, you have read,write,execute access
//place your code here

originalcode:
movss [esi-50],xmm0

exit:
jmp returnhere

"AvP_DX11.exe"+303DEE:
jmp newmem
returnhere:


 
 
[DISABLE]
//code from here till the end of the code will be used to disable the cheat
dealloc(newmem)
"AvP_DX11.exe"+303DEE:
movss [esi-50],xmm0
//Alt: db F3 0F 11 46 B0


What I want to do, is to set the specific value of the addresses this instruction accesses to 1 float. So should the command be movss [esi-50],1 or what? Post a script that sets this instruction to set the value to 1 float if you could. I know this is very basic, but I need it for a few scripts and im not exactly sure how it works. Thanks in advance.
Back to top
View user's profile Send private message
NanoByte
Expert Cheater
Reputation: 1

Joined: 13 Sep 2013
Posts: 222

PostPosted: Sat May 17, 2014 6:39 am    Post subject: Reply with quote

Once again its those weird xmm stuff but if u want to set a float just do it like this

mov [esi-50],(float)1
Back to top
View user's profile Send private message
Niko
Cheater
Reputation: 0

Joined: 28 Mar 2014
Posts: 33

PostPosted: Sat May 17, 2014 7:58 am    Post subject: Reply with quote

NanoByte wrote:
Once again its those weird xmm stuff but if u want to set a float just do it like this

mov [esi-50],(float)1


Thanks for the info, it works.
Back to top
View user's profile Send private message
NanoByte
Expert Cheater
Reputation: 1

Joined: 13 Sep 2013
Posts: 222

PostPosted: Sat May 17, 2014 3:02 pm    Post subject: Reply with quote

Np Mate Very Happy
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