Skip to content

feat: add the Vashar Gate galaxy gate - #138

Merged
Timerk merged 20 commits into
mainfrom
feat/galaxy-gates
Nov 25, 2026
Merged

Timerk merged 20 commits into
mainfrom
feat/galaxy-gates

Conversation

@Timerk

@Timerk Timerk commented Oct 21, 2026 •

Copy link
Copy Markdown
Owner

What this adds

The first galaxy gate: the Vashar Gate, a wave-challenge instance named after an alien faction.

Story. The occupying aliens are ferrying gate parts through our sectors to summon their Vashar allies. Pilots capture the parts, assemble the gate themselves and strike the Vashar staging fleet. Destroying its mothership sets the Vashar invasion back, which is why the gate can be run again.

Getting parts (20 per gate)

  • Signal Anomaly (Dr. Sato, on the Galaxy Gates page): while it is active, every M2 kill you contribute to carries a guaranteed part. Recovering 8 parts decodes the courier cache for +4 parts, 10,000 CR and 2 RP. One operation is available per gate; assembling the gate makes the next one available.

  • Random drops: M2–M4 aliens carry a part 8–20% of the time. Home-map and arena aliens carry none.

  • Parts sit in the normal loot box (violet, labeled with the gate-part count), take no cargo space, and can be recovered even with a full hold.

Running the gate

  • At Outpost 01, Assemble and open gate consumes 20 parts and opens the violet Vashar Gate near the station. Any pilot can fly through it (J). One run exists on the server at a time.

  • The arena (Vashar Rift) is a separate map with its own backdrop, rocks and a protected return gate to M1. It is not part of the connected-maps network.

  • 7 waves of new aliens, which never appear on normal maps: Shardlings, Spireguards, and a final Vashar mothership that launches Shardling escorts every 25 s. Each extra pilot inside (up to four) adds half the base count, capped by the arena pool.

  • 3 lives per pilot per run. Dying uses the normal rescue to Outpost 01; pilots with lives left can fly back in.

  • Victory pays every participant 150,000 CR + 6 RP + 15,000 x4 shots, plus a 20% chance of an LF-4 laser (delivered to storage; LF-4 stays unavailable in the shop). The rift then closes and returns anyone still inside after 90 s. A run collapses (parts lost) if nobody is inside for 120 s or every participant is out of lives.

  • The HUD shows the wave and remaining lives. The radar shows VG, and the open gate is a navigation contact.

Preview testing: allowlisted preview pilots (DORBIT_PREVIEW_TOOLS / DORBIT_PREVIEW_PILOTS) see Preview: open gate without parts on the Galaxy Gates page.

Station page: Galaxy Gates is no longer "coming soon". It shows gate parts, the run status, the Signal Anomaly briefing, and the accept, assemble and preview actions.

Compatibility

  • Network schema 21; clients and servers must match.

  • Gate progress is an optional equipment.gates field, so save schema 8 is unchanged. Older builds reject saves containing it, so take a backup before deploying if you may roll back. tools/pilots.py validates the field.

  • The run itself is session state: a server restart ends an open run, and its parts are lost.

Integration verification

Tested gate head 651e5bb402816030192130e10b1c65be22c67f5c with Godot 4.7.2. The disposable checkouts used #136 at 4a26bea, #139 at 6ce4c72 and #140 at 9b7b332. Each pair passed git merge-tree --write-tree. Starting at the gate head, merging #139, #140 and #136 in that order also completed without manual resolution. Only the gate fix was pushed.

  • fix: remove loot box HUD labels #140 HUD. The ordinary-loot loop is deleted on both branches. A separate HUD pass marks revealed boxes containing parts. Rendered flight showed an unlabeled ore box beside a violet 1 GATE PART marker. The combat-effects test also checks delayed reveal, plural count and removal of the marker when ore remains.
  • feat: add direct player inventory trading #139 combat. Gate state now precedes the rocket fields. The trade declarations follow desk. Both groups survive the automatic merge.
  • feat: add the Operation Groundwork story chapter #136 handshake. Schema 21 and the two RPC tables alone cannot distinguish the extended story sequence. Authentication now also hashes the ordered story step IDs used to interpret network progress. Independent gate and story-plus-gate processes rejected each other in both client/server directions before reserving a pilot.
