These forums have been archived and are now read-only.

The new forums are live and can be found at https://forums.eveonline.com/

Science & Industry

 
  • Topic is locked indefinitely.
 

Calculate distance from system to system

First post
Author
6ie
The Kiwis
#1 - 2014-10-24 20:16:05 UTC
From mapSolarSystems in the datadump, I can calculate distance in meters from solar system to solar system.

= sqrt ( (x1 - x2)^2 + (y1 - y2)^2 + (z1 - z2)^2 )

However it doesn't work out come anywhere near to ingame distances.

ie Onnamon -> Piak calculates as 2.08441E+16m (139,333.89 AU or 2.203 LY).
In game the distance, from the Uuhulanen gate in Onnamon to the Piak gate in Onnamon is only 52.9 AU.

I tried to remove 1/2 of each solar systems radius, assuming the gates are on the edges of the solar systems, but it barely makes a difference as the radius is so small.

I checked my calculations, and stations to stations within a solar system calculate correctly.

Possibly is has to do with the positions of the gates?
Maybe it would be better to find and use the locations of the gates?

Ideas?
Steve Ronuken
Fuzzwork Enterprises
Vote Steve Ronuken for CSM
#2 - 2014-10-24 21:19:59 UTC
Uh... This is a troll, right?

Being that solar systems aren't butted right up next to each other and all.

Woo! CSM XI!

Fuzzwork Enterprises

Twitter: @fuzzysteve on Twitter

Foxicity
The Scope
Gallente Federation
#3 - 2014-10-24 21:35:57 UTC
Unless you made a typo, you're talking nonsensically. Apples to oranges to meters. If you want to gauge the distance from solar system to solar system, I honestly don't know why you measured in-game the distance between two same-system stargates.

+1 for troll
Slvrsmth
Native Freshfood
Minmatar Republic
#4 - 2014-10-24 21:39:51 UTC  |  Edited by: Slvrsmth
Use mapSolarSystem columns x, y and z. Divide the values there by 10^16 before plugging them in the formula to get output in light years.

That's how it's done in Carebearium. Results seem to match in-game data.

Edit: Missed the whole gates thing. Yeah, don't do that.

Carebearium - find the best solar system for you!

6ie
The Kiwis
#5 - 2014-10-25 00:31:15 UTC
Ok, I should have stated my purpose so that you could tell me how wrong I was instead of calling me a troll.

There are plenty of route planners out there, but they do not show the AU distances covered for each warp from stargate to stargate. I wanted to work out if I plan a route across the eve galaxy how far each jump is. I know each ships warp speed, I just need to work out the jumps.

I mistakenly tried to calculate the distance between systems.
I guess I need to work out the distances between stargates along the route within each system.
Foxicity
The Scope
Gallente Federation
#6 - 2014-10-25 03:28:25 UTC
6ie wrote:
Ok, I should have stated my purpose so that you could tell me how wrong I was instead of calling me a troll.

There are plenty of route planners out there, but they do not show the AU distances covered for each warp from stargate to stargate. I wanted to work out if I plan a route across the eve galaxy how far each jump is. I know each ships warp speed, I just need to work out the jumps.

I mistakenly tried to calculate the distance between systems.
I guess I need to work out the distances between stargates along the route within each system.


If you're trying to figure out the shortest route by optimizing the minimum number of jumps and also the minimum number of AU jumped in system, I'd say you're right on the money. But generally, minimum number of jumps will trump minimum AU, unless you're in a freighter and you're talking truly long distances.
Bagatur I
Caldari Provisions
Caldari State
#7 - 2014-10-25 19:33:31 UTC
Foxicity wrote:
Unless you made a typo, you're talking nonsensically. Apples to oranges to meters. If you want to gauge the distance from solar system to solar system, I honestly don't know why you measured in-game the distance between two same-system stargates.

+1 for troll

this +1. you are talking about the distance between two gates. you know that the corresponding systems are on the OTHER side of the gates?