Commit graph

4,592 commits

Author SHA1 Message Date
soul
768e07d278 A station buys only goods its installed gear wants, only as far as its bays hold: StationWants, Zenith's ore silo and standing haul order
StationWants.Of derives the wants per call: the draws of each installed recipe facility's run list (Production.Draws, beside Take) and, for a silo-carrying station, the goods of the haul orders that start at its orbit. TrySellPart is gated by it and says NotWanted or NoRoom; OreValue and TrySellOre sell only wanted ore. SiloData is a bay on a Facility row that holds commodity stacks only; HaulOrderData is a run document staged by DemoTerminus (ScenarioStage.Station, HaulOrder). Generated station gear stock stops at half the stock bay (StationStockShare) and skips silos. Facilities authors facility:ore-silo, its NotOffered product and trade-hub's Facilities (economy author Facilities apply; a rerun writes nothing); L-facility accepts a silo. EconomyLoop sells the sortie's hold to the processing station and reports sold, refused and offered value. TradeMenu (outside the dotnet build) reports NotWanted and NoRoom. Tests: fixtures seat a Smelter; new StationWantsTests; DemoLoop re-anchors BaseBuyRatio (cheapest piece Zenith stocks reads 2500, not 15500, once stock stops at half the bay).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-28 13:23:18 +01:00
soul
9d6de15358 Delete TrySell's absorb branch: a commodity stack sells only through TrySellPart, which pays for the units the bays took and says how many sold
TrySell takes a crafted item only and throws for any ICommodityStack. TrySellPart takes any commodity stack and returns SaleResult (Sold, Offered, Refusal); TrySellOre sums them. The paid-in-full test is deleted with the branch. The wants gate follows in the next commit; callers in tests and tools are repointed there.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-28 13:23:17 +01:00
soul
7c247de18c AetherDb: every booted read tool disposes its scratch; the shipped-only open is OpenShipped; save throws on an excluded package
Soul s1 findings booted-scratch-leak, shipped-named-overclaimed, save-excluded-package-not-pinned. The name OpenShipped says why, so
the per-site comments on the apply paths are not needed.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-28 12:35:42 +01:00
soul
509a168c3f AetherDb station-kinds: name why it opens the shipped file alone
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-28 12:13:39 +01:00
soul
b6eda84d5d AetherDb: one owner of the catalog the game boots (AetherDb.ComposeBooted); every read tool opens it and throws on an excluded package
The AetherDb constructor, LoadoutCommitCommand and EconomyLoop each composed the packages in their own way; census, station-fit,
loadout, factions, weapon-ammo, save and the economy report/balance opened the shipped file alone and answered for a catalog the game
does not boot. Apply paths, dry runs, catalog resave, economy prices and the ship-authoring shipped lookups keep the shipped file alone,
each named at its open site. Pinned by BootedCatalogReadToolsTests.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-28 11:55:28 +01:00
soul
ffb5d73f81 EconomyLoop boots the catalog the game boots (first-party packages composed): the Pirates' station hulls are a package's. The declaration test launches the demo in its own galaxy
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-28 11:12:01 +01:00
soul
0582c5eb25 The demo entrance declares its stations as (faction, kind) orders: Zenith's trade hub and the Pirates' refinery on every seed
Scenario.EntranceStation (bool) and ZoneGenerator's bool parameter and count floor are replaced by Scenario.EntranceStations, a list of EntranceStationOrder placed after the story stations; an order the rails cannot seat gets a direct orbit round the root node. The default order reproduces the old entrance. Demo loop sells to the refinery and buys at Zenith, each found by Kind.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-28 10:37:12 +01:00
soul
ba8018d339 Advance never spins on a stale run list: starts are validated against the catalog, a dropped run rebuilds the facility's list; the not-runnable drops are pinned
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-28 09:23:14 +01:00
soul
7fee3081d9 Facility: a run of a vanished recipe is dropped, the hold revision is one monotonic entity counter, the idle skip and unit store are pinned
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-28 09:19:49 +01:00
soul
3254580a6d Idle facilities cost near nothing: the catalog owns a filler index, the bay counts its changes, a failed take waits for the hold to change; the overshoot carry is the stated rule
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-28 09:19:48 +01:00
soul
a6a9480697 Facilities batch authors the facility thermal band (economy author Facilities apply): -1 to 1000, plateau 0 to 560 around 280
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-28 09:19:47 +01:00
soul
eb0a3872a1 FacilityProductionTests: the cycle rule on a seated Refinery, stalls, round robin, one span equals many steps, pack and history
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-28 09:19:46 +01:00
soul
47ed8c071f Facility runs its recipes: Production.Advance is the one cycle rule, Facility.Execute ticks it per zone step
The consumable constructor and the runs-nothing comment go. FacilityRun rides the installed unit (EquippableItem key 14); the run list is derived from RecipeData.Facility through Recipes.RunOn; EntityHold is the on-screen hold over the entity's bays.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-28 09:19:46 +01:00
soul
a7f91ba8de Document Open, Push and Apply; add the live authoring-surface proof
moddable-ship-authoring.md describes Open (binds), Push (dry run) and Apply, and that agents get Open and Push through
Brokkr's host file; the two overclaims about product and line-capture versions are gone. live_authoring_surface.py ran
in GUI Blender 5.3.0 with Brokkr 6667f523 as an extension in private BLENDER_USER_* dirs: 31 checks, all true.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-28 08:22:06 +01:00
soul
a7b3da616f package_hull and the smokes call Open, Push and Apply
Each save is push_ship then apply_ship, each load or bind is open_ship, refusal texts are the new fixed ones. smoke_frame
pins that Open is one undo step and Push and Apply are none, that Apply refuses a scene that moved since its dry run, and
that a stale dry run cannot be applied. The version guard admits Blender 5.3 (smoke_bake's tolerances were measured on
5.2.2 and its pass 2 reads 0.880 for 0.908 on 5.3).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-28 08:00:10 +01:00
soul
c22d92a79e Pin the host file's human-only absence to operator names
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-28 07:39:57 +01:00
soul
aab80bd95f Add Open, Push (dry run) and Apply, and the host file Brokkr reads
Open binds an unbound collection from the Ship .cc field and fills the buffer. Push shows AetherDb's change lines and
writes nothing. Apply, her button only, lands exactly the reviewed dry run. brokkr_actions.json lists Open and Push.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-28 07:39:50 +01:00
soul
e1a2c68ae1 Delete Load, Save and Bind Ship Collection operators and their panel buttons
Open, Push and Apply replace them in the next commit.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-28 07:37:52 +01:00
soul
46c713f567 Drop the Unity regeneration churn that rode in with the last commit
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-28 06:58:53 +01:00
soul
95ed937f84 Seized Refinery is named in emoji: the Pirates' products are (PiratesProductsAreNamedInEmoji) and the packager gives hull and product one name
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-28 06:43:18 +01:00
soul
1585e3d8fe PiratesAreInTheShippedCatalog counts the eight rebrands, not the Pirates' own refinery
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-28 06:19:24 +01:00
soul
41c29fc431 Seized Refinery: an octagonal cast firebox (interior roomy enough for dock, heater and the reactor), rows re-cut, repackaged through the authoring-only packager
The round drum left a 49-cell interior that could not seat the reactor, a Medium Docking Bay and the heater, so every Pirate
processing draw threw. Reach 6.69, under Zenith's 7.21.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-28 06:09:12 +01:00
soul
0e9e8ceaf5 Station package tests: every committed manifest is its shipped package; the Seized Refinery is an offered Pirate processing station
TheCommittedDepotManifestIsTheShippedDepot becomes a Theory over every directory under tools/blender/manifests and ties every
field the packager writes (price, maker, name, description, offered, mass, durability, armor, drag besides rows and hull.scad).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-28 06:07:20 +01:00
soul
c25491d8e7 Seized Refinery: the demo's processing station as a Pirate-on-Zhestokost station package, with a 2x2 Facility row
Hull source on the Zhestokost stove donor with the Pirate additions kit, manifest tools/blender/manifests/seized-refinery
and the package GameData/Mods/aetheria.seized-refinery made by package_hull.py from it (Reach 7.10, under Zenith's 7.21).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-28 06:07:19 +01:00
soul
e737111141 Repin the two-AI digest: the zone station seats its facilities first
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-28 06:06:04 +01:00
soul
ada1a743e1 AetherDb loadout prints each fieldable station kind with the Facilities it carries
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-28 06:06:02 +01:00
soul
20ec6bc6eb Station generation installs its kind's Facilities on its Facility rows before any interior gear
LoadoutGenerator.EquipFacilities seats each of the kind's Facilities (largest shape first, then by name), branded by the station faction's own product else the first by name, drawing nothing from Random; it throws naming hull, kind and design when no row takes one. The docking bay, heater and interior fill now come after, so no interior gear can sit on a Facility row.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-28 06:06:01 +01:00
soul
28e4f13d7d Docs: the add-on reads and writes through open and push 2026-11-28 05:20:05 +01:00
soul
d4e7ec4266 smoke_hull_source: line rows are dicts 2026-11-28 05:19:40 +01:00
soul
a14e763712 Save takes the element ids the store minted for the rows it made, so Package's dry-run gate sees no change 2026-11-28 05:13:45 +01:00
soul
964bccdfb2 push: an added anchor keeps its Id (found by the add-on's first Package over push) 2026-11-28 05:09:28 +01:00
soul
8275568f46 smoke_frame: the library-error probe patches _push 2026-11-28 05:07:01 +01:00
soul
e2044d4d7d Rewire the Blender smokes over _open and _push; add the element-carry check 2026-11-28 05:06:19 +01:00
soul
2d94e1c709 Rewire package_hull, compare, gen_manifest and job.ps1 over ship-authoring open 2026-11-28 05:04:50 +01:00
soul
5665a3736e Rewire the add-on over ship-authoring open and push 2026-11-28 05:04:09 +01:00
soul
71a886dad2 Delete smoke_hull_source's case-variant Manufacturer probe 2026-11-28 05:02:46 +01:00
soul
aa373ae232 Delete package_hull's msgpack top_speed reader and cultlib override 2026-11-28 05:02:45 +01:00
soul
ead94db64c Delete ShipSchemaPinTests' Python slot pins 2026-11-28 05:02:34 +01:00
soul
83978d7ba6 Delete test_ship_cc's record tests 2026-11-28 05:01:41 +01:00
soul
f0ada351b2 Delete ship_cc.py's envelope writers and raw readers 2026-11-28 05:01:29 +01:00
soul
13504341c0 Commit the Arsenal Depot's packager manifest, with Fa.1; gen_manifest refuses a station
tools/blender/manifests/arsenal-depot holds package.json and hull.scad; a test holds the kind, rows
and hull.scad equal to the shipped package. gen_manifest.py exits with a message on a station.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-28 04:36:25 +01:00
soul
6f850a4b2a Facility icon in the Settings asset, GetIcon fails by name; HardpointType values pinned
ItemIcons gets an entry for Facility (the Tool sprite, no new art) in place of the empty one, and
GameSettings.GetIcon names the type when an entry is missing instead of throwing IndexOutOfRange.
Tests pin each HardpointType to its stored number and one non-null icon per type in the asset.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-28 04:36:24 +01:00
soul
04b054810f Change note: station facility mounts
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-28 04:33:25 +01:00
soul
16293d95a0 Arsenal Depot takes a Facility row; the station room census
ship-authoring push gives the depot one 2x2 Facility row, Fa.1 at (4,2), clear of every other row.
StationFacilityRoomTests judges the booted catalog: every offered station hull takes the facilities of
every kind it serves (with a positive control that names a rowless Zenith) and keeps room for the
Medium Docking Bay and a heater with every hardpoint's cells taken.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-28 04:33:24 +01:00
soul
82486837e6 Catalog: six facility designs, every kind's Facilities, every recipe's Facility, Zenith's Fa.1
economy author Facilities (apply) gives the six station kinds recipes run on a 2x2 facility design
(Extraction Rig, Volatiles Skimmer, Algae Vats, Refinery, Fabrication Line, Munitions Line) with a
NotOffered branded product each, lists it on the kind and names it on each recipe. station-kinds
facilities "Zenith" 9,7:##/## gives Zenith its Facility row. catalog resave leaves nothing stale. The
economy report keeps its 139 faults and adds no L-facility fault. Two tests that counted products now
count the offered ones, since a NotOffered facility product is on no market.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-28 04:33:24 +01:00
soul
0190411917 Economy batch Facilities and the recipe helpers that read it
Facilities authors one facility design per station kind a recipe names (a 2x2 GearData on a Facility
mount holding FacilityData, sold by a NotOffered product), sets each kind's Facilities and every
recipe's Facility, writing only what differs. Facilities.Of is the one lookup: Munitions,
MunitionsFeed, MunitionsBills and OresAndProvinces set a recipe's Facility through it, and Munitions
keeps the Facilities the catalog already holds when it rewrites munitions-works.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-28 04:33:23 +01:00
soul
9c60e46ea4 station-kinds facilities: the one writer of a shipped hull's Facility rows
AetherDb station-kinds facilities "<hull>" <x>,<y>:<footprint>... [apply] replaces a station hull's
Facility rows with exactly the rows given (Fa.1, Fa.2...), keeps every other row, refuses a hull that
is not a station, a malformed row, a cell outside the interior and an overlap, and prints the designs
that take each row before and after. Footprint and ParseFootprint are shared with ship-authoring push.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-28 04:33:22 +01:00
soul
c3499e6b34 L-facility, the station room census, and the random fill leaves Facility rows alone
EconomyChecks gains L-facility: a recipe names a recipe facility some kind lists and its own kind
lists it; a kind's Facilities hold recipe facilities; a FacilityData sits only on Facility gear.
StationKinds.FacilityRoomFaults judges that every offered station hull has the Facility rows to take
the facilities of every kind it serves. LoadoutGenerator.EquipHardpoints skips Facility rows (a
kind's Facilities fill them, a later cut); IsHeater is internal for the room test. The economy
fixture gains the facility design MillWorks and a Facility row on each station hull.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-28 04:33:21 +01:00
soul
d932484721 Facility vocabulary: HardpointType.Facility, FacilityData, RecipeData.Facility, StationKindData.Facilities
HardpointType.Facility is appended after ControlModule (value 13) with ship_cc's names in step: an
internal station mount, no anchor, filled only by a kind's Facilities. FacilityData is an inert
BehaviorData (union arm 53). RecipeData.Facility (Key 10) and StationKindData.Facilities (Key 3) read
unset and empty from older records. HullKindFault refuses a Facility row on a Ship or Turret hull.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-28 04:33:21 +01:00
soul
6518f260a2 ship-authoring push: refuse a blank hull name, judge any named or stored kind, builders read no verdict so price and stats need no catalog
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-28 02:38:23 +01:00