Build Runtime --print-protocol Focused checks passed
#138 182e2cd9ad5c0c996a32116741a1cc6671bffece76963aad5d630ae475263e35 Gates 212, combat effects 41, RPC compatibility 17
#138 + #136 1b818052b11f43e4c21876beb9a9daa24edcc434846ee714ed3f881787b1ebc6 Story 224, RPC compatibility 17
All four 92d38542c86d044c172a4b0c65fb35dfbc396da080ebe776f46b05e8157932f4 Gates 212, trading 107, combat effects 41, story 224, RPC compatibility 17, station actions 17

No manual rebase resolution was needed at these heads. The gate-only and four-PR RPC fixtures each reported two ObjectDB instances at process exit after all assertions passed.

Validation

  • New tests/galaxy_gates_test.gd (198 checks) covers:

    • state validation and the reward rules

    • authenticated operation acceptance, guaranteed M2 parts and part pickup with a full hold

    • cache completion, the assembly blocker and assembly, and one run at a time

    • entering the gate, lives, death and rejoining

    • every wave with group scaling, mothership escorts and the victory payout (credits, research, x4 shots and a forced LF-4 roll)

    • closing and returning pilots home

    • the preview tool allowlist, the station page and collapse when abandoned

  • Full Windows suite (tools/check-game.py --suite windows) run locally. Two failures (checkpoint_trace_test, extras_batch_test) came from the benchmark store adapter's commit override; they pass after the fix included here. The affected UI and menu suites were rerun after the final edits, and tests/pilots_test.py passes. Linux-only server process tests are left to CI.

  • I rendered the open gate at Outpost 01, a full arena wave, close-ups of the three new models and the Galaxy Gates page, and inspected them by eye.

Limitations / follow-ups

  • The three Vashar aliens are Blender models built from the supplied concepts: faceted obsidian crystal hulls, purple armor, violet seams and hot-pink weapon and hangar glow. They ship as 2K-textured GLBs with generated LODs, through the same export as the map aliens. The editable .blend sources, the 4K maps, the build script and review renders are in the art archive under vashar-review/. Each carries a detail pass: irregular crystal facets and growths, layered armor with lit slits and nodes, vents and conduits, and for the mothership a tiled deck, radial seams, underside ribs and a hangar interior. They have about 14k, 26k and 36k triangles.

  • All part counts, chances, stats, wave sizes, lives, timings and rewards are provisional until playtested.

  • One gate only. Future work: further faction gates, other equipment rewards, and an on-map invasion event where the aliens manage to set up a gate.

Review fixes

  • Gate-part pickup allocates against each collector's remaining stock, counting parts already assigned in the same pass. Parts no nearby pilot can hold stay in the box; a full stock no longer silently destroys them.
  • tools/pilots.py accepts and normalizes whole-valued float gate counters (for example 7.0 after a rollback that preserved the field), so provisioning and credential rotation keep working. A rollback round-trip fixture covers it.
  • Closing a run (victory or collapse) clears any loot left in the arena.

Validation: galaxy_gates_test 219 passed, combat_effects_test 41, pilot_persistence_test 37 + combat_journal 50, rpc_compatibility_test 17, tests/pilots_test.py 18 tests OK. In one of five galaxy_gates runs the existing 0.1 s LF-4 client-delivery check timed out while other Godot sessions loaded the machine. That check is untouched here (#142 already lengthens its wait).

🤖 Generated with Claude Code

Timerk and others added 12 commits October 21, 2026 17:41
Pilots collect Vashar gate parts from alien loot (guaranteed in M2 during
the Signal Anomaly operation, random beyond Outpost 01), assemble the gate
at the station and fight seven waves ending with a Vashar mothership in a
separate arena map. Runs are server-owned with lives, group scaling,
escorts, victory rewards and collapse. Allowlisted preview pilots can open
a gate without parts. The Galaxy Gates page replaces the placeholder.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Every participant now also receives 15,000 x4 shots and has a 20% chance
of an LF-4 laser in storage. All winners' rewards save together.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Replace the procedural Shardling, Spireguard and mothership with Blender
models built from the approved concepts: faceted obsidian crystal hulls,
purple armor, violet seams and hot-pink weapon and hangar glow. The GLBs
use the shared alien export (one mesh, 2K atlas, generated LODs).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Irregular crystal facets, secondary growths, layered armor with lit slits
and nodes, vents, conduits, barrel bands, drive petals, and for the
mothership tiled deck plating, radial seams, spine collars, underside ribs
and a hangar interior. Triangles: Shardling 14k, Spireguard 26k,
mothership 36k.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Near-black obsidian crystal, darker muted armor and a lower armor
emission lift give the stronger black and violet contrast of the
concepts; the violet seams and hot-pink weapons keep their glow.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Armor plates and machinery are polished dark metal (high metalness, low
roughness) and the obsidian crystal is a glossy dielectric with beveled
facet edges, replacing the soft generic atlas finish.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A centered countdown shows the time to the next wave in the Vashar Rift.
The rift has no protected zone, its exit is sealed while a wave is alive
and quitting to the station mid-wave costs a life, so pilots cannot kill
one alien, repair and fly back in.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Oct 22, 2026
Timerk and others added 8 commits October 22, 2026 13:11
The boss wave reserves dormant Shardlings so the mothership can always
launch escorts, its weapon range drops below pilot laser range, and the
LF-4 shop note no longer repeats the provisional drop odds.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Operation parts go to an in-range pilot running the operation and only
parts from its map count; runs announce the public pilot label; dormant
arena aliens skip random home searches; gate links are cached; alien homes
keep clear of closed portals; occupancy changes republish the run state;
rewards stay dedicated-only and publish scans ships once.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Disconnecting mid-wave costs a life like quitting, quitting while already
destroyed does not cost a second one, waves spawn clear of arena rocks,
routing from an arena leads to its exit, the station page reports the
between-wave break, the part stock cap rises to 999 and gate models reuse
the endpoint helper.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Allocate each box's gate parts against every collector's remaining room,
counting parts already assigned in the same pickup pass. Parts beyond
every nearby pilot's 999 limit stay in the box instead of being clamped
away.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A rollback build that preserves the unknown gates field can write a
counter such as 7 as 7.0. The server accepts and normalizes it, so the
provisioning tool now does too, instead of rejecting the whole ledger.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Victory and collapse both remove boxes left in the rift, so the next run
starts with an empty arena.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Timerk pushed a commit that referenced this pull request Nov 25, 2026
Bring the #138 review fixes onto the multi-gate branch: per-gate part
allocation against each collector's remaining stock, float gate counters
accepted by pilots.py for both flat and per-gate records, and arena loot
cleared for whichever gate's run closes.

Each gate's parts in a box now go first to pilots running that gate's
operation when the box lies on its operation map, so a mixed
Vashar/Korrath drop no longer diverts the guaranteed Siege Manifest part
to a closer Signal Anomaly pilot. Adds a two-pilot mixed-drop test.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Timerk pushed a commit that referenced this pull request Nov 25, 2026
Bring the #138 and #141 review fixes onto the Sylith branch, keeping the
arena-loot check beside the per-gate run checks. Adds an M4 pickup case:
a box with Vashar, Korrath and Sylith parts sends the guaranteed Sylith
part to the Relay Intercept pilot and the rest to the nearest pilot.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Timerk
Timerk merged commit b1680b8 into main Nov 25, 2026
4 checks passed
Timerk added a commit that referenced this pull request Nov 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants