A space game inspired by DarkOrbit, built with Godot. Windows players connect to a dedicated Linux server to fly, hunt aliens, earn rewards and repair together. Playing alone uses the same server encounter.
Milestones 1 and 2 have passed user playtesting. Milestone 3 has a dedicated server with provisioned pilot identities, persistent credits, hunting contracts, and station equipment purchases and fitting. The sector supports independent Scout, Sentinel and Heavy hunts. Outpost 01 has an original nebula/starfield background, a shaded planet, textured asteroid models and an industrial station. Combat uses procedural glowing lasers, shield ripples and hull sparks.
- Game requirements and development plan
- Development workflow
- Linux deployment, systemd, updates and rollback
- Blender sources, model reviews and concept art are kept outside the repository; see Art sources
Scout, Sentinel and Heavy use the approved detailed textured models in flight
and contract previews. The game exports have centered, correctly oriented hulls,
2K material maps and generated distance LODs; editable Blender sources retain
the 4K maps. Review the actual Godot previews
and contract board at 960 × 600.
Collision sizes and combat tuning are unchanged. tests/alien_assets_test.gd
checks model/material integrity, shared previews, server isolation and respawn,
including loads from the exported Windows pack.
At Outpost 01, open Hangar > Player trade, choose an available pilot and send an invitation. The other pilot opens the same window and accepts. Select stored equipment and a credit amount, then press Update offer. Both pilots must confirm the displayed offers to finish. An offer can contain up to twelve items; one-sided gifts are allowed. Remove fitted equipment before trading it.
Updating an offer clears both confirmations. Closing the window, disconnecting, leaving station service range or changing an inventory cancels the trade. Idle trades expire after two minutes. The server saves both sides together, including item settings; completed trades survive restart. Cargo, ammunition and ships cannot be included. Use matching client and server builds.
The flight HUD follows the menu's graphite panels, amber accents and Rajdhani typeface. Hunting Contracts and Local Radar share a small top margin; ship health/boost, destination and target cards align along the bottom. The header is removed, and credits/cargo quantities remain in the station menus. Cargo FULL, pending rewards, notifications, station prompts, radiation and rescue remain visible when relevant. Control keycaps use your current bindings.
Press Ctrl + Alt together during flight to customize the HUD. Drag a panel
or its title bar to move it, drag the lower-right corner to resize it, and use
its × to hide it. The editor's icon sidebar reopens or selects any instrument.
The reticle can be resized but always stays centered; it cannot be dragged to
another position, and older saved reticle positions are ignored.
The ten-slot quickslot bar moves, resizes and hides as one instrument. It supports
horizontal and vertical orientation; use its + picker to customize assignments
separately from HUD placement mode. See Quickslots.
Hide the sidebar to edit the whole screen; a Show sidebar button brings it back.
Panels can sit flush with every screen edge. Near the top, the editor title bar
overlaps the panel so its drag and close controls remain accessible.
The grid makes editing clear and supports optional snapping. Panels preserve
their proportions and stop shrinking at 80% of their default size. Escape,
Done, or Ctrl + Alt finishes and saves positions, sizes and hidden panels on
this device. Reset layout restores the default arrangement. Custom layouts
adapt when resizing the game window. Editing stops your local controls and fire;
the multiplayer world continues. World contact markers still track their contacts,
and rescue/radiation effects still signal their gameplay states.
Review the HUD editor and a customized flight layout.
tests/hud_customization_test.gd checks real editor input, moving/resizing,
minimum sizes, closing/reopening, saved layouts, screen bounds and moved radar
buttons and ammunition tiles. Run with a renderer for editor and customized-flight screenshots in
build/validation, at 960, 1440 and 1920 pixel widths. Use an isolated APPDATA
profile for tests, as with the other settings/HUD checks.
The Windows build helper also runs tests/hud_shortcut_export_test.gd against
the exported pack: it launches actual offline flight and verifies Ctrl + left
Alt in both key orders with native Windows modifier flags.
See the approved concept and native
screenshots at 960×600,
1440×900 and
1920×1080, plus
contextual alerts,
station actions and
radiation.
The sector overview shares the graphite surfaces, amber headings and waypoint
ring, with a muted grid and the existing contact colors. Native map screenshots:
960×600,
1440×900 and
1920×1080.
tests/hud_playthrough.gd checks resizing, card alignment and separation,
caption displacement, native radar/map clicks, active-only autopilot and current
fire bindings/blockers. Its screenshots include illustrative contract/alert
states with simulation frozen; dedicated-server and contract tests separately
check authority and payouts. Run with a renderer for visual captures; both
check runners include its headless checks.
The environment takes composition cues from DarkOrbit's planet and nebula maps, adapted to full 3D flight. Original Blender assets replace the smooth placeholder rocks and station. Distant freighter wrecks and an asteroid belt provide parallax beyond the safe sector; they have no services, loot or collision. Physical asteroids and the station retain their existing layout; aliens have random homes.
See sector assets and regeneration and environment validation for screenshots and checks. Blender is only required to regenerate assets, not to run, build or deploy the game.
The shared universe now has four maps: M1 / Outpost 01 (the existing station), M2 / Outer Patrol, M3 / Debris Fields and M4 / Frontier. Gates connect M1–M2, M2–M3, M2–M4 and M3–M4 in both directions. All maps are open from the start. M2 has Skirmishers and Raiders, M3 Marauders and Wardens, and M4 Ravagers and Overlords, with increasingly strong encounters and rewards. New aliens use simple colored models while combat and loot balance are tested.
Press M, then Connected maps, to see the network and your current map. Click another map to select the next gate on its route. Fly within 50 m of the labeled ring and press J to jump (rebindable in Settings). Gates have a 75 m protected zone and a two-second jump cooldown. Travel keeps ship health, boost energy, ammunition, cargo and progression, and clears movement and combat intent. Station services, rescue, reconnect and quitting to the station menu return to M1. Each map has its own local radar, alien roster, resource boxes and radiation boundary.
Review captures: connections at 960 × 600, local gate contacts, home travel gate.
The safe sector is a 2.4 km diameter sphere, with free movement past its edge. The upper-right radar follows your ship: forward is up, left/right match your steering, and small arrows show contacts above or below. Green marks Outpost 01, cyan marks other pilots, and aliens use their type colors. An amber ring identifies your destination on the local radar. Use − / + to change range from 250 m to 2.4 km. Press M or click Map for a larger sector overview. Click a contact or its row to select a destination. Markers, names and height lines are clickable directly on the map and highlight under the pointer. Hold left mouse and drag to rotate horizontally or vertically; a short click selects instead of rotating. Right-mouse drag also rotates. Mouse wheel zooms around the cursor, from 0.6× to 3×. Reset view restores rotation and zoom. Choosing an alien also selects it for combat. Choosing the outpost or another pilot clears the combat target. M or Esc returns to flight. Multiplayer keeps running while the overview is open.
Press P to fly to the selected alien, friendly pilot or outpost. A small Autopilot enabled label below the top-right radar appears while active. P can be rebound in Settings. Clear travel follows the shortest straight 3D route; obstacles use the shortest route through sampled detour points, an approximation around the actual colliders. Autopilot uses cruise speed and brakes to stop 20 m from ships or 50 m from the outpost, within service range. It follows moving contacts without enabling automatic fire or boost. Press P again, move or steer manually, change targets, or open a menu to cancel. Target loss, rescue and disconnect also cancel it. Radiation guidance takes priority until re-entry. A blocked route stops autopilot with a message.
Blocked-route searches run across frames with a soft 1.5 ms planning budget and a 64-work-unit limit per tick. The ship brakes while planning. Only direct blockers initially generate detour points; the graph expands to include any candidates that could shorten the route, with a full-graph fallback if needed. Visibility checks use obstacle bounds and cache both edge directions during each search. Clear routes still start immediately. Clearance and arrival distances are unchanged.
tests/autopilot_test.gd exercises direct and vertical travel, braking, real
asteroid detours, moving destinations, station arrival, cancellation and normal
authoritative ENet movement. Both check runners include it. Run with a renderer
to exercise the keyboard toggle and status label, and save 960 x 600 and 1440 x 900
captures under build/validation.
Use -- --planning-only for the geometry regressions and timing diagnostics:
total planning time, frame-slice peak, candidate counts and visibility cache hits.
These checks compare reduced graphs with full graphs and cover disconnected-route
fallback and cache reuse. The full fixture also checks pending-plan cancellation
and moving contacts during planning.
The destination compass shows where to turn, distance and relative height. Center its dot to face the destination; a hollow dot means it is behind you. Radiation temporarily replaces your destination with the nearest safe return point, then restores your choice when you re-enter. Alien homes are randomized across the sphere at server startup and each respawn, retaining two Scouts, two Sentinels and one Heavy.
The HUD warns within 120 m of the edge. Outside, an alert, red screen pulse and border warn of radiation, and a return marker points to the nearest safe space. Damage grows the longer you stay outside, using normal shields, hull and rescue. Returning inside immediately resets exposure. Opening multiplayer menus does not stop damage. Radiation currently starts at 1% of maximum hull per second, increasing by 0.5 percentage points each second; these rates need playtesting.
Map size targets roughly 20–45 s across with representative engine fittings, using the reachable speeds in ship PR 34. It is not a hard travel-time limit: slower/empty hulls take longer, engine-heavy fittings can be faster, and boost/acceleration affect the trip. See the game plan for examples. The ship roster from PR 34 is included. Use matching client/server builds; see Current compatibility.
Review the 960×600 radar and guidance,
1440×900 layout and
sector overview,
rotated view and
zoomed view, plus the
radiation alert.
The map integration fixture (tests/map_layout_test.gd) checks 100 random homes,
respawn and late-join replication, every boundary axis, increasing authoritative
damage, re-entry, rescue, menu behavior and packet budgets over ENet. The flight
replay (tests/map_layout_playthrough.gd) crosses the edge through actual flight,
turns back to safety and checks ship-relative guidance, keyboard/menu behavior,
real mouse range/contact selection, rescue cleanup and both layouts with a renderer.
Both check runners include these fixtures. The single-encounter network combat
test keeps unrelated aliens away from its scripted encounter so random spawning
cannot alter damage and repair expectations. Human travel, encounter-density and
radiation tuning remain pending; Linux execution is left to PR CI.
On a preview server with test tools enabled, press B at Outpost 01 and choose Preview: +100,000,000 CR. You can repeat this when you need another shopping budget, without disconnecting or restarting the server. Credits save immediately, can buy normal equipment, and survive reconnects and restarts. Seeded sessions test item behavior; use an unseeded pilot to evaluate progression speed and prices.
Allowed preview pilots also start every session with a maxed Skylab: every module at its final level with full storage. The Skylab footer has Preview: Max Skylab and Preview: Reset Skylab; reset returns modules, stock and robots to the starting values so you can test progression until your next login. In Research, Preview: +30 research points grants saved points under the same station-service rules as test credits.
The operator enables this once in the preview service environment, for example
/etc/dorbit-preview/server.env, then deploys or restarts preview:
DORBIT_PREVIEW_TOOLS=1
DORBIT_PREVIEW_PILOTS=previewDORBIT_PREVIEW_PILOTS is a comma-separated list of stable pilot IDs. Both
settings are required. Keep them out of the production service environment.
Clients cannot enable tools through their own environment or select a different
wallet. The button is hidden for other pilots and on servers without this opt-in.
Grants obey station-service rules and the credit cap. Duplicate requests cannot
grant twice, including after a reconnect or restart. Use matching client/server
builds; the original PR #15 client does not have this button.
The authenticated preview-credit checks run with both Windows and Linux check commands. They cover disabled tools, allowed pilots, actual shop purchases, duplicate requests, restart persistence, the credit cap and failed saves. Review the shop at 960 x 600.
Launch build/windows/Dorbit.exe after building, or download the Dorbit-Windows-<commit>-<attempt> artifact from a successful GitHub Actions run. Extract the artifact, then its windows.zip, before playing and keep the included third-party notices with the executable.
Set DORBIT_PILOT_FILE to your private credential file as described below. Enter the server address and UDP port in the connection menu, then choose Connect. Use matching client and server builds.
After connecting, the main menu keeps your pilot docked before entering the map. Visit Shop to buy ships and equipment, Hangar to activate a hull and equip it, Quests to accept hunting contracts, or Cargo trade to sell saved resources. Skylab manages persistent collectors, refining, upgrades, robots and shipments to ship cargo; see Skylab rules and balance. Settings and Connection are also available. Galaxy Gates shows your parts and operations for the Vashar, Korrath and Sylith gates; see Galaxy gates. Choose the amber START button on Overview to spawn at Outpost 01 with your selected ship and fitting. Esc or Back returns to the overview; these actions do not launch. Docked ships are hidden from other pilots and cannot move, fight or collect loot. Each reconnect returns to this menu with your saved credits, inventory, ships, cargo and quests.
To leave the map without disconnecting, press Esc and choose Quit to main menu. This works from anywhere on the map and returns you to the docked console, where Shop, Hangar and Quests are available before choosing Start again. Your progression and current ship health/charge remain; returning does not repair or refill the ship. Normal shield recovery and service cooldowns continue. If rescue is pending, it finishes in the menu before Start becomes available. Quit to desktop remains a separate action.
Review the native menus and offline instructions.
The menu integration replay runs in both check commands and exercises actual
ENet admission, purchases, fitting, quests, launch, observer visibility and
reconnects. Run Godot with --path . --script res://tests/main_menu_test.gd in a
rendered window to capture the overview and station pages at 960 x 600 and
1440 x 900 under build/validation/main-menu-*.png.
The opaque full-screen console disables the sector viewport's 3D rendering while
any of its pages is visible. Closing it restores rendering before the next draw;
the active camera, multiplayer simulation, physics and network session keep running. Isolated
menu previews still render on demand. Partial flight menus and the sector map
leave 3D enabled because the sector remains visible around them.
tests/menu_rendering_test.gd covers offline and authenticated server transitions,
page switching and background shield recovery/snapshots. Run it with a renderer
to capture the first restored flight frames under build/validation/menu-rendering-*.png.
Overview, Shop, and Hangar show the current layout.
The docked overview now has a live ship preview: drag to rotate, scroll to zoom, or double-click to reset. The ship material review shows all twelve hulls with textured coated armor, exposed metal and distinct cockpit glass in both the hangar and flight.
Downloading an artifact from the validation workflow does not deploy its server. To playtest an open PR, run Actions > Deploy preview for that PR, download the Windows client from that preview run and connect to the preview address and UDP port. See preview playtesting for setup. Production uses its own matching release client. Incompatible client/server RPC definitions are rejected during connection with a build-mismatch message, before combat starts. This handshake requires both sides to be updated; older servers are rejected too.
- Hold right mouse and move the mouse to steer. Use W/S for forward/backward movement, A/D to strafe, and Q/E to descend/rise.
- Start with an amber Scout near the station approach. Tab selects the on-screen alien closest to the mouse cursor, or screen center while steering; left click selects the ship under the pointer. The lock persists beyond weapon range and when you turn away or the alien returns home. Space toggles automatic lasers. Enemy encounter resets stop automatic fire while retaining the lock; death clears it.
- Keep the alien ahead, within 310 m, and clear of obstacles. Shift boosts while energy is available. Releasing movement brakes the ship.
- Scout, Sentinel and Heavy kills grant pools of 300, 1,500 and 10,000 credits respectively, split equally among eligible contributors. Return within 120 m of the green outpost marker, slow below 8 m/s, and press R to repair. Repairs require five seconds without taking damage.
Shields split each hit between shield and hull: starter generators absorb 40%, aliens absorb 80%, and depleted shield damage spills into hull. After six seconds without damage, shields recover at one twelfth of capacity per second. Destruction returns the ship to the station after three seconds and costs up to 10 credits. Hull repairs cost up to 15 credits according to the missing hull percentage, capped at the available balance so a player with no credits can recover. Scouts respawn after 10 seconds, Sentinels after 12, and the Heavy after 18. Each encounter respawns independently.
Esc opens the flight menu and releases the mouse. Choose Settings there or in the connection menu. The Controls tab adjusts mouse sensitivity from 0.1x to 3x and rebinds movement, steering, targeting, fire, boost and repair. Select an action, then press a key or mouse button. Occupied bindings swap actions; Esc cancels capture. Restore default controls resets bindings and sensitivity. HUD prompts follow your bindings.
The Audio tab has master/effects volume, mute and a test sound. The Graphics tab contains fullscreen, VSync, a typed frame rate limit, antialiasing, the performance overlay and window resolution. Enter a whole-number FPS limit from 1 to 1000, or 0 for unlimited, then press Enter or leave the field to apply and save it. The default is unlimited. VSync is off by default; enable it to synchronize rendering with your screen's refresh rate and reduce tearing. VSync may limit FPS below the entered cap. Resolution choices fit the current screen with room for borders and the taskbar. Selecting one switches to windowed mode; fullscreen uses the desktop resolution. You can also resize the window manually. Mouse steering uses unscaled screen motion so viewport scaling does not change sensitivity.
Changes apply immediately except anisotropic strength changes, which require restarting the game. Controls and graphics persist in user://settings.cfg, and existing audio preferences remain in user://audio.cfg. Esc returns to the previous menu. Fixed shortcuts remain available outside settings: F11 toggles fullscreen, F3 shows performance, F8 shows the netcode overlay, F4 toggles antialiasing, and F5/F6 cycle resolutions while paused. F10 quits from a menu. The server keeps running while menus are open; losing focus releases your controls, but incoming damage can continue.
For netcode debugging, the Graphics tab's Route connections through the network simulator (debug) option, or launching with --netsim, sends the next connection through a local relay that adds latency, jitter, loss and duplication in both directions. --netsim-rtt=MS, --netsim-jitter=MS (± round trip), --netsim-loss=PERCENT and --netsim-duplicate=PERCENT set starting conditions. The F8 overlay shows round-trip time, traffic, snapshot jitter, unacknowledged and replayed inputs, the server's input buffer and lost, late and duplicate input counts, the simulation error at each reconciliation and the smoothed visual offset that hides it, has sliders that change the simulator's conditions live, and can draw a translucent ghost at the server's position for your ship. Normal connections never use the relay, and the option is not saved.
The flight quickslot bar has ten mixed, rebindable slots (1–0 by default). Its
+ button opens item categories and allows assigning, swapping or clearing items
and changing orientation during flight. Ctrl + Alt separately edits HUD placement.
Layout and slot assignments persist independently.
See quickslot controls and extras integration.
Graphics also includes 3D render scale (Off/native, 85%, 75%, 50%), anisotropic
filtering (Off/2x/4x/8x/16x), bloom/glow and ambient occlusion toggles, shadows
(Off/Low/Medium/High), and combat effects (Off/Low/High). Antialiasing offers
Off/2x/4x/8x MSAA. Settings save on this device. Reduced render scale keeps the
HUD and menus sharp.
Combat effects Off removes existing and future laser/impact/explosion meshes;
audio and gameplay continue. Low simplifies effects and caps them at 32 effect
roots with fewer child meshes.
High retains the new lasers, shield ripples and ship-sized destruction effects.
The default remains native rendering, new lighting/filtering options off, and
High combat effects. The game continues to use Godot's Compatibility renderer.
Compatibility reads anisotropic strength at startup. Strength choices write
user://graphics-renderer.cfg, loaded by Godot before renderer initialization
on the next launch; the menu shows the active strength and any pending restart.
Filtering Off switches material samplers immediately. Ship hulls, previews and
asteroids follow the filtering mode; asteroid textures include mipmaps. Existing
Off/4x antialiasing profiles migrate to the corresponding MSAA choice.
Run tests/graphics_test.gd headlessly with an isolated APPDATA profile, then
repeat with -- --restart and then -- --filter-restart 2,
-- --filter-restart 3, and -- --filter-restart 4, to
check menu application, every startup filtering strength, persistence, malformed
preferences and effects-independent damage/rewards. tools/dev.ps1 check
includes all five runs. Run tests/graphics_playthrough.gd with a rendered window
and an isolated profile to exercise keyboard toggles/popups and capture native
Graphics menu and effect screenshots under build/validation/graphics.
These values are initial tuning settings, not a finished economy or combat balance.
The flight bar has ten customizable slots, bound to 1 through 0 by default. Default assignments are x1, x2, x3, x4, R-310, ECO-10, single-rocket fire, Hellstorm load/fire, unload and one empty slot. Keys belong to slot positions and can be rebound in Settings > Controls. Ammo slots select ammunition; Space toggles laser fire and F/G retain their dedicated rocket actions.
Click + to open the Lasers, Rockets, Hellstorm and Extras picker without stopping flight or firing. Drag an item into a slot, drag between slots to swap, or click a slot then a picker item to assign it. With no slot selected, clicking a picker item uses it directly. Clear slot removes an assignment; Reset slots restores defaults. Choose horizontal or vertical orientation. Closing the picker finishes customization. Ctrl + Alt separately edits HUD placement and stops local input while open.
Assignments and orientation persist on this device in user://quickslots.cfg.
HUD layout reset does not clear assignments. Empty or unavailable actions remain
disabled; Extras is empty until usable extras are implemented. See
quickslot controls, integration and validation for details
and current screenshots.
Buy the seven utilities under Shop > Extras, then fit them in Hangar. REP-1 and REP-2 repair hull outside combat; NC-RRB starts a fitted robot automatically. GEMINEX-XI doubles cargo capacity. Slot CPU 1 adds two extra slots while occupying one base slot. Each ship can fit one utility per type, with REP-1 and REP-2 sharing the repair type.
Away from Outpost 01, press R (the rebindable Repair action) to start a fitted robot after five seconds outside combat, including while moving. Incoming damage or firing interrupts it. Station repairs retain their paid instant behavior. Open quickslot editing with +, then click a fitted CPU in the Extras picker or its assigned bar slot to toggle ON/OFF. Unfitted CPUs show UNFITTED; pending changes show WAIT. Ammunition spending and generator resource use default off; choose x1/x2/x3 for the buyer in the quickslot Extras menu. It purchases 10,000 rounds below 1,000 remaining at ordinary ammo prices. The Generator CPU consumes one best available resource when a shield/engine boost expires and preserves existing reserves. Both require a launched living ship.
Removing Slot CPU 1 returns equipment from its added slots to inventory. Cargo capacity removal is blocked until excess cargo is sold. Items and settings persist with the pilot. Client and server must both use network schema 21. See the agreed mechanics and prices and generated artwork and prompts.
Run tests/extras_test.gd with Godot to validate authenticated purchases, fitting,
repair interruption, automatic supplies and reload. A rendered run captures shop,
hangar and repair HUD screenshots under build/validation/extras-*.png.
Select laser ammo through a quickslot (1 / 2 / 3 / 4 by default) or the picker. x1 uses fitted laser damage; x2, x3 and x4 apply 2x, 3x and 4x damage, including laser bonuses against aliens. Each fitted laser on the active ship consumes one round per successful volley. For example, four fitted lasers consume four rounds. Blocked shots use none, and insufficient rounds for the whole volley stop fire. The destination tracker can be moved in HUD placement mode.
The HUD and shop use generated metallic energy-cartridge artwork. Pilot lasers match their icons: ice-blue x1, cyan x2, amber x3 and violet x4; aliens fire red. Each network shot carries its firing ammo type so observers see the same color. See the ImageGen prompts for the asset source.
Each new pilot receives 10,000 x1 shots. Ammo is shared across owned ships and survives rescue, reconnects and server restart. In Shop > Ammo, x1/x2/x3 cost 10 / 50 / 100 credits per 100 shots, as confirmed by the user. The quantity field buys batches of 100, up to 10,000 batches / 1,000,000 rounds per order. x4 is reserved for future quests and special rewards and cannot be bought. Station purchase restrictions and duplicate protection apply.
Current saves use schema 8; migration grants missing starter ammo once.
Back up the entire data directory before updating; older servers cannot read the current schema 8. Consumption
is committed before each volley, and a failed save stops progression. Client and
server need matching builds. Run res://tests/ammo_test.gd headlessly or with a
renderer to check purchases, multipliers, inventory recovery and HUD interactions;
rendered runs save shop and flight views under build/validation/ammo-*.png.
Manual rockets share the flight quickslot bar with lasers. Select rocket ammunition, then press F (or use the single-rocket quickslot) with an alien selected and in range. G loads an empty equipped Hellstorm launcher; press it again to fire the loaded volley. Loading needs no target. Unload returns reserved rounds to availability. F/G can be rebound in Settings. Lasers continue independently. Rocket Turbo and automatic rocket firing are deferred.
Buy rocket batches under Shop > Ammo and HST-1/HST-2 under Weapons, then fit the
launcher in Hangar's launcher slot. Uridium reference prices use 100 credits per
Uridium. Balance settings are in scripts/ammunition.gd and
scripts/rocket_weapons.gd; see the game plan.
Use matching network-schema-19 client/server builds and save schema 8. Back up server data before upgrading; older servers need the previous
ledger for rollback. New/migrated pilots receive 100 R-310 once.
Run tests/rocket_test.gd with Godot (headless for authoritative checks, rendered
for UI captures). It exercises actual authenticated ENet intentions, purchases,
reservations, independent weapons, deterministic hits/misses and replay protection.
Destroyed Scouts, Sentinels and Heavies leave glowing resource boxes. Fly within 12 m to collect them automatically. The Liberator holds 400 units, with one unit per resource; other hulls use their reference capacities in the ship catalog. A full hold leaves loot in space; partial pickups take valuable resources first. Boxes are shared, with the nearest living ship collecting first, and expire after three minutes. The server keeps at most 64 boxes.
Press B at Outpost 01 and select Trade raw materials. Eight ore cards show the resource images, unit prices, held quantities and sale totals. Use minus/plus or type a quantity, then choose SELL to sell that amount; Sell all cargo sells the entire hold. Sales require the usual station conditions: alive, within 120 m, no faster than 8 m/s and five seconds since the last hit. Resource value increases in this order: Prometium, Endurium, Terbium, Prometid, Duranium, Xenomit, Promerium, Seprom. Provisional prices are 10, 20, 40, 80, 160, 200, 320 and 640 CR per unit. Stronger aliens drop larger quantities and higher resource tiers. Full drop tables are in GAME_PLAN.md.
Cargo belongs to each owned ship and survives death, reconnects and restarts. Collected cargo and sale credits are server-owned saves. Uncollected boxes remain session state. Skylab shipments can overfill their dispatch ship if cargo fills during transit; collection then waits for free space. Real Xenomit is an eighth collectible and saleable mineral, with a custom development price of 200 CR and Heavy drops of 1–3 units. Save versions 1–7 migrate to schema 8; preserve a pre-migration backup when deploying. Credential rotation with tools/pilots.py retains cargo and industry.
res://tests/resources_test.gd checks actual ENet kills, replicated and late-join loot, two-pilot pickup conservation, full and partial holds, client authority, station restrictions, per-resource and sell-all actions, duplicate sales, restart recovery, wallet limits, expiry and failed writes. Run it headlessly or with the renderer to capture the cargo panel and resource boxes at 960 x 600 under build/validation. Windows and Linux check scripts include it. Operator-tool tests cover cargo-preserving migration and credential rotation, and reject corrupted cargo without altering the ledger.
Review captures show the full cargo panel, confirmed sale and resource box in space (captured before the HUD marker and caption were removed). Prices and capacities still need human balance playtesting.
Open Refining in the shared menu anywhere in the sector. Refining uses the active ship's cargo and works while moving or recently hit. Its Refining tab shows the ore recipe tree; select Prometid, Duranium or Promerium, choose an amount and confirm. Prometid uses 20 Prometium + 10 Endurium; Duranium uses 10 Endurium + 20 Terbium; Promerium uses 10 Prometid + 10 Duranium without Xenomit. Seprom is produced in Skylab, not ship refining; Seprom in cargo can boost equipment.
Missing intermediates are refined automatically: existing Prometid and Duranium are used first, then only their shortfall is made from raw ores. The preview shows the actual cargo cost and automatic steps; Max includes shared Endurium costs. One Promerium from raw ores uses 200 each of Prometium, Endurium and Terbium. The complete batch saves together, with no partial spending on shortages or failure.
The Update tab retains Outpost 01 service restrictions and has a resource bar above illustrated equipment cards. Drag a held resource onto lasers, shields or engines, then choose an amount and confirm on the right. Selecting both cards also works without dragging. Compatible drop targets highlight; a drop never spends cargo by itself. Each equipment card's bottom-left square shows its currently applied resource, with remaining rounds or time below. Previewing a replacement keeps the old icon until confirmed; depletion clears it.
The boost amount field caps typed input, spinner changes and Max at current stock. Selecting another resource or receiving a cargo update refreshes the cap. Empty stock shows zero and disables editing and applying boosts.
Prometid adds 15% weapon damage; Duranium adds 10% shield capacity/speed; Promerium adds 30% weapon damage and 20% capacity/speed; Seprom adds 60% weapon damage and 40% capacity, with no engine bonus. Each unit provides ten individual laser rounds or ten minutes. Four lasers use four rounds per volley, and a final partial volley boosts only the remaining rounds. Adding the same resource extends the reserve at a fixed percentage. Replacing it requires acknowledging the discard warning. Rocket boosts show Coming later and cannot consume resources; manual rocket weapons are available independently.
Boosts stay with their hull. Timers count while online in the active ship, including menus and rescue, and pause when disconnected or using another hull. Shield capacity and fitted cruise/boost speeds reflect the active multiplier; applying a shield boost does not refill charge or alter absorption. Durations checkpoint every five seconds and flush on disconnect/shutdown and successful station changes; an abrupt crash can restore up to five seconds. Weapon rounds commit before damage. Server writes validate ingredients, compatibility, quantities and duplicate protection. Refining requires a living ship and the current ship life; equipment boosts also require station restrictions.
This requires matching network-schema-19 builds. Ledger schemas 1–7 migrate to
schema 8, preserving progression and adding any missing reserves and rocket ammo; keep a backup for
rollback. The provisioning tool preserves and validates boosts during rotation.
res://tests/resource_upgrades_test.gd exercises authenticated refining and
upgrades, partial volleys with mixed lasers, online timing, restart, duplicate
protection, unsupported resources, failed writes and real mouse menu actions.
Run it with a renderer for 960 × 600 and 1440 × 900 screenshots under
build/validation. Both check runners include it. Human balance playtesting
remains necessary.
The upgrade fixture includes real drag-and-drop at 960 × 600 and 1440 × 900, including drops onto corner badges, compatibility, replacement confirmation, pending/offline actions and icon updates on depletion. Review the refining menu, compact Update tab and active boosts and replacement warning. Human economy and balance playtesting remains necessary.
Open Research in the station console to spend research points from hunting
contracts on eleven skills in Defense, Economy and Offense rows.
Each of the five levels per skill costs one point plus refined Skylab stock
(Prometid, Duranium, Promerium and Seprom); a skill unlocks when the previous one in
its row is complete. Pilots can hold 30 levels at once. Reset refunds points, not
materials, for 100,000 credits, doubling each time up to the 2,000,000,000-credit
wallet cap. Learning and resetting follow station service rules and apply to the
flying ship immediately. See the agreed values.
res://tests/research_test.gd covers the rules, contract rewards, authenticated
learn/reset transactions and ledgers reopening after capped resets; the offline
menu test captures the page.
Review the Research page at 1440 × 900.
The current network schema is 19 (FlightSession.NETWORK_SCHEMA), including
four-map membership, transfers, the shared collision layout, owner-only pilot
progress and batched binary world snapshots. Clients and servers must use
matching builds and protocol fingerprints; the connection handshake rejects
incompatible builds before gameplay. Save schema 8 is separate from the
network schema. Update the provisioning tool alongside the server and back up
the entire data directory before upgrading. See Saves, backups and recovery
for migration and rollback instructions.
The server supports ten client pilots, with no host player. It controls movement, boost, all twenty aliens across four maps, gates, damage, repairs, rewards, destruction and respawning. It keeps running when the last player leaves. F7 opens the connection menu; Disconnect returns to that menu. A server shutdown also returns clients to the menu.
The client remembers the last successfully connected address and UDP port on this device in user://connection.cfg. Failed or cancelled attempts do not replace it. After a disconnect, the fields stay filled in; choose Connect again or press Enter on the focused button to retry. You can edit either field or cancel a pending connection. Reconnecting is always manual. Connection messages identify the attempted endpoint and report failure or timeout without guessing the network cause.
Other living pilots have cyan markers with shield and hull bars and current/maximum values. Hull turns red at 30% or below. Their health reflects server state, including repairs. Markers disappear on destruction and return on respawn.
Each alien kill splits its credit pool among connected pilots who damaged that alien in its current life; integer shares differ by at most one credit. Dead contributors remain eligible while connected. Spectators receive no reward. Each contributor receives one kill. Leash returns reset contribution eligibility while preserving hull damage and shield charge; returning aliens cannot be damaged. Hull resets after 30 continuous seconds without engagement, a provisional playtesting delay. Shields follow the pilot regeneration rules: six seconds without a hit, then one twelfth of maximum capacity per second. Returning home does not refill either pool. Station protection blocks combat in both directions. Repairs and the up-to-10-credit rescue fee are charged to the requesting pilot's saved server balance. Credits are capped at 2 billion.
Credits survive disconnects and server restarts. Ship position, health, kills and encounter objectives reset on a new connection. The former solo/listen-host modes are development fixtures with temporary wallets, accessible by launching with --offline after Godot's -- separator or Dorbit.exe -- --offline. Offline mode opens the main menu: START enters the solo encounter, and the Esc menu's Quit to main menu returns to it. Every page can be browsed offline before and after launch, including all three Settings tabs. During flight, use Esc > Ship menus, or B (Shop), I (Hangar), C (Quests) and F7 (Connection). These open the same header and sidebar without docking. Resume flight or Esc closes the menus; START is shown only on the preflight Overview. Hangar shows the solo starter fitting; catalog and quest selections are local previews. Buying, selling, fitting, hull activation and accepting or abandoning quests stay disabled until connected to a dedicated server. Offline fixtures cannot read or transfer the dedicated server's wallets.
Every pilot, including existing ones, starts a personal ten-step prologue that teaches the game through Outpost 01's first operations. Commander Vance, Chief Engineer Brell and Dr. Sato brief each step in an incoming-transmission box below the flight card, with each speaker's portrait beside their lines, which shows the current step, objective and a hint using your bindings. Positional steps show a holographic objective in space: waypoints and the recorder use a camera-facing gate that fades as you fly through it, scans use a gridded field that fills as the scan progresses, and every site has a tall locator beam. A short burst marks each completed site. Each step also opens a Controls pop-up below the destination card with two or three key caps for that step, such as steering and thrust, map and autopilot, targeting and lasers, rockets, or the station shortcuts. Rows tick off as you press them, and the pop-up closes shortly after you have tried each one. Move or hide it like any other panel in the HUD editor (Ctrl + Alt). Each site is also a selectable contact on the sector map, so M and P fly you there.
| Step | Objective | Reward |
|---|---|---|
| Comms Check / Survey Run | Fly to two waypoints | 300 / 500 CR |
| Ring Scan | Stay inside the scan field for 5 s | 800 CR |
| First Contact / Heavier Resistance | Destroy 2 Scouts, then a Sentinel | 1,200 / 2,500 CR |
| Black Box | Fly into the garrison flight recorder | 1,500 CR + 1 RP |
| Field Salvage | Collect 10 resource units from fresh loot | 1,500 CR |
| Beacon Parts | Deliver 5 Prometium at the Quests board | 2,000 CR |
| Light the Beacon | Stay at the approach beacon for 6 s | 2,000 CR |
| Standing Orders | Hold any hunting contract | 5,000 CR + 3 RP |
Press C and choose Story to read briefings, review completed steps, deliver cargo or skip the current chapter. Skipping asks for a second press and pays that chapter's remaining step rewards. Kills count with the hunting-contract contribution rules; scans restart when you leave the field; the recorder and the lit beacon are personal. Delivery and skipping use station service rules. The server saves each step and its reward together in the equipment record, so save schema 8 is unchanged; network schema 21 requires matching builds. Run res://tests/story_test.gd for the full authenticated playthrough, and run it with a renderer to capture build/validation/story-*.png. Review the flight card and transmission, the waypoint gate, the scan field, the controls pop-up and the Story tab. Run res://tests/objective_art_preview.gd with a renderer to capture every objective visual under build/validation/objective-review. Sites, quantities and rewards need playtesting.
The prologue hands over to a six-step chapter that explains Skylab and research. Pilots who already finished or skipped the prologue start here.
| Step | Objective | Reward |
|---|---|---|
| Industry Online | Start a Basic module upgrade in Skylab (Esc > Skylab) | 1,000 CR + Prometid x50, Duranium x50 in Skylab |
| Countermeasures | Learn any research level at Outpost 01 (Esc > Research) | 2,000 CR + 1 RP |
| Field Test | Destroy 3 Scouts | 2,500 CR |
| Raw Supply | Start an ore collector upgrade once Basic allows it | 1,500 CR |
| Supply Line | Send a Skylab shipment to your ship from Transport | 1,500 CR |
| Shield Samples | Destroy a Sentinel | 3,000 CR + 2 RP |
The granted stock covers a first research level, which also costs one of the prologue's research points. Skylab and research steps complete with the command that satisfies them, and the Skylab or Research confirmation names the finished step. Contact transmissions wait while a menu is open. The Story tab lists each chapter under its own heading and skips one chapter at a time. Rewards and dialogue need playtesting.
Press C at Outpost 01 to accept repeatable hunts: 3 Scouts for 900 credits, 2 Sentinels for 4,500, and 1 Heavy for 30,000. They also award 1, 2 and 4 research points. All three can run together, with one active run of each offer. The final qualifying kill automatically pays its reward in flight and clears that hunt. The board and flight HUD track all active hunts. C or Esc returns to flight.
Accepting or abandoning a hunt requires the same position, speed and damage cooldown as repairs. Each eligible contributor earns a full kill of matching progress after acceptance, separately from split kill credits. Death preserves progress. Abandonment costs nothing and removes only the selected hunt. Completed or abandoned offers can be accepted again at the station. Counts and rewards need playtesting.
Contracts and their accepted terms are saved with the pilot. Kill progress, credit shares, automatic rewards and cleared runs commit together. Completed runs cannot pay twice. A wallet too close to the credit cap keeps the whole reward pending and pays automatically after credits are spent. Existing version-1 ledgers without contracts load with no active hunts; legacy single-contract saves retain their run and progress, and completed legacy hunts pay automatically on connection. Malformed contract data stops startup for recovery. Updated saves use the contracts collection; use matching client and server builds and back up saves before upgrading. Older single-contract builds cannot read the new progression correctly.
The operator assigns each pilot a stable lowercase ID and a random 256-bit token. There is no self-registration or password service. Stop the server before adding pilots or rotating credentials. Keep data outside the checkout and exported build, on a local filesystem.
On Linux, as the user that will run the server:
umask 077
mkdir -p "$HOME/dorbit-data" "$HOME/dorbit-credentials"
python3 tools/pilots.py "$HOME/dorbit-data" alex "$HOME/dorbit-credentials/alex.json" --init
python3 tools/pilots.py "$HOME/dorbit-data" sam "$HOME/dorbit-credentials/sam.json"
export DORBIT_DATA_DIR="$HOME/dorbit-data"
bash tools/server.sh runUse --init only for the first pilot in a new ledger. A missing or invalid save prevents startup. The tool never prints tokens. Give each player only their own credential file through a private channel. Protect pilots.json, its backups, and credential files; the saved verifier can also authenticate. The Linux helper applies umask 077; apply it yourself if launching Godot directly. On Windows, use a directory accessible only to your user account.
On the Windows client, launch from PowerShell with the credential path set:
$env:DORBIT_PILOT_FILE = 'C:\Users\YOUR_USER\Dorbit\alex.json'
& 'C:\Games\Dorbit\Dorbit.exe'The client reads this file when connecting. The file contains only id and token; it contains no balance. For another pilot, restart with that pilot's file. Connection-menu integrations can supply FlightSession.credential_id and credential_token before calling the existing join(address, port) method. The menu remembers successful server addresses separately from pilot credentials.
Authentication uses a fresh server challenge and HMAC-SHA256 proof. The token is never sent over ENet. Unknown IDs, wrong proofs and duplicate logins fail before spawning or receiving world snapshots. The first connected login keeps its session; the newcomer is rejected. After an abrupt network loss, wait for ENet to detect the disconnect before retrying. Authentication attempts time out after five seconds. Gameplay RPCs use the authenticated peer mapping and never accept a pilot ID or balance.
ENet gameplay traffic is not encrypted and this handshake does not authenticate the server. Use a trusted LAN or private VPN, such as WireGuard, for the group. It is not a public-internet account or transport security service.
To replace a lost or exposed credential while preserving credits, stop the server and run:
python3 tools/pilots.py "$HOME/dorbit-data" alex "$HOME/dorbit-credentials/alex-new.json" --rotateDistribute the new file and restart. The old token no longer works. To revoke access without redistributing a token, rotate it and retain the new file with the operator. Keep the same ID to keep the wallet. Do not rename a pilot or change credentials while the server runs.
Press B within 120 m of Outpost 01 while moving at most 8 m/s and five seconds clear of damage to open the station shop. Purchases go into inventory. Press I for ship equipment, with the active hull's model preview and owned-ship selector on the left, its laser, shared generator and reserved extra slots in the middle, and scrollable inventory on the right. Drag an item into a compatible empty slot to equip it, or from a slot back into inventory to remove it for free. Shields and engines share generator slots. Remove an installed item before replacing it. You can also select an item and click an empty slot, or use Tab and Enter with the slot and removal controls. The screen previews resulting stats and explains blocked actions. The server keeps running while it is open.
B, I and C switch between Shop, Hangar and Quests in the shared sidebar. Only one page is visible at a time; Esc resumes flight and F7 opens Connection. The flight pause popup stays hidden while browsing menus.
The shop has category tabs, a scrollable item grid, a large item preview and a purchase summary. Browse Weapons, Generators, Shields or Engines, select a card, then type a quantity or use + / − to change it by one. Use BUY to purchase the selected 1–999 copies into storage. The summary shows the total cost and remaining balance; insufficient funds reject the entire batch. Selecting another item resets the quantity to one. All equipment shows 18 reference models: five lasers, seven shields and six engines. LF-4 and SG3N-B00 show their stats but remain unavailable until future loot/assembly. Ships lists all twelve modeled hulls with their stats, credit prices and ownership. Buy ship delivers an empty hull to the hangar. Choose it in Ship equipment and press ACTIVATE at the station; fittings and cargo stay with their hulls, and switching does not repair or refill them. Each model can be owned once, including the free Phoenix; the starter Liberator counts as already owned. See playable ships for the roster, prices and reference sources. The summary shows owned copies, the price, the remaining balance and any purchase blocker. Purchases do not equip items or change ship stats.
Review the new lasers, shields, engines, unavailable LF-4 and mixed fitting at 960 x 600. The shop test covers category filters, catalog scrolling, real mouse card selection, B/I/C navigation, authenticated purchases, double-click blocking, ownership updates, insufficient funds, station restrictions and layout with preview tools at 960 x 600 and 1440 x 900. It runs in both standard check commands. To capture fresh shop screenshots, run Godot with --path . --script res://tests/shop_test.gd in a rendered window.
Review the equipment screen at 960 x 600 and the lower generator and extra slots. Open Hangar in the docked main menu to prepare equipment before Start, or press I near the station during flight. Inventory groups weapons, shield generators, speed generators and extras in that order. Choose All equipment or a category in the inventory filter. Shift + left click equips a stored item into the first compatible empty slot on the active ship; full slots leave the item in inventory with an explanation. Shields and speed generators share the generator slots; extras accept the utilities described above. Back and Esc return to the docked overview without launching; Start keeps the prepared fitting.
The equipment test drives Godot's mouse drag routing through authenticated RPCs for install and removal, rejects incompatible and occupied slots, and checks ordinary clicks, docked Shift-click fitting, rapid-click and pending-request blocking, station restrictions and persistence. It also checks Hangar navigation, Back/Esc, filter retention and launch with the prepared fitting. Presentation fixtures check grouping across the expanded equipment catalog, every category filter, selection clearing, scrolling with 31 and 39 stored items, and flight/docked layouts at 960 x 600 and 1440 x 900 with Start accessible. Review the docked grouped inventory and shield filter. Run res://tests/equipment_test.gd with a renderer to capture fresh views under build/validation.
The regular Liberator has 116,000 hull. New pilots start with LF-1, SG3N-A01 and the original Ion engine installed: 65 laser damage, 1,000 shield capacity at 40% absorption, and +8 m/s cruise and boost speed. The Liberator has 33 m/s base cruise, 75 m/s base boost and 400 cargo units, giving 41/83 m/s with its starter engine. Existing starter items and purchased Ion engines retain their fitting and bonuses; Ion engines are no longer sold. LF-1 costs 10,000 CR and SG3N-A01 costs 8,000 CR. New G3N engines add +2/+3/+4/+5/+7/+10 m/s. Uridium-priced items cost their reference price times 100 credits: LF-2 is 500,000 CR, LF-3 and SG3N-B02 are 1,000,000 CR each, SG3N-B01 is 250,000 CR, and G3N-6900/G3N-7900 are 100,000/200,000 CR. See the complete item table and sources.
LF-3 adds 175 base damage and 15% more for that laser against aliens (201.25 total) per installed copy. Its bonus never multiplies other lasers. FS-01 adds 3,200 shield, 70% absorption and +6.25% regeneration; its regeneration bonuses add together and multiply normal shield recovery after the existing six-second delay. Shield capacity adds, while absorption is weighted by each generator's capacity. Current fitting and installation previews show these special bonuses. Fitting changes do not repair or refill your ship. Inventory and fittings survive rescue, reconnects and restart. Equipment purchases require the persistent dedicated server; the offline development fixture uses the same starter combat and flight values. Reference prices need human progression playtesting with the existing rewards.
Client and server must use matching network-schema-19 builds; the compatibility handshake rejects older builds before gameplay. Save schema 8 adds the combat journal to schema 7's persistent industry, ammunition and combat boosts; Skylab uses credits exclusively. Update the operator provisioning tool with the server so credential rotation preserves pending combat debits, every equipment model and industry jobs.
Kills now pay shared pools of 300 CR (Scout), 1,500 CR (Sentinel), and 10,000 CR (Heavy). Resource sales pay 10 / 20 / 40 / 80 / 160 / 200 / 320 / 640 CR per unit for Prometium, Endurium, Terbium, Prometid, Duranium, Xenomit, Promerium and Seprom. Matching contracts add the full reward above to each eligible pilot. Five Scout contracts plus sold loot fund a 10,000-CR LF-1; Sentinel hunts fund early ships, while Heavy contracts support the larger hull prices. See income assumptions for solo/group totals and provisional pacing. Existing accepted and pending contracts keep their saved terms; new offers use the increased payouts. Held cargo sells at current prices. Use matching client and server builds.
tests/economy_test.gd earns and purchases an upgrade from a zero wallet using
minimum Scout loot, checks three-pilot Heavy shares and full contract payouts,
rejects repeated destruction payouts, and reloads the earned equipment and
credits after restart. Both check runners include it. Timing still needs human
playtesting; the test exercises transactions rather than travel time.
The save is a schema-8 pair: DORBIT_DATA_DIR/pilots.json is the full snapshot and pilots.json.combat holds subsequent ammunition and boost transactions. Both files are required, even when the journal has only its header. Versions 1–7 migrate before the server opens its port, retaining progression and the existing industry/rocket migrations. Keep a dated copy of the entire data directory before upgrading: older servers and provisioning tools cannot read schema 8. Migration preserves the previous snapshot in .bak, which advances with normal saves. Modern records with missing or invalid equipment or industry fail validation rather than receiving replacements. The updated provisioning tool replays pending combat before rotating credentials, adding pilots or changing Premium, and checkpoints without restoring spent ammunition. See combat persistence for format, recovery boundaries and benchmarks.
Every reward, repair charge, rescue fee, purchase and fitting change is committed before the server confirms it. All contributors' shares use one commit. Full snapshot writes use a sibling temporary file, flush and verify its contents, then rename over the destination. pilots.json.bak includes all committed combat debits preceding that checkpoint. Each laser/rocket debit appends a small ordered, checksummed journal record, flushes and verifies it before damage or launch; laser ammo and resource reserves commit together. Full economy saves, scheduled industry saves, clean shutdown and a 1 MiB journal limit checkpoint the journal. A save failure stops simulation and exits with code 1 before granting the pending transaction.
Each pilot's equipment record contains owned ship IDs, the active ship, item IDs with a single ship/slot location, and a successful-request sequence. Empty ship and slot strings mean storage. Inventory is sent reliably only to its owner. Player snapshots, map transfers and dock acknowledgements give every viewer on the map only public ship state: position, rotation, velocity (transfers and dock acknowledgements only), boost energy, hull, shield, flight life, combat and movement stats, hull model, docked state, map, radiation exposure and repair-robot state. Credits, kills, objective stage, rescue countdown and hunting contracts go only to the owning pilot, like ammunition, boosts, cargo and inventory. Purchase and fitting requests supply the next sequence and the current life, never a pilot ID, price or stat bonus. Retrying a successful sequence refreshes inventory without applying another transaction. After reconnecting, review the server inventory before making a new purchase.
Only one server or provisioning tool may own the directory. pilots.json.lock is an exclusive directory lock. Clean shutdown checkpoints pending combat and removes it. On Linux, use tools/server.sh run: its launcher translates SIGTERM and Ctrl+C into a scene-tree shutdown, allowing the server to release the lock. Signaling Godot directly bypasses this launcher. A crash, SIGKILL, power loss or shutdown timeout can still leave the lock behind and requires operator recovery. Missing, malformed, unsupported or out-of-range data fails closed, including a missing, mismatched, damaged or incomplete journal. The server does not replace invalid progression with zero balances. Never edit or replace either file while the server runs.
Recovery is an operator action:
- Stop the server and confirm no other process uses this data directory. Copy the entire directory elsewhere before changing anything, including
.bak,.tmp,.bak.tmpand the lock. - Inspect the snapshot and journal together. A crash alone leaves their complete records replayable; retain both when valid. If either is invalid or missing, restore a known-good stopped-server copy of the whole directory. A temporary file may contain an unconfirmed transaction; preserve it for inspection rather than promoting it automatically. To recover from the rolling snapshot backup, follow the explicit journal reset procedure in combat persistence; copying
.bakalone can mismatch the journal or roll back spent rounds. - Move leftover
.tmp,.bak.tmpand.combat.tmpfiles out of the data directory, remove the now-stale emptypilots.json.lockdirectory, and fix any disk-space or permission problem. Restart with the sameDORBIT_DATA_DIR. The server validates and replays the pair before opening its port. - Reconnect with an existing pilot and verify credits, ammunition and boosts. Restoring an older backup rolls back later transactions and credential rotations. Rotate exposed credentials again after a restore.
Keep dated copies of the entire data directory on another disk or machine, especially before provisioning and server updates. Stop the server while taking a copy. The automatic .bak is one full checkpoint old, not one volley old, and does not protect against disk loss. Godot's runtime flush does not guarantee directory metadata reaches physical storage before sudden power loss; recovery may require a backup after a machine or storage failure. Process restarts replay complete combat transactions. Public accounts remain outside this slice; owned ships, fittings and cargo persist.
Periodic off-machine recovery provides an age-encrypted stopped-server pull operation, bounded receiver retention, timer templates and a disposable restore rehearsal. The destination, RPO, alert delivery and production schedule still require operator configuration; repository tests do not install it.
Requires Linux x86-64, bash, curl, python3 and sha256sum. On this Windows checkout, run in PowerShell:
wsl -d Ubuntu -- bash /mnt/c/Users/timbe/Desktop/Projekte/Dorbit/tools/server.sh setup
wsl -d Ubuntu -- env DORBIT_DATA_DIR=/home/YOUR_LINUX_USER/dorbit-data bash /mnt/c/Users/timbe/Desktop/Projekte/Dorbit/tools/server.sh runsetup downloads and verifies the pinned Godot 4.7.2 Linux runtime. It is needed once. Provision pilots inside Ubuntu before run, using the instructions above. Replace the checkout path and YOUR_LINUX_USER with your own paths. Each new wsl invocation needs DORBIT_DATA_DIR; an export in another Ubuntu terminal does not carry over. run imports the project and starts a headless server on UDP 24567. Leave that terminal running; Ctrl+C stops the server. No graphical Linux desktop or export-template download is needed.
Find Ubuntu's address from PowerShell:
wsl -d Ubuntu -- hostname -IEnter that WSL IPv4 address in the Windows client's connection menu, with port 24567. WSL's address can change after restarting. On this machine, the WSL IP worked for UDP; 127.0.0.1 did not. Localhost may work with other WSL networking configurations.
From a Linux checkout, the equivalent commands are:
bash tools/server.sh setup
bash tools/server.sh runAppend --port=24600 to run to choose another UDP port, and use the same port in the client. For a VPS, clients use its reachable IP or DNS address and its firewall must allow the selected UDP port. Other PCs reaching WSL need suitable mirrored networking or UDP routing and Windows/WSL firewall rules; TCP-only netsh portproxy does not forward this game's UDP traffic. The helper does not change firewall rules.
To build and play this checkout or T3 worktree offline, run this one command from its root folder:
powershell -NoProfile -ExecutionPolicy Bypass -File .\play.ps1play.ps1 installs the pinned Godot engine if missing, builds
build/windows/Dorbit.exe, and launches it with -- --offline. Run the same
command after changing code. Existing tools and imported assets are reused;
each new worktree gets its own tools on the first run. Setup or build errors
stop the script before launch. The script also works from another directory
when invoked by its full path.
Offline play uses temporary progression and previews of the station menus; purchases, fitting and quests require the dedicated server. Use the deployment workflow and matching client/server builds for online play.
The helper downloads the official Godot 4.7.2 editor and verifies its SHA-256 checksum. Building also downloads the matching export-template archive, about 1.3 GB, and extracts only the Windows templates. Tools and generated builds stay out of Git.
Run from the repository root with PowerShell and RTK:
rtk proxy powershell -NoProfile -ExecutionPolicy Bypass -File tools/dev.ps1 setup
rtk proxy powershell -NoProfile -ExecutionPolicy Bypass -File tools/dev.ps1 check
rtk proxy powershell -NoProfile -ExecutionPolicy Bypass -File tools/dev.ps1 buildUse run to play from source or editor to open Godot. You can also import project.godot into an existing Godot 4.7.2 installation. RTK is a command wrapper, not a game dependency.
If RTK is not installed, run these directly in PowerShell from the checkout:
powershell -NoProfile -ExecutionPolicy Bypass -File tools/dev.ps1 setup
powershell -NoProfile -ExecutionPolicy Bypass -File tools/dev.ps1 runSetup is needed only once. To produce build/windows/Dorbit.exe, replace run with build. To run the automated checks, replace it with check. Running from source does not need export templates or a separate build.
The project uses Godot Compatibility rendering with 4x MSAA by default. Committed ship, alien and sector assets are included; Blender is only needed to regenerate art, not to run or build the game.
For a connection diagnostic, launch the source runtime or exported client with
--headless -- --print-protocol. It prints DORBIT_PROTOCOL=<hash> and exits
without connecting or requiring credentials. Matching builds report the same hash.
tools/dev.ps1 build compares source and exported Windows fingerprints.
For a repeatable ten-client Linux server workload, CPU/memory measurements and their limits, see PERFORMANCE.md. Headless simulation measurements do not establish rendered client FPS.
check imports the project and runs headless integration tests against the actual scene and physics world, network checks with separate ENet peers, and a complete hunt-and-repair replay. It covers input actions, shield and hull damage, cooldowns, range, firing arcs, obstacles, rewards, repairs, rescue, movement, mouse steering, pause, joining, replication, and disconnects.
Settings checks also cover rebinding, conflicts, cancellation, default restoration, sensitivity, volume, graphics and persistence across processes. Run res://tests/display_test.gd with a renderer and an isolated APPDATA directory to capture all three settings tabs at 960 x 600, 1440 x 900 and 1920 x 1080, and check fullscreen/resolution changes. Run it again with -- --restart to check saved values and restore the test profile's defaults. The test changes local preferences, so do not run it against your normal player profile.
Settings review captures at the minimum window size: Controls, Audio, Graphics.
For a rendered hunt-and-return replay:
rtk proxy .tools/godot/Godot_v4.7.2-stable_win64_console.exe --path . --script res://tests/flight_playthrough.gdThe replay opens a 2560 x 1440 window, disables VSync for measurement, and saves screenshots under build/validation. Its scripted hunt ignores focus loss from capture tools; normal play still pauses input and disables fire on focus loss. These changes apply only to the replay. VSync is off by default and can be enabled in Settings > Graphics.
GitHub Actions runs the Windows checks, exports the Windows client, and tests the dedicated server on Linux for each pull request. bash tools/server.sh check covers ten authenticated clients, combat, reconnects, restart recovery, duplicate logins, malformed credentials, corrupted saves and write failures. It also starts separate Linux processes to test SIGTERM, Ctrl+C, repeated restart, concurrent-server exclusion, crashes and shutdown timeout. Tests provision isolated disposable data directories under Godot's user-data directory or the system temporary directory; they do not read production credentials or saves.
The Scout hunt-and-repair replays follow the selected alien through 3D flight. For a two-client Windows-to-Linux replay, provision two fresh test pilots and run the server on port 24684 with a disposable data directory. Set a different DORBIT_PILOT_FILE for each Windows Godot process, then launch with --path . --script res://tests/dedicated_client_playthrough.gd -- --address=YOUR_WSL_IP --label=a, using --label=b for the other. Start both within ten seconds. Each replays the hunt and repair loop; rendered runs save screenshots under build/validation.
Dated implementation results, benchmark measurements, screenshots and assertion counts are preserved in Historical implementation and validation notes. They describe the builds tested at the time, including older reward values and schemas; they are not current play instructions or guarantees about today's build. Use the current instructions above and the check commands in Validation.
See the CI performance investigation for measured cache effectiveness, remaining bottlenecks and ranked optimization options.
Validation uses sparse checkouts for the change classifier, which gets only CI
tools and its test inputs, and release publishing, which gets only
tools/ci-deploy.py. Linux and Windows builds use full working checkouts. Art
authoring sources live outside the repository. Linux packaging still archives
the complete revision from Git.
Validation checks the exact Linux release staged by git archive once. Packaging
still runs the full server suite before publishing a release; it does not reuse a
success result from the working checkout. Godot setup verifies the pinned archive
again before extracting the staging executable.
Linux and Windows cache derived resources and a per-asset manifest in
.ci/import-cache, alongside the existing pinned tool caches. OS/engine-specific
fallbacks are validated against source, import settings, hook dependencies,
project context and output hashes before seeding .godot/imported. Changed
resources reimport; unchanged resources are reused. Script/class indexes and
editor state are regenerated. PR
validation saves caches in GitHub's isolated PR merge-ref scope; main builds
cannot restore those caches. Preview build jobs run with cache-mode: read and
restore-only actions, so PR code cannot write caches into the dispatch's main
scope. Preview retains its existing exact-input cache path while its workflow is
being updated separately; changed import inputs may still require a cold import.
Validation uses two test workers with separate settings profiles and UDP port
offsets. Restart checks remain sequential in one group. Local check helpers
default to one worker; set DORBIT_TEST_WORKERS=2 to use two. Documentation-only
PRs retain successful validation checks while skipping game builds. Superseded
runs cancel only for the same PR; every main push still builds its paired release.
Both check helpers print TIMING: lines and append command durations and results
to the GitHub run summary, including failed checks. This separates the initial
asset import from each test without dropping coverage. Linux Python checks are
timed too. Compare a cache-miss run with a later cache hit on the same inputs.
For a focused texture compression comparison, run:
python tools/profile-imports.py .tools/godot/Godot_v4.7.2-stable_win64_console.exe --ship liberatorThe profiler imports one hull in disposable projects with Basis Universal and
uncompressed embedded textures, then measures warm imports and restoring only
.godot/imported into another clean project. It writes durations and imported
file sizes to build/validation/import-profile-results.json; it never changes
the game's import settings. Use the Linux executable on Linux. The current
2048-pixel atlases and Basis compression remain in place: faster uncompressed
imports need a separate assessment of GPU memory and runtime performance before
changing game assets. CI caches stay on GitHub runners. VPS runs use the
dedicated-server export described below and skip asset imports.
tools/deploy-server.sh validates the exact source commit, then builds the
Linux Dedicated Server preset. Godot strips textures/materials to placeholders
while preserving resource references. The package contains the pinned Linux
release runtime, PCK and existing service/provisioning helpers, without source
art or an editor/import cache. tools/server.sh run starts the exported runtime
directly; local source runs and older releases retain their existing import path.
CI compares source/exported protocol, ship data and all 30 obstacle colliders,
checks clean startup/restart without source assets, and exercises Linux
shutdown/save safety against the exported executable. No VPS service unit change
is required. New preview branches must include this export support.
scripts/ship.gd: shared combat state and weapon validation.scripts/pilot.gd: flight input and chase camera.scripts/alien.gd: type tuning, per-alien life/contributions, movement and leash returns.scripts/sector.gd: encounter lifecycle, targeting, rewards, repairs, and rescue.scripts/flight_session.gd: session menu, ENet connection lifecycle, host flight simulation, and client prediction/interpolation.scripts/session_combat.gd: server-owned independent alien encounters, per-player wallets, repairs, respawns, and combat snapshots/effects.scripts/pilot_store.gd: validated pilot snapshot/journal pair, challenge verification, combat debits, checkpoints and previous-save backup.scripts/cargo_resources.gd: resource values, enemy loot tables, per-model capacities and cargo validation.scripts/resource_loot.gd: bounded shared resource boxes, collection timing and placeholder visuals.tools/pilots.py: operator provisioning and credential rotation with the server stopped.scripts/visuals.gdandshaders/space.gdshader: procedural placeholder art and effects.scripts/hud.gd: flight instruments, targets and objectives.scripts/settings_menu.gd: flight menu and Controls, Audio and Graphics tabs.scripts/game_settings.gd: saved control/display preferences and input bindings.
Combat emits visual signals; visual effects do not award rewards or apply damage. Shared play sends movement and fire intent to the host at 20 Hz and receives authoritative snapshots at 20 Hz, with local flight prediction and smoothing of other players and aliens. Each viewer receives one unreliable binary packet per tick (scripts/snapshot_codec.gd) containing every visible pilot and alien on its map; the owner's entry adds velocity, private progress, ammunition, rocket and boost state. Rarely changing fields (hull model, stats, fitting, contracts, alien kind and home) are sent reliably only when they change, and again after each map visit begins. Only the host simulates combat; repair requests identify the requesting peer, never a client-supplied price or damage amount.