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 


Player coordinates

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

Joined: 25 Jan 2022
Posts: 3

PostPosted: Thu Apr 07, 2022 2:31 pm    Post subject: Player coordinates Reply with quote

Hello,

I have this instruction for player X:

Code:
025F6071 - 89 11  - mov [ecx],edx


ecx is address of player X coords
and
edx is current player X coords (float)

How can I edit edx so I would move faster?
I want to make it to add +3 value in float for example to edx everytime I move.

Thanks.
Razz
Back to top
View user's profile Send private message
loleyman
How do I cheat?
Reputation: 0

Joined: 26 Mar 2022
Posts: 4

PostPosted: Thu Apr 07, 2022 2:56 pm    Post subject: Reply with quote

I don't think that would be useful. What will hapen if you want to move backwards? Instead of doing this try to find the movement speed value.
But if you just want to add a float value to coordinates then it should be something like this: addss [ecx],(float)50000
Back to top
View user's profile Send private message
LeFiXER
Grandmaster Cheater Supreme
Reputation: 20

Joined: 02 Sep 2011
Posts: 1069
Location: 0x90

PostPosted: Thu Apr 07, 2022 4:08 pm    Post subject: Reply with quote

If the co-ordinates are stored as a whole integer then this will do what you want.
Code:

add edx,3 // Note: this is a hexadecimal value of 3.
mov [ecx],edx


If they are stored as a float then something like this:
Code:

...
alloc(x,4)

x:
 dd (float)3

newmem:
   movss xmm7,[edx]
   addss xmm7,[x]
   movss [ecx],xmm7
...


You will want to ensure that xmm7 is an empty register by setting a breakpoint on the line:
Code:

025F6071 - 89 11  - mov [ecx],edx


Once triggered (the game will freeze), switch back to Cheat Engine and in the memory viewer window click the button with the ">" symbol on the right-hand side of the window in the registers pane.

This will popup a window with all xmm registers and their current values.
Back to top
View user's profile Send private message
++METHOS
I post too much
Reputation: 92

Joined: 29 Oct 2010
Posts: 4197

PostPosted: Thu Apr 07, 2022 6:32 pm    Post subject: Reply with quote

You will need to find where the speed or force is being applied to player coordinates. Oftentimes, this is being handled within the same sub-routine.
Back to top
View user's profile Send private message
ReaN
How do I cheat?
Reputation: 0

Joined: 25 Jan 2022
Posts: 3

PostPosted: Thu Apr 07, 2022 11:34 pm    Post subject: Reply with quote

loleyman wrote:
I don't think that would be useful. What will hapen if you want to move backwards? Instead of doing this try to find the movement speed value.
But if you just want to add a float value to coordinates then it should be something like this: addss [ecx],(float)50000


You are right, but I cant find anything :/
Also I added the value like this but it didnt work properly 😀
It didnt increase the player speed when I moved but it teleported me somewhere out of the map 😀

++METHOS wrote:
You will need to find where the speed or force is being applied to player coordinates. Oftentimes, this is being handled within the same sub-routine.


I cant find anything, maybe I need search more😀, to be more specific I dont want to increase player speed, but I want to make to go through walls by increasing the change of coordinates
Back to top
View user's profile Send private message
TsTg
Master Cheater
Reputation: 5

Joined: 12 Dec 2012
Posts: 340
Location: Somewhere....

PostPosted: Fri Apr 08, 2022 2:30 am    Post subject: Reply with quote

ReaN wrote:

I cant find anything, maybe I need search more😀, to be more specific I dont want to increase player speed, but I want to make to go through walls by increasing the change of coordinates


so a teleport with no-clip cheat?, well it shouldn't be hard to make, you need to find and patch the code performs object collision on the player (and ofc, Z-axis only), and its usually found/near-found, by seeing what reads/writes the player co-ordinates, you can also try to change the player co-ords at a certain point of the code (where the collision check itself was completed or not even done, really depends on the game design)

some games use a flag of 0/1 switch when hugging/moving-far-from a wall and by changing the code that writes this flag it can grant no-clipping (going through walls), you can try this route first but as i said, it all depends on the game design

if not, simply dig around "what writes"\"what accesses" the address of the co-ordinates, move far then close to a wall and see what instructions pops up, and good luck.
Back to top
View user's profile Send private message
++METHOS
I post too much
Reputation: 92

Joined: 29 Oct 2010
Posts: 4197

PostPosted: Fri Apr 08, 2022 11:50 am    Post subject: This post has 1 review(s) Reply with quote

ReaN wrote:
How can I edit edx so I would move faster?

ReaN wrote:
I dont want to increase player speed

-You waste people's time if you are not specific.
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