Merge origin/master into mining: resolve five conflicts by owner, delete the belt-task machine
Mining owns belts, chunks and target picking; scenarios owns admission and run staging; master owns ships and fire control (rule scenarios-cut.md S4). - AetheriaStores.CatalogTypes: nine-type union, master's list plus FieldKindData, no Scenario. - tools/AetherDb/Program.cs: both cases (ship-authoring, field-kinds), one usage string. - Zone.cs: master's MineAsteroid dropped (mining deleted its inputs); scenarios' SettleBelts and its three calls deleted. - RunStartTests: the two belt-task tests deleted (they read belt.Transforms and MineAsteroid). - FireControlCut124Tests: master's strict Exact assertions; mining's CompatibleDrift allowance and its comment dropped. - GameData/Aetheria.cc: master's pointer 70a7b0a9. This commit lacks the Asteroid field kind in the catalog, so TheShippedCatalogHasAPickableFieldKind fails here by design; the next commit rebuilds it. Builds: this commit builds (verified at the end with commit 2); the catalog pin test fails at this commit. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
commit
d9f85dc639
154 changed files with 8764 additions and 4522 deletions
253
docs/moddable-ship-authoring.md
Normal file
253
docs/moddable-ship-authoring.md
Normal file
|
|
@ -0,0 +1,253 @@
|
|||
# Moddable ship authoring: parallel proof
|
||||
|
||||
Status: design and proof lane. The existing `HullData` catalog records, Longinus and
|
||||
Djinni prefabs, and their spawn path remain live until a complete mod ship passes
|
||||
authoring, validation, loading, and play checks.
|
||||
|
||||
## LineArt proof from Quiet.blend
|
||||
|
||||
The numbers in this section and in the compose example below come from an
|
||||
unrecorded probe. `Build/quiet.cc` is git-ignored and no committed fixture or
|
||||
test reproduces them.
|
||||
|
||||
`C:\Users\Meta\Desktop\Quiet.blend` is a read-only source for this probe. At frame
|
||||
1, `Quiet / Dexter Quiet Lineart` evaluates to 1,040 polylines with 3,125
|
||||
points. Blender 5.2.2 wrote those coordinates, point radii and opacities,
|
||||
material/layer names, cyclic flags, and RGBA into `Build/quiet.cc` without
|
||||
changing the `.blend`. C# reopened the same typed record and counted the same
|
||||
lines and points. A second line replacement preserved its record key, schema
|
||||
ID, hull, model asset, and anchors byte for byte. `Build/quiet.cc` is an
|
||||
ignored draft probe, not an installed ship.
|
||||
|
||||
The line positions remain 3D Blender world coordinates. The runtime can
|
||||
lower them to a hologram or schematic view without regenerating LineArt.
|
||||
LineArt evaluation depends on the source scene and camera, so a captured set
|
||||
may be incomplete from another view. Gameplay cell occupancy remains the
|
||||
authored `HullData.Shape` in the `.cc`; strokes do not decide armor or mount
|
||||
footprints.
|
||||
|
||||
`tools/blender/aetheria_ships` is a separate Blender add-on in Brokkr's
|
||||
sidebar. It uses Brokkr's configured CultLib Python source and edits the
|
||||
line slot of a ship file's `aetheria.ship_authoring` visual record and the
|
||||
hull shape and hardpoint slots of the `aetheria.hulldata` record beside it. To try it, make
|
||||
`F:\Projects\Brokkr\surfaces\blender` and this repo's `tools\blender` visible
|
||||
to Blender's add-on search path, enable `brokkr_bridge` then
|
||||
`aetheria_ships`, and install `msgpack` into Blender's Python environment.
|
||||
Create a draft with `dotnet run --project tools/AetherDb -- ship-authoring
|
||||
create <ship.cc> <stable-id> <name> [--like <shipped hull name>]`; `--like Djinni`
|
||||
copies that shipped ship's stats and leaves the body and layout empty. Choose that `.cc` in the **Aetheria
|
||||
Ship** panel, select an object in its ship collection, and press **Bind Ship
|
||||
Collection**. The collection stores `aetheria.asset_kind=ship`, the stable
|
||||
`aetheria.id`, and a relative `.cc` path. Select a Grease Pencil object in
|
||||
that bound collection and press **Capture Ship Lines**. Capture checks the
|
||||
collection ID against the record before writing; object and collection
|
||||
display names are not IDs.
|
||||
**Load Ship Layout** opens the same `.cc` file's hull grid and hardpoints in
|
||||
the panel. Toggle occupied grid cells, resize up to 32×32, and edit each
|
||||
hardpoint's type, mount ID, position, footprint, rotation, armor, and firing
|
||||
arc. A footprint uses top-to-bottom rows of `#` (occupied) and `.` (empty),
|
||||
separated by `/`; `##/##` is a 2×2 mount. **Save Layout to .cc** replaces only
|
||||
the hull shape and hardpoint slots. It preserves hull stats, anchors, visual
|
||||
assets, lines, the record key, and schema. Save rejects a changed ship ID or
|
||||
layout revision; reload first if another editor changed those fields. A line
|
||||
capture leaves the loaded layout revision intact. The saved layout is a draft until
|
||||
its mount IDs resolve to visual anchors and C# validation passes.
|
||||
**Package Ship** turns the bound collection into the package. Tag each anchor
|
||||
object with the custom properties `aetheria.role` (`map-icon`, `hull-collider`,
|
||||
`shield`, `tractor`, `thruster-emitter`, `radiator-mesh`, `weapon-mount`,
|
||||
`weapon-muzzle`) and `aetheria.id` (the hardpoint's mount ID for a mount),
|
||||
plus `aetheria.order` if a weapon has several muzzles. Parent a muzzle to its
|
||||
weapon mount object. Thrusters and radiators are mesh objects; the others may
|
||||
be empties. Package exports the collection, Grease Pencil excluded, to
|
||||
`ship.glb` beside the `.cc`, writes the anchors, captures the lines when the
|
||||
collection holds exactly one Grease Pencil object, and shows AetherDb's
|
||||
verdict in the panel. It runs `dotnet run --project <repo>/tools/AetherDb`;
|
||||
the repo is the add-on preference **Aetheria repo**, or by default the nearest
|
||||
folder above the `.cc` holding `tools/AetherDb`.
|
||||
`ship-authoring inspect <ship.cc>` reads drafts; `validate` requires complete
|
||||
hull, model, and anchor authoring, and judges `ship.glb` once it exists.
|
||||
|
||||
## Objective
|
||||
|
||||
A mod author edits one ship `.cc` file, including the hull schematic and every
|
||||
hardpoint. The file holds two typed records: the ship's `HullData` and the
|
||||
`ShipAuthoring` visual package that hull names through `HullData.Visual`. Blender, through Aetheria tooling built on
|
||||
Brokkr, edits that same record while displaying its visual source. The game
|
||||
assembles an instance from the record and its referenced asset package at
|
||||
runtime. A mod package can be installed without opening the Unity Editor.
|
||||
|
||||
## Current mechanism
|
||||
|
||||
`GameData/Aetheria.cc` holds `HullData`: the cell shape, hardpoint footprints,
|
||||
stats, and a Unity Addressables prefab GUID. `ZoneRenderer.LoadEntity` loads
|
||||
that prefab and expects `ShipInstance`; `EntityInstance` and `ShipInstance`
|
||||
match catalog hardpoint transform strings against manually wired prefab
|
||||
arrays. The new FBX naming builder automates prefab wiring but still emits a
|
||||
Unity prefab and is part of this existing path. Brokkr can capture Blender
|
||||
collections and custom properties; the AetheriaEve Blender authoring v1
|
||||
contract describes a future collection-to-CultMesh deploy lane, but that lane
|
||||
is not yet an end-to-end ship loader in the current game.
|
||||
|
||||
## Target authority map for the parallel lane
|
||||
|
||||
- **Owner:** a mod-owned `.cc` file holds two records. Its `HullData` owns the
|
||||
ship's authored hull semantics: schematic, hardpoints, and stats. Its
|
||||
`ShipAuthoring` document owns the visual package: model path, anchor-to-node
|
||||
associations, and schematic lines. `HullData.Visual` is the only binding
|
||||
between them; a hull names exactly one of `Prefab` and `Visual`. A ship ID is stable across
|
||||
display-name changes.
|
||||
- **Inputs:** the authoring record; a Blender visual source identified by the
|
||||
record; compiled mesh, texture, and material artifacts; references to gear
|
||||
designs where the game requires them.
|
||||
- **Outputs:** a validated runtime hull design and an assembled visual/physics
|
||||
`ShipInstance`. The assembly and any catalog row are derived products.
|
||||
- **Derived state:** Unity objects, component arrays, collision components,
|
||||
particle emitters, and schematic UI. Installed equipment, damage, heat,
|
||||
cargo, ownership, and position are live game state.
|
||||
- **Forbidden writers:** Blender object names, Unity prefabs, generated catalog
|
||||
rows, and runtime components may not independently decide the schematic,
|
||||
hardpoint type or footprint, armor, drag, or mount identity. Geometry nodes
|
||||
carry stable IDs; the `.cc` document gives them meaning.
|
||||
- **Shared path:** Blender validation, command-line validation, editor preview,
|
||||
and runtime loading read the same typed record and invoke the same semantic
|
||||
validator. A bad mod is rejected before partial scene construction.
|
||||
- **Cut line:** no existing ship path is removed during proof. Migration later
|
||||
deletes or demotes the old ship-specific catalog/prefab authority for each
|
||||
migrated hull; it does not keep two writable definitions of that hull.
|
||||
|
||||
`ship-authoring validate`, the catalog composer, and the visual importer call
|
||||
the same `ShipAuthoringStore.Validate(hull, visual)`; that shared path is true of the C# callers only.
|
||||
The Blender side checks grid bounds and footprint shape (`ship_cc.py`) and
|
||||
nothing semantic. Blender edits the hull grid, hardpoints, and
|
||||
captured lines in the typed source records; `inspect` reads incomplete drafts.
|
||||
Unity's **Aetheria / Preview Mod Ship
|
||||
Package** imports a validated package from disk, resolves stable GLB node IDs,
|
||||
and draws the captured polylines directly as 3D line segments. Point opacity
|
||||
and color are retained; radius and material-specific stroke styling are not
|
||||
rendered yet. The game reads mod records through the boot path described
|
||||
under Runtime catalog seam.
|
||||
|
||||
## Runtime catalog seam
|
||||
|
||||
`AetheriaStores.CatalogTypes` routes `ShipAuthoring` to the shipped catalog,
|
||||
but the shipped catalog contains no `ShipAuthoring` record. This stays correct
|
||||
only while nothing writes a `ShipAuthoring` through a catalog-writable cache on
|
||||
`Aetheria.cc`; a mod ship's authoring record lives in its own `ship.cc` and in
|
||||
the derived catalog.
|
||||
|
||||
`CultCache` routes `ItemData` to one home backing store, and
|
||||
`ActionGameManager.CultCache` holds that store for the entire play session.
|
||||
Attaching each mod's `.cc` as another item store would violate the cache's
|
||||
one-home invariant. `ship-authoring compose` instead derives one runtime catalog from
|
||||
the shipped catalog and validated mod packages, preserving all shipped record
|
||||
keys. Each mod's stable `ShipAuthoring.Id` yields separate deterministic keys
|
||||
for its copied `HullData` (`mod-hull:<id>`) and its runtime authoring record
|
||||
(`mod-ship:<id>`). A mod's `ship.cc` stores its two records under those same
|
||||
keys, and compose copies them verbatim, so the derived catalog holds one hull
|
||||
per mod ship and `HullData.Visual` names the `mod-ship` record. The generated
|
||||
catalog is disposable; the shipped catalog and each mod's source `.cc` remain
|
||||
the owners. A player session opens one catalog snapshot and cannot hot-swap its
|
||||
designs beneath existing entities.
|
||||
|
||||
Each immediate child of the mods directory has an ID matching its directory
|
||||
name and contains `ship.cc` plus the GLB at the record's relative `ModelAsset`
|
||||
path. Every referenced anchor uses an `aetheria.id` custom property exported
|
||||
into a GLB node's `extras`. Compose checks the asset, unique IDs, and every
|
||||
reference before atomically replacing the derived catalog. For example:
|
||||
|
||||
```text
|
||||
dotnet run --project tools/AetherDb -- ship-authoring compose GameData/Aetheria.cc GameData/Aetheria.modded.cc GameData/Mods
|
||||
```
|
||||
|
||||
The game does not need this command: at boot, when `GameData/Mods` holds a
|
||||
package, it composes the derived catalog into `Application.persistentDataPath`
|
||||
(`ShipModCatalog.ResolveCatalog`) and opens that file instead of
|
||||
`Aetheria.cc`; with no package it opens the shipped catalog. The derived file is
|
||||
recomposed on every launch. A playable ship is still outstanding. In the Quiet probe,
|
||||
206 shipped records became 208 derived records: one `mod-hull:quiet` and one
|
||||
`mod-ship:quiet`. A missing GLB node ID was rejected without changing the
|
||||
previous derived file. The probe's four anchors and zero hardpoints are only
|
||||
a data-path smoke, not a playable Quiet design.
|
||||
|
||||
The visual importer uses [Unity glTFast's runtime
|
||||
import](https://github.com/Unity-Technologies/com.unity.cloud.gltfast/blob/main/Packages/com.unity.cloud.gltfast/Documentation~/ImportRuntime.md)
|
||||
to read the package GLB asynchronously and map its stable node IDs to Unity
|
||||
transforms. It keeps a partially loaded object inactive and destroys it on
|
||||
failure. `ShipModShips` preloads one assembled, inactive prototype per hull
|
||||
that names a `Visual`, at boot and before the game scene loads.
|
||||
`ShipAuthoringStore.Validate` owns which hardpoints carry anchors and which role
|
||||
each anchor plays. Mount anchors exist only for hardpoints that show on the
|
||||
model: weapons, radiators and thrusters. Each such hardpoint needs an anchor
|
||||
whose id is its mount id: `thruster-emitter` for a thruster, `radiator-mesh` for
|
||||
a radiator, `weapon-mount` for an energy, ballistic or launcher hardpoint. An
|
||||
internal hardpoint (reactor, sensors, shield and the rest) has no anchor, and
|
||||
an anchor taking its id is refused. A thruster's or radiator's anchor node is a
|
||||
mesh: the thruster's is not rendered and is the surface its exhaust emits from,
|
||||
the radiator's is rendered. A weapon mount is a point, and each one needs at
|
||||
least one `weapon-muzzle` anchor whose `ParentId` is the weapon's mount id.
|
||||
`articulation` is reserved for pivots and is never a mount; no pivot is
|
||||
planned until pivots move onto `HullData`. `ShipModPlan` then maps the
|
||||
validated pair to `ShipInstance` slots and refuses nothing itself. The shared effects (shield, tractor beam, ping, explosion, map
|
||||
and invisible materials) come from the Addressable `ShipModTemplate` prefab.
|
||||
`ZoneRenderer.LoadEntity` clones the prototype when the hull names a `Visual`.
|
||||
Gameplay reads a mod ship's records from the derived catalog; the package
|
||||
directory supplies only the GLB. `capturepreset` still writes the shipped
|
||||
catalog. Continue refuses a run naming a design the catalog no longer holds
|
||||
(`RunSave.RequireDesigns`), naming the missing mod ships.
|
||||
|
||||
## Proof gates
|
||||
|
||||
1. A typed `.cc` record round-trips between C# and Blender's Python runtime,
|
||||
preserving unknown future fields and record identity.
|
||||
2. Blender edits schematic cells and hardpoints in that record. **Package
|
||||
Ship** writes the anchors and `ship.glb` from the bound collection: each
|
||||
object tagged `aetheria.role` becomes an anchor whose id, and GLB node
|
||||
`aetheria.id`, is the object's `aetheria.id`. It then runs
|
||||
`AetherDb ship-authoring validate`, which judges the GLB too: node ids,
|
||||
and a mesh under every thruster and radiator anchor. The model supplies
|
||||
geometry, not a second copy of hull semantics.
|
||||
3. A command-line validator rejects malformed cells, overlapping or dangling
|
||||
hardpoints, missing model nodes, and unresolved asset references with
|
||||
precise errors. It changes no live catalog or scene on failure. The
|
||||
composer now performs this check for a package before replacing its
|
||||
derived catalog.
|
||||
4. A packaged mod ship loads in a built Unity player without Unity Editor or
|
||||
Blender installed. Runtime assembly creates the same components the
|
||||
current `ShipInstance` expects and uses the existing simulation rules.
|
||||
5. Spawn, equip, thrust, fire, shield, damage, save/reload, and schematic UI
|
||||
work for the mod ship. Only then is a shipped hull eligible for migration.
|
||||
|
||||
### Unity batch smokes
|
||||
|
||||
Both run in batchmode against a package the tests generate: set `AETHERIA_SHIP_FIXTURE_DIR` while running
|
||||
`ShipModCatalogTests.TheFixturePackageIsCompleteAndItsGlbCarriesAScene` and it leaves `mod.skiff/ship.cc` and
|
||||
`skiff.glb` there (the GLB carries a tetrahedron mesh on the map, collider and thruster anchors, plus a weapon mount
|
||||
and muzzle). Neither takes `-quit`: both are `async void` and end the Editor themselves.
|
||||
|
||||
- `-executeMethod ShipModPreview.Smoke -shipModPath <dir>/mod.skiff/ship.cc [-assemble]` imports the GLB and checks
|
||||
the anchors; `-assemble` also builds the `ShipInstance` from the template.
|
||||
- `-executeMethod ShipModPlaySmoke.Run -shipModPath <dir>/mod.skiff/ship.cc [-shippedCatalog GameData/Aetheria.cc]`
|
||||
composes a derived catalog with the package, runs `ShipModShips.Preload`, instantiates the ship through
|
||||
`ShipModShips.Instantiate` (the call `ZoneRenderer.LoadEntity` makes) under a bare parent transform, and requires
|
||||
thruster and weapon hardpoints (each weapon with a muzzle), one `MeshCollider` over a readable mesh, and a map icon.
|
||||
It prints `SHIP_MOD_PLAY_SMOKE thrusters=N weapons=N collider=ok mapicon=ok` and exits 0, or logs the exception and
|
||||
exits 1. It uses no scene and no zone.
|
||||
|
||||
## Structural and build budget
|
||||
|
||||
The proof reuses `HullData` simulation semantics, CultCache `.cc` persistence,
|
||||
Brokkr's Blender host, and the current `ShipInstance` behavior. It adds one
|
||||
authoring document type and validator, Blender-facing layout and line editing,
|
||||
a disposable catalog composer, and one runtime GLB/line visual importer with
|
||||
an Editor preview, `ShipInstance` assembly and boot-time preloading. No daemon, second gameplay simulation, or Unity
|
||||
prefab generator is added. The existing FBX builder remains available to
|
||||
existing content but is not an input to this lane. Its retirement follows
|
||||
migration.
|
||||
|
||||
Focused checks use `Aetheria.Shared` and `tests/Aetheria.Shared.Tests` under
|
||||
`netstandard2.1` / `net10.0`, Python CultCache interoperability checks, and
|
||||
the Unity 6000.3.24f1 Editor compile and play probe. No workspace-wide build
|
||||
or new executable target is justified for schema work. The current catalog is
|
||||
12.7 MB; it is not rewritten during the proof. The worktree starts clean from
|
||||
`4b594e11`; unrelated Unity scene and material edits remain in the original
|
||||
checkout.
|
||||
516
docs/moddable-ships-cut.md
Normal file
516
docs/moddable-ships-cut.md
Normal file
|
|
@ -0,0 +1,516 @@
|
|||
# Aetheria Codex assimilation: refreshed cut maps (mining, moddable ships)
|
||||
|
||||
Date 2026-09-29. Imagination output for Self. It re-anchors two Codex lanes to the Body as it will stand after
|
||||
`codex/fire-control-12` merges to `master`. The Codex maps are raw material, not authority. Where this file and
|
||||
a Codex map disagree, this file is the proposal and the Codex map is the input.
|
||||
|
||||
## How this was established
|
||||
|
||||
- **Branch tips read, 2026-09-29, after `git fetch`.**
|
||||
- `origin/master` `9b85211f`
|
||||
- `origin/codex/fire-control-12` `b66ba524`
|
||||
- `origin/codex/mining` `283ce7dc`
|
||||
- `origin/codex/moddable-ships` `375d6bd4`
|
||||
- Nothing in `F:\Projects\Aetheria`'s working tree was read or switched. Every read is `git show` or `git grep`
|
||||
against a SHA.
|
||||
- **The post-fire-control Body is a synthetic merge.** `git merge-tree --write-tree origin/master
|
||||
origin/codex/fire-control-12` is clean, tree `91576243`. I wrapped it in an unreferenced local commit,
|
||||
`8a2db490` (no ref, no push to origin), so it can be built. The fire-control checklist (`docs/merge-to-master-checklist.md:7,107`
|
||||
on `b66ba524`) predicts the same clean merge.
|
||||
- **Anchors.** Each `file:line` names a real SHA, never the synthetic one:
|
||||
- `b66ba524` for files only fire control touched;
|
||||
- `283ce7dc` for files the mining branch touched;
|
||||
- `375d6bd4` for files the ships branch touched.
|
||||
|
||||
The three file sets are disjoint. I checked with `git diff --name-only` over each branch's own range, and none
|
||||
of the three pairs shares a file. So each anchored line is byte-identical in the merged tree.
|
||||
- **Tests ran on Yggdrasil, against synthetic merges** (section 0). CultLib `45c2f40` and CultMath `6d5e209` are
|
||||
the pins in `Directory.Build.props`. The two LFS files the tests read (`GameData/Aetheria.cc`,
|
||||
`Assets/Resources/Settings.asset`) were staged beside the job, because the verify mirror carries no LFS.
|
||||
- **Catalog facts** come from a probe that opens the merged tree's `GameData/Aetheria.cc` through
|
||||
`AetheriaStores.Open` (section 0).
|
||||
|
||||
## 0. Probe results
|
||||
|
||||
**Test suite on the synthetic merges**, Yggdrasil, `dotnet test tests/Aetheria.Shared.Tests`, CultLib `45c2f40`,
|
||||
CultMath `6d5e209`, the `dotnet` image:
|
||||
|
||||
| Tree | Commit (local, unreferenced) | Result |
|
||||
|---|---|---|
|
||||
| master + fire-control-12 + mining | `396d19e5` | **379 passed, 0 failed** |
|
||||
| master + fire-control-12 + ships | `0036204f` | **364 passed, 0 failed** |
|
||||
| master + fire-control-12 + mining + ships | `474c35c3` | **381 passed, 0 failed** |
|
||||
|
||||
Fire control closed 12.4 at 362 tests. 379 = 362 + 17 mining tests, 364 = 362 + 2 ship tests, and 381 is both
|
||||
together. Nothing on either branch breaks a fire-control test, and nothing in fire control breaks a branch test.
|
||||
This proves the headless simulation only. No Unity compile ran.
|
||||
|
||||
**Catalog probe** (`scratchpad/probe/Program.cs`: it opens `GameData/Aetheria.cc` through `AetheriaStores.Open`
|
||||
in the merged tree; the catalog oid `2aa79c0a` is the same in all three merges and at `b66ba524`):
|
||||
|
||||
- 124 items: 32 `GearData`, 18 `WeaponItemData`, 13 `SimpleCommodityData`, 5 `HullData`, 51 compound
|
||||
commodities, 4 cargo bays, 1 docking bay.
|
||||
- **Weapon damage types:** Kinetic 9, Electric 3, Optical 3, Thermal 3. There is none of Corrosive or Ionizing,
|
||||
though the `DamageType` enum has all six. The mining map said Kinetic 10.
|
||||
- **Penetration > 0:** only Autocannon, LRMM72 and SRMM72, each at 0.25.
|
||||
- **DamageSpread > 0:** GT 3K 3.25, plight 3.3, pswarm 1.5, scorched void policy 1.5, and SRMM72 0.5. The map
|
||||
listed four and missed SRMM72.
|
||||
- **No weapon has `BlastRadius` or `Fuse`.** Blasts are dormant in shipped content until F12-2 authors them.
|
||||
- **Simple commodities:** the 13 the map named. Every one is priced 0 **except Ammo, at 1000**. The map's
|
||||
"every live simple commodity has Price 0" is off by one.
|
||||
- **No live item carries a scanner or mining behaviour**, on fire control or on mining merged.
|
||||
- **Pre-existing, on `b66ba524` as well as on the merges:** four `GearData` records (Refinery, Deep Ore
|
||||
Extractor, Assembly Line, Shipyard) hold a **null element** in `Behaviors` (index 0 of 1). It does not come from
|
||||
mining's union-26 retirement: the same four are null on fire control alone. This matters to variants C4 (A.6).
|
||||
- **Shipped hull mount ids are not unique:**
|
||||
|
||||
| Hull | Hardpoints | Distinct `Transform`s | Empty `Transform`s |
|
||||
|---|---|---|---|
|
||||
| Djinni | 22 | 20 | 3 |
|
||||
| Longinus | 13 | 12 | 2 |
|
||||
| LonginusX | 10 | 9 | 2 |
|
||||
| Turret | 7 | 3 | 5 |
|
||||
| Zenith | 5 | 1 | 5 |
|
||||
|
||||
All five hulls use `Prefab`. This matters to ship migration (S5).
|
||||
|
||||
## Shared precondition for both campaigns
|
||||
|
||||
Both campaigns wait on one event: `codex/fire-control-12` merging into `master` with `--no-ff`, which Self does
|
||||
after the operator signs off (`docs/merge-to-master-checklist.md:105-113` on `b66ba524`). Until then, neither
|
||||
campaign has a base to merge onto except the fire-control branch itself. After it:
|
||||
|
||||
```
|
||||
git switch codex/mining && git merge --no-ff master # in a worktree, never the operator's tree
|
||||
git switch codex/moddable-ships && git merge --no-ff master
|
||||
```
|
||||
|
||||
**Merge, do not rebase.** Both maps and their Soul receipts cite landed SHAs: mining cites 11 of its 13 commits,
|
||||
and the ships doc cites its commits' results. A rebase rewrites every one of those SHAs, which strands the maps'
|
||||
evidence. The merge has no conflicts (below), so it costs one merge commit per branch.
|
||||
|
||||
---
|
||||
|
||||
## Rulings (operator, 2026-09-30)
|
||||
|
||||
- **MQ1: a ship `.cc` is self-contained.** Operator: "The idea is for the new moddable ships to eventually
|
||||
take over from the existing system. A ship .cc should contain everything needed to instantiate and render a
|
||||
ship." The confirmed reading: the hull is its own `HullData` record and the visual is its own record, both in
|
||||
the one ship `.cc`, side by side. The hull is not embedded in the visual. A hull family such as Longinus and
|
||||
LonginusX lives together in one `.cc`, so variants resolve within one store. S1 follows option B, with both
|
||||
records inside the ship's own store.
|
||||
- **MQ2 A for now.** There are no cross-file variants of shipped hulls in this lane. **Operator note, to be
|
||||
carried into CultLib's variants target:** "we'll want cross-store variant support eventually; modders should
|
||||
be able to add variants of existing items without modifying the original".
|
||||
- **MQ3 A.** The FBX prefab builder is scaffolding. The typed `.cc` lane replaces the existing system, and the
|
||||
builder dies at S5.
|
||||
- **MQ4 A.** Continue refuses loudly and names the missing mod ids.
|
||||
- **MQ5 A.** The game composes the modded catalog at boot, from `GameData/Mods`, into a disposable file.
|
||||
- **Soul (2026-09-30) on `375d6bd4`** found the Blender↔C# `.cc` round trip real, with no vendored codec.
|
||||
Before any cut builds on it, the S-Soul fix slot must fix:
|
||||
- F1: 8 of 9 validator mutations survive, including the `..` path guard and the prefab refusal.
|
||||
- F2: `Compose`, `ReadPackage` and `ReadNodeIds` are untested.
|
||||
- F3: there are no Python tests; slot numbers and enums are duplicated by position.
|
||||
- F6: `CatalogTypes` includes `ShipAuthoring`. Check name collisions.
|
||||
- F7: a drive-by `using` removal.
|
||||
- F5 is settled by MQ1.
|
||||
|
||||
- **Pivots own firing arcs (operator, 2026-09-30, from fire control).** A turret's arc belongs to its
|
||||
pivot, not its hardpoints. When this campaign adds pivots to `HullData`, the arc moves from the hardpoint
|
||||
to the pivot, and the interim "intersection of hardpoint arcs per pivot" rule in fire control is deleted.
|
||||
Unity's `Pivot.<group>.<yawMin>.<yawMax>...` node-name parsing (`ShipPrefabAuthoring.cs:144`) must not
|
||||
survive as a second arc authority.
|
||||
|
||||
# Part B. Moddable ships
|
||||
|
||||
## B.1 Status header (verified against git)
|
||||
|
||||
Branch `codex/moddable-ships`, tip `375d6bd4`: 4 commits on `4b594e11`. `4b594e11` is an ancestor of fire
|
||||
control, which has since moved 8 commits to `b66ba524`. Neither side touches the other's files.
|
||||
|
||||
| SHA | What landed |
|
||||
|---|---|
|
||||
| `42eb5214` | `ShipAuthoring` record and validator; `AetherDb ship-authoring create/inspect/validate`; Blender LineArt capture; 2 xunit tests |
|
||||
| `4ba4bbaf` | `ShipModCatalog.Compose` (derived catalog) and GLB node-id reader |
|
||||
| `24c29640` | Unity `ShipModVisual` (glTFast runtime import, line mesh) and Editor preview; `com.unity.cloud.gltfast` 6.20.0 added to `Packages/manifest.json` |
|
||||
| `375d6bd4` | Blender layout editing (hull grid, hardpoints) through `ship_cc.py` |
|
||||
|
||||
The delta is +511 C# (including `tools/AetherDb`), +494 Python, +119 tests, and one new Unity package dependency.
|
||||
It also carries a stray fix in `Assets/Scripts/UI/Menu/TradeMenu.cs` (an unused `using System.Runtime.Remoting.Contexts`).
|
||||
Self's ruling: it stays on this branch as cleanup. Master compiled clean in Unity with the using present, so master does
|
||||
not need it.
|
||||
|
||||
**Test counts.** The two ship tests pass on the merged tree: 364/364 (section 0).
|
||||
|
||||
**S-Soul status:** F1, F2, F3 and F6 fixed at `fe38f288` (479 tests). F4 has no spec entry. The Python tests
|
||||
(`tools/blender/tests/test_ship_cc.py`, 32) have no runner yet; run them by hand.
|
||||
|
||||
**S0 status (2026-09-30):** master `65c63495` (fire control 12, `dcd7bbc5`) merged into `codex/moddable-ships` with
|
||||
`--no-ff` at `18e12d81`, no conflicts. Corrections 1-4 applied to `docs/moddable-ship-authoring.md`. Yggdrasil full
|
||||
suite on the merge (`dotnet test tests/Aetheria.Shared.Tests`, CultLib `45c2f40`, CultMath `6d5e209`): **615 passed, 0 failed**. Self's steps, 2026-09-30 05:15 CEST: the Unity 6000.3.24f1
|
||||
batchmode compile of `01e9db1c` has 0 `error CS` and 0 `warning CS`, and `ShipModPreview.Smoke` passed
|
||||
(`SHIP_MOD_VISUAL_SMOKE anchors=5 points=2 segments=1`, its first recorded run). **The branch has no committed
|
||||
fixture package:** the smoke ran against one generated from `ShipAuthoringTests.Fixture()` with a hand-added glTF
|
||||
`scene` (the test GLB has nodes but no scene; whether glTFast instantiates a scene-less GLB is unchecked). S1 should
|
||||
commit a scene-bearing fixture package so the smoke is reproducible.
|
||||
|
||||
**Anchors re-taken against the merged tree (`18e12d81`).**
|
||||
- Unchanged: `ShipAuthoring.cs:15` (`Hull`, key 1), `:84`, `:111-136` (the hardpoint checks are `:112-131`),
|
||||
`ShipModCatalog.cs:20-21` (keys), `ItemData.cs:512` (`Hardpoints` `Key(23)`), `:515` (`Prefab` `Key(24)`),
|
||||
`Loadout.cs:74`, `EntityInstance.cs:15-27`, `ZoneRenderer.cs:289-310` (`LoadEntity`), `AetheriaStores.cs:9`.
|
||||
- Moved: the second upsert in `ShipModCatalog.Compose` is `:68-69` (was `:60-61`; the F1-F3 fix added the
|
||||
name-collision checks above it). `ship_cc.py`: slot constants are `:23-25`, `replace_layout` is `:96-124`,
|
||||
the `body[HULL_SLOT]` reads are `:84,101`. `ActionGameManager.cs`: the catalog opens at `:55-59`
|
||||
(`AetheriaStores.Open`, not `:45-60`); `capturepreset` is `:621-662`.
|
||||
- S1's key 32 for `HullData.Visual` holds: `EquippableItemData` owns 30 and 31, `HullData` uses 23-29, and
|
||||
`WeaponItemData.Fuse` at 32 (`ItemData.cs:505`) is a sibling class, not an ancestor.
|
||||
|
||||
**Proof-gate status against the doc's own gates (`docs/moddable-ship-authoring.md:149-164` @`375d6bd4`):**
|
||||
|
||||
| Gate | Doc implies | Verified in git |
|
||||
|---|---|---|
|
||||
| 1. C#/Python round trip preserving unknown fields | met | **C# only.** `StandaloneShipRoundTripsWithoutTouchingTheCatalog` pins C#. The Python half and "preserving unknown future fields" rest on the Quiet probe, whose output `Build/quiet.cc` is git-ignored. No repository test exercises `ship_cc.py`. |
|
||||
| 2. Blender edits cells and hardpoints | met, except node-id authoring | **Code exists, unpinned.** `ship_cc.replace_layout` (`ship_cc.py:75-106`) has no test. |
|
||||
| 3. Validator rejects malformed records, changes nothing on failure | met, and compose checks it | **Validator pinned.** `InvalidSchematicOrDanglingMountCannotBePublished` covers 5 cases. **Compose unpinned:** no test covers key collision, the atomic replace, a missing GLB node, or "the previous derived file is unchanged on failure" (`ShipModCatalog.cs:23-73`). |
|
||||
| 4. Loads in a built player | outstanding | not started |
|
||||
| 5. Play checks | outstanding | not started |
|
||||
|
||||
**Corrections to `docs/moddable-ship-authoring.md` at `375d6bd4`:**
|
||||
|
||||
1. **`:9-16` and `:132-136` report the Quiet probe's numbers as facts.** They include 1,040 polylines and
|
||||
"206 shipped records became 208". Nothing in git reproduces them. Label them as an unrecorded probe, or
|
||||
commit a fixture that pins them.
|
||||
2. **The composed catalog holds two copies of every mod hull.**
|
||||
- `:114-118` says compose preserves one owner per ship.
|
||||
- `ShipModCatalog.cs:60-61` upserts `ship.Hull` as a `HullData` at `mod-hull:<id>`, **and** the whole
|
||||
`ShipAuthoring`, whose key 1 is the same `HullData`, at `mod-ship:<id>`.
|
||||
- Gameplay can read only the first. The second is a dead copy of the same truth inside a derived file. Q1
|
||||
decides the fix.
|
||||
3. **`AetheriaStores.CatalogTypes` now routes `ShipAuthoring` to the shipped catalog** (`AetheriaStores.cs:9`
|
||||
@`375d6bd4`), while the doc says the shipped catalog "contains no copy of that ship". Routing a type is not
|
||||
holding a record, so this is harmless today. It stays correct only while nothing writes a `ShipAuthoring`
|
||||
through a catalog-writable cache on `Aetheria.cc`. Name that invariant in the doc.
|
||||
4. **`:98-106` "the same semantic validator" on every path.** The Blender side validates nothing semantic: it
|
||||
checks grid bounds and footprint shape (`ship_cc.py:83-97`). "Shared path" is true for the C# callers only.
|
||||
|
||||
## B.2 Merge path onto the fire-control-12 lineage
|
||||
|
||||
| Probe | Result |
|
||||
|---|---|
|
||||
| `git merge-tree --write-tree origin/codex/fire-control-12 origin/codex/moddable-ships` | clean, tree `97711bcd` |
|
||||
| `git merge-tree --write-tree 8a2db490 origin/codex/moddable-ships` (master+fc12) | clean, tree `88672977` |
|
||||
| on top of mining merged into master+fc12 | clean, tree `a7410174` |
|
||||
| files shared with fire control `4b594e11..b66ba524` (6 files: `Entity.cs`, `FireControl.cs`, two test files, two docs) | none |
|
||||
|
||||
The merged tree passes the full headless suite: 364/364 alone, and 381/381 with mining (section 0).
|
||||
|
||||
The only cross-lane seam is `Packages/manifest.json` (glTFast). It merges textually, but it needs Unity to
|
||||
resolve the package on first open, like the CultMath tag already does (`docs/merge-to-master-checklist.md:14`).
|
||||
|
||||
## B.3 Ordered cuts
|
||||
|
||||
| Cut | Nature | Blocked by |
|
||||
|---|---|---|
|
||||
| S0 | Placement: merge master, correct the doc | fire-control-12 on master |
|
||||
| S-Soul | Fix batch from the parallel Soul pass | Soul's report |
|
||||
| S1 | One hull record, and a hull names its visual | MQ1 |
|
||||
| S2 | The game composes and loads mod ships (`ShipInstance` wiring, boot preload) | S1; MQ4, MQ5 |
|
||||
| S3 | Gate 4: a built player loads a mod ship | S2; a playable mod ship (content) |
|
||||
| S4 | Gate 5: play checks | S3 |
|
||||
| S5 | Migration of shipped hulls, onto variants; FBX builder retirement | S4; MQ2, MQ3; variants C4 |
|
||||
|
||||
### S0. Placement and doc correction
|
||||
|
||||
- **Repo/branch:** Aetheria, `codex/moddable-ships`, in a worktree.
|
||||
- **Deletes first:** none.
|
||||
- **Keeps/moves/adds:** `git merge --no-ff master`. Apply corrections 1-4 to the doc.
|
||||
- **Verification:**
|
||||
- Yggdrasil full suite on the merge (the M0 command).
|
||||
- Unity batchmode compile of the merged tree with glTFast resolved. This is Self's step, and it needs network
|
||||
for the package.
|
||||
- The Editor smoke already in the branch: `-executeMethod ShipModPreview.Smoke -shipModPath <package/ship.cc>`
|
||||
(`ShipModPreview.cs:8` @`375d6bd4`), run against a committed fixture package. It is the first recorded run
|
||||
of that smoke.
|
||||
- **Subtraction:** docs only.
|
||||
|
||||
### S-Soul. Fix slot for the parallel Soul pass
|
||||
|
||||
- **Repo/branch:** `codex/moddable-ships`, after S0.
|
||||
- **Content:** Soul's findings. Two areas this map expects Soul to own, and does not duplicate:
|
||||
- Compose's unpinned failure paths (B.1, gate 3).
|
||||
- The hand-copied schema on the Python side:
|
||||
- `ship_cc.py:17-21` slot constants (`HULL_SLOT 1`, `HULL_SHAPE_SLOT 5`, `HULL_HARDPOINTS_SLOT 23`);
|
||||
- `ship_cc.py:88-98` hardpoint slots 0-6;
|
||||
- `__init__.py:18-21`, a copy of the `HardpointType` and `ItemRotation` enums.
|
||||
|
||||
All of these match C# today: `ItemData.cs:287` `Shape` is `Key(5)`, `HullData.Hardpoints` is `Key(23)` at
|
||||
`:512`, and `HardpointData` is `:553-563`, all @`b66ba524`. `Enums.cs:38` matches too. The hazard is drift:
|
||||
fire control added slot 6 (`FiringArc`) to `HardpointData` in this same lineage. The memory
|
||||
`honor-invariants-over-workarounds` names hand-copied schemas as a known failure. The coherent fix reads
|
||||
the published schema catalog. Soul decides whether it is in scope.
|
||||
|
||||
### S1. One hull record, and a hull names its visual (written for MQ1 = B)
|
||||
|
||||
- **Repo/branch:** `codex/moddable-ships`, after S-Soul.
|
||||
- **Deletes first:**
|
||||
- `ShipAuthoring.Hull` (`ShipAuthoring.cs:15`, key 1) becomes a retired-key comment.
|
||||
- The embedded-hull branch of the validator (`ShipAuthoring.cs:84-133`) moves; it does not duplicate.
|
||||
- The second upsert in `ShipModCatalog.Compose` (`ShipModCatalog.cs:60-61`) becomes a verbatim copy of the
|
||||
mod store's records.
|
||||
- `ship_cc.py`'s `body[HULL_SLOT]` indirection (`:63-66`, `:80-100`).
|
||||
- The only existing `.cc` with the old shape is the git-ignored `Build/quiet.cc` probe. No committed content
|
||||
migrates.
|
||||
- **Adds:**
|
||||
- A mod `.cc` holds two records: a `HullData` at the deterministic key `mod-hull:<id>` (`ShipModCatalog.cs:20`)
|
||||
and the `ShipAuthoring` visual package (`Id`, `ModelAsset`, `Anchors`, `SchematicLines`).
|
||||
- `HullData` gains a nullable `CultRecordRef<ShipAuthoring> Visual` at the next free key on its ancestry.
|
||||
`EquippableItemData` owns keys up to 31 (the comment at `ItemData.cs` `WeaponItemData.Fuse`), so it is 32,
|
||||
unless C4 claims that slot first.
|
||||
- The validator refuses a hull with both `Prefab` and `Visual` set, or neither, when it is a ship.
|
||||
- The validator is one function over (hull, visual). It checks every `Hardpoints[].Transform` against the
|
||||
visual's anchor ids, the checks that are at `ShipAuthoring.cs:111-136` today.
|
||||
- **Authority map:**
|
||||
- Owner: the `HullData` record owns hull semantics (cells, hardpoints, stats). The `ShipAuthoring` record owns
|
||||
the visual package (model path, anchor-to-node map, lines).
|
||||
- Inputs: the mod `.cc`, and the GLB node extras.
|
||||
- Outputs: records copied verbatim into the derived catalog.
|
||||
- Demotion: `ShipAuthoring` is no longer an owner of hull data. `mod-ship:<id>` in the derived catalog is the
|
||||
same record as in the mod store.
|
||||
- Forbidden writers: compose transforming records; Blender writing hull slots inside `ShipAuthoring`; any
|
||||
lookup from hull to visual by key-prefix convention. The typed `Visual` ref is the only binding.
|
||||
- Shared paths: `ship-authoring validate`, compose, the Editor preview and the runtime loader all call the one
|
||||
`(hull, visual)` validator.
|
||||
- Deletion line: after S1, `grep -n "\.Hull\b" ShipAuthoring.cs ShipModCatalog.cs` finds no embedded hull.
|
||||
- **Verification** (Yggdrasil, `--filter FullyQualifiedName~ShipAuthoring`, then the full suite):
|
||||
- `ComposedCatalogHoldsOneHullPerModShip`: the negative for correction 2. It fails today.
|
||||
- `HullNamesExactlyOneVisual`: Prefab xor Visual.
|
||||
- `HardpointsMustResolveToTheVisualsAnchors`: moved from the old validator.
|
||||
- `ComposeRefusesAKeyCollisionAndLeavesThePreviousFile` and `ComposeRefusesAMissingGlbNode`: the gate 3
|
||||
negatives, unless S-Soul already added them.
|
||||
- `AHullVariantInheritsItsVisual`: runs only once Aetheria is on variants C4. It is the reason for B, and it
|
||||
is recorded as pending until then.
|
||||
- A Python check, in the Blender-free `python:3.12-slim` image with `pip install msgpack -e <CultLib>/packages/cultcache-py`:
|
||||
`ship_cc.replace_layout` on a C#-written fixture preserves every untouched slot, then C# reopens it and it
|
||||
validates. This pins gate 1's Python half for the first time.
|
||||
- Operator: in Blender, load a layout, change a mount, save, then `ship-authoring validate`.
|
||||
- **Subtraction estimate:** about 40 removed (the embedded-hull paths and the duplicate upsert), about 35 added
|
||||
(`Visual`, the joint validator's plumbing), and about 25 in the Python path.
|
||||
|
||||
### S2. The game composes and loads mod ships
|
||||
|
||||
- **Repo/branch:** `codex/moddable-ships`, after S1.
|
||||
- **Deletes first:** none. This cut is additive: it is the construction boundary the doc names at `:141-145`.
|
||||
- **Adds, per MQ4 and MQ5:**
|
||||
- **Compose at boot** (MQ5 = A): `ActionGameManager` opens its catalog at `ActionGameManager.cs:45-60`
|
||||
(`b66ba524`). When `GameData/Mods` holds packages, it opens the derived file instead, composed at boot into
|
||||
the persistent data path. `capturepreset` keeps writing the shipped catalog (`:605-620`, and the
|
||||
`Loadout.cs:74` writable open).
|
||||
- **Boot preload:** after the catalog opens and before the first zone loads, every hull with `Visual` set
|
||||
imports its GLB through `ShipModVisual.LoadAsync` into an inactive prototype keyed by hull key.
|
||||
`LoadEntity` then instantiates synchronously, as it does for prefabs.
|
||||
- **Assembly:** a `ShipInstance` template prefab (Addressable) carries the shared effect prototypes: shield,
|
||||
tractor, thruster particles, radiator material. The loader parents the GLB under it and fills
|
||||
`EntityInstance`'s arrays (`EntityInstance.cs:15-27` @`b66ba524`: `MapIcon`, `Shield`, `HullColliders`,
|
||||
`EquipmentHardpoints`, `RadiatorHardpoints`, `ThrusterHardpoints`, `WeaponHardpoints`,
|
||||
`ArticulationPoints`, and `ShipInstance.TractorBeam`) from anchors by role. The name matches that
|
||||
`EntityInstance.cs:245,260,271` and `ShipInstance.cs:69-70` do against `hp.Transform` keep working, because
|
||||
anchor ids are the mount ids.
|
||||
- **`ZoneRenderer.LoadEntity`** (`ZoneRenderer.cs:289-310` @`b66ba524`) branches on `hullData.Prefab` or
|
||||
`hullData.Visual`. That is one branch point, owned by the hull record.
|
||||
- **Authority map:**
|
||||
- Owner: the hull's `Visual` ref decides the visual. The anchor role decides the component slot.
|
||||
- Inputs: the derived catalog snapshot, the mod package directory, and the template prefab.
|
||||
- Outputs: a `ShipInstance` indistinguishable to the simulation from a prefab one.
|
||||
- Derived state: the prototypes (cache-only, rebuilt each boot) and the derived catalog (disposable).
|
||||
- Forbidden writers: prefab arrays hand-wired for a mod ship; any async load during `LoadEntity`; any gameplay
|
||||
read of a mod package outside the derived catalog.
|
||||
- Shared paths: new game, Continue, zone entry, and wormhole transit all go through `LoadEntity`.
|
||||
- **Verification:**
|
||||
- Yggdrasil: `ComposeAtBootIsDeterministic`. The same packages give byte-identical derived records, which
|
||||
pins run-store references across relaunches.
|
||||
- `RunReferencingAMissingModRefusesContinue`, per MQ4.
|
||||
- Unity batchmode (Self): an Editor play-mode smoke loads a fixture mod ship into a zone and asserts
|
||||
`ThrusterHardpoints`, `WeaponHardpoints` and the collider are populated.
|
||||
- Operator: none yet (S3 and S4).
|
||||
- **Subtraction estimate:** 0 removed, about 150 added (loader, template, preload). This is the capability gate 4
|
||||
buys.
|
||||
|
||||
**S2 status (2026-09-30, Self):** landed on `codex/moddable-ships` through `48cabc5f`. Soul passes on S2 and its
|
||||
fixes (bad packages excluded and named, never fatal; mount anchors typed by hardpoint; `capturepreset` refuses mod
|
||||
designs; explicit null checks at Continue; compose failure falls back to the shipped catalog). Headless 684/684.
|
||||
Unity 6000.3.24f1: compile clean; `ShipModPlaySmoke.Run` (edit mode, real preload and `Instantiate`) prints
|
||||
`SHIP_MOD_PLAY_SMOKE thrusters=1 weapons=1 collider=ok mapicon=ok`; `ShipModPreview.Smoke -assemble` passes against
|
||||
the generated mesh fixture. Owed: the operator's play-mode checks (menu dialog for excluded mods, New Game/Continue
|
||||
with a mod, zone entry, wormhole, Continue after removal). Recorded, not fixed: two processes sharing
|
||||
`Aetheria.modded.cc`; preload running inside the `CultCache` getter; a mod updated in place that changes a hull
|
||||
passes the gate. The interim ruling that a non-thruster/radiator/weapon mount must be an `articulation` anchor is
|
||||
superseded by the ruling below.
|
||||
|
||||
**Mount-point ruling (operator, 2026-09-30):** "Regarding mount points, they're only really needed for hardpoints
|
||||
that are externally visible in some way. That's just weapons, radiators, thrusters right now." So a mount anchor
|
||||
exists only for the `weapon`, `radiator` and `thruster` roles. There is no `equipment` role and no plain mount.
|
||||
Other hardpoints are internal and carry no anchor. Articulation points (turret pivots, `ArticulationPoint.Group`)
|
||||
are a separate concept and are not mounts. They stay. Follow-up for S3 prep: find out whether
|
||||
`EquipmentHardpoints` (line 314) has a consumer outside anchor wiring. If it has none, delete it, and have the
|
||||
validator refuse a mount with any other role. Also: the operator said "Missing design refusal on catalog entries
|
||||
is good": keep it.
|
||||
|
||||
### S3. Gate 4: a built player
|
||||
|
||||
A player build loads a composed mod ship without the Editor or Blender. Only Self (the batchmode build) and the
|
||||
operator (launch) can do this. It also requires a playable mod ship: a complete package with hardpoints, not the
|
||||
Quiet probe, which has four anchors and zero hardpoints (`docs/moddable-ship-authoring.md:134-136`). That is
|
||||
content, and it is the operator's to author or commission.
|
||||
|
||||
### S4. Gate 5: play checks
|
||||
|
||||
The operator only: spawn, equip, thrust, fire, shield, damage, save and reload, and the schematic UI for the mod
|
||||
ship. It runs on master's post-fire-control rules, so the checklist's steps 11-15 (arcs, rolled impacts, blasts)
|
||||
apply to the mod hull too.
|
||||
|
||||
### S5. Migration onto variants
|
||||
|
||||
After gate 5, and after MQ2 and MQ3.
|
||||
- Shipped hulls move to `Visual` one at a time, and each migration deletes that hull's `Prefab`.
|
||||
- Hull families collapse into variants in `Aetheria.cc`. The variants scan found Longinus/LonginusX, differing
|
||||
in `Behaviors`, `Hardpoints` and two cosmetic members (`CultLib docs/document-variants-cut.md` §6).
|
||||
- It waits on variants C4 (Aetheria adoption at `caching-unity-v1.5.0`).
|
||||
- **Mount ids come first.** The typed lane requires unique, non-empty mount ids (`ShipAuthoring.cs:115-117`
|
||||
@`375d6bd4`). No shipped hull has them: Djinni has 3 empty `Transform`s and one duplicate, and Zenith has 5
|
||||
hardpoints with one distinct `Transform` (section 0). Each migration first assigns unique mount ids and repoints
|
||||
the prefab-era name matches. `Transform` is also not usable as a C2 element id, so C4's minted id and the mount
|
||||
id stay two members: one is the identity for variants, and the other names the model node.
|
||||
- **Deletion line:** when the last hull migrates, `HullData.Prefab` (key 24) retires, and `ShipPrefabAuthoring.cs`
|
||||
goes (MQ3).
|
||||
|
||||
## B.4 Subtraction ledger (estimate)
|
||||
|
||||
| Cut | Removed | Added | Formats, targets, dependencies |
|
||||
|---|---|---|---|
|
||||
| landed | 1 | ~511 C#, ~494 Py, 119 test | `aetheria.ship_authoring` document type; glTFast package |
|
||||
| S1 | ~40 | ~35 C#, ~25 Py | `ShipAuthoring` key 1 retired; `HullData` `Visual` slot added |
|
||||
| S2 | 0 | ~150 | one template prefab; no new target |
|
||||
| S5 | per hull: its prefab; finally `ShipPrefabAuthoring.cs` (252) plus its smoke (80) and `HullData.Prefab` | ~0 | FBX builder retired |
|
||||
|
||||
The lane is net additive until S5, and S5 is where the old authority dies. Keeping two ship-authoring paths alive
|
||||
indefinitely is the liability MQ3 exists to close.
|
||||
|
||||
## B.5 Operator questions (moddable ships), one fork each
|
||||
|
||||
**MQ1. Where does a mod ship's hull live, and how does a hull find its model?** (Blocks S1.)
|
||||
|
||||
*Context.*
|
||||
- Today a mod ship is one `ShipAuthoring` record with the `HullData` embedded inside it.
|
||||
- Compose writes that hull twice into the derived catalog: once as a `HullData`, and once inside the
|
||||
`ShipAuthoring` copy.
|
||||
- The runtime has no binding yet from a hull to its model; the doc lists it as outstanding.
|
||||
- You want variants to kill duplicate data entry for ships. A variant is a whole record whose base is another
|
||||
record of the same type in the same store.
|
||||
- "LonginusX is Longinus with another hardpoint layout" is therefore a `HullData` variant. An embedded hull inside
|
||||
another document cannot be one.
|
||||
|
||||
*Options.*
|
||||
- **A:** keep the embedded hull. One record per mod, but a hull family must be full copies, and the derived
|
||||
catalog keeps a dead second copy.
|
||||
- **B:** split it. The hull is a plain `HullData` record, and it names its visual through a `Visual` ref, the way
|
||||
it names a Unity prefab today. `ShipAuthoring` becomes the visual package only. A hull variant inherits its
|
||||
base's visual through normal resolution.
|
||||
- **C:** split it the other way. `ShipAuthoring` references its hull. Then a hull variant has no visual unless
|
||||
something reads the variant's stored base key, and no consumer may read deltas (variants target, "Readers see
|
||||
complete documents").
|
||||
|
||||
*Recommend B.* It is the only shape where variants reach ships without either copying or delta-reading. It costs
|
||||
little now, because no committed content uses the old shape.
|
||||
|
||||
**MQ2. Can a mod ship be a variant of a shipped hull?** (Blocks S5's plan for mods; does not block S1-S4.)
|
||||
|
||||
*Context.*
|
||||
- Your variants ruling 3 says a variant and its base live in the same store. A mod's `.cc` is its own store, so
|
||||
"my Longinus with a turret" cannot name the shipped Longinus as its base.
|
||||
- Separately, Blender reads mod stores through the Python runtime, and variants ruling 5 has Python refuse any
|
||||
store holding a variant until Python resolution is built (it is parked).
|
||||
- So even a family within one mod's store is blocked in Blender today.
|
||||
|
||||
*Options.*
|
||||
- **A:** no. A mod ships complete hulls, and families inside a mod wait for Python resolution.
|
||||
- **B:** yes, through compose. Compose would resolve a mod-declared base against the shipped catalog, which is a
|
||||
second resolver outside the cache.
|
||||
- **C:** yes, by reopening ruling 3 for a mod layer.
|
||||
|
||||
*Recommend A.* B is exactly the bespoke inheritance the variants campaign exists to prevent. C is a CultLib
|
||||
decision bigger than this lane.
|
||||
|
||||
**MQ3. What is the FBX prefab builder for, now that the typed `.cc` lane exists?** (Blocks S5.)
|
||||
|
||||
*Context.*
|
||||
- `ShipPrefabAuthoring.cs` (252 lines) and its smoke (80 lines) landed on fire-control-12 at `4b594e11`, so they
|
||||
reach master in this merge.
|
||||
- They build Unity prefabs from FBX collections by naming convention (`docs/ship-collection-authoring.md`).
|
||||
- The typed lane builds the same `ShipInstance` from a `.cc` record and a GLB.
|
||||
- The ships doc keeps the FBX builder "available to existing content", with retirement "following migration".
|
||||
- As things stand, the game has two ship-authoring authorities, and no ruling says which one new ships use.
|
||||
|
||||
*The question.* Is the FBX builder a permanent path, for example for artists who will never use Blender with
|
||||
Brokkr? Or is it scaffolding until the typed lane passes gate 5?
|
||||
|
||||
*Options.*
|
||||
- **A:** scaffolding. New ships use the typed lane from gate 5 on, and the builder dies at S5.
|
||||
- **B:** permanent. Both paths stay, and S2's loader keeps the `Prefab` branch forever.
|
||||
- **C:** retire it now, and author no new ships until gate 5.
|
||||
|
||||
*Recommend A.* Two permanent authoring authorities for one concept is the split this doctrine cuts. C stalls
|
||||
content for no gain.
|
||||
|
||||
**MQ4. What happens to a saved run when a mod it used is removed?** (Blocks S2's Continue path.)
|
||||
|
||||
*Context.*
|
||||
- The run store references designs by key, and a mod hull's key is `mod-hull:<id>`.
|
||||
- Remove the mod, and those references dangle.
|
||||
- The fire-control checklist already records that an old run store throws on its first lot lookup
|
||||
(`docs/merge-to-master-checklist.md:15`).
|
||||
|
||||
*Options.*
|
||||
- **A:** Continue refuses loudly and names the missing mod ids.
|
||||
- **B:** the missing ships are stripped from the run on load.
|
||||
- **C:** the run loads with placeholder hulls.
|
||||
|
||||
*Recommend A.* A bad mod is rejected before any scene is built (the doc's own shared-path rule). B silently edits
|
||||
the player's save.
|
||||
|
||||
**MQ5. Who composes the derived catalog?** (Blocks S2.)
|
||||
|
||||
*Context.* The doc's own objective is "a mod package can be installed without opening the Unity Editor". Gate 4
|
||||
says "in a built Unity player without Unity Editor or Blender". A built player ships no `AetherDb`, and today
|
||||
only `AetherDb ship-authoring compose` composes.
|
||||
|
||||
*Options.*
|
||||
- **A:** the game composes at boot, from `GameData/Mods`, into a disposable file in the persistent data path.
|
||||
- **B:** an installer or `AetherDb` step composes, and the game opens `Aetheria.modded.cc` when it exists.
|
||||
|
||||
*Recommend A.* Compose already lives in `ServerShared` (`ShipModCatalog.cs`), so the game can call it. B makes
|
||||
"is the derived file stale?" a new failure the player owns.
|
||||
|
||||
## B.6 Dependencies (moddable ships)
|
||||
|
||||
- **Fire-control-12 on master:** S0.
|
||||
- **Unity package resolution:** glTFast 6.20.0 needs network on first open (S0 compile).
|
||||
- **Document variants:**
|
||||
- **C2 (element ids):** "ids everywhere" puts an element-id member on `ShipAnchor`, `ShipPolyline`,
|
||||
`HardpointData`, `ItemRole` and `BehaviorData` (every object-list element these records reach).
|
||||
Consequences I read from the code, not ran:
|
||||
- **Hardpoint ids survive a Blender layout save** while the mount id is unchanged. `ship_cc.py:88-98` keeps
|
||||
each hardpoint's slots from 7 on, keyed by `Transform`, so an id slot at 7 or later rides along. Renaming a
|
||||
mount makes a new element, which is the ruling's own rule ("a moved element is a new element"). A
|
||||
hardpoint created in Blender has no id until the next C# write mints one.
|
||||
- **Line ids churn on every capture.** `replace_lines` replaces `SchematicLines` whole (`ship_cc.py:51`).
|
||||
This is harmless: a variant would override lines whole anyway (variants Q7).
|
||||
- **The Python side writes stores C2's registry will then require ids for.** C2 mints them on the first C#
|
||||
write, and Python carries the id as an ordinary member (variants Q3 rollout). So mod stores need no
|
||||
migration step.
|
||||
- **Python refusal:** mod stores stay v1 (no variants) while Blender reads them through `cultcache-py`
|
||||
(MQ2 = A).
|
||||
- **C3 (Studio):** it edits hull variants in `Aetheria.cc`. It is a prerequisite for S5, not for S1-S4.
|
||||
- **C4 (Aetheria adoption, `caching-unity-v1.5.0`):** S5, and the pending test `AHullVariantInheritsItsVisual`.
|
||||
Slot coordination: S1 claims `HullData` key 32 for `Visual`, and C4's id slots must not collide with it.
|
||||
- **Brokkr:** the Blender add-on depends on Brokkr's `brokkr_bridge` preferences for the CultLib Python path
|
||||
(`__init__.py:182-186`). It is an operator-machine dependency with no pin in this repo.
|
||||
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
Date: 2026-09-30, 02:10 CEST. Imagination pass.
|
||||
|
||||
Status: cut map. Nothing has landed. The target lives in section 0 until Self splits it out into
|
||||
Status: cut map, ruled 2026-09-30 (see "Rulings" below). Nothing has landed. The target lives in section 0 until Self splits it out into
|
||||
`docs/scenarios-target.md`; this document owns the means.
|
||||
|
||||
Anchors are against Aetheria `origin/master` `dcd7bbc5` (the fire-control merge), read in the clone
|
||||
|
|
@ -12,6 +12,151 @@ claim measured against a real file.
|
|||
|
||||
---
|
||||
|
||||
## Rulings (operator, 2026-09-30)
|
||||
|
||||
- **Q1 A.** The arena is the entrance zone of a small prelude galaxy. Operator: "A is fine, I guess, since some of
|
||||
the stuff we'll be testing won't work in an isolated zone with no galaxy."
|
||||
- **Q2 B.** The agent records results with `AetherDb record`; the menu shows them read-only.
|
||||
- **Q3 A.** Test designs are committed catalog designs with no product.
|
||||
- **Q4: none of A-C.** "Debug console commands are hella useful in general and fun for sandbox gamers, never toss a
|
||||
single one." Cut 0 is cancelled: `give` (with its hull route), `spawnturret` and every other console command stay.
|
||||
The neutral wanderers are not a console command and no ruling retires them, so they stay too. Scenarios coexist
|
||||
with the console; they are not its replacement.
|
||||
- **Smoke weapons.** The operator will not restore their tree's uncommitted `GameData/Aetheria.cc` themselves:
|
||||
"No I won't, but you may." When Cut 4 lands, Self runs `git checkout -- GameData/Aetheria.cc` in
|
||||
`F:\Projects\Aetheria`. That one file is the only exception to the rule that agents do not touch the
|
||||
operator's tree.
|
||||
- **The ten real designs with no product (operator, 2026-09-30).** Soul's census of Cut 1 found that "no product"
|
||||
was not a clean marker for Q3 test designs, because ten shipped designs have none. The operator ruled:
|
||||
- **Industrial gear:** Assembly Line, Deep Ore Extractor, Surface Ore Extractor, Industrial Thermostatic Heater,
|
||||
Refinery, Shipyard. "An old carryover from this Aetheria repo's early history as an RTS game. We'll want those
|
||||
when we eventually bring production back, but it's also fine to just delete them since the new economy won't
|
||||
look anything like the old one." **Self: delete them.** Git history keeps them.
|
||||
**Correction, same day:** the **Industrial Thermostatic Heater stays**. Operator: "that industrial heater is sort
|
||||
of needed, though, because currently stations are mostly idle so there's nothing to keep them above freezing
|
||||
and they often cool to near invisibility." Only the other five are deleted. The census test allows product-less
|
||||
gear that stations actually equip, and that set is derived from station generation, not from a hand list.
|
||||
**Superseded, same day.** Stations have never equipped the heater. Operator: "Stations freezing is an existing
|
||||
defect, I don't think I ever made those heaters spawn." Station-heater ruling A: "Yep, A. The thermostatic
|
||||
behavior is the same one used in ship cockpits to keep the player from freezing, and the industrial version
|
||||
should fit anywhere as a generic equippable tool."
|
||||
- Every generated station spawns with one heater, through station generation.
|
||||
- The heater shares the cockpit thermostat's owner.
|
||||
- It is equippable on any hull.
|
||||
- Self default: as generic gear it gets a product, so the census test needs no station exception.
|
||||
**Station power and the Tractor Beam (operator, 2026-09-30):**
|
||||
- "Yep, we need a station reactor." Author a reactor that fits Zenith's 16-cell reactor slot, with a product,
|
||||
so the station heater has power.
|
||||
- "Nope, ships don't need these, 'fits anywhere' was a description of tool-type gear, which doesn't require a
|
||||
specific hardpoint." The heater keeps its 12-cell shape. The ship-heater test is dropped.
|
||||
- "Screw old saves." No retrofit of heaters onto stations loaded from existing saves.
|
||||
- "Tractor Beam is supposed to be for item pickup. A ship without a pickup behavior shouldn't be able to pick
|
||||
things up, but there is currently no such limitation AFAIK." Picking up items requires a pickup Behavior,
|
||||
which the Tractor Beam carries.
|
||||
- Starting loadouts (operator): "Yep, everyone gets tractor beams. Pickup behavior was previously discussed as
|
||||
part of the field shield map, as one of the behaviors which we'll have various visual effects for. The tractor
|
||||
beam item would use the existing pickup VFX but with the standardized pickup animation." Every generated ship
|
||||
and the player's starting ship carry a Tractor Beam. The pickup Behavior and its presentation follow
|
||||
`docs/shield-presentation-contract.md` ("Shield and Pickup Presentation Contract").
|
||||
- Autocannon (operator): "Leave the autocannon unsold, we'll need to author a bunch more hulls before all the
|
||||
gear variety in the game has a home." Self's implementation: generation and stock never offer gear that no
|
||||
hull's hardpoint can fit. The rule is derived from hardpoint fit, not a hand list. The Autocannon keeps its
|
||||
product and becomes sold automatically once a hull fits it. The census test is unaffected.
|
||||
- Station reactors by manufacturer (operator, 2026-09-30): "On station reactors: A is a compensator that breaks
|
||||
the setting; a station with no access to Zhestokost gear should not have Zhestokost gear, so B."
|
||||
- Batch 2 (`b3e7995c`) authored a Zhestokost Station Reactor scaled from Manhattan. A faction without
|
||||
Zhestokost allegiance got no reactor, so its station heater had no power.
|
||||
- The fix is content, not a generation exception: station reactors are authored for other manufacturers, so
|
||||
that every faction's stations can power their heater from gear the faction can actually get.
|
||||
- The heater must be reachable the same way.
|
||||
- **Soul on batch 2 (`89ef80d2..adad301b`, 2026-09-30): do not merge.**
|
||||
- F1 (high): the station reactor burns out after about 20 idle minutes. By minute 40 all 128 cells are
|
||||
below freezing, and at 120 minutes the hull reads 155 K. Minutes 0-20 overshoot to 447 K, which makes the
|
||||
station a sensor beacon.
|
||||
- F2 (high): the idle test samples minutes 5-10 and does not pay for the heater. The inert-thermostat mutant
|
||||
S17 survives.
|
||||
- F3 (medium, operator question): `Entity.ItemFits` (the item fits inside the hardpoint; used for equip, save
|
||||
load and presets) and `HardpointData.Takes` (the item fills the hardpoint; used by generation and
|
||||
`HasHome`) are two fit rules. Under `Takes`, about 15 designs players can mount are kept out of station
|
||||
stock.
|
||||
- F4 (high): LRMM72 and SRMM72 have no `DamageCurve` but now have products, and 22 of 300 NPCs carry them.
|
||||
`SampleDps` throws an NRE at `InstantWeapon.cs:64`. Autocannon, pswarm and plight are also missing curves.
|
||||
- **F3 RULED (operator, 2026-09-30): "Hardpoint fit is loose: nobody's gonna stop you from putting a small
|
||||
reactor in a large reactor's hardpoint."** One fit rule: an item fits if its shape fits within the
|
||||
hardpoint. Generation, `HasHome`, stock, equip, save load, presets and `AetherDb hardpoint-fit` all use
|
||||
it. So the Autocannon now has a home (the Turret) and is sold. The Autocannon ruling's own rule, "never
|
||||
stock gear no hull can fit", is unchanged.
|
||||
- **Batch 3 rulings (operator, 2026-09-30):**
|
||||
- **Soul on batch 4 (`2125f2b1..aa3baf12`, 2026-10-01): do not merge yet.**
|
||||
- **Blocker: origin outside the hardpoint.** The item origin can land outside its hardpoint (`Entity.cs:825`,
|
||||
`:879-885`). Every other hardpoint lookup reads the cell under the origin, `Hardpoints[item.Position]`:
|
||||
ArcFor, barrels, thrusters, `ActionGameManager`. For an L-shaped hardpoint that lookup returns nothing, so
|
||||
Unity throws on the first shot. It is latent: every catalog hardpoint is rectangular today.
|
||||
Two ways to fix it:
|
||||
- keep the origin inside the hardpoint;
|
||||
- look the hardpoint up by the item's cells.
|
||||
|
||||
Probe: `scratchpad/soul5/SoulScen5Probes.cs` P30.
|
||||
- **Minor:**
|
||||
- `IsFilledBy` is its own oracle in the test.
|
||||
- Last-row search and thermostat-order are unpinned.
|
||||
- A gun can't be dragged within its own hardpoint (`InventoryPanel.cs:389`).
|
||||
- The new station-reactor products drop their source products' quality spread.
|
||||
- **Thermal:** the Vulcan Station Reactor burns out within 10 idle minutes. That goes to the thermal
|
||||
campaign. Core Power ship reactors also shut down from heat in fights.
|
||||
- **Queued, not dispatched:** the operator ordered a drain on 2026-10-01.
|
||||
- **F1 re-ruled after batch 4 (operator, 2026-09-30): "A, separate thermal balance cut".** Radiators did not fix
|
||||
it. Heat cannot cross the hull to Zenith's edge radiators: the reactor runs at 360-436 K while the radiator
|
||||
cells sit at their 278 K floor. Every station reactor wears out between minute 20 and minute 100. Ships
|
||||
show the same imbalance under load: MoveOnPro runs at about 480 K and is thermally shut down for most of a
|
||||
fight (S8). Thermal balance becomes its own campaign, measured by a steady-state harness across all hulls
|
||||
at idle and under load. Its levers are reactor idle heat, hull conductivity, reactor tolerance and radiator
|
||||
placement. Scenarios Cut 1 merges with the station freeze recorded as a known defect, which predates this
|
||||
work. The 120-minute idle test is held for that campaign.
|
||||
- Idle station reactor overheating and burnout (F1): **"Stations should have radiators"** (option C). The
|
||||
station has a heat source and no sink.
|
||||
- Per-manufacturer station reactors: **"Keep the variety, not every galaxy will have Zhestokost in it"**.
|
||||
The census showed every main-sector galaxy holds all 12 factions today. The reactors are authored anyway.
|
||||
- Rossum & Douglas missing from its own allegiance: the operator asked "Does allegiance to oneself even make
|
||||
sense?". Self's proposal: a faction always reaches its own manufacturer's gear, and allegiance lists only
|
||||
other factions. **Ruled: "removing the 11 self-entries was my intention".** Own-faction reach is implicit
|
||||
in the one reach function.
|
||||
- **Soul on batch 3 (`adad301b..2125f2b1`, 2026-09-30): do not merge yet.**
|
||||
- S1: the new belt-failure test is flaky and failed 5 of 8 runs.
|
||||
- S2: a second occupancy rule. Entity.cs:820-823 requires every hardpoint cell to be free, while tool gear may
|
||||
fill a hardpoint's spare cells. So a generated Turret refuses its own gun back (40 of 955). Operator question.
|
||||
- **S2 RULED B (operator, 2026-09-30): "B is the design intent, saving slots in a hardpoint can be a valid
|
||||
tradeoff for crowded ships if you really need to fit an extra tool".** A hardpoint item needs only its own
|
||||
cells free. A hardpoint's leftover cells may hold general (tool) gear. A hardpoint still holds at most one
|
||||
hardpoint item; option C, two hardpoint items sharing one hardpoint, was not chosen.
|
||||
- S3: placement searches fewer offsets than `Takes`, so an L-shaped hardpoint crashes generation. Latent.
|
||||
- S4: asteroid respawn timers never count down, so mined asteroids never return. **Already fixed by mining:**
|
||||
`codex/mining` deleted the belt task threading (Cut 1, `22a54ccb`), `MineAsteroid` and `RespawnTimers` (Cut 2).
|
||||
Respawn is `Zone.ChunkWear.BrokenUntil`. **Merge rule:** when scenarios and mining meet, mining's side wins
|
||||
for belt and chunk code. **Corrected 2026-10-01 by mining Cut 3 Soul (rehearsal `62b7cefb`/`393334c4`, 557/557):**
|
||||
scenarios' `CreateOrbit`/`AddOrbit` changes are only `SettleBelts()` calls, so drop `SettleBelts` and all
|
||||
three calls (lines 169/190/324 on scenarios); they merge cleanly but reference the deleted `BeltUpdates`. Delete
|
||||
scenarios tests `RunStartTests.cs:639` and `:669` (deleted belt API). Conflicts: `CatalogTypes` take both;
|
||||
`Zone.cs` delete `MineAsteroid`; `FireControlCut124Tests.cs:2609` take scenarios' strict Exact;
|
||||
`GameData/Aetheria.cc` take scenarios' `70a7b0a9` then rerun `AetherDb field-kinds apply`.
|
||||
- S5: a shield charges while unbilled. This is documented design.
|
||||
- S6: pins are missing for the filling preference, product reuse and the thermostat band.
|
||||
- Held: F2 (no unbilled running in the catalog, players only warmer), F4 (no nulls; no exceptions in 24k-tick
|
||||
ambient runs or crowded fights), the census, rotation, and no other fit checker.
|
||||
- F5: `_time` is advanced before the belt wait. F6: mining races the belt tasks. F7: reuse by cell count is
|
||||
unpinned.
|
||||
- Soul did **not** reproduce the Zhestokost gap: every station in 5 seeds and 12 factions got a reactor. The
|
||||
premise behind the per-manufacturer reactor ruling is being checked (census) before any authoring.
|
||||
- Tractor/pickup (`adad301b`, Hands stopped at the fork): the ruled design is `headless-playground-cut.md` fork
|
||||
L, which needs loot as simulation bodies. That substrate does not exist, so it becomes its own campaign, typed
|
||||
in the new session (`F:\Projects\HANDOFF-eureka-typed-2026-09-30.md`). The census rule "price 0 is unsold"
|
||||
waits for it.
|
||||
- **Weapons:** Autocannon, LRMM72, SRMM72, Tractor Beam. "yep that's a content gap". They get products.
|
||||
- After both, "no product" means exactly "Q3 test design". A census test pins that: every product-less design in
|
||||
the shipped catalog is a scenario test design.
|
||||
|
||||
---
|
||||
|
||||
## 0. Target
|
||||
|
||||
### 0.1 The request, in the operator's words (2026-09-30)
|
||||
|
|
@ -226,7 +371,8 @@ It holds no Unity type.
|
|||
- **Derived state:** `ActionGameManager.CurrentEntity` is bound to the returned player. `PendingScenario` is
|
||||
transport only.
|
||||
- **Forbidden writers:** `StartGame` may not generate, unpack or admit the player ship. `MainMenu` may not stage.
|
||||
No console command admits entities (`give` and `spawnturret` die, Q4).
|
||||
Console commands stay (Q4 ruling), but `give` and `spawnturret` admit through `Zone.Admit`, the same primitive
|
||||
as scenario staging. They get no admission path of their own. Cut 1 repoints them.
|
||||
- **Shared paths:** New Game and scenario launch both run menu, galaxy, `StartGame`, `RunStart`. Continue does not
|
||||
stage.
|
||||
- **Deletion line:** `StartGame` `:805-814` (generator, unpack, add, activate). The only surviving line is the
|
||||
|
|
@ -290,10 +436,13 @@ Build budget, every cut:
|
|||
must refresh that pin, or its content tests read the old catalog. Cut 4's tests that read the ledger mount it the
|
||||
same way. Yggdrasil's disk is saturated: one job per cut, `--artifacts-path` in the container.
|
||||
|
||||
Order: 0, 1, 2, 3, 4. Cut 0 is subtraction alone, so Soul can falsify it alone. Cuts 1 and 3 are headless. Cut 2
|
||||
Order: 1, 2, 3, 4. Cut 0 is cancelled (Q4 ruling). Cuts 1 and 2 branch from `master` directly. Cuts 1 and 3 are headless. Cut 2
|
||||
is the only Unity-side cut. Cut 4 is content.
|
||||
|
||||
### Cut 0. Retire the ad hoc test affordances (Q4)
|
||||
### Cut 0. Retire the ad hoc test affordances (Q4). CANCELLED
|
||||
|
||||
**Cancelled 2026-09-30 by the Q4 ruling ("never toss a single one").** Nothing below runs. It is kept as history.
|
||||
Cut 1 branches from `master`.
|
||||
|
||||
- **Repo/branch:** Aetheria, `codex/scenarios` from `master` `dcd7bbc5`.
|
||||
- **Deletes first** (per Q4 A; B keeps the item branch of `give` and the wanderers):
|
||||
|
|
@ -318,7 +467,7 @@ is the only Unity-side cut. Cut 4 is content.
|
|||
|
||||
### Cut 1. `RunStart`, `Zone.Admit`, and the scenario type (headless)
|
||||
|
||||
- **Repo/branch:** Aetheria `codex/scenarios`, on Cut 0. Re-anchor `Zone.cs` if mining has merged.
|
||||
- **Repo/branch:** Aetheria `codex/scenarios`, from `master` (Cut 0 cancelled). Re-anchor `Zone.cs` if mining has merged.
|
||||
- **First:** with `AetherDb hardpoint-fit` and a scratch `Materialize` against the live catalog, confirm that
|
||||
`Djinni`, `LonginusX` and one turret hull each have a product and materialize bare. If one has no product, stop
|
||||
and report: the Q3 rule would make it unbranded, which may not be intended for a real hull.
|
||||
|
|
@ -327,6 +476,10 @@ is the only Unity-side cut. Cut 4 is content.
|
|||
calling `RunStart` with no scenario, so behaviour is unchanged).
|
||||
- The four hand-written joins: `ActionGameManager.cs:735-736`, `Entity.cs:1006-1007`, `Zone.cs:124-125`, and the
|
||||
agent add at `Zone.cs:128`. Each becomes `Admit`.
|
||||
- **Repoints (Q4 ruling, console commands stay):** `give`'s hull route (`ActionGameManager.cs:515-544`) and
|
||||
`spawnturret` (`:564-589`) admit through `Zone.Admit`. If either already reaches one of the four joins above,
|
||||
that repoint covers it. A test pins that `give` of a hull and `spawnturret` both land in `Entities` through
|
||||
`Admit`, and its mutation (restoring a direct add) must fail it.
|
||||
- **Adds:** `Scenario.cs`, `RunStart.cs`, `Zone.Admit`, the `ambient` parameter on `ZoneGenerator.GenerateZone`
|
||||
(`:38-43`; the ship loop `:334-340` and `PlaceTurrets` calls `:309,331` honour it), `Scenario` in
|
||||
`AetheriaStores.CatalogTypes` (`:9`), and the two `Materialize` rules (`Loadout.cs:103-115,131`).
|
||||
|
|
@ -421,8 +574,9 @@ is the only Unity-side cut. Cut 4 is content.
|
|||
|
||||
- **Repo/branch:** Aetheria `codex/scenarios`, on Cuts 2 and 3. Hands authors on the branch clone, never in
|
||||
`F:\Projects\Aetheria`.
|
||||
- **First:** tell the operator that the uncommitted smoke weapons in their tree's `GameData/Aetheria.cc` must be
|
||||
restored (`git checkout -- GameData/Aetheria.cc`, their own command) before they pull. This cut recreates them as
|
||||
- **First:** Self restores the uncommitted smoke weapons in the operator's tree (`git checkout --
|
||||
GameData/Aetheria.cc` in `F:\Projects\Aetheria`, that file only, per the smoke-weapons ruling) before the
|
||||
operator pulls. This cut recreates them as
|
||||
committed designs.
|
||||
- **Adds:**
|
||||
- A transient `AetherDb scenario-seed [apply]` command, with the never-clobber rule of section 2.4.
|
||||
|
|
@ -469,7 +623,7 @@ is the only Unity-side cut. Cut 4 is content.
|
|||
anything editing a result; any catalog write at runtime.
|
||||
- **Shared paths:** New Game and every scenario launch: one launch body, `StartGame`, `RunStart`, `Admit`. Warp,
|
||||
undock, construction and staging: `Admit`.
|
||||
- **Deletion line:** Cut 0's affordances; `StartGame` `:805-814`; the four hand-written joins; the duplicated New
|
||||
- **Deletion line:** `StartGame` `:805-814`; the four hand-written joins; the duplicated New
|
||||
Game branches; the transient seed command.
|
||||
|
||||
---
|
||||
|
|
@ -672,3 +826,51 @@ Defaults Self took, which you may overrule:
|
|||
others; `Program.cs` is 1,477 lines). This is a subtraction pass of its own.
|
||||
- `ItemManager`'s clock seed (`ItemManager.cs:20`) makes lot quality vary per scenario launch. It is recorded,
|
||||
not fixed here.
|
||||
|
||||
## Mining Cut 3: Soul (`codex/mining` `39cec96a..55ca6d3d`, 2026-10-01)
|
||||
|
||||
**Verdict: hold for one fix batch.** It is queued, not dispatched, because the operator ordered a drain.
|
||||
|
||||
No correctness bug was found. The suite passes 516/516 with the catalog `b698e224` and the settings `b2e346f5` that the commit pins. The shared `pins/data/Settings.asset` (`347752dd`) is scenarios' file, so any runner that mounts that path by default has been testing mining with the wrong settings.
|
||||
|
||||
Findings:
|
||||
- **F1 (medium, operator):** picking a rock in a big belt costs one scan of every rock the search circle reaches. `Zone.ChunksNear` (`Zone.cs:333`) and `VisibleChunksInReach` (`Entity.cs:378-385`) run on every reticle, next or previous key press. Measured cost: 63 ms at 30k rocks, 449 ms at 300k and 4.3 s at 3M. The per-tick cost is fine.
|
||||
- **F2 (medium):** nothing tests that the shipped catalog has a rock kind. Taking either side of the catalog conflict unchanged ships dark belts silently. Add a test for "at least one rock kind with weight above 0".
|
||||
- **F3:** the merge rule is corrected above.
|
||||
- **F4 (medium):** nothing tests the ping half of `Sensor.Gain`, because the golden fixture saturates at the cap. Two mutants survive (`Sensor.cs:168`, `:189`). Soul's sweep fixture kills both and gives the same hash (`35DE0E26…`) before extraction, at extraction and at the tip.
|
||||
- **F5:** `FieldKinds.Ensure`'s explicit save (`ZoneData.cs:162`) is needed on a clean store. Keep it and commit the probe.
|
||||
- **F6/F7/F8 (low):** the `SetTarget` refusal is tested only on dark rocks (`Entity.cs:345`). The outer skip edge of `ChunksNear` is untested. Rock reach reads `Enabled`, and nothing tests it.
|
||||
- **Deviation (operator):** launchers count toward rock reach (Q13), but under Q12 they can't mine. So after Cut 4 a player can pick a rock that no weapon can act on.
|
||||
- **Plausible (operator visual check):** the target indicator uses `AsteroidVerticalOffset`, but the shader also subtracts the nebula surface height.
|
||||
|
||||
Promises that held:
|
||||
- The `Gain` extraction is bit-identical.
|
||||
- `SetTarget` is the only writer.
|
||||
- A dark target is dropped on the tick and on `Activate`.
|
||||
- Docking, broken rocks and wormholes are handled.
|
||||
- The catalog has 206 identical records, plus one kind and 18 weapons now Exact.
|
||||
- Old saves get a kind on first load.
|
||||
|
||||
The fix batch commits Soul's four probes (in the session scratchpad, `soul-mc3-run/probes/`) and the catalog-kind test.
|
||||
|
||||
**Rulings (operator, 2026-10-01): "Fix the belt freeze; launchers shouldn't count toward reach".**
|
||||
- F1: fix it before the merge. The cost of a key press must not grow with belt size.
|
||||
- Rock reach counts only weapons that can mine; under Q12 launchers can't. This supersedes Hands' Q13 reading.
|
||||
- The fix batch was dispatched with both rulings.
|
||||
|
||||
**Mining fix batch, Hands (2026-10-01): `f88d1fc1`, `83d8371e` on `codex/mining`. 523/523; 9 mutants each killed by their own test.**
|
||||
- Launchers: `Weapon.CanMine` (virtual, true by default; `LockWeapon` sets false) is the one predicate. Reach reads `CanMine && Active`. Cut 4's firing gate (`FireControl.cs:175`) must read the same predicate.
|
||||
- Soul F2/F4/F5/F6/F7/F8 tests are committed.
|
||||
- Belt freeze **not built; stopped at a fork.**
|
||||
- Each rock has its own angular speed (`Distance` is a continuous float), so no band shares a phase.
|
||||
- At 3M rocks, 633k are in reach and 2,240 are visible.
|
||||
- Proposed: a derived per-belt index (bands of 256 by distance, sorted by turn, with the query arc widened by rate spread and at most 8 band re-sorts per query); a visibility upper bound that skips dark bands; best-first next/previous and reticle; the rules move from `ActionGameManager` to `Entity`.
|
||||
- Work in progress (unbuilt) is in the session scratchpad: `hands-mc3fix-index-wip.patch`.
|
||||
- Question: today's Previous with no target picks the second-farthest rock (off by one). Hands recommends fixing it.
|
||||
|
||||
**Belt-freeze rulings (operator, 2026-10-01):**
|
||||
- **Structure:** "Let's go for it. There's a voice in my head screaming that this is too much code and we should just reduce the whole belt to a single entity, but this stuff will be extra important for when we have EW and much more crowded levels. Just don't specialize the indexing too much towards asteroid belts, because we'll want a bunch of subsystems feeding targeting data. Think the spacebound microfauna from the slime mold experiment, pretty sure there's a campaign for that."
|
||||
- The index is a general targeting index that many sources feed: belts, entities, later EW and microfauna. Belts are one provider, not the shape of the index.
|
||||
- The slime-mold experiment is `Assets/Shaders/Compute/Slime/Slime.cs`. No campaign doc was found by grep on master docs or by voidbot; ask the operator before assuming one.
|
||||
- **Previous off-by-one:** "Fix the off-by-one". With no current target, Previous picks the farthest rock.
|
||||
- **Next step:** an Imagination pass (Opus) maps the general index. Inputs: the provider seam, motion models (orbiting rocks with per-rock rates, and moving entities), the brightness/visibility bound as a per-provider bound, and best-first queries. Hands' work in progress (`hands-mc3fix-index-wip.patch`) is input, not spec. Then Hands on Sonnet, then Soul.
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
# Ship collection authoring
|
||||
|
||||
Status: authoring contract for new ships. Longinus and Djinni predate this contract and keep their current prefabs.
|
||||
Status: FBX-to-Unity-prefab contract for ships using the current catalog path. Longinus and Djinni predate this contract and keep their current prefabs. The parallel mod-owned `.cc` path is specified in [moddable-ship-authoring.md](moddable-ship-authoring.md).
|
||||
|
||||
## Objective and ownership
|
||||
|
||||
|
|
@ -44,13 +44,11 @@ reserved. IDs after a role prefix must be unique across the model. Other visual
|
|||
Muzzle.1 optional additional barrel
|
||||
HP.Radiator.Port empty; exact name copied to the catalog
|
||||
RadiatorMesh one mesh; temperature emission surface
|
||||
HP.Equipment.Reactor empty; exact name copied to the catalog
|
||||
Pivot.0.-90.90.-80.80.60 optional empty parent of articulated mounts
|
||||
```
|
||||
|
||||
`HP.Equipment` covers sensors, reactor, shield, cargo, and other mounts without a special visual component.
|
||||
`HP.Weapon` covers ballistic, energy, and launcher mounts; the catalog chooses which. Every `HP.*` becomes an
|
||||
`EquipmentHardpoints` entry. Thruster, weapon, and radiator roles also get their matching components and arrays.
|
||||
`HP.Weapon` covers ballistic, energy, and launcher mounts; the catalog chooses which. Only thrusters, weapons and
|
||||
radiators are visible and get a node; internal hardpoints have none. Each role gets its matching component and array.
|
||||
`Muzzle.<nonnegative integer>` children are sorted numerically; their transforms become `FiringPoint`. A weapon
|
||||
mount requires at least one. A `Pivot` name carries `Group.YawMin.YawMax.PitchMin.PitchMax.Speed` as signed
|
||||
integers in degrees and degrees per second. It gets `ArticulationPoint`; child mounts follow its transform. Pivots are
|
||||
|
|
|
|||
Loading…
Reference in a new issue