Skip to content

Elec0/x4-map-visualization

Repository files navigation

X4 Map Visualization

Utilities and static assets for processing and visualizing sector/node graph data for X4: Foundations.

Repository Contents

  • x4-map.json - Source map data.
  • sectors.json - Sector-focused extracted data.
  • shortest_paths.json - Computed shortest path results.
  • summed_distances.json - Computed summed-distance metrics.
  • x4-map-json-processor.py - Preprocessing script for map JSON.
  • x4-node-dijkstra.py - Dijkstra-based shortest path calculation script.
  • x4-map-visualization.html - Browser-based visualization.

Requirements

  • Python 3.9+
  • No third-party dependencies are required unless you extend the scripts.

Quick Start

  1. Place or update input data in x4-map.json.

  2. Run the processing scripts:

    python x4-map-json-processor.py
    python x4-node-dijkstra.py
  3. Start a local web server from the repository root:

    python -m http.server 8000
  4. Open http://localhost:8000/x4-map-visualization.html in your browser to inspect the generated map data.

Notes

  • The generated JSON files in this repository are intended as precomputed artifacts for faster visualization.
  • If map data format changes, rerun the Python scripts to regenerate derived files.

License

This project is licensed under the MIT License. See LICENSE.

Credits

About

Calculate shortest path from each system and the centrality of each system

Resources

License

Stars

1 star

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors