Skip to content

About

A Nifty little JavaScript single page app to calculate the shortest path between Star System nodes using a breadth-first-search. It includes a PHP generator script that builds a JSON formatted adjacency map from an SQL dump of the EVE Online universe, which is client side cached to enable real time lookups.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

74 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

eve-online-jump-distance

A Nifty little JavaScript single page app to calculate the shortest path between Star System nodes using a breadth-first-search. It includes a PHP generator script that builds a JSON formatted adjacency map from an SQL dump of the EVE Online universe, which is client side cached to enable real time lookups.

This single page app consists of a small webpage and javascript to find the shortest amount of jumps between two star systems in the game EVE Online.

RvB was a corporation in EVE but has left and was used to help courier contracts where players transfer in game items originally. Now the EVE data dumps, breadth-first-search to mainly find the length (Jumps), a cached larger adjacency map to skip from the PHP an be faster, use jQuery Autocomplete, basic ETL, and a simple calculator that may be useful for similar applications.

Either way was fun and a great Corp, tons of PvP and cool people. I haven't played EVE for years either but maybe sometime Pew Pew a bit another time!

Run Web-app

Download this source to any folder and can start from index.html.

The generated EVE data-website parts are now committed, if someone wants more recent dumps follow down.

Run ETL, the whole thing!

use your browser at <your domain/directory>/ with PHP, MySQL and Linux for the ETL part

Load SQL dumps

See https://wiki.eveuniversity.org/Static_Data_Export

Extract - Download SQL dumps

mapRegions mapSolarSystems mapSolarSystemJumps mapConstellations

Transform - Uncompress the files

bunzip2 *

Load - Load SQL files into your MySQL database tables:

mysql -u username -p database_name < mapConstellations.sql
mysql -u username -p database_name < mapRegions.sql
mysql -u username -p database_name < mapSolarSystemJumps.sql
mysql -u username -p database_name < mapSolarSystems.sql

Regenerate eve data from SQL dumps into JavaScript

If you wish to re-generate the star system database you should obtain a copy of the EVE online universe SQL dump, load it into a MySQL database running on the same host as the php code, and copy /ws/dbinfo.php.txt to /ws/dbinfo.php (substituting your database credentials in the process). Once you have done this you should navigate to /ws/gen_evedata.js.php and the adjacency map will be built in /js/evedata.js,

Note

Optional for further dev mapConstellationJumps

About

A Nifty little JavaScript single page app to calculate the shortest path between Star System nodes using a breadth-first-search. It includes a PHP generator script that builds a JSON formatted adjacency map from an SQL dump of the EVE Online universe, which is client side cached to enable real time lookups.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages