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 do I create a floating point value and move to address?

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

Joined: 08 Apr 2011
Posts: 2

PostPosted: Tue Apr 12, 2011 3:02 pm    Post subject: How do I create a floating point value and move to address? Reply with quote

I'm trying to modify the player's position in just cause 2.
I have found the x,y,z position address (floats). Then I found out what writes to this address.

I want to be able to input any arbitrary co-ordinates.

Z Position:
Code:
movss [011FA2E8],xmm0


Code:

00779F1D - xorps xmm3,xmm3
00779F20 - jne 00779F40
00779F22 - or [MD2_Final+5C2F50],ebx
00779F28 - movss [MD2_Final+5C2F44],xmm3 // X
00779F30 - movss [MD2_Final+5C2F48],xmm3 // Z
00779F38 - movss [MD2_Final+5C2F4C],xmm3 // Y
00779F40 - movsd xmm0,[eax+54]
00779F45 - movsd xmm1,[eax+58]
00779F4A - movsd xmm2,[eax+5C]
00779F4F - movsd xmm5,[MD2_Final+1EE5FC] // 0
00779F57 - movss [ebp-0C],xmm0
00779F5C - subss xmm0,[MD2_Final+5C2F44] // X
00779F64 - comiss xmm0,xmm3
00779F67 - movss [ebp-08],xmm1
00779F6C - subss xmm1,[MD2_Final+5C2F48] // Z
00779F74 - movss [ebp-04],xmm2
00779F79 - subss xmm2,[MD2_Final+5C2F4C] // Y
00779F81 - jb 00779F88
00779F83 - movaps xmm4,xmm0
00779F86 - jmp 00779F8F
00779F88 - movaps xmm4,xmm5
00779F8B - subss xmm4,xmm0
00779F8F - movsd xmm6,[MD2_Final+1EC734] // 3.00
00779F97 - comiss xmm4,xmm6
00779F9A - ja 00779FC8
00779F9C - comiss xmm1,xmm3
00779F9F - jb 00779FA6
00779FA1 - movaps xmm0,xmm1
00779FA4 - jmp 00779FAD
00779FA6 - movaps xmm0,xmm5
00779FA9 - subss xmm0,xmm1
00779FAD - comiss xmm0,xmm6
00779FB0 - ja 00779FC8
00779FB2 - comiss xmm2,xmm3
00779FB5 - jb 00779FBC
00779FB7 - movaps xmm0,xmm2
00779FBA - jmp 00779FC3 : [StrStrW+93AC8]
00779FBC - movaps xmm0,xmm5
00779FBF - subss xmm0,xmm2
00779FC3 - comiss xmm0,xmm6
00779FC6 - jna 00779FF6
00779FC8 - mov ecx,esi
00779FCA - call 0069A140
00779FCF - movsd xmm0,[ebp-0C]
00779FD4 - movss [MD2_Final+5C2F44],xmm0 // X
00779FDC - movsd xmm0,[ebp-08]
00779FE1 - movss [MD2_Final+5C2F48],xmm0 // Z
00779FE9 - movsd xmm0,[ebp-04]
00779FEE - movss [MD2_Final+5C2F4C],xmm0 // Y
00779FF6 - mov [esi+000002E8],00000007


I've messed around with code injection and replacing stuff with nop but nothing happens.
Cheat engine does not allow me to replace with
Code:
movss [MD2_Final+5C2F48],1000

How do I create a single floating point value and move it to that address?

If you're interested it's for this iPhone remote app i'm making:
youtube . com /watch?v=UfevypfW_yo
Back to top
View user's profile Send private message
Geri
Moderator
Reputation: 112

Joined: 05 Feb 2010
Posts: 5627

PostPosted: Tue Apr 12, 2011 11:02 pm    Post subject: Reply with quote

Code:
mov [whatever],(float)1000

_________________
My trainers can be found here: http://www.szemelyesintegracio.hu/cheats

If you are interested in any of my crappy articles/tutorials about CE and game hacking, you can find them here:
http://www.szemelyesintegracio.hu/cheats/41-game-hacking-articles

Don't request cheats or updates.
Back to top
View user's profile Send private message
ljdp
How do I cheat?
Reputation: 0

Joined: 08 Apr 2011
Posts: 2

PostPosted: Wed Apr 13, 2011 5:31 am    Post subject: Reply with quote

Cheers, I just can't find the right part to replace, it's working but it has no effect they all just seem to be references to the position not the actual position variable.
Back to top
View user's profile Send private message
Geri
Moderator
Reputation: 112

Joined: 05 Feb 2010
Posts: 5627

PostPosted: Wed Apr 13, 2011 8:46 am    Post subject: Reply with quote

I don't know how is the game working but first you need to make sure that if you freeze the address, you cannot move. If you can, obviously the value is not the co-ordinate (or maybe just a copy). Then you need to find a code where you can inject your script to change the value.
_________________
My trainers can be found here: http://www.szemelyesintegracio.hu/cheats

If you are interested in any of my crappy articles/tutorials about CE and game hacking, you can find them here:
http://www.szemelyesintegracio.hu/cheats/41-game-hacking-articles

Don't request cheats or updates.
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