Starfire Hearth
Starfire Hearth is a turn-based space strategy game. The simulation and the display are separate layers.
- Runtime
- Godot 4.7.2 stable
- Status
- 0.1.0-m1 source preview, no release
- Source
- mariyaholic/starfire_hearth_v2, commit
62f587e - License
- All rights reserved until the Owner chooses otherwise; see
LICENSE. Third-party assets are listed inCREDITS.md
Run the first scenario
- Open the source in Godot 4.7.2 stable. Import the project once:
godot --headless --path . --import - Run the data validator and the tests:
godot --headless --path . -s tools/validate_data.gd godot --headless --path . -s tests/run_tests.gd - Start the game:
godot --path . - From the title screen, select Scenario 1. Play through to the debrief.
Explore with the M2A preview
The M2A Exploration Preview is a separate milestone. Launch it from Campaign. It does not complete Scenario 2, and it does not unlock later campaign chapters.
The preview adds civilian interstellar travel, frontier surveys, an outpost and a new colony. Opt a survey probe into automatic exploration, or resolve a one-shot discovery at Halden's dormant gate.
Stop a journey at its next system. Or take an optional detour beyond Vesper to The Shroud's derelict and its energy and research outpost. Surveyed outpost sites show projected production and upkeep before a builder arrives.
After preview victory, choose Continue expedition. It lets you finish optional investments and keeps the original completion date. Later defeat still applies.
Older preview saves keep their original map. Start a new expedition to explore The Shroud.
The plans, the evidence and the platform acceptance limits are in docs/milestones/.
How the game is built
The simulation runs independently of the UI. The game data lives in JSON. The player-facing strings live in strings/en.csv.
Install the matching export templates before you export builds.
Install the requirements
- Install Godot 4.7.2-stable, standard build. The file
.godot-versionpins the exact version. - Install the export templates for 4.7.2 if you want to export builds.
- Install
xvfb-runon Linux if you run the screenshot tour and no display is available.
The web smoke test needs Node and the playwright npm package with its Chromium. Run npx playwright install chromium to install the browser. If the package is not installed globally, set PLAYWRIGHT_DIR to the node_modules folder that holds it.
Command reference
Run the commands from the repository root. The --import command builds Godot's import cache and the class list. Run it once after you clone, and again after you add new scripts or assets.
| Command | What it does |
|---|---|
godot --headless --path . --import | Imports the assets and registers the class names. |
godot --headless --path . -s tools/validate_data.gd | Checks the data schema and the cross-references. |
godot --headless --path . -s tests/run_tests.gd | Runs the full headless test suite. |
godot --headless --path . -s tools/expedition_bot.gd -- --seed 1 --trace | Runs the M2A expedition. |
godot --headless --path . -s tools/expedition_bot.gd -- --seed 1 --continue --trace | Continues the expedition into a later investment. |
godot --headless --path . -s tools/expedition_bot.gd -- --seed 1 --route vesper-first --outpost research --trace | Runs the optional Shroud itinerary. |
godot --headless --path . -s tools/bot_run.gd -- --scenario s1 --policy random-legal --seeds 1-3 --turns 60 --out telemetry/ --check-determinism | Runs random legal play and checks that the runs stay deterministic. |
godot --headless --path . -s tools/telemetry_report.gd -- --in telemetry/ | Makes a report from the telemetry files. |
godot --headless --path . -s tools/palette_report.gd | Checks contrast and colour-blind separation. |
xvfb-run -a -s "-screen 0 2560x1600x24" godot --rendering-driver opengl3 --path . -s tools/screenshot_tour.gd -- --out screens/ | Takes the screenshot tour with no display. |
xvfb-run -a -s "-screen 0 2560x1600x24" godot --rendering-driver opengl3 --path . -s tools/icon_sheet.gd -- --out screens/icon_sheet.png | Makes the icon sheet with no display. |
mkdir -p build && touch build/.gdignore | Keeps the exports out of the editor's scan. |
godot --headless --path . --export-release "Web" build/web/index.html | Exports a web build. "Windows" and "Linux" work too. |
node tools/web_smoke.mjs --build build/web --out screens/web | Tests the web build in headless Chromium. |
godot --path . | Runs the showcase. |
The screenshot tour and the icon sheet need a renderer. On a machine without a display, run them under xvfb-run as the table shows.
Add -- --filter rng to the test command to run only the test files or methods whose name contains rng.
The expedition harness starts with the original automated route. The optional Shroud routes hold Vesper development until the requested outpost is built, so a completion cannot skip the tested investment. Both optional outpost kinds select research cards with the same policy. Add --research-cards to enable that policy on the default route too. These runs are deterministic coverage itineraries. They do not measure optimal play or balanced alternatives.
Find your way around the code
| Path | What lives there |
|---|---|
sim/ | Pure simulation: state, rules, commands, turn processing, RNG, saves. No nodes, no UI. |
data/ | All game content as JSON. |
strings/en.csv | Every player-facing string. |
ui/ | Presentation only: theme, components, screens, map renderers. |
app/ | Autoloads: Settings, Strings, Layout, Overlay, Game, SaveService. |
assets/ | SVG icons, fonts (IBM Plex, OFL), audio. |
tests/ | Headless tests: unit, integration, golden, fixtures. |
tools/ | Data validation, bot playthroughs, telemetry, screenshot tour, id audit, icon sheet, web smoke test. |
docs/ | Design log and milestone plans and reports. |
The rules of the codebase
sim/never touchesNode,SceneTree,Inputorui/. A test scans for it.- The simulation state uses integers only. Resources count in hundredths. Percentages count in basis points.
- The UI never recomputes game math. It shows the
BreakdownandReportItemobjects that the simulation emits. - The UI holds no raw ids. All text comes from
strings/en.csv.
Limits
This is an M1 source build, not a finished release.
Release changes
M1, unreleased source
- Added: independent Command and Immersive view arrangements.