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 exactly float values work?

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

Joined: 12 Aug 2015
Posts: 19

PostPosted: Tue Jul 26, 2016 4:37 am    Post subject: How exactly float values work? Reply with quote

Hello!

I'm trying to understand more and learning about CE and gamehacking, for now I have a question regard float values, exactly coordinates.

Let's say I have an x coordinate, that's how they appear on my game : 256.264801

When I move inside the game, I see the coordinate is changing real fast, like, pressing w one single time will be 256.864801 or something. Never got the same value for a single key press...

So, my question is, are the float coordinates, increasing their value by 000.000001 with an awesome speed till they reach the new location? Or are they increased by a larger bunch of numbers like 0.10 or something?

Thanks!
Back to top
View user's profile Send private message
ulysse31
Master Cheater
Reputation: 2

Joined: 19 Mar 2015
Posts: 324
Location: Paris

PostPosted: Tue Jul 26, 2016 6:50 am    Post subject: Reply with quote

That's very easy to find out for you :
Enable VEH debugger, right click the variable holding coordonates, find out what writes to it. There is a count of the number of times a value is written. You can walk, calculate the difference between coordonates and compare it with the number of time your address was written to.
You can also set a memory breakpoint, break on write, and see the new value being written to your variable, check how much the value is increasing / drecreasing
Back to top
View user's profile Send private message
alesyt0h
Newbie cheater
Reputation: 0

Joined: 12 Aug 2015
Posts: 19

PostPosted: Tue Jul 26, 2016 9:22 am    Post subject: Reply with quote

well the count is more than 2000.. will took ages xD Also breakpoint on the write address crash the game.

I cant do it with some lua script or assembly and write them into a log file?
Back to top
View user's profile Send private message
cooleko
Grandmaster Cheater
Reputation: 11

Joined: 04 May 2016
Posts: 717

PostPosted: Tue Jul 26, 2016 10:32 pm    Post subject: Reply with quote

You an do it with lua:
http://wiki.cheatengine.org/index.php?title=Lua_Debugging
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