Page 1 of 1

Found this formula for finding way points.

Posted: April 8th, 2009, 6:19 am
by evilwatermelon
Found this formula for way points. Haven't tried it myself, but might be some use to others.

From a linear regression on my waypoints, I have the following formulae:

Code:

X = 820 * [longitude] + 100
Z = 820 * [latitude] + 16290

The in-game coordinates are given in a [minutes]' [seconds]" [direction] format. There are two things to note when converting the in-game coordinates to a decimal representation. First note that for longitude, west is negative and east is positive. Similarly, for latitude, south is negative and north is positive. Secondly, there are 60 seconds in one minute, so we must take this into consideration when converting. For example, given the in-game location

Code:

1'6" W, 10'54" S

we find the X and Z coordinates as follows:

Code:

longitude = [direction] * ([minutes] + [seconds]/60) = [-1] * ([1] + [6]/60) = -1.1
latitude = [direction] * ([minutes] + [seconds]/60) = [-1] * ([10] + [54]/60) = -10.9

X = 820 * [longitude] + 100 = 820 * -1.1 + 100 = -802
Z = 820 * [latitude] + 16290 = 820 * -10.9 + 16290 = 7352

For the Y coordinate, you're on your own. The safer approach would be to teleport below the ground (roughly Y coordinate set to 0) with falling disabled and teleport up to the surface when you've determined it to be safe. The highest Y coordinate I have in my waypoints is less than 500, so I'd suggest using that as a starting point if you want to parachute in. Some mountains are about 1000 coords high, so you might start even higher than 500. The final coordinate that you'd teleport to would be

Code:

(-802, 0, 7352)

Posted: April 8th, 2009, 11:42 am
by danzar
Hmm I don't know if DFOmate uses the same formula. I have tried to convert it serveral time and its never come out right.

My last test was.

14,40 W 17,34 S

820* -14.6 + 100 = -11872
820* 17.5 + 16290 = 30640

the Mates cords was (in this order) -31787.13, 5022.06, 602.22

Posted: April 8th, 2009, 5:51 pm
by evilwatermelon
wasn't sure, haven't tried it out hehe. was worth a shot though =)