Skip to content

About

Live 2D galaxy map and 3D sector holotable for X4: Foundations — second-monitor tactical map, savegame watcher, and trade/resource finder

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

265 Commits

Folders and files

Repository files navigation

Foundations Map

Foundations Map — X4: Foundations Live 2D & 3D Galaxy Map

A fast, native second-monitor 2D galaxy map, savegame viewer, and GPU-accelerated 3D sector holotable for X4: Foundations.

Website · Downloads · Features · Installation · Controls · Building

2D Galaxy Map with Argon Prime selected and Sector Inspector open

Foundations Map reads directly from your local X4: Foundations archives (.cat/.dat, including all installed DLCs) and live savegames (.xml.gz and uncompressed .xml)—giving you a fast, standalone second-monitor tactical map that updates automatically whenever you save.

3D Sector Holotable

Double-click any sector (or press Enter) to inspect it in a hardware-accelerated wgpu 3D holotable with MSAA, Reversed-Z depth precision across 400+ km sectors, sculpted jumpgates and twin-ring superhighways, volumetric elevation drop-lines, and live station trade offers.

3D Sector Holotable in Argon Prime showing active and dormant sculpted jumpgates, volumetric elevation stems, and live trade offers

Tactical Filters & Omni-Search

Filter the entire galaxy by Wharfs, Shipyards, Trade Stations, Resources, or Free Ships (1–6), or press / / Ctrl+F to search sectors, station/ship ID codes, wares, and active buy/sell offers ranked by price.

2D Galaxy Map filtered by Shipyards across the universe

Features

  • 2D Galaxy Map — Full base-game + DLC sector hex layout, live faction ownership, active and dormant jumpgate connections, animated one-way superhighways, player location tracking, and entity count badges.
  • 3D Sector Holotable — Real-time wgpu rendering with 4× MSAA, Reversed-Z projection, sculpted 3D jumpgates & superhighways (with dormant/inactive gate distinction), volumetric altitude stems, tactical 2D vector icons, and an interactive orientation compass.
  • Live Savegame Sync — Parallel streaming parser handles 300+ MB X4 saves in under a second and watches your save folder automatically for new quicksaves and autosaves (both gzip-compressed .xml.gz and uncompressed .xml).
  • Sector & Entity Inspector — Inspect faction ownership, mineable resource richness, gate destinations, stations, ships, docked vessels, and live buy/sell trade offers.
  • Multi-Language Support — Automatically detects your Steam language for X4 and reads every localization shipped in your game archives, with live switching in Settings.
  • Cross-Platform Path Discovery — Automatically locates X4 across Linux & Windows (Steam libraryfolders.vdf across multiple drives, Proton compatdata, Flatpak/Snap Steam, Windows Registry Steam & GOG, Heroic/Lutris, and OneDrive-redirected Documents), with a guided manual folder picker fallback if auto-detection misses a custom install.

Installation

Pre-built Binaries

Download the latest binary for Linux (x86_64) or Windows (x86_64) from the Releases page.

On Linux, make the downloaded binary executable and run it:

chmod +x foundations-map-linux-x86_64
./foundations-map-linux-x86_64

Configuration & Overrides

Preferences and manual directory overrides are stored natively as JSON:

Platform Settings File
Linux $XDG_CONFIG_HOME/foundations-map/settings.json (~/.config/foundations-map/settings.json)
Windows %APPDATA%\foundations-map\settings.json
macOS ~/Library/Application Support/foundations-map/settings.json

If your X4 installation or save directory is in a non-standard location, use the in-app Settings → Directories picker (or the first-run setup screen), or set environment variables:

X4_GAME_DIR="/path/to/X4 Foundations" X4_SAVE_DIR="/path/to/Egosoft/X4/<id>/save" ./foundations-map

Controls

Context Input Action
Global Ctrl+F or / Open global omni-search
Global R or F5 Reload latest savegame
Global F or 0 Fit view to galaxy / sector
Global + / - Zoom in / out
Global ? Toggle keyboard shortcuts
Global Esc Clear selection / return from 3D to 2D map
2D Map Left Drag / Scroll Pan & zoom galaxy
2D Map Click / Double-Click Select sector / open 3D Sector Holotable
2D Map Enter Open selected sector in 3D
2D Map 1–6 Switch map filter (Normal, Wharfs, Shipyards, Trade, Resources, Free Ships)
3D Sector Left Drag Orbit camera
3D Sector Right Drag or WASD Pan across ecliptic plane
3D Sector Scroll Zoom camera
3D Sector T Snap to top-down tactical view
3D Sector Double-Click Gate Jump directly into destination sector

Building from Source

Requires Rust stable (edition = "2024"). On Linux (Debian/Ubuntu), install the windowing and font development headers:

sudo apt-get install -y \
  libgtk-3-dev libxkbcommon-dev libwayland-dev libssl-dev \
  libudev-dev libfontconfig-dev pkg-config

Build and run:

cargo build --release --bin foundations-map
./target/release/foundations-map

Run the test suite:

cargo test --workspace

Workspace Structure

  • crates/map-domain — Pure domain model: universe graph, live world snapshot, translation resolver, resource aggregation, filter logic, and view state.
  • crates/map-io — X4 .cat/.dat VFS reader, XML universe & metadata parsers, parallel streaming savegame parser, file watcher, and cross-platform path discovery.
  • crates/map-app — Desktop GUI (eframe/egui + wgpu 3D renderer), custom WGSL shaders, tactical vector icons, settings persistence, and native folder picker.

License

Foundations Map source code is released under the MIT License.

Third-party bundled fonts:

  • crates/map-app/assets/font.ttf (DejaVu Sans Mono 2.37) — Bitstream Vera / DejaVu License (DejaVu additions are in the public domain).
  • Default UI fonts bundled via egui/epaint (Ubuntu Light under UFL 1.0, Hack under MIT / Bitstream Vera, Noto Emoji under SIL OFL 1.1).

About

Live 2D galaxy map and 3D sector holotable for X4: Foundations — second-monitor tactical map, savegame watcher, and trade/resource finder

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages