Commit graph Aetheria/tools/AetherDb/Economy
Author SHA1 Message Date
soul
75e9d96901 Bays have one role set by their design; goods land only in bays of their role
BayRole and CargoBayData.Role (by type), IngredientBayData and ProductBayData, SiloData is a product bay.
StationWants reads Role: ingredient bays hold drawn goods in whole cells, product bays hold outputs
and ordered goods, no fallback to every bay; Need and the IngredientCycles/ProductCycles knobs.
LoadoutGenerator.FitRoleBays fits the role bays after FillInterior; gear stock goes to the Stock bays.
IngredientShare, StockRoom and the first-non-silo gear pick are deleted. Facilities authors the two designs.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-12-03 00:37:52 +01:00
soul
b4e25c5821 Atmospheres batch and Aetheria.cc: atmosphere:gas-giant, the ground a skimmer skims
economy author Atmospheres apply wrote one record, Methane 3, Water 2, Ammonia 1 (first-draft knobs, ruling
economy-numbers-are-sim-tuned-knobs); the reprice that follows touched nothing. The batch writes only where the record differs by fields.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-29 07:48:08 +01:00
soul
c81549139d Crew Quarters is station plant: Facility gear on a Facility row of every hull, seated last; an unset table row owes nothing
StationKinds.InstalledDesigns is the one list of what a station installs, read by FacilityRoomFaults and the generator. The quarters are seated after every other draw so the lot they make moves none. The conjure is named in the code and the batch (follow-up conjuring-site-deletions).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-29 05:42:25 +01:00
soul
cf91042828 CrewQuarters batch: the Crew Quarters design (HabitationData, twenty occupants, Water, Oxygen and Algae) and its not-offered product (cut habitation-gear)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-29 05:42:13 +01:00
soul
85a38ddd0f StationRings batch: first-draft rings for the nine kinds a faction fields (economy author StationRings apply)
mining 0, volatiles 0, agriculture 1, processing 1, fabrication 2, munitions-works 2, depot 3, trade-hub 3, shipyard 3; seven records change, a rerun writes nothing. Aetheria.cc committed with it.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-29 01:36:08 +01:00
soul
a73c3fb665 Refinery carries the silo: Facilities batch lists it after the recipe facility, Fa.2 on the Seized Refinery, package regenerated
The two one-facility rewrites in the Facilities batch are gone: a kind's Facilities is its recipe facility plus the silo when the silo lists
the kind (trade-hub, processing), written only where it differs. The silo's name and description are general. The Seized Refinery manifest
gains Fa.2 (2x2 at 6,9) and aetheria.seized-refinery is regenerated through package_hull.py (PACKAGE_OK, hull.scad byte-equal, reach 6.69).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-28 20:00:02 +01:00
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
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
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
b4d5fe27f3 Pin MunitionsBills to the shipped catalog: apply on a copy and compare prices, role counts and part inputs; header comments no longer say a rerun writes nothing
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-28 00:06:09 +01:00
soul
1136870e51 MunitionsBills: tier role variants and four tier parts for the ballistic designs; the munitions design recipes move from Munitions; economy author MunitionsBills applied
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-28 00:06:06 +01:00
soul
24b000eba8 Delete the applied RawStartPrices batch
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-27 03:33:50 +01:00
soul
c8e17c203f Price the raw goods left at 0 and every made commodity: RawStartPrices applied to Aetheria.cc
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-27 03:33:49 +01:00
soul
631653d940 Delete the applied CommodityShapes batch
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-27 01:21:29 +01:00
soul
ab7d283315 Give the 90 shapeless commodities one cell: CommodityShapes applied to Aetheria.cc
economy author CommodityShapes apply: 90 changed, 0 added, 0 removed; a rerun writes nothing. The shipped
catalog now has no L-shape fault and every shipped simple commodity fits an empty hold.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-27 01:21:28 +01:00
soul
471f70b391 Commodities default to one cell; an L-shape check refuses a stored commodity with no Shape
SimpleCommodityData and CompoundCommodityData construct with a one-cell Shape. EconomyChecks.Shapes
names every commodity whose Shape is null or empty, and economy author refuses a batch that
introduces one. The Shape initializers the default makes redundant leave Munitions and Ore.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-27 01:19:10 +01:00
soul
bf0d1ed249 Ore batch apply, code: OresAndProvinces replaces DemoOre; MunitionsFeed keeps references to the batch's four recipes; L-weights shape rule (aetheria-living-world, cut ore-batch-apply r3)
OresAndProvinces (from 371b4d04a) is the one writer of ores, their extraction recipes, the first smelting step, field kinds, province types and the mining station text. Ore() and Rename() set a Shape. DemoOre, DemoOreSheetTests (two tests moved to OresAndProvincesTests), Program.cs FieldKindsCatalog and MunitionsFeed's Make(CultRecordKey) and four Make calls are deleted. StationKindDescriptionTests asks Recipes.IsRaw. EconomyChecks.Weights (L-weights) refuses negative or non-finite weights and dangling yield, kind and ore refs. The catalog apply is the next commit.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-26 17:08:19 +01:00
soul
bbb25814a2 Fix Soul s1 findings: MunitionsFeed finds the renamed ores by key, hold bound at midpoint, ruling citation
MunitionsFeed named Rock and New Metals by name and was refused after the
rename; it now takes DemoOre's keys, with a dry-run test at head. The hold-value
bound is the midpoint of the shipped reading and the least claimed mutant on
each side. DemoOre cites regolith-demo-retune (in force) instead of the
superseded gear-scale ruling.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-26 02:45:17 +01:00
soul
45cc484049 Demo ore sheet: Rock becomes Regolith at price 1, New Metals becomes Nickel-Iron
Rulings regolith-demo-retune and rock-becomes-regolith. DemoOre finds the two
renamed records by key, takes the ores batch's names and descriptions, and
shifts Asteroid yields to 5/4/1 so a full hold is worth about 900 a unit
against 920. The mining station description names the new ores
(StationKindsCatalog row, restated into the catalog). Catalog rewritten
through AetherDb economy author.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-26 02:45:16 +01:00
Nibu
3ccb980185 Ore sheet: DemoOre batch and tests for the Asteroid ore yields, holdability and prices
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-12 23:01:04 +00:00
Nibu
dcd27cb3b0 Station-kind descriptions name only goods a recipe makes or takes
Uranium, Hydrogen (and Bacteria, Fungi, Animal Products) were named by mining, volatiles, agriculture, habitat-support and power descriptions with no recipe behind them. Dropped the claims (smaller than authoring a power chain); batch StationKindDescriptions restates the five kinds in the catalog; test pins the rule.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-11 05:59:44 +00:00
Nibu
ac45a5c836 AetherDb: mining and volatiles descriptions name Diamond and Ammonia; the ExtractionKindDescriptions batch restates them
Every commodity a kind extracts (a recipe with no inputs) is named in that kind's description: checked over the shipped catalog, only these
two kinds broke it. The batch applies in the catalog commit that follows; until then the catalog tests for it fail.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-11 04:35:18 +00:00
Nibu
1f93e22239 AetherDb: MunitionsFeed gives the munitions chain real sources; Mines; every round-firing gun names its round
MunitionsFeed (run after Munitions) authors the chain's leaf recipes: extraction at mining (Rock, New Metals, Gold, Potassium, Diamond)
and volatiles (Water, Methane, Ammonia), Algae at agriculture, Oxygen/Steel/Cellulose Pulp at processing, Circuit Board/Actuator at
fabrication. Munitions adds the Mines commodity and recipe, AmmoType=Ammo on Slug Rifle, Long Slug Rifle and Light Machine Gun, AmmoType=Mines
on the Mine Launcher, a real Light Machine Gun magazine (0 -> 100 rounds, reload 3 s), and Zhestokost depot stand-ins for mining,
volatiles and agriculture so the new recipes' station kinds are placed. Tests read the shipped catalog (pending the blob commit).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-11 03:19:46 +00:00
Nibu
386f29bf0d Generated ships carry the crates their weapons reload from; Missiles gets a cargo shape; comment and lore fixes
LoadoutGenerator.GenerateShipLoadout, the one owner of NPC and generated-scenario fitting, now stocks AmmunitionCrates (3) of every
distinct AmmoType the ship's weapons draw, after the consumable roll and without touching the random stream; it logs and goes on if
no hold takes them. Missiles is authored with Ammo's 1x1 shape and a stack of 5 (a shapeless commodity cannot be stored at all).
Tests: generated ships hold exactly the crates they draw and none of an ammunition they do not; a magazine weapon with no AmmoType
still reloads free. weapon-ammo moves so RangeFalloff keeps its doc comment; the Munitions comment and lore now match the recipe
(warhead and motor, magazines 2 to 288).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-11 02:55:39 +00:00
Nibu
8f77000844 Launchers draw real rounds: Missiles commodity and recipe, a reload that pays its crate, a reserve readout
Rulings ballistics-real-ammo and ballistics-cycle-power, follow-up launcher-ammunition. The Munitions batch adds the Missiles
commodity (a high-explosive warhead and a rocket motor at the munitions works; guidance waits on the electronics chain) and sets
AmmoType=Missiles on the five launcher designs; reactor energy per shot stays as authored.

InstantWeapon: the reload used to refill the magazine on its timer and never reach the cargo branch in UseAmmo, so no ammunition-fed
weapon ever paid a round. The refill now takes one unit of AmmoType from cargo (TakeReloadRound) and, with none, the magazine stays
empty; UseAmmo only starts a reload when a unit is there. Weapon.Reserve exposes the cargo count and the HUD shows rounds/reserve for
magazine weapons.

Tests: shipped launchers all name Missiles and Missiles has a recipe; a fed weapon fires its magazine and no more without crates,
reloads once per crate; Reserve equals the cargo count and falls per reload. The commodity count pin goes 22 to 23.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-11 01:58:59 +00:00
soul
5177154c17 Economy batch 1: Zhestokost munitions chain (unapplied, for operator review)
Dry run on the composed catalog: zero shape faults introduced; 49 records
added, 4 changed. Review page published separately.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-23 12:45:20 +02:00