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
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.
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.
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 — 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
wgpurendering 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.gzand 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.vdfacross multiple drives, Protoncompatdata, 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.
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_64Preferences 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| 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 |
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-configBuild and run:
cargo build --release --bin foundations-map
./target/release/foundations-mapRun the test suite:
cargo test --workspacecrates/map-domain— Pure domain model: universe graph, live world snapshot, translation resolver, resource aggregation, filter logic, and view state.crates/map-io— X4.cat/.datVFS reader, XML universe & metadata parsers, parallel streaming savegame parser, file watcher, and cross-platform path discovery.crates/map-app— Desktop GUI (eframe/egui+wgpu3D renderer), custom WGSL shaders, tactical vector icons, settings persistence, and native folder picker.
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).


