Ombey wrote:Yeah, I used Future Falcon's EveMap exclusively to initially plot the maps by hand, awesome tool. Nothing else even came close back then. I would like to see how I go about auto-generating a map dump from the DB, but I don't even know where to start! I'll try dropping them a line, asking on the EveO forum didn't get a response.
Hi Ombey,
A few points:
Generating a map from the db data should be as easy as plotting the coordinates in a 2D plane. Instead of using X/Y coordinates use X/Z.
To find the distance between any two objects in eve use the formula for the length of a line segment in 3 dimensions:
distance = sqrt[(z2 - z1)^2 + (x2 - x1)^2 + (y2 - y1)^2]
Since the coordinates in eve are at a resolution of 1 meter per unit it's very easy to calculate the distances in any unit you like:
;; DISTANCE-IN-METERS = SQRT((X2-X1)^2 + (Y2-Y1)^2 + (Z2-Z1))
;; DISTANCE-IN-KM = DISTANCE-IN-METERS / 1000
;; DISTANCE-IN-AU = DISTANCE-IN-KM / 149598000
;; DISTANCE-IN-LY = DISTANCE-IN-KM / 9460730472580.8
;; (au = astronomical unit)
;; (ly = lightyear)
I have a dump of the coordinates of all regions, constellations, systems and celestials (suns, planets, moons, belts, stations, gates) if you would find it useful. Be aware though, the number of results is enormous:
- Code: Select all
;; There are:
;; 67 Regions ( 2,244.5 pairings)
;; 786 Constellations ( 308,898 pairings)
;; 5,186 Stations ( 13,447,298 pairings)
;; 5,431 Suns ( 14,747,880.5 pairings)
;; 5,431 Solar Systems ( 14,747,880.5 pairings)
;; 14,334 Stargates ( 102,731,778 pairings)
;; 46,172 Planets ( 1,064,542,082 pairings)
;; 56,494 Asteroid Belts ( 1,595,786,018 pairings)
;; 234,651 Moons (27,530,780,552 pairings)
The pseudocode for such a program looks something like this:
- Code: Select all
;; for each thisLine in readFromFile
;; read thisLine's tokens
;; read nextLine
;; calculate-distance
;; write-distance to writeToFile
;; loop nextLine
;; ;; we are past the end of the list
;; loop thisLine
I'd be happy to help you with this if you like. I like the idea but am too damned lazy to do the work just for my own benefit... Send me an evemail or a pm here and we can work it out.
Keep up the good work!
Val