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 


Exponential / Square Root Coordinate System ?

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

Joined: 21 May 2011
Posts: 1

PostPosted: Mon Aug 08, 2011 6:13 pm    Post subject: Exponential / Square Root Coordinate System ? Reply with quote

Hi guys,

I'm trying to create a little helper for a game where I will eventually draw a line connecting two objects on the 2d plane. I've found the pointers for the addresses of the float coordinates but studying the coordinates as the objects move across the plane im noticing some weird behavior that I'm not totally understanding. From what i've gathered the coordinates increase in kind of a square root function, where the difference between 0 and 1 is almost negligible, really small between 1 and 2, and then a rather vast expanse between 3 and 4. Infact crossing over the origin or any axis line, it's hard to even get a number between 1 and -1, it may even skip from -1 to 2. I drew a little diagram explaining this, attached (not to scale really).

I'm wondering what's up with it or if anyones ever encountered this before if it's maybe it's a side effect produced by a certain engine or software.. And if anyone does have experience with it, what exactly the function would be to convert these coords to a regular linear system where I can then draw my line in an overlay.

edit: update: since I can't double post;

I do have the decompiled source for this particular game, and the coordinates are specified in a custom vector type, and for many static elements on the plane they are hard coded in and the numbers are ints ranging from 0 to 400, and they seem to be rectangular, nonnegative, plain old Cartesian type numbers. But when searching for coords in the memory, all I'm finding are these -4 to 4 floats (any other type isn't making sense, and locking these particular addresses is effective in-game) with the variable differences i mentioned previously. I can't seem to find where I would find the conversion of these numbers to what I'm getting.

Also, I've by now tested squaring, square rooting, and cube rooting the values i'm getting for x and y at these addresses, because at first glance they look like exponential values, but alas that didn't give me any good numbers either.



coords.jpg
 Description:
coordinate system
 Filesize:  46.9 KB
 Viewed:  4153 Time(s)

coords.jpg


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