Compare commits

..
Author SHA1 Message Date
soul
84c6980f8b Queue galaxy generation phase labels in MainMenu UI without delaying generation 2026-12-04 12:33:13 +01:00
soul
5ed14093b4 Remove artificial Thread.Sleep startup delays in Galaxy 2026-12-03 21:36:34 +01:00
soul
93af7cce4c Subtract five zero-reference Unity scripts and their meta files 2026-12-03 21:35:35 +01:00
soul
359422a86c Subtract dead IInteractiveBehavior and Entity.GetExposed 2026-12-03 21:35:04 +01:00
soul
38ad707075 Subtract unused Unity.Tiny.Rect and dead reflection deep-copy in Extensions 2026-12-03 21:34:51 +01:00
soul
913faf3c9f Subtract dead Narrative subsystem and unused SavedStory 2026-12-03 21:34:24 +01:00
soul
bb1411712d Subtract unreferenced NIH/LinqFaster and its using/credits entries 2026-12-03 21:34:12 +01:00
soul
fb184066b6 Name the gear-room reading GearCellsLeft: StockRoom is a name the role-bay cut retired
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-12-03 06:13:16 +01:00
soul
2c8f5dd97f Re-pin TwoAiDigestIsPinned for the role bays on windows-x64 and linux-x64
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-12-03 05:04:46 +01:00
soul
05206a83eb Pawned gear stops at the stock share, mines list only their ground's ores, the region and transfer pins say what is true
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-12-03 04:41:27 +01:00
soul
1a4d99c516 The hauler turn count separates the refusal-expiry mutant; the transfer count is a ceiling
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-12-03 02:59:20 +01:00
soul
719035745f Tests follow the role bays: fixtures hold by role, new pins for Role, bulk-only bays, whole-cell shares, Need and the named hull fault
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-12-03 02:33:43 +01:00
soul
52d71d8037 Author the ingredient and product bay designs into the catalog
economy author Facilities apply: bay:ingredient, bay:product and their NotOffered products.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-12-03 00:39:12 +01:00
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
628ff140df AVisitThatDeliversWritesNoSight loads what To's share has room for
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-12-01 17:30:12 +01:00
soul
515e861edf StationWants.Stack reads a compound commodity's MaxStack; the demo loop sells the stack its hold holds
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-12-01 17:18:19 +01:00
soul
1e1444c571 StationWants: the shares sum to IngredientShare x the stock room the gear leaves; a role is one slot; H-drain-stall names a supply-bound hold
Holding gives every drawn good its one-cycle floor, then divides what the floors leave of the target by the slots' rates (a role's rate shared by its fillers), so the shares
never exceed the target; FloorCells reads a hull whose floors alone overflow its room. SortieOutputUnchangedByBoot reads 10 sold and 110 refused for 851.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-12-01 17:05:25 +01:00
soul
45c7239f9f Tests: the drain and region pins read the ingredient shares
SortieOutputUnchangedByBoot (37 sold, 83 refused, 971 credits), AFullRefineryIsAStallFault (the shipped refinery waits Inputs holding goods whose partners did not
come), ASaturatedRefineryIsNamed (a supplied refinery keeps its other recipes: no Room stall; the saturated fault is read on a sample that ends Room-stalled),
RegionLegsFeedTheChain (RigRunningShare 0.17 -> 0.135, geometric mean of 16.5 and 11.0).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-12-01 16:09:47 +01:00
soul
e8c7d8e1d1 StationWants: a drawn good stops at its share of the stock bays (Holding), split by the rate installed recipes consume it
Ruling stations-buy-ingredients-to-target-share. LandingOf's drawn branch no longer yields int.MaxValue room: it yields Holding less the units
held over all bays. Holding is derived per call from the installed recipe facility units (a slot per Input, Upkeep and role, at count over the
run list's summed cycles), floored at one cycle, one stack for a crew-only good. balance --region prints inputs held at end with each holding.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-12-01 15:33:29 +01:00
soul
c9891d8b24 docs: aetheria-fauna map: leviathan entourage and harvest (host frame, niches, harvest legs)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 14:37:12 +01:00
soul
7c228fb2cf Pins: the learn visit's sight is read before the unload, and Fly stops on a hauler that cannot learn
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-12-01 14:18:58 +01:00
soul
34e57f891f A sight is stale or fresh by one rule; stale sights go before a load; the Took limit and the probe go
Soul s4. A stale sight of a good the hold did not carry loaded the good whole (no sight), and the same sight, stale but then carried,
counted as a refusal at the next dock: the load was returned every 660 s for ever. Prune drops the stale sights the hold does not carry
before a call at From loads, so Fresh is the only rule and Load and Return read one sight one way. The Took limit and ProbeFactor
(h5, h6) delivered the same with any value or none, so they and the Took field are deleted: what does the work is that a good refused and
still fresh is not loaded, and a visit that delivers a good whole writes no sight. Tests: a stale sight is dropped before the load, no
hauler loads at From and gives the load back at From, the unload keeps the refusal and restarts its clock.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-12-01 14:18:57 +01:00
soul
051020dc5b A hauler loads up to twice what the door took on its last fresh visit
Self: a carrier that brings only what was taken last time can never find a door that has grown hungrier. LoadLimit is ProbeFactor (2)
times the units taken (at least one when any was), capped as before by the hold and by what From holds; a fresh outright refusal still
caps it at zero and a good with no fresh sight loads whole. ALoadFollowsWhatTheDoorTook pins six for three taken.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-12-01 14:18:56 +01:00
soul
14e9e11ecd A refusal does not expire under its own cargo; a hauler loads toward what the door took; Takable once per visit
Soul s3. A sight (HaulSight: good, when, units taken, units refused) holds SightLife seconds, but a refusal of a good the hold still
carries holds as long as it is carried, and its clock restarts at the unload at From: the trip home outlasts 600 s and the hauler used to
turn round on its own expiry (5 to 16 percent of jumps). A call at From loads each good up to what the door took on the last visit (the
whole hold of a good it has no fresh sight of); a visit writes per good what was taken and refused. A visit derives what the station takes
once (Callable hands it to Call, Fly asks Call alone), and Fly ends on a second call in a row that left the hold as it was, so a mutant of
the memory fails fast instead of spinning the pass.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-12-01 14:18:56 +01:00
soul
e8e2087be8 ReturnedGoodsLandInTheOutputBays: a silo with room for one stack gives the hauler back a stack and no stock bay takes the rest
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-12-01 14:18:55 +01:00
soul
c77ef59953 A hauler acts on what it saw at its To door, saved with it; no zone's bays are read from afar
Ruling hauler-remembers-what-it-saw. HaulRun.ToStation and its live read of the To station's bays are deleted. A hauler writes down at
the To door which goods of its order were refused and when (Ship.HaulSeen, EntityPack Key 25); the leg is To while the hold holds a good
it does not remember being refused, and a call at From returns what it remembers being refused and loads the rest. A refusal lives
RefusalLife seconds, so a stale memory costs a real round trip. At the To door a call delivers what the station takes or learns what it
does not (StationWants.Takable, derived once per call there and nowhere else). Tests: the learn-and-carry-home round trip, no leg reads
another zone's bays, any-versus-all on a mixed hold and expiry, returns land in the output bays, the dive at every jump, the memory
saved with the hauler, and wormhole transfers bounded against the memory-less mutant.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-12-01 14:18:54 +01:00
soul
4d7689d002 AHaulerDocksOnlyToMoveSomething: a hauler the refinery refuses heads for Zenith with its cargo
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-12-01 14:18:53 +01:00
soul
4cc7d861a5 A hauler whose To takes nothing it holds returns to From, unloads there and loads only what To takes
Ruling leftover-unloads-at-from. Leg is To while the hold holds a good of the order the To station would take now, From otherwise;
a call at From first returns the goods To refuses to the output bays (StationServices.Return), then loads only what To takes
(StationWants.Takable, one derivation of what the station wants for all the goods: a hauler asks on every call). A hauler never
waits at a door holding what it refuses (Soul's wedge probe, NoHaulerWaitsAtItsToDoorHoldingWhatItRefuses); ACallAtFromReturnsWhatToRefuses
pins the unload.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-12-01 14:18:53 +01:00
soul
7f1a6012e1 SeededLegsJoinOneFactionNearestFirst reads recipe draws from the equipment, not from StationWants
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-12-01 14:18:52 +01:00
soul
56f8fce8e9 Fly paces as the pilot does; Transfer ends a parked dive; a call that moves nothing ends Fly
Fly charges one dive (WormholeAnimationDuration) at each jump and returns the seconds left, so a crossing off screen takes about the
sim time it takes on screen (0.996 on a 2.1 km crossing; the old model read 0.4). HaulRun.Transfer, the one move between zones, ends any
wormhole animation parked on the ship (Ship.EndWormholeAnimation): a hauler mid-dive that Advance flies on no longer throws when its
new zone steps it. Call returns the units moved and Fly stops on a call that moved none (the To branch's space clause had no
assertion and a mutant of it spun Fly's step guard). An exit animation points into the zone. RegionClock's header reads once.
Tests pin the pace (Fly at half and at twice the speed, Advance flying absolute time), the stale dive, the To space clause, the leg
stream and its carry-back.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-12-01 14:18:51 +01:00
soul
d267a2d2b4 A standing order carries only goods its To station's installed recipes consume
Seeding read Drawable, which included the crew's table and every draw of every recipe; it now reads Consumed (recipe draws only, startable
or not). A crew-only good has no seeded leg; a hauler can no longer be handed a good no recipe at its To takes.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-12-01 14:18:50 +01:00
soul
5ca76f266a Waypoint reads the ship's own zone first
A leg whose orbit lies in the hauler's zone needs no search of the region (and a galaxy whose entrance Contents a test never set
made the search find no zone, leaving the on-screen hauler idle: TheLegIsTheHold and AHaulerCarriesSiloOreToTheRefinery).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-12-01 14:18:49 +01:00
soul
1b77efa736 Tests: flight agreement bound and the legs feeding the chain
OffScreenFlightAgreesWithOnScreen bounds off/on at 0.57 (shipped 0.403, Fly at half speed 0.807); RegionLegsFeedTheChain pins that the
served Pirates and Zhestokost rigs run more than 17% of the spans (shipped least 26.3, no legs 11) and their refineries run.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-12-01 14:18:48 +01:00
soul
bf139f9f06 Tests for the seeded legs in flight
Seeding once and deterministically, the no-silo producer loading where its outputs land, off-screen hauling and jumping, cargo
conserved across legs, jumps and a save, a hauler entering the player's zone as a ship, an on-screen hauler leaving by its wormhole,
a hauler waiting for a free empty bay, and a killed hauler not replaced.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-12-01 14:18:48 +01:00
soul
b76df4fd19 AetherDb usage and ParkHaulers comment name the legs that fly
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-12-01 14:18:47 +01:00
soul
1e94983377 The region harness flies the seeded legs through RegionClock.Advance
EconomyRegion no longer parks the haulers or drives zones with its own AdvanceTo loop: each tick calls RegionClock.Advance(galaxy,
null, time). The report counts legs and haulers; an idle recipe's missing input reads as a cross-faction leg (region-cross-faction-legs)
or a lost hauler, and the 'no cargo moves' line is gone.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-12-01 14:18:46 +01:00
soul
c1890739e4 Haulers cross zones by wormhole: waypoint, jump, and Fly off screen
HaulRun.Waypoint names the leg's orbit and the next hop toward it (FindPath); on screen HaulState flies to the zone's wormhole
(MoveToPointState) and commands the Jump verb, which dives and transfers when the dive ends. Off screen RegionClock.Advance
advances the zones of its set, then flies each hauler once (HaulRun.Fly: straight at the waypoint at Agent.TopSpeedOf, Call at a
station when CanCall, Jump at a wormhole, stopping when it waits or lands outside the advanced set; into the player's zone it plays
ExitWormhole). Step's boundary and Enter's settle both call Advance. Zone.AdvanceTo stays facilities and populations only.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-12-01 14:18:45 +01:00
soul
d4dd0f9dcb RegionLegs seeds same-faction haul legs at generation
For every station and every good its installed gear could draw and it does not make, one order from the nearest producer of its
own faction (jumps, then zone index, then entity order), one order per (producer, station), Commitment generation:region-legs;
then one piloted hauler per order at its producer's orbit. RunStart.SeedLegs (its own item stream, LegStep) runs after Materialize
in Begin and in a region boot of AetherDb; Continue seeds nothing. The hauler hulls are conjured by the faction's
LoadoutGenerator: interim scaffolding (economy-is-never-faked, demo-hulls-staged), named for conjuring-site-deletions.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-12-01 14:18:44 +01:00
soul
df0b703689 OutputBays owns where a hauler loads; CanCall needs a free empty bay
StationServices.Load and HaulRun.CanCall read StationWants.OutputBays per good, not SiloData bays: a station with a silo is
unchanged, one without loads where its outputs land. CanCall also requires the bay TryDock would take to exist and hold no cargo
(TryUndock refuses one that does). StationWants gains Drawable (every draw of the installed recipe facilities, startable or not)
and Makes (the set Allocation builds); Agent.TopSpeedOf gives Fly and the pilot one speed rule.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-12-01 14:18:43 +01:00
soul
051bf201cd Zone.Wormholes owns where wormholes are; the ratio moves to GameplaySettings
The renderer derived wormhole positions from GameSettings.WormholeDistanceRatio and the player's exit read them back from its
instances. Zone.Wormholes (and WormholeTo) now derive them from GameplaySettings.WormholeDistanceRatio, which Settings.asset
carries under GameplaySettings (0.75, unchanged); ZoneRenderer draws what the zone says. WormholesAreTheZones pins the
positions, the exit gate included.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-12-01 14:18:42 +01:00
nibu-hands
a5b7d459ef The leviathan keeps Deru's baked lighting: the delight step leaves the recipe (ruling leviathan-skin-as-baked)
leviathan.intents.json drops brokkr_mesh_polish.delight; rig.ps1 reran and the committed .springrig is its export, sha256
F9C9C720998464ABCA72567B02F606DA6D94ECCCE36791C87ED3C6E4D18D8BBA (6.6 MB: the source JPEG is kept, not a re-encoded 22 MB PNG). The
tendrils stay supple. The pinned base colour hash becomes 975E8E8458CCBA274F94B777745265291530F26F4E42EFA9F3FFDD85D3BF28C4, the same
with Direct3D11 and with -nographics. Run, VerifyGlbCases, ImportNoGfx and VerifyGlb on the asset pass; the rest-pose reading is still
6.02e-7 against the 7.8e-5 tolerance.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-12-01 14:09:23 +01:00
nibu-hands
c206a6ea51 Soul s1 fixes: the base colour is decoded on the CPU; the shadow, normals, root jump, ease default and colour space are pinned
import-needs-gpu: SpringRigImporter.Albedo no longer blits through a RenderTexture: decode, area-average downscale, mip chain and BC7 are
CPU work, so the texture is the same with or without a device (raw SHA-256 E204A8B6B6CD1F93185B6AACCD2D1B95A61508B498F8ABA302C57E34049498AE
with Direct3D11 and with -nographics). The importer version is 2 and the importer depends on its own script, so an edit reimports.
SpringRigVerify.ImportNoGfx (run with -nographics) reimports the committed asset and checks the hash; importer-builds checks the same hash
and that the texture is sRGB.

shadow-skin-unpinned: shadow-is-skinned renders a ShadowsOnly leviathan under a downward light and compares the floor shadow with the
projection of its skinned triangles: IoU 0.877 shipped, 0.330 with SHADOWCASTER dropped from the shader guard; bound 0.538.

edges-unpinned: root-jump-resets (a joint 1.79 from rest if a jump during the ease seeds from the drawn pose, 8e-8 shipped; bound 3.9e-4),
normals-are-skinned (light seen from a bent whale 41253 shipped, 13667 with the normals unskinned; bound 23700), the BlendSeconds default in
0.5 to 1 (kills 0.25), sRGB (kills a linear texture). Each mutant fails Run; the final Run passes.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-12-01 14:09:22 +01:00
nibu-hands
d8267e5d09 The leviathan as a rigged asset: Brokkr recipe, source, rig.ps1 runner, the committed .springrig, importer and file checks
- Asset Sources/Fauna/leviathan.source.glb (Deru's source, LFS) and leviathan.intents.json (the recipe's intents alone): importGltf,
  brokkr_mesh_polish.repair, .orient (length 1, flip_forward so the head lands at Blender -Y, glTF and Unity +Z), .delight (clusters 3),
  brokkr_rig.body (spine_bones 8, head -y, Soul's seeds jaw, sac_a, sac_b, fin with x and y negated through the half turn: the receipt names
  all four parts), .tendrils (tau .04, band .04, dilate .04, stiffness 1.5, stiffness_tip_ratio 0.3, drag 0.08), .colliders, exportGltf.
  These are the recommended options of questions leviathan-delight (delit) and leviathan-tendril-feel (supple); another ruling is an edit
  to the intents and a rerun.
- tools/blender/fauna/rig.ps1: makes private BLENDER_USER_* directories under -Out, writes the recipe with absolute directories,
  runs Brokkr's run_intents.py, copies the export to -Dest. Rerun from the source and intents it gave a byte-identical file (sha256
  23800FEEC4ADF1A2075A224FB2F8832C89BFF775D93C147A5B88E188040A8ECF).
- Assets/Content/Fauna/Leviathan/leviathan.springrig (LFS) and its .meta, whose importer fields carry the swim (amplitude 9, period 3.2 s,
  0.1 phase per bone, axis x). Assets/Content is the Addressables folder entry, so the whale is addressable by GUID.
- .gitattributes: the .springrig and Asset Sources .glb files are LFS.
- SpringRigVerify: importer-builds (the main object, Rig, the mesh's streams and vertex count against glTFast's, BC7 with mips, the
  Addressables entry, Awake) is the last check of Run; VerifyGlbCases adds the committed asset (exit 0, head at +Z: the spine root rests
  past the mesh's centre along Z). glTFast's import is one function, Import, for the comparison and the importer check.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-12-01 14:09:21 +01:00
nibu-hands
67120a0236 SpringRigImporter and CaptureAsset; the synthetic Capture and TubeMesh are deleted
SpringRigImporter ([ScriptedImporter] for .springrig, a rig GLB) derives everything from the file's bytes: SpringRigData.FromGlb decides
acceptance (a refusal is an import error and no main object); glTFast loads and instantiates the same bytes once, driven to
completion on a one-thread synchronization context (its RunSync is internal), and the one skinned mesh is repacked into SpringSkin's
streams (Float32 position and normal, uv, Float32x4 weights and UInt32x4 indices); the base colour is decoded from the image the
material names, sRGB with mips, compressed to BC7 at most MaxTextureSize (4096) a side; the material is on Aetheria/FaunaSkinned with
smoothness 1 - roughnessFactor; the rig is a TextAsset of the GLB with every image's bytes zeroed. The main object has MeshFilter,
MeshRenderer and SpringRig (Renderer, Rig, Swim from the importer's serialized field). Nothing derived is committed.

SpringRigVerify.CaptureAsset (SPRINGRIG_ASSET an Assets path, SPRINGRIG_CAPTURE_OUT absolute) loads the imported main object through
AssetDatabase and swims it along +Z with a slow yaw under one shadow-casting directional light and flat ambient; optional focus,
distance, side, frames and a floor to see the shadow. It restores the quality settings it changes. MakeMesh in the checks now calls
SpringRigImporter.Pack, the one owner of the stream layout.

Deleted: Capture (the synthetic-tube swim capture) and TubeMesh, which only it called.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-12-01 14:09:20 +01:00
nibu-hands
8930122e92 FaunaSkinned: a Standard surface shader; the hand-written ForwardBase pass is deleted
Metallic workflow with _MainTex, _Color, _Glossiness, _Metallic and _Cull (the first three the names SkinMaterial and the checks use).
vertex:vert skins position and normal with SpringSkin; addshadow makes the shadow caster skin the same way, so the whale casts its
skinned silhouette. It is the look shader.

SpringSkin.cginc stays as it is. The surface shader's analysis pass cannot parse its StructuredBuffer ("Unexpected identifier
StructuredBuffer"), and defines no UNITY_PASS_*, so the shader includes the file only under UNITY_PASS_FORWARDBASE, FORWARDADD,
SHADOWCASTER or DEFERRED and gives the analysis pass a one-line stub of SpringSkin. skin-matches-cpu passes on it.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-12-01 14:09:19 +01:00
nibu-hands
eb8b92a797 SpringRigVerify: VerifyGlb is a thin wrapper over one file run, GlbFile, that VerifyGlbCases also runs; the bind and rest thresholds pinned
Finding cut-whale-rig-glb-check.s2.exit-and-thresholds-prose.
- GlbFile(path, done): a missing or unreadable path is exit 1, a refusal or a failed comparison is 1, a pass is 0. VerifyGlb checks the
  device, logs and exits with that code; nothing else chooses an exit code.
- VerifyGlbCases adds the file cases that need no asset: a text file named .springrig and a missing path are exit 1.
- A Disturbance has a phase (Imported: before the bind and rest poses are compared; Posed: before the bake). Two cases move one bone's
  bind pose, and one bone's rest node, by 0.01 and expect the named refusal.
- BindTolerance and PoseTolerance 1e-4 -> 7.8e-5, the geometric mean of the shipped worst reading (rest 6.0e-7 over the Synth cases and
  the leviathan; bind exactly 0, so the rest reading stands in) and the disturbed case's 1.0e-2: separation 129 and 128. The comparison
  logs both readings on every run.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-12-01 14:09:18 +01:00
nibu-hands
c24f76f47a SpringRig: a return to Full mid-ease continues from the drawn pose; ease 0.75 s; bounds checked at both scales
Findings of cut-whale-rig-s1.s3 (ease-reentry-pops, ease-moves-fast, bounds-scale-one-sided).
- Present keeps a copy of the bone positions it drew and seeds the solver from it when the level returns to Full while the ease is
  part way (_restWeight < 1); a first Initialize, a fully eased return and a root jump still reset to rest.
- BlendSeconds 0.25 -> 0.75.
- SpringRig gets a serialized TextAsset Rig: Awake (and an Initialize() for editor code, where Awake does not run) builds the rig from it
  and the object's mesh.
- reentry-is-continuous: leave Full for 3 and for 8 frames and return; the returning frame's tip motion beyond rigid is under 0.41 of the
  chain. Margin rule: shipped worst 0.172, reset-to-rest mutant 0.970 (3 frames) and 1.207 (8), geometric mean 0.41.
- bounds-follow-the-swim runs at scale 1.5 and 0.6; a BoundsJob that ignores scale puts a vertex 1.24 outside at 0.6.
- freeze-and-reset derives its ease frame count from BlendSeconds.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-12-01 14:09:17 +01:00
soul
803b6e4e36 Isoline wiring fix batch 1: exact grid step, paired minimap cost gate, a play check that runs IsolineView.LateUpdate (soul s1)
grid-lattice-jitters-with-camera-position: Grid took its step from the difference of two ViewportToWorldPoint results, so the
lattice shifted with the camera's position. The step is now 2 x orthographicSize (x aspect) / target pixels. The smoke pins vertex
deviation instead of bit-equality: the worst distance of a 0.37-step pan's vertices from the first grid's contours over 31 map and 20
minimap poses, bound 0.05 step (shipped 0.0014, the differenced step 0.934, no snap 6.6 to 29).

minimap-cost-gate-flaky: the minimap is gated on the paired interleaved ratio to the same view at CellPixels 1 (shipped 0.68 to 0.70,
the regression 1.0, bound 0.82), which cancels the GPU's load; the map is gated on the median of 7 warm runs. Distributions are logged.

IsolinePlayCheck (ported from the soul pass's probe): boots a Duel and runs IsolineView.LateUpdate: both views draw, wiring, release and
rebuild on close and reopen, the same pan bound on the live pose cameras, one overflow warning per view.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-12-01 12:14:04 +01:00
soul
1a57d89a6c Isoline wiring: map screen and minimap draw through IsolineRenderer from one IsolineView; IsolinesUI, the map gravity cameras and their RT, and the dead isoline assets are deleted (aetheria-release, cut isoline-wiring)
IsolineView (execution order 100) owns one view's frame: grid from the pose camera (world-anchored), levels from
MapPresenter.ContourRange, terms from ZoneRenderer.Terms, look, cell size and capacities from the new
GameSettings.MapIsolines and MinimapIsolines (values written into Settings.asset). The map's Gravity Lines Image keeps
Map Gravity Lines.mat on UI/MaskedWorldSpaceUI with a per-view material instance; the minimap's Gravity Fields RawImage
takes the target as its texture. Overflow is logged in debug builds only, from a Stats readback that never feeds rendering.

Deleted: IsolinesUI.shader, Isolines.shader, Zone.mat, Minimap Gravity Lines.mat, MinimapGravity.renderTexture, both Map
Gravity cameras, MapRenderer's gravity camera path, ZoneRenderer.MapGravityMaterials and MapPresenter's material writes.
The layer-9 Gravity Field quad and the fog and slime cameras stay.

Smokes: capacity guard; grid is world-anchored; shipped capacities hold; overflow message; per-view captures and cost
through IsolineView.Grid and Settings.asset; the old field-camera and blit legs are gone; GravityFieldParityVerify checks
the layer-9 cameras and both views' wiring.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-12-01 12:14:02 +01:00
soul
b5146fbf79 Inventory grid deletes: InventoryCell, the three prototypes, the four oracle fields and the five sheets
Deletes InventoryCell.cs, the sprite sheets Nodes8.png, Nodes8.psd, Nodes8BG.png, pipes.psd and pipes.png with their .meta (and the emptied Nodes folder's .meta), InventoryPanel.NodeBackgroundTextures, NodeTextures, ThermalTextures and NodePrototype, their serialized arrays on the five panels, and the deactivated Inventory Cell prototypes of the prefab and of the HUD and enemy panels with their children and components. The two ARPG.unity instances of Inventory.prefab overrode the prototype's RectTransform (12 modification entries); those go with it. The YAML was edited by text from a scratch script, never re-saved in Unity. The sheets sat in Resources, so they leave the build.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-12-01 10:58:34 +01:00
soul
40c16c4727 Inventory grid harness: judged against the golden of the shader's own output, not the sprite sheets
One bound, GoldenBound, replaces AtlasBound, ThermalBound and ThermalHullBound: the atlas, thermal and alpha/clip sections and the overlay capture compare the grid's render with the PNGs of tests/fixtures/inventory-grid (largest RGBA channel difference over the whole crop). The sprite oracle goes: Oracle, the sheet pixels-per-unit check, the mask 33/289 and 136/392 slip exclusions, the thermal least-squares fit, the hull states' whole-panel pixel parity (the atlas golden covers records to pixels, the records golden panel to records and rects), the tie-pixel exclusion and the thermal background check. The ghost is judged against the panel's own pixels: the panel's grid drawn before the drag, then the ghost alone with the panel shrunk to nothing; rgb halves in linear light (the target is sRGB), alpha in stored value.

Bounds by lodur:ruling:deterministic-bound-margin, readings in the comments: golden 12 (shipped 0 taken as 1, least mutant pipe-width-minus 153), overlay 7 (shipped 0 as 1, least mutant 43), ghost 11 (shipped 1, ghost-full-alpha 115). cargo-thermal-kept was killed by hull pixel parity; a direct check that the grid's Thermal flag follows the state replaces it. flip-ignored moves to the switch run (records golden). The ghost check picks an item inside the panel's viewport.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-12-01 10:58:33 +01:00
soul
44100ca4a8 Inventory grid harness: -goldenOut writes the shader's own output as the golden
tests/fixtures/inventory-grid holds the grid renders of the atlas (4 regimes x 3 passes x 2 widths), the thermal pipes (S32, S16), the five alpha and clip cases, and the overlay capture's three crops, written by -goldenOut in runs that still passed every sprite bound: atlas worst 4, hull worst 4, thermal rms 0.0430 and hull 0.1007, alpha and clip worst 1, masked 0 (the readings of cda9474b1), overlay worst 3. The next commit judges against them.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-12-01 10:58:31 +01:00
soul
3d715e8021 Play capture leaves no tracked asset modified
A run dirtied twelve tracked assets: eight render textures, the two gravity-lines materials, Stardust.mat (properties and descriptors set from code on assets loaded in play, saved by the exit) and the TMP fallback font asset. Finish now clears the dirty flag of every persistent loaded object before Exit, and logs which. The font asset is written by TMP's own EditorApplication.quitting callback (TMP_EditorResourceManager.cs:23), which clears the dynamic atlas of any dynamic font asset whose atlas is populated; the committed LiberationSans SDF - Fallback.asset still held a 536 KB populated atlas, so every Editor exit rewrote it. It is committed in the state that callback leaves (the same state, so the callback no longer writes).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-12-01 10:58:30 +01:00
soul
8ee198ef02 Inventory grid harness: Soul's probes, the un-highlight check and six more mutants
Interact gains what Soul's probes showed the harness did not reach (finding equip-flow-unpinned): a click on another cell after a double click counts 1, one hover handler per grid after repeated Display, the thermal right, top and bottom regions, and the bay-to-hull equip flow. The play capture clicks a second item and asserts the first is un-highlighted (kills unhighlight-dropped). tests/mutation_tests_inventory_grid.py --switch runs Soul's six mutants and a play kind that runs InventoryPanelsPlayCapture, so unhighlight-dropped and pulse-ignored are no longer run by hand. All 15 switch mutants exit 1 on the shipped code with the sheets still present.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-12-01 10:58:28 +01:00
soul
e78da0c815 ARPG.unity: reverse the editor's re-save churn of 2e8717f5d outside the inventory objects
Reverses hunks only (git apply -R of a filtered diff): the two Label lines, the ActionGameManager defaults and WormholeCamera, the m_text spelling and AfterStackBundles. Finding scene-resave-churn.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-12-01 10:58:27 +01:00
soul
ef31edc90c SpringRigVerify.VerifyGlbCases: pin the file path on edited Synth GLBs (unknown required extension, joint past bones, skin off by a known amount, vacuous mesh)
CheckGlb is the one FromGlb-then-compare path; VerifyGlb and the cases share it.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-12-01 08:32:31 +01:00
soul
b48cdbf752 SpringRigVerify.VerifyGlb: run FromGlb and the glTFast skin comparison on any rig GLB (SPRINGRIG_GLB)
Handedness and VerifyGlb share ImportAndCompare; HandednessCompare drops its unused Synth parameter.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-12-01 08:32:30 +01:00
soul
5c4306f482 docs: aetheria-release map: inventory grid deletes section IG-D
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 07:22:57 +01:00
soul
cda9474b18 Inventory grid harness: the rect bound sits at sqrt(2.4e-4 x 8.0) = 0.044 from the measured shipped worst and temperature-anchor-0's least reading
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-12-01 07:15:11 +01:00
soul
b172c35470 Inventory panels play capture: the Duel arena through MainMenu.Launch, each panel state asserted and written as a PNG of the overlay canvases
InventoryPanelsPlayCapture.Run (-pngOut <dir>): enters play mode from Main Menu.unity, launches the Duel test arena (the player's Longinus carries a Store-All Plus bay, a hostile Longinus is in the zone) and asserts and captures hud, enemy, pulse, menu, cargo, highlight, drag, hover and thermal at 1920x1080 through a camera RenderTexture (overlay canvases switched to ScreenSpaceCamera for the frame, then restored). 300 s real-time budget, exit 0 or 1. Also: the mutation script's named-mutant filter takes effect.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-12-01 07:15:09 +01:00
soul
799b4c4c9f Inventory grid harness: the cargo state follows a thermal view on the same panel (kills cargo-thermal-kept); the mutation script can run named switch mutants
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-12-01 07:15:08 +01:00
soul
99d4a817b4 Inventory grid mutants: the switch's seven (six by exit 1 on the parity harness, pulse-ignored by the play capture); the cargo state follows a thermal view on the same panel
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-12-01 07:15:07 +01:00
soul
68311ae734 Inventory grid: the layout comment no longer names the retired group
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-12-01 07:15:06 +01:00
soul
e8a34004bd Delete the inventory grid migration: one shot, kept in history at the previous commit
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-12-01 07:15:04 +01:00
soul
2e8717f5d9 Inventory grid migration (one shot) and its output: Inventory.prefab and the HUD and enemy panels of ARPG.unity
InventoryGridMigration.Run, exit 0, four scene panels logged (HUD, enemy, the two prefab instances) beside the prefab: a last child `Cells` holding an InventoryGrid (cell size, padding, orientation, IconTexel, BgTexel, raycastTarget from the prototype), GridLayoutGroup removed (a VerticalLayoutGroup beside the menu Content's ContentSizeFitter), panel.Grid and Interactive set, CargoBackgroundColor from the prototype, prototypes deactivated, an inactive Drag Ghost on the prefab. Deleted in the next commit; it stays in history.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-12-01 07:15:03 +01:00
soul
c2070e9fe3 Inventory panel: cells draw and hit-test through the panel's InventoryGrid, RefreshCells the only record writer; harness switch half and Interact
InventoryPanel composes each cell's record only in RefreshCells(cells, highlight) (match predicates and GetColor unchanged), reads pointer input from the grid (Interactive authored), hover from HoveredCellChanged, draws the drag ghost as a second grid from RecordAt copies and the pulse as a per-cell background override. Flip derives from Grid.Orientation, TemperatureDisplay follows CellRect(-1,-1), InventoryMenu's selection goes through SetHighlight. CargoBackgroundColor carries the cargo cells' own background (the prototype's colour, .85, which the sprite cells never overwrote), so the golden's cargo records stay exact.

The harness compares the live panels' records exactly and their cell and temperature rects by a bound against the golden (-recordsIn), judges the live grid against oracle sprite cells built from the same records, counts the RefreshCells branches each state reaches, and Interact() sends pointer events through the grids. This commit needs the next one (the migration's prefab and scene) to run.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-12-01 07:15:01 +01:00
soul
7f9880f2e4 Inventory grid: hover events, serialized layout, Padding and RecordAt
The grid raises HoveredCellChanged(was, now) from pointer enter, move and exit (move reaches it during another object's drag), its cell size, padding and orientation are authored fields, and RecordAt is the exact inverse of SetCell for display copies (the drag ghost, the harness).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-12-01 07:15:00 +01:00
soul
afb6d69b76 Inventory grid parity: the hud and enemy states use the real ARPG.unity panels, -recordsOut writes the golden (records, cell rects, temperature rect)
Taken from the old sprite panels before any switch code. HUD and Enemy are copied from the scene as authored (no emulated multiplier, Flip, start corner or rect), the other five states keep the prefab. The golden is a run output kept outside git. FrameTime goes: it times the sprite writer the switch deletes.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-12-01 07:14:58 +01:00
soul
b5022e971a fauna: cost bound from both paired readings (whale-rig-s1 fix batch 2)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-12-01 05:53:29 +01:00
soul
75129c2467 fauna: bounds in a Burst job, tendrils ease to rest leaving Full, checks pin the VRM nudge, inertia, gravity mirror and the skin-outside collider (whale-rig-s1 fix batch 2)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-12-01 05:53:28 +01:00
soul
e1563fe433 fauna: whale rig check bounds from the measured readings, per the margin ruling (whale-rig-s1 fix batch)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-12-01 05:53:27 +01:00
soul
fa11319e8a fauna: SpringRigVerify kills Soul's surviving mutants and adds the rate, handedness, bounds and hysteresis checks (whale-rig-s1 fix batch)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-12-01 05:53:26 +01:00
soul
348ed0798f fauna: interpolated drawn pose, bounds from the pose, LOD hysteresis, one x-mirror owner, two more refusals (whale-rig-s1 fix batch)
The solver draws the last two fixed steps blended by the leftover fraction, pushed out of colliders and
length-held from this frame's head, so a frame that owes no substep still moves and keeps segment length.
Renderer bounds follow every bone each frame. A level is left only past a hysteresis margin. SpringRigData
mirrors x as glTFast does (one owner). Colliders on spring joints and zero-length segments are refused.
The promise below 30 fps is the clamp, stated. Stiffness is documented as a dimensionless rate.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-12-01 05:53:25 +01:00
soul
7a982d2a0d fauna: SpringRigVerify, batchmode checks and capture for the whale rig (whale-rig-s1)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-12-01 05:53:24 +01:00
soul
70abd3ce99 fauna: SpringRig, Burst spring-bone solver, closed-form swim, direct skin matrices (whale-rig-s1)
Presentation only: SpringRig.Present(drawnTime, pose) runs PoseJob, SpringSolveJob and SkinJob
and uploads one GraphicsBuffer of skin matrices; SpringSkin.cginc and FaunaSkinned.shader read it.
Fixed 1/120 s substeps from absolute drawn time, at most 4 a frame; LOD freeze and reset.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-12-01 05:53:23 +01:00
soul
793470c330 fauna: SpringRigData, the VRMC_springBone rig parsed from a GLB skin (whale-rig-s1)
Skin joints no spring names are body bones; unknown collider shapes, spring joints whose
parent is not their predecessor or a body bone, cycles, and non-unit scales are refused by name.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-12-01 05:53:22 +01:00
soul
a515899b14 docs: aetheria-release map: isoline wiring body facts IW1-IW7
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 05:16:41 +01:00
soul
08b1a13cde IsolineExtractSmoke: first-found linking is claimed by the junction fixtures; joint bound at the geometric mean
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-12-01 04:56:53 +01:00
soul
04b46d7406 Isoline smokes: chain junction fixtures and frame-reuse check through the real kernels; flow p5 gate dropped, flow p25 and p50 from real-shader readings; capacity guard matches ChainClear's group limit
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-12-01 04:56:52 +01:00
soul
4660996a28 IsolineExtractSmoke: chain bounds at the geometric mean of the shipped reading and the least claimed mutant (J = 8); first-found linking unclaimed
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-12-01 04:56:52 +01:00
soul
37a0355687 IsolineRenderSmoke: comment names the curvature-radius mutant without the deleted symbol
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-12-01 04:56:51 +01:00
soul
70ed09d0ab Isoline smokes: dash look gate against a reference with the extractor's tail origin; bounds and readings by the margin rule
The reference's s origin is the chain's tail, as the extractor's: a head origin puts a different dash phase at the chain
ends (map pose run length p5 6 px against 36 px, same segments), which the percentiles read as a look difference.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-12-01 04:56:50 +01:00
soul
57810444ca Isoline chains: a closed ray loop is counted unterminated (rank above 0 at its own end); smoke gates against the first readings
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-12-01 04:56:49 +01:00
soul
fca9c9bb50 Isoline chains: GPU hash linking and pointer jumping make a ray's s the arclength from its chain's tail; junction rule; ChainStats
ChainClear, ChainInsert, ChainLink, ChainJump (J = clamp(ceil(log2(4 (w + h))), 8, 20) passes) and ChainEmit run after Finish
through indirect args Finish writes; the extractor owns the table, ping-pong, args and ChainStats buffers. Segments link only
through a point exactly two ray endpoints share, one an end and one a start. Smokes: 'chains are arclength' (CPU BuildChains
reference, first-found and J = 8 mutants emulated), 'orientation' on every case, ray s on the log wells, 'dashes match true
arclength', chain cost. Bounds are set from the first readings in the next commit.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-12-01 04:56:48 +01:00
soul
8fc0982e5f Isoline Emit orients each segment so the high corner of its first edge lies to its left (both families); smoke check 'orientation'
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-12-01 04:56:47 +01:00
soul
3cb2b756c3 Isoline curvature path deleted: rho, kappa, the Hessian, PullSlope, the seam and clamp key bits, RhoMax
Once s is chain arclength nothing reads curvature (campaign aetheria-release, cut isoline-chain-arclength).
GravityField.ProfileSlope and PullSlope, the gravityTermPullSlope template and gravitySample's Hessian go (Gravity.cginc
regenerated); Sample writes (gx, gy, d, |g|); March and Crossing lose rho, seam and clamp; IsoKey is (level, family) with
bits 9..31 reserved 0; IsolineLevels loses RhoMax. Rays' and contours' s are 0 until the chain kernels land. The smokes lose
every curvature bound and the s-quality gates; PullSlope stays recoverable at c551a27d6.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-12-01 04:56:46 +01:00
soul
721a69ff39 docs: aetheria-release map: inventory grid switch sections IG-S, IG-SA, IG-SR
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 04:07:30 +01:00
soul
52e52541f9 Inventory grid: pipes get a round fillet, an edge ramp in canvas units and a refit (S16 worst rms .0855 to .0187, S32 .0431); look changes are compared without allocating
Thermal: a quarter-circle fillet between perpendicular bars replaces the polynomial smooth union that chamfered T and + junctions at S16. NoticeLook compares
fourteen floats in place, no array and no enumerator per Flush. Harness: LateLook changes every look field on a live grid under a Mask with no Resize
and compares it with a grid built with the change. The Overlay capture's bound is 16, it adds a half-alpha regime and the mutation driver runs it
(control, concave-bracket-dropped, alpha-multiply-dropped). Thermal atlas bound .075 and hull cell bound .132 by the margin rule; driver mutants
look-notice-deleted and look-trimmed.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-12-01 03:47:55 +01:00
soul
69671be609 Inventory grid parity: the atlas bound sits at sqrt(4 x 66) = 16 after the alpha mutant; the overlay capture exits 1 on any exception
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-12-01 03:47:53 +01:00
soul
d1c3a7a2e8 Inventory grid parity: the masked check keeps the masked grid enabled and compares a fresh grid in the same render
Disabling and re-enabling the masked grid between steps rebuilt its stencil clone and hid a stale one; the modified-material-unpushed mutant now dies (231 against 0).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-12-01 03:47:52 +01:00
soul
38f12838e2 Inventory grid parity: masked and late-configured use, vertex alpha and RectMask2D, Overlay canvas, thermal gated, fair frame time
Masked: a grid reconfigured under a Mask (resize, orientation, late Thermal, late look) equals a fresh unmasked grid. AlphaAndClip: quarter and half alpha and a
RectMask2D against the same on the sprite cells. InventoryGridOverlayCapture enters play mode and compares a ScreenSpaceOverlay canvas. The thermal hull state is
gated by cell rms (0.120 from the margin rule). The frame-time new side includes RefreshCells. Mutation driver gains alpha-multiply-dropped,
clip-multiply-dropped and modified-material-unpushed.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-12-01 03:47:51 +01:00
soul
7060803ed9 Inventory grid: uniforms reach the masked material; Thermal and the look dirty it; pipes fitted with a fillet only between perpendicular bars
Under a stencil Mask Unity draws a clone of the material and may return one it cached without recopying properties, so GetModifiedMaterial now writes every
per-grid uniform to the material that is drawn. Thermal is a property that marks the material dirty, and Flush marks it dirty when a look field changed.
The thermal pipes are a plain union of blob and bars with a smooth fillet only between each perpendicular pair (no bump on straight bars),
refitted to the 16 sprites: worst per-mask rms 0.058 to 0.035 at S32.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-12-01 03:47:50 +01:00
soul
88b3f7afda Inventory grid parity: the shader's keyword variants report no error and draw what the plain variant draws
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-12-01 03:47:48 +01:00
soul
ca71616674 Inventory grid parity: real hull in seven panel states, hit-testing, frame time, mutation driver and margin-ruled bounds
The hull is Nakovalnya from the composed catalog (7 hardpoint types, the only Loadout's hull). The harness reads every CellInstances record back
from the sprite cells and feeds an InventoryGrid over the same rect. A pixel centre exactly on a cell boundary is drawn by both neighbours of the
oracle and is not judged; Nodes8_392 and Nodes8BG_136 carry a wrong pad on their top and bottom edge and are judged outside it.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-12-01 03:47:47 +01:00
soul
872b4bd3c4 Inventory grid, parked: UI/Inventory Grid shader, InventoryGrid graphic, atlas and thermal parity harness against the Nodes8 sheets
The shader draws a panel's cells from one RGBA32 record texture as texel-box shapes through the nine-slice remap (map IG-B3, IG-G).
The harness renders every mask 0..511 through the sprite cells and through the grid at 1920 and 2560 and compares them.
The background sheet is 100 pixels per unit, not 66 (IG-B1 states 66 for both): BgTexel is 1 canvas unit.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-12-01 03:47:46 +01:00
soul
a166721c08 Assembly fix batch: members judged by their own joints, arc judged as a range, gates pinned
A member's reach stops below its assembly's root joint (a member's motion composes on
the assembly's pose, it does not borrow it). The root joint is judged against the
assembly's Min..Max range, not only its span; a down-pointing axis mirrors. Tests pin
Soul s1's P1, P1b, P2 and the surviving mutants M3, M6, M7, M10, M11, with a GLB
fixture for BindRig's root-anchor rule.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-12-01 03:02:28 +01:00
soul
3f936f8e9d Catalog resave: the five hull records carry the schema id with Assemblies
Adding Assemblies (key 34) changed the hulldata schema id; catalog resave apply
restamps all 5 records so the shipped catalog is current (CatalogResaveTests,
ElementIdUpgradeTests). Run on Yggdrasil from the base catalog; a second dry run
lists 0.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-12-01 03:02:27 +01:00
soul
c537c480d3 Joint-rider refusal names the assembly root among the roles that may ride a joint
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-12-01 03:02:25 +01:00
soul
4ffb274d9c Keep the joint-rider refusal's leading words; name the assembly root after them
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-12-01 03:02:24 +01:00
soul
f376a58d18 Actuated assemblies in the hull record: AssemblyData, root anchor, judge
HullData key 34 Assemblies holds each assembly's region, pivot, yaw limits and
slew (rulings actuated-assemblies-are-their-own-kind, assembly-slew-hull-authored).
Membership is derived (Assemblies.Of), never stored. The judge refuses bad ids,
regions outside the hull or overlapping, straddling hardpoints, bad pivot, limits
or slew, and a missing or short assembly-root anchor. RigChains gains the
assembly-root actuator: a member's chain may pass its own root joint and no other
driven joint (ruling one-joint-one-driver). HullLike drops assemblies.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-12-01 03:02:23 +01:00
soul
e58042149e Thruster torque derives its lever on read; Orient cites the actuated-assemblies ruling
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-12-01 02:36:32 +01:00
soul
1b0d085dae Item facing has one owner: EquippedItem.Orient
Behavior.Direction, FireControl.MountDirection and Thruster's column and torque
derive an item's facing through Orient instead of each rotating by
EquippableItem.Rotation. Thruster.Torque is a live read over a cached lever
direction. Behaviour-neutral; ItemFacingOwnerTests compares bit for bit with the
base expressions and passes unchanged on the base commit.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-12-01 02:36:28 +01:00
soul
6d4e894990 docs: aetheria-release map: assembly, pose and priority-order rows on the model page
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 00:33:29 +01:00
soul
3d8a0d1d34 Isoline render smoke: s quality on the map pose, gated against the finite-difference readings; camera field render cost
Ports Soul's chain measurement (BuildChains, EdgesOf, percentiles), E1 dash runs, flow-frame ratio and the two fine-resolution kinks; writes flow-after.png and e1-after.png. Cost reports Sample alone and the camera field render the extractor replaces.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-30 23:03:15 +01:00
soul
9cce273d9a Isoline extraction samples d, its gradient and Hessian in closed form: s = rho stops jittering per edge
IsolineExtract.compute's Sample kernel evaluates the lowered wells through the generated gravitySample and writes (gx, gy, d, rho); March reads it. Derive, Curve, the field texture and every stencil are deleted. GravityLowering.Lower returns the GravityTerms it lowered and Extract binds them explicitly; IsolineRenderer.Record takes terms and a grid size. Both smokes' texture fixtures become well sets over GravityLowering.TermRecord, with an analytic-sample check against the law.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-30 00:24:43 +01:00
soul
c551a27d64 GravityField.PullSlope and the generated gravitySample: closed-form gradient and Hessian of the lowered wells
PullSlope is dPull/dr over the same band polynomial; GravityShader emits gravityTermPull, gravityTermPullSlope and gravitySample beside gravityHeight; Gravity.cginc regenerated.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-30 00:17:33 +01:00
soul
094a436745 Isoline render smoke: crowded tile, per-family look and dash filter checks (kill M10, M19, M17)
Soul's X1 and X4 probes and a dash-edge check, ported against the shipped extractor.
Readings on ab17b688b: crowded tile worst |h-cpu| 1.1e-5 px against M10 9.5; ray raw D 1.0e-6 off truth against M19 0.21; dash spread 0.0047 against M17 0.455.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-30 00:14:44 +01:00
soul
ab17b688b4 Isoline renderer smoke: geometry, flow, guards, captures and per-kernel cost
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-29 22:39:14 +01:00
soul
eaa8f9e030 Isoline renderer: tile-binned compute rasterizer for the IsoSegment buffer (parked)
Six kernels (Args, Clear, Bin, Scan, Scatter, Shade) with exact-count tile lists,
union-distance prefiltered ink and glow, closed-form line density and depth-signed
flowing dashes. IsolineRenderer owns one view's extractor and tile buffers; nothing
in the frame calls it yet.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-29 22:39:13 +01:00
soul
cda612dca8 Isoline extraction fix batch: pin seam, endpoint attributes, ray depth gate; delete the dead edge swap
The smoke gains a shared-endpoint s-continuity check (every jump has a seam
side), per-endpoint depth and slope against the radial profiles, a cell box
check, a ray depth-window check, and s on the real zone with RhoMax sized
from the zone radius. The Crossing swap never ran (kEdge already runs low
index to high): deleted with gIdx, and the closure comment says why it holds.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-29 21:50:21 +01:00
soul
788113a344 IsolineExtractSmoke: layout, level, closure, saddle, along-line, rays, overflow
Batchmode GPU check of the extraction against the real zone's own field
(Zone.GetHeight as ground truth) and synthetic fields with closed-form
answers; writes before.png and segments.png and reports extraction cost.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-29 21:50:20 +01:00
soul
a65628d873 Isoline extraction: a compute marching-squares pass over the gravity field
IsolineExtract.compute reads one field texture and writes world-space
contour and iso-angle ray segments into a GPU buffer with an along-line
parameter (curvature radius), per-endpoint slope and depth. IsolineExtractor
records the dispatches; IsolineSegment.hlsl is the published layout. Parked:
nothing in the frame calls it until the renderer cut.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-29 21:50:18 +01:00
soul
b46865bec8 docs: aetheria-release map section IG (inventory grid grammar decoded, SDF constants)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 21:29:59 +01:00
soul
8c692862eb ExtractionTests: each cycle pays the named ore only 2026-11-29 09:25:15 +01:00
soul
caab9f5ad2 ExtractionTests: a rig's call pays only the named ore, the player's both 2026-11-29 09:13:46 +01:00
soul
1ce71101ff Facility: the rig asks the deposit pick which ore to work, lands where Advance lands, and a mixed list splits
Soul s1 on cut-facility-extraction.
- shares-follow-first-belt, rig-hammers-first-rocks: on screen a rig works an ore at a time as Production.Pick names it from the cycles
  it has worked (the one owner of which ore next, Advance's too), at that recipe's own count and cycle, on a whole rock whose belt holds the
  ore, chosen by a stable hash of the cycle so rocks take turns. FireControl.Extract takes optional `only` (the one ore a rock pays) and
  `landing` (the bays); the player passes neither. Production.OreRate is deleted: nothing reads a mean rate now.
- rig-ignores-silo-share: the units land in StationWants.OutputBays, and nothing is worn unless StationWants.Room and a free cell say the
  ore lands, as Advance's put does.
- mixed-raw-list-picks-on-screen: on screen the ore entries of a design work the rocks and every other entry runs Advance alone.
- run-writer-comment-stale: ItemInstance.Run names its writer.
ExtractionTests: two belts of two ores agree on shares (0.71-1.41), rocks wear together (4 of 20 where a first-rock rig holds one), the
silo's share stops a rig and the station's other bay stays empty, a mixed list splits.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-29 08:56:53 +01:00
soul
fe1a06ad91 Unity .meta files for RegionClock.cs, EconomyBalance.cs and StationDeck.cs
Master carried the three sources without them; Unity writes them on every open, generated here by a batchmode compile.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-29 08:56:37 +01:00
soul
a4f4f299ed Region harness: rigs and skimmers are facilities with recipes, and the ground decides what stalls them
An extractor is a facility whose run list is all raw; it ran when it started a cycle (FacilityRun.Cycles), so the region line reads
extraction running. A raw recipe the ground under a rig holds none of reads Barren whatever else the rig reads (Room, once its bays
fill), and a recipe every facility of which ended Barren is the placement's (extraction-aware-placement), shown in the table and no
fault of the chain.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-29 07:48:17 +01:00
soul
6004fbc8d8 Facility: on screen an ore rig works the rocks, off screen its recipes run by span
A rig whose run list is all raw ore works the zone's first whole rock (belt Site, then index) through Zone.Wear and FireControl.Extract, the
player's own mining, at Production.OreRate (Facility.Work); the unit's FacilityRun is left alone and a cycle begun off screen resumes
when the zone is. RegionClock calls Facility.Span, always Production.Advance, so off screen the same rig starts its recipes by the
deposit pick. Any other list, a skimmer's included, runs Advance in both. Dice for the ore a rig's wear pays: SimulationDice.RigStream.
ExtractionTests pins the pick, the per-unit weight, the gate, Barren, Cycles in a pack, the zone's deposits, the on-screen wear, the
agreement of both rates, the full-bay stop, the skimmer's spans against steps, OreRate against what Advance averages, and the batch.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-29 07:48:17 +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
dc75e9a801 Production: a raw recipe runs where the ground holds its good
Deletes the !Recipes.IsRaw clause of Production.Runs, the obsolete owner that decided extraction never runs (cut facility-extraction;
rulings auto-mining-is-off-screen-only, skimmers-run-their-recipe-on-screen-for-now).

- Deposits.Of is the one owner of what a zone's ground holds (belts by rock yield through FieldKinds.Yield, gas giants through the new
  AtmosphereData); IProductionHold.Deposit reads it, EntityHold keeps it per zone.
- Production.Advance starts a list of raw recipes at a pick weighted by deposit per unit made (FieldKinds.Pick on FacilityRun.Cycles, new
  Key 2), skips a raw candidate the ground lacks, and reads Stall.Barren, writing nothing, where the ground holds none.
- Production.OreRate is the rate that pick averages to, the one rate on screen and off.
- FieldKinds.Yield gains the list overload Deposits calls; OreGeographyTests names the default FieldKindData ref the overload made ambiguous.
- RunListIsTheRule drops the raw exclusion; a recipe made raw is no longer dropped from a running cycle, so its test case goes with the rule.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-29 07:48:07 +01:00
soul
0c5a46f776 Tests: the cramped and tiny stations carry the Facility row the quarters now need before their dock and heater faults
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-29 06:10:50 +01:00
soul
90253307a6 Re-pin TwoAiDigestIsPinned on both hosts on the merged tree
linux-x64 1d1f9901 -> 012efbf8 (Yggdrasil), windows-x64 5afdd8f9 -> 7ccb5487 (Starfire).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-29 05:49:48 +01:00
soul
8a8b854a4e Catalog: the Crew Quarters design and its product (economy author CrewQuarters apply) and Zenith's second Facility row (station-kinds facilities), on master's catalog
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-29 05:44:25 +01:00
soul
67afbdc65f The quarters seat with the facilities through InstalledDesigns, one call site; the drain asks by Habitants.Size and pins the short-span count
EquipCrewQuarters and its filters are deleted (seating last protected nothing: the digest re-measure covers the stream).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-29 05:43:48 +01:00
soul
bf8f6c679c Tests: restate the drain crew test's comment
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-29 05:42:39 +01:00
soul
4d1b63a5ab Tests: the drain's crew line reads what the quarters asked of the hold, by the shipped off-screen step
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-29 05:42:38 +01:00
soul
bc6116d2ac Tests: the census counts the quarters' row, and the reach exemption is pinned to station plant
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-29 05:42:37 +01:00
soul
c5178d9b0c Tests follow the quarters' row: the census counts it, the reach exemption is station plant only, the drawn gate and an unset row are pinned, fixtures carry a row
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-29 05:42:36 +01:00
soul
5a4698b2cd The drain reads the crew: the station block prints what the quarters asked of the hold per sim hour and the spans their step went short in
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-29 05:42:35 +01:00
soul
b8079a9f1b Every station hull gets one more 2x2 Facility row for the Crew Quarters: the Arsenal Depot and the Seized Refinery through their manifests and the packager
Packages regenerated with package_hull.py (PACKAGE_OK, hull.scad byte-equal); the new rows sit on hull cells no interior gear draws from. Zenith's row and the quarters design follow in the catalog commit.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-29 05:42:34 +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
48af7c7e17 Re-pin AvailabilityGatesTheDraw: the item stream moves two draws for the station's Crew Quarters lot
Old items-stream reading 0.55950844, 0.87309176, 0.7170387, 0.8490041; new 0.7170387, 0.8490041, 0.68440413, 0.59800005. The generator's own four values are unchanged.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-29 05:42:24 +01:00
soul
a98a517a8a ConsumableSupply rigs carry a Crew Quarters design, and the Outpost is a cell wider to seat it (cut habitation-gear)
The Tight Outpost's four interior cells were exactly its dock, heater, crate and capacitor; the quarters take a fifth.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-29 05:42:23 +01:00
soul
65a74084cd Tests follow the Crew Quarters: installed plant is outside the reach rule, Zenith also buys its crew's goods, and the wants test unequips on a copy (cut habitation-gear)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-29 05:42:22 +01:00
soul
02651fa67b Every station carries Crew Quarters and buys what its crew eats (cut habitation-gear)
LoadoutGenerator seats the design after the heater, through the one choice of product for installed gear; StationWants.Drawn adds the table of every running habitation unit.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-29 05:42:21 +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
40c335a200 SourceSink: a habitation module's table is a sink, and a consumer good is judged as every good is (cut habitation-gear)
The consumer-good skip of the sink half is deleted; the test that pinned the skip becomes ModuleTableIsASink.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-29 05:42:12 +01:00
soul
b4d4e94333 HabitationData: a population is installed gear; Upkeep.Advance consumes by the module's table, Habitants lives on the unit (cut habitation-gear)
Union arm 54, EquippableItem key 15. AdvanceInstalled runs Facility and Habitation behaviours.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-29 05:42:11 +01:00
soul
ce2fb80e7c Rename RegionClock.AdvanceFacilities to AdvanceInstalled: what the span runs is installed plant, not only facilities (cut habitation-gear)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-29 05:42:11 +01:00
soul
725d8235c3 Delete IPopulationAssignment, Entity.PopulationAssignments and AssignedPopulation: no implementer, no reader (cut habitation-gear)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-29 05:42:10 +01:00
soul
9e3f16ecb9 TrojanSwarmTests: the re-pin comment names both causes
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-29 04:30:41 +01:00
soul
c27eeff3b8 StationDeckTests: a fixture that deals the entrance cards beside its orders
The demo entrance is dealt no card, so the entrance rules were vacuous. The holder of the entrance gets its home there and an influence of 3: every kind a faction fields still stands outside the entrance (dies under the first deck dealt to entrance slots first, seed 19), and an ordered entrance holds exactly its orders (dies under dealt extras seated after the orders).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-29 04:30:40 +01:00
soul
74bd92251a ZoneGenerator: the overflow seat's root spacing stays inside the zone's boundary circle; tests pin containment, isolation and the seat order
The boundary circle (Radius x ZoneBoundaryRadius) is a fixed function of the zone's radius, drawn before any content, so spacing must fit inside it: a root takes the station only while moving every root outward by its spacing keeps the outermost root within the boundary; where no root fits beyond its ring group the station orbits a root at its family extent, the least spacing that fits. Unbounded, spacing put a root outside the boundary in 47 of 6400 zones (up to 3.2x the pack radius; 0 at base). OverflowSeatTests sweep nine seeds that exercised the bound: no root beyond the boundary, isolation holds for every spaced root, and an overflow station orbits a root with no massive child wherever the zone has one (reverting to the old first-root-with-children rule fails it).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-29 04:30:39 +01:00
soul
ddf0b4ec5a StationPlacementTests: root-seated overflow stations are checked by their own turrets
Ruling root-stations-tested-by-own-turrets. The orphan-source test skips a station on a root's ring with no source orbit; the two flank tests give each turret to the station nearest it round the ring, so every station's turrets are still checked to flank it and clear each other. No bodyless orbit is added.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-29 01:39:31 +01:00
soul
9bca18b07c TrojanSwarmTests: re-pin seeds 2, 3 and 4 after the overflow seat moves the roots apart
linux-x64 (Yggdrasil), old -> new: 2 bd7c5a3e -> 79808bd6, 3 a4fc1f09 -> 515554c9, 4 a8028205 -> 814b146c.
windows-x64 (Starfire), old -> new: 2 c18990e5 -> 2072e67a, 3 8da34a1f -> 4beb6475, 4 2469eacc -> ff37d9ec.
Seeds 1, 5 and 6 are unchanged on both. Cause: a zone with two or more massive roots and an overflow station scales its roots outward, which moves every body of those zones.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-29 01:36:19 +01:00
soul
b57ad1d4db ZoneGenerator: a lone childless root keeps its refusal; the shortfall seat needs something to orbit
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-29 01:36:18 +01:00
soul
c0229d4154 ZoneGenerator: an overflow station seats on the root that asks the least of the zone, and the roots move apart to give its floor room
Ruling overflow-station-clears-root-first. The seat is a root with no massive child, else a bodyless node, else a root with children (most massive first, least spacing within a kind); outside the entrance a root with massive children takes the station beyond its massive children's ring group. The station's own orbit raises the root's support to Beta x its distance and its reach floor to Beta squared x it, so in a zone of two or more massive roots all roots move outward from the zone centre by the factor that keeps that floor within Reach x the nearest massive root's distance (root-window-floor).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-29 01:36:18 +01:00
soul
493bd1053d TrojanSwarmTests: re-pin the swarmless zone digests of seeds 1-6 on both host classes
linux-x64 (Yggdrasil), old -> new:
1 1873400d -> dcebeb47, 2 5872680e -> bd7c5a3e, 3 e92cc320 -> a4fc1f09, 4 61db9bda -> a8028205, 5 69ca46eb -> 373cc2c5, 6 307dc4b3 -> 332b3a84.
windows-x64 (Starfire), old -> new:
1 8ab09122 -> 74ffae15, 2 c7471235 -> c18990e5, 3 1b9b7dcf -> 8da34a1f, 4 72aea7f0 -> 2469eacc, 5 679b83ac -> e7ff9fd5, 6 5da9181e -> 42298028.
Cause: the deal removed the zone-stream count draw and seats every dealt station, so each zone's stations and every later draw moved.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-29 01:36:17 +01:00
soul
2838bc54fe DeterminismLedgerTests: re-pin the two-AI digest, the zone's station draws moved
linux-x64 57303576 -> 1d1f9901 (measured on Yggdrasil), windows-x64 344fec28 -> 5afdd8f9 (Starfire). Cause: the deal replaced the zone-stream count draw, so every later draw in the zone Zenith stands in moved.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-29 01:36:16 +01:00
soul
f19082264c HaulRunTests: TheLegIsTheHold stages the demo entrance of seed 2
Old reading at seed 1: loaded hauler dot toward the refinery 0.9879 (emptied 0.9810). New reading at seed 1: 0.0042, since the Lagrange sides moved when the count draw left the stream and the stations now sit 415 from a 139217-mass body whose pull beats 3 s of steering. Seed 2 reads 0.9999 loaded and 0.9952 emptied against the unchanged bound of 0.5.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-29 01:36:15 +01:00
soul
3d76ae42a8 DemoLoopTests: re-pin the buy anchor, V/buy 0.11286 -> 0.035269
Old reading: cheapest authored price at Zenith 2500, so V/buy 282.149/2500 = 0.11286. New reading: 8000, V/buy 0.035269. The deal removed the zone's count draw, which moved Zenith's stock draw. The band stays 1/sqrt(10) to sqrt(10) around the new anchor; repair reads 45703 on both sides, unchanged.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-29 01:36:14 +01:00
soul
f159acf1bb RestoredHullsTests: a non-entrance no-Lagrange zone seats every dealt station at its root
Old reading 0 stations (the zone's roll was dropped where no rail could seat it); new reading 8, the deal's count for the boosted-presence fixture. The shortfall path is every zone's now, so the test asserts the count equals the deal's and that the deal is not empty.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-29 01:36:13 +01:00
soul
60f24107b5 Catalog resave: the station kinds carry the schema id with Ring
Adding Ring (key 4) changed the stationkinddata schema id; catalog resave apply restamps all 11 records so the shipped catalog is current (CatalogResaveTests, ElementIdUpgradeTests).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-29 01:36:12 +01:00
soul
93fb5c7030 StationDeckTests: the deal's kinds outside the entrance, every card seated, the gradient, purity across a save, an ordered entrance
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-29 01:36:11 +01:00
soul
baec7f5f7c StationDeck deals every station of a region; Choose and the zone-stream count draw are deleted
StationKinds.Choose (the per-station site hash) becomes PoolOf, the fieldable kinds with Choose's logged fallback and no hash. StationDeck.Deal owns which stations every zone holds: a zone's slots come from the run seed and its presence, a thin territory gets slots until a faction can stand every kind it fields outside the entrance, hands are dealt per region and faction by decks of one card per kind, and Ring places a hand frontier first. ZoneGenerator seats every dealt card (the rail shortfall path is every zone's; an ordered entrance seats its orders alone) and reads nearest faction, presence and structure faction from StationDeck. StationKindTests re-pointed from Choose to PoolOf and the deal.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-29 01:36:10 +01:00
soul
82dc3e878d GalaxyProvince.Region: the region index BuildProvinces derives, never persisted
StationDeck deals a faction's stations per region; BuildProvinces sets it on generation and on save.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-29 01:36:09 +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
36e186d160 StationKindData.Ring: which ring of a faction's territory a kind sits in
Key 4, int, default 0; a placement knob for StationDeck, authored by the StationRings batch. Records before key 4 read 0.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-29 01:36:07 +01:00
soul
67b5a53638 Idle recipes name their own missing inputs and trace each one hop upstream; each cause branch and the lower-bound note are pinned on their own fixtures
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-29 01:08:09 +01:00
soul
5046749080 Region view names each idle recipe's cause and says when no extraction runs; made is labelled a lower bound; the horizon test asserts plain values
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-29 00:40:37 +01:00
soul
26b451e1b9 economy balance --region: the demo region advanced on the shipped off-screen path
EconomyRegion.Run boots the region, parks the hauler and advances every zone with Zone.AdvanceTo at each RegionClock.Span. Per seed: stations by faction and kind with their depth, facility Stall shares, held units of outputs, units made per recipe, H-region-idle and H-region-missing-link (the link set is StationKinds.FieldableKindsOf).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-29 00:38:52 +01:00
soul
33bdf92a2f EconomyLoop.Boot builds the arena through RunStart and can materialize the region; DemoArena gains Galaxy and ParkHaulers
Galaxy.Entrance.Contents is now the arena (it was a Zone built beside the galaxy). region: true calls RunStart.Materialize after staging. Sortie and drain readings are unchanged.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-29 00:38:51 +01:00
soul
dd3cc1b75d Drain spans run RegionClock.AdvanceFacilities; EconomyDrain.Span and its Production.Advance loop are deleted
The drain's off-screen step is the game's: Spans advances the copy by RegionClock.Span through RegionClock.AdvanceFacilities and reads each Facility behaviour's Stall, and Copy goes through EntitySerializer.Copy. Follow-up drain-spans-on-region-clock.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-29 00:38:50 +01:00
soul
e221776ed5 Map: habitats and populations (Bloom classes on rocky bodies, habitat hulls, populations as installed gear, cut order)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 23:08:31 +01:00
soul
5224d38383 Map: body facts of the station deck (one deal per region, Ring placement, what stays conjured)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 22:38:37 +01:00
soul
62919ee99b RegionClock tests: boundary advance, steps against spans, settle on entry, sightings, byte identity, orbit kick
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-28 21:55:31 +01:00
soul
fb1f1df869 RegionClock: the player's zone steps, every other zone's facilities advance by 60 s spans, entering settles the zone and records what the player saw leaving
RegionClock.Step is a run's one driver (ActionGameManager no longer calls Zone.Update); Zone.AdvanceTo runs the off-screen facilities by the span a zone missed and places its orbits at the new time. RegionClock.Enter is the one writer of VisitedZones and GalaxyZone.LastSeen (SavedZone Key 7). PackedContents is a Zone's construction input, cleared by RunStart.Live. The sector map reads RegionClock.Seen. Galaxy's save constructor copies the pack it builds a Zone from, so a Continue in the same process reads the save as written.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-28 21:55:30 +01:00
soul
3e9a862a7a A save is a copy of the run: Capture stores Zone.Snapshot(), a MessagePack round trip, never the live stack and run objects
Closes follow-up save-shares-live-objects. EntitySerializer.Copy is the one copy; every zone of a run is live, so Capture requires Contents and the PackedContents fallback is gone.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-28 21:55:29 +01:00
soul
74ebf52274 Re-pin the two-AI digest with the Facility-row reservation and hull conduction both in
linux-x64 42729ca4 -> 57303576 measured on Yggdrasil, windows-x64 e0f230c3 -> 344fec28 measured on Starfire, at the rebased head.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-28 20:02:26 +01:00
soul
24e6895913 Tests: a partial cycle of room does not make a product wanted; the Facility-row reservation is pinned at equip time
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-28 20:00:19 +01:00
soul
41b268f693 One room: StationWants.Room decides for a product and an ordered good; ordered goods hold their own share of the silo
Allocation divides the silo among the distinct outputs of the recipe facilities and the goods of the station's haul orders. StationWants.Landing
names where a good lands and how much (non-silo bays unbounded for a drawn good, silo bays up to Room for an ordered one); a sale stops at it and
a hauler docks only when a delivery has room. CanStart and EntityHold.Room call Room: the second copy of the rule is gone.

Tests kill the surviving mutants: a start needs a whole cycle of room, two facilities of one kind share their products, general gear never takes
a Facility row, an ordered good holds its own share and a good both drawn and ordered lands in both bay kinds.

The drain harness names saturation: with --supply the wanted ores are brought again every 600 s and a station whose products fill with no outflow
ends Room-stalled and is reported as H-drain-saturated.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-28 20:00:18 +01:00
soul
088b2edec9 Production.Advance's comment names the room gate
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-28 20:00:16 +01:00
soul
71e2743783 Facilities batch test: a kind lists its recipe facility first, and the processing kind the silo after it
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-28 20:00:10 +01:00
soul
1a3cb61ecb Tests: the drain horizon covers the first fill emptying; the no-row case asks for three rows
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-28 20:00:09 +01:00
soul
483176723d A Facility row stays for facilities: general gear never takes an empty one; drain and fit tests follow the silo
A hull with two Facility rows serving a kind with one facility left the second to the docking bay (Entity.UnoccupiedSpace and ItemFits counted
empty hardpoint cells as free for general gear); the rows are the hull's stated facility capacity (ruling station-facilities-on-typed-mounts),
and StationFacilityFitTests.NoInteriorGearSitsOnAFacilityRow pins it. The drain tests change with the cut: the shipped refinery drains into its
silo, and the Room stall fault is pinned by a silo jammed full. Zenith's refinery intake pin names the non-silo bays.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-28 20:00:07 +01:00
soul
8b656fd15a Arsenal Depot serves the processing kind too, so it takes the silo: Fa.2 on its manifest, package regenerated
StationFacilityRoomTests names the Arsenal Depot as having no free Facility row for the silo now that the processing kind lists it.
Regenerated through package_hull.py (PACKAGE_OK, hull.scad byte-equal); only the rows differ from the committed package (compare.py).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-28 20:00:06 +01:00
soul
2f0dcd265f Tests: outputs land in the silo, products hold their share, a full product stops its ores, Room stall only when nothing fits
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-28 20:00:03 +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
92d38aa7e4 Output room: facility outputs land in the silo, each product holds an even share, a recipe starts only with room
StationWants owns where every good lands and how much of a product a station may hold. Bays no longer lands a drawn good in a silo
(deleted: drawn -> every bay) and EntityHold.TryPut no longer stores into any bay (deleted: the any-bay loop); both go through
OutputBays/Bays. Allocation (floor(silo cells / products) x MaxStack) and CanStart are derived on every call; IProductionHold.Room
lets Production.Advance skip a recipe whose product is full and report Stall.Room only when every input-ready recipe lacks room.
A station without a silo is unchanged.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-28 20:00:00 +01:00
soul
d3edd71e4f Ammo-run test: a shooter is stocked exactly to its hold when its draw exceeds it
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-28 19:23:55 +01:00
soul
d38171123d LaunchSuppressor: stop insulating the rig; read mild against strong on the conducting hull every ship has
Heat per steady launch (strong over mild, bound 1.51 from shipped 2.284 and a 1.0 mutant) on both hulls, and launches hidden in a 600-launch fight on the
Djinni, which runs out (456 against 297, bound 1.24); the Longinus never runs out on a conducting hull.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-28 19:23:54 +01:00
soul
8c9c6f0f99 EconomyDrain: re-pin the seed-1 sortie at the authored starter (131/73/58, 1295, 131 mined -> 120/72/48, 970, 120)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-28 19:23:53 +01:00
soul
fa6e63f8d7 Pursuit and Arcs: restock each shooter to its measured 600 s draw plus half again, capped at its hold
A conducting hull never dies of heat, so a hold-down fires the whole window (draws 4-5x the heat-death stocks). Neither Pursuit hold nor the Arcs
holds carry the draw, so they are stocked full; the test now asks stocked to the draw, or the hold takes no more of that ammunition.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-28 19:23:52 +01:00
soul
c622e192ae The demo starter is an authored Longinus fit: Light Lasers on its Energy mounts, the same on every seed
demo-start-hull-longinus's default fit is the authored fit (economy-is-never-faked: a random loadout draw is interim). The generated
draw rolled Cell Blasters, ammunition-fed on an Energy mount, on seeds 2 3 69 97 and they ended AmmoOut in 12 s; Light Laser is the mining gun.
DemoTerminus.Starter stages it at StarterQuality; DemoPressureTests.EnterZone stages the same. The generator-replay test becomes the
authored-starter test; the AmmoOut sortie test flies a test-local Cell Blaster scenario through EconomyLoop.Sortie's new scenario parameter.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-28 19:23:51 +01:00
soul
17110d8fb3 LaunchSuppressor rig: insulate the rig's hull, the condition its fights were probed in
On a conducting hull the cell bleeds and mild and strong both hide all 60 launches (mild 60 did not outlast strong 60 at 300).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-28 19:23:50 +01:00
soul
4b117e0fda Crossing: the Lightning Projector's settled Range is 1001.17 with a conducting hull (996.99 insulated)
ProjectorRange 997 -> 1001; the test's +-1 band and the waiting place at 80% of it are unchanged in shape.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-28 19:23:49 +01:00
soul
cbe4b54674 Re-pin the two-AI digest: the fight's ships and the zone's stations conduct heat from construction
linux-x64 d80cc78c -> 42729ca4 (Yggdrasil), windows-x64 77e8a2f3 -> e0f230c3 (Starfire). Snapshot hashes every entity's heat.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-28 19:23:48 +01:00
soul
ec505fc059 Every hull conducts heat from construction: Entity.MapEntity owns a fresh hull's conductivity
Loadouts.Materialize (scenario fits, presets, boss loadouts) never set HullConductivity, so an authored hull was insulated on every edge;
only LoadoutGenerator.EquipHardpoints set it. MapEntity now sets every hull cell conducting and the generator's loop is deleted. A saved
ship's edges (EntitySerializer.Unpack) and the inventory toggles overwrite it as before.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-28 19:23:48 +01:00
soul
d697a77160 Materialize reports each zone through the run's progress sink; "Done!" is RunStart.Begin's last word, after every zone exists
Galaxy keeps the progressCallback generation reports to (Galaxy.Progress) and no longer says Done! itself.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-28 18:50:42 +01:00
soul
6c92f46471 Visits are the run's fact, not contents; one start path for game and tests; name the conjuring Materialize spreads
Galaxy.VisitedZones (saved as SavedGame.VisitedZones, key 19; a save without it reads its packs as visits) is written when PopulateLevel enters a zone and read by SectorRenderer, so unvisited zones show 'Has not been visited' as before. RunStart.Begin owns the new-run order (arena, enter, stage, materialize only if staged) and ActionGameManager calls it; AFailedStartMaterializesNothing runs it. Materialize's comment names the generated stock and loadouts as scaffolding deleted by follow-up conjuring-site-deletions; RegionStep and RequireDesigns comments corrected.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-28 18:11:30 +01:00
soul
5a5d7543df ActionGameManager: a new run and Continue materialize the region; PopulateLevel only enters
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-28 17:36:32 +01:00
soul
7ab0196453 RunStart.Materialize: every zone of a run is a live Zone, each drawing its items from the run seed and its index
RegionStep joins the item steps; BuildArena gives staging its Zone before the rest exist. Tests: every zone live, generation order moves no zone, idempotence, Continue builds every zone, a failed start materializes nothing.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-28 17:36:31 +01:00
soul
286bb0f67f Drain: park the demo hauler in both paths (no haul moves in the window or the spans), state the Room blind spot; Zenith intake pinned to the silo only
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-28 16:15:53 +01:00
soul
296caffa16 Drain: fill with the ore the sorties mined, faulted sorties reported and left out; window long enough for Room and compares run time; copy isolation pinned
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-28 16:11:55 +01:00
soul
c874d60a66 Drain: the sortie hold is the median of what a seed's sorties mined, not of the full-hold ones
Seeds 2, 3, 69 and 97 stop on a starting stock long before a hold fills, so only seed 1 had a measured sortie.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-28 16:11:54 +01:00
soul
ac9b02cdd8 economy balance --drain: station intake, sorties to fill, drain and stall shares per demo seed
Measurement only. Faults H-drain-stall and H-drain-sim.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-28 16:11:54 +01:00
soul
28583bfb63 EconomyLoop.Boot: the demo arena boot lifted out of Sortie into a disposable DemoArena
Sortie's output is byte-identical (economy balance --loop 1 2 --cap 150 against 65f8eb8ae).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-28 16:11:53 +01:00
soul
0ed2159a92 Map: body facts of the demo region (64 zones, four factions, what simulates, what the region can build)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 15:51:55 +01:00
soul
016219f531 ModesMatchOldNewGame: the demo places Zenith's hauler besides the player
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-28 14:50:24 +01:00
soul
2f21ce0bcf Tests: Zenith buys only into its silo, a hauler carries silo ore to the refinery, the leg is the hold, docking only to move something, delivery pays nobody, a lost hauler loses its cargo, the order survives the pack, a hauler fights and resumes
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-28 14:29:43 +01:00
soul
e4332d3a49 DemoTerminus stages Zenith's hauler: ZoneStage.Hauler places a piloted ship of Zenith's faction carrying the standing order
Deletes the 'nothing hauls it yet' comment.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-28 14:23:47 +01:00
soul
e7f2203b53 The haul state: a hauler flies HaulRun.Leg's orbit and commands the call within docking distance, and the haul task survives a fight like patrol
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-28 14:10:47 +01:00
soul
579a96cb9e The dock call: HaulRun (order, leg, CanCall, Call), PilotCommand.Call, and an undocked hauler re-admitted piloted with its haul task derived in CreateAgent
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-28 14:09:40 +01:00
soul
5bc57ae4fc HaulingTask is the order key alone; Entity.Haul carries a ship's order through the pack (Key 24: Key 23 is the element id)
Deletes the stub's stored Origin, Target, ItemType and Quantity.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-28 14:07:38 +01:00
soul
c104ca834a A good lands only in the bays that may hold it: StationWants.Bays, TryStorePart (the sale's gate and move without the price), Load (silo to ship); Zenith buys only into its silo
Deletes TrySellPart's any-bay move (zenith-keeps-buying-past-its-silo).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-28 14:05:48 +01:00
soul
65f8eb8aec Tests that stage or generate without the demo entrance: ring arenas stage the player without the entrance's haul order; the cramped-hull heater test uses a kind with no facilities
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-28 13:23:19 +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
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
soul
7516aacb06 ship-authoring: hull, station kind and products in open/push; stats, price, kind and product become builders over the push core
DeleteProduct and the commands' direct writes are gone; hullType is checked, never written.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-28 02:23:56 +01:00
soul
767c053986 Re-pin the two-AI digest: the Arsenal Depot is the zone's station hull now
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-28 01:49:15 +01:00
soul
f2340d7786 DemoLoop reads the one station by hull type: the Pirates demo station is now the Arsenal Depot, not Zenith
Pirates' mining stand-in lands on the depot hull; the test named the hull Zenith.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-28 01:49:14 +01:00
soul
115919d7f8 StationKindTests worlds hold only the station hulls a test adds: station packages go off the market
The Arsenal Depot's offer makes every depot stand-in live, so the shipped composed catalog no longer has dead stand-ins; the worlds that assert dead stand-ins take package stations off the market like Zenith.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-28 01:49:13 +01:00
soul
6c88753179 ship-authoring kind commits through the push core's Land
A thin builder: loads through the cache, derives the hull with its kind, judges by HullKindFault and lands with the push's compare-exchange, so a stale write is refused. Not a direct cache writer.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-28 01:49:12 +01:00
soul
86628d45ac StationPackageTests: the depot is an offered station of its kind, every depot stand-in is live, every station package generates its kind
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-28 01:49:11 +01:00
soul
6d43ea0f29 Add the Zhestokost Arsenal Depot, the first station package
A lidded cast-iron Dutch oven (bench Stations, Arsenal Depot) through package_hull.py: like Zenith, kind depot, maker Zhestokost, offered. Reactor 4x4 and four 1x4 radiators on radiator-mesh anchors, an interior that takes a Medium Docking Bay and the heater. 116 cells on a 14x12 raster, Reach 7.07 (Zenith 7.21), so no station rail moves. Its offer makes every depot stand-in live.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-28 01:49:10 +01:00
soul
4a2cc09786 ship-authoring product: a hull stored with no roles takes a product with none
Zenith decodes with a null Roles list, so a station made --like it failed product with a null source. The kind and product tests cover it.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-28 01:49:09 +01:00
soul
92b2df7b12 Station packages: ship-authoring kind writes a station hull's Kind; create --like takes a station; a station assembles as EntityInstance
kind <ship.cc> <kind-id> is the one writer of a package station's Kind, judged by StationKinds.HullKindFault over the shipped catalog before the file is opened writable; validate (and push's verdict) judge a station package's kind with the same rule. HullLike clears Kind. ShipModShips.Assemble makes a ShipInstance and tractor only for HullType.Ship; any other hull gets a plain EntityInstance. The packager manifest gains optional kind, written by ship-authoring kind after stats.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-28 01:49:08 +01:00
soul
7bc6226c02 Anchor Beacon renderers take Steel parkerized, the lit hull material of every station prefab, in place of the minimap Planetoid sprite material
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-28 01:38:01 +01:00
soul
b30105ec16 Anchor Beacon is zone-only: inactive in the Wormhole prefab, activated by ZoneRenderer.AddWormhole
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-28 01:36:35 +01:00
soul
d485f6ddd7 Map: the purse, the chain-priced ballistic ladder and the balance numbers after design-bills
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-28 00:06:11 +01:00
soul
5e69fffe28 Bands from the rulings: ladder 10-30x for Weapon/* and Gear/* only, H-afford 10-20 sorties to the dearest design, reported against the measured sorties
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-28 00:06:10 +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
2bde090720 DemoLoopIncomeToCost reads the cheapest piece's authored Price (ruling demo-loop-reads-authored-price): one re-anchor, bounds at 1/sqrt(10) to sqrt(10) of the shipped reading
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-28 00:06:09 +01:00
soul
e85e62f412 Pins that follow the bills: compound commodity count 63 to 67, Point Defense Gun and Flak Gun at their chain-derived prices
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-28 00:06:08 +01:00
soul
4ef9a3eaf6 Starting purse 4000: the derived price of the cheapest ballistic design above the starter, rounded up to a thousand
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-28 00:06:07 +01:00
soul
7a2d9c30d4 Prices covers every design with a recipe: L-price and the harness follow; one ladder width; economy author applied (nine designs repriced from their chains)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-28 00:06:06 +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
9b29992baa Push: Land pinned against a concurrent write, empty request and corrupt model end as outcomes
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-27 23:58:24 +01:00
soul
4c19f6f4e5 ShipAuthoringPush tests: no-change, dry run, apply, stale, element matching, refusals, verdict, carried members
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-27 23:58:23 +01:00
soul
c807c5ed29 AetherDb ship-authoring open and push: one request vocabulary, dry run by default, per-record compare-exchange
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-27 23:58:21 +01:00
soul
74469bdaa1 CatalogResaveTests: a fixture written under the old schema, one probe type with the appended member
Two same-named probe types in one assembly collide in every registry that scans it.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-27 23:05:04 +01:00
soul
2fc878d5bd Aetheria.cc: catalog resave apply on master's catalog (63 compound records under the new schema id, MaxStack 10)
Every other record equals master's byte for byte through the current schemas (480 records compared).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-27 23:03:02 +01:00
soul
e6e049a97e AetherDb catalog resave [apply]: re-save every record under an older schema id through the current schema; dry run by default, idempotent
Closes follow_up aetherdb-catalog-resave for the restamp: a schema change no longer needs a hand restamp of Aetheria.cc.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-27 23:02:00 +01:00
soul
fb7c955bb8 Soul s1 fixes: one compound sale path, tests for TrySellPart, Consolidate, pickup, Split and sale rounding, honest sell label
TrySell refuses a compound (it would pay a whole stack for one unit); TrySellPart is the one path and is pinned across two
bays, for an absent stack and for the floor. The Sell label for a compound reads up to the whole-stack price.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-27 23:01:59 +01:00
soul
2a15c2f95c Compound stack sale moves only what the station holds (ruling no-market-absorption)
TrySellPart sells the units the station's bays take and pays for those alone; the rest stays in the seller's hold and the
trade menu says how many sold. Simple goods keep their absorb path until the station-outflow cut. CommodityRecordsTests pins
CompoundCommodityData's one key, MaxStack at 12.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-27 23:01:55 +01:00
soul
613ef9a185 StationServices: say ore stack, not mined stack (ore is any design a field kind yields)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-27 23:01:54 +01:00
soul
17ccacdd95 CompoundStackTests: lot stacking, split, give, sale, pre-cut save, restore and consolidate; Reachable drops a retired input
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-27 23:01:54 +01:00
soul
60bd14337d Give and ItemUsage count a stack's units, not a compound unit as a crafted item
A compound commodity is a CraftedItemInstance, so a give order for a compound stack was clamped to one unit and an item use
removed the whole stack. Both now read ICommodityStack.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-27 23:01:53 +01:00
soul
b04828abd4 Restore consolidates stack fragments; Reachable drops a retired input from a Produced lot
EquippedCargoBay.Consolidate pours stacks into earlier stacks they StacksWith, called once per bay after SpillOversize
(finding old-fragments-never-merge). ProvenanceLedger.Reachable no longer names a RetiredExtracted input that
RunSave.Commit drops (finding input-keeps-retired-lot).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-27 23:01:52 +01:00
soul
a30f3be50d Compound commodities stack: ICommodityStack owns interchangeability, one bay rule serves every stack
ICommodityStack (StacksWith, Split) on SimpleCommodity and CompoundCommodity; CompoundCommodity.Quantity at Key(13),
CompoundCommodityData.MaxStack at Key(12), ItemManager.MaxStack. The bay's typed SimpleCommodity and CraftedItemInstance
entries are private behind the ItemInstance dispatchers, Remove and TryTransferItem take ItemInstance with a quantity,
EquippedCargoBay.Count serves CountItemsInCargo and the trade menu. Restore, pickup, prices, give and sale follow
(sale absorbs for any stack: question compound-stack-sale-absorbs).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-27 23:01:51 +01:00
soul
f0119a3599 Map: body facts for compound stacks and commodity stacking; Extracted.Body no longer named
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-27 23:01:51 +01:00
soul
86f532e4e8 Living-world target r3: the seam between the economy and Aetherlight
Aetherlight owns the actors, offices, commitments and knowledge; the economy owns
stock, recipes, installed gear, aggregate populations, gates and prices. Orders
cross only as payloads of admitted acts, records only by landing in a cell, one
tick apart. Folds the 2026-11-27 rulings (installed gear, populations in Blooms
and habitats, no absorption, fungible simple goods, lots for compound goods,
audited certification, no FTL comms) and restates L-recipe, L-roles, L-graded
and L-lot-at-boundary.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 20:29:24 +01:00
soul
7af1283f92 Merge master into the living-world target branch, so the target doc can land on master by fast-forward
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 20:29:16 +01:00
soul
80c3555c76 Fix batch s1: the two-AI re-pin names its true cause, linux pinned, the census has a positive control
The digest moves because the Zenith (11,6) rotation changes the generated station's fit, not because shields are on sale
(a Bare Djinni and hand-fitted Longinus fight). linux-x64 pinned to Soul's Yggdrasil measurement. TheCensusNamesAMountNoSoldDesignTakes
fails the Where(h => false) mutant.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-27 19:13:29 +01:00
soul
8d7c923c75 Tests: two pins that move because shields are on sale, with their reasons
TheirGearSellsWhereTheyAreAbsent 10 -> 12 (Awning, Migdal); TwoAiDigestIsPinned windows-x64 133e5d76 -> e4a3d6e5
(generated Djinnis carry a shield). The linux-x64 digest is not re-measured.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-27 19:13:22 +01:00
soul
d4d5ca40d2 Shields are on sale: shield roles, shield-catalog, and the census pinned at zero
A Light (1x1) and a Heavy (2x2) Shield Projector, each sold by two makers, authored through shield-catalog apply
(ShieldRoles lets CB-R1 cover them). Every hardpoint the game boots now takes a sold design; the Wren exception
assertion is gone. The heavy projector's Zhestokost product is 'Redoubt' (Rampart and Bulwark are taken).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-27 19:13:16 +01:00
soul
c59ff26b54 hardpoint-rotation: the Zenith's fourth radiator mount takes radiators again
Zenith (11,6) was rotation None, so no 4x1 or 2x1 radiator lay in its 1x4 cells; its twin at (11,2) is Clockwise.
Applied once: hardpoint-rotation "Zenith" 11,6 Clockwise apply.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-27 19:13:11 +01:00
soul
178db6be32 hardpoint-fit counts what the game boots: AetherDb.Open(withMods), one UnfillableHardpoints census
The census read only Aetheria.cc and missed package hulls (the Nakovalnya's shield mount). It now opens the
catalog ResolveCatalog composes at boot, read-only and refusing excluded packages, and the count comes from
Program.UnfillableHardpoints, the function the test will call. The stale 'exactly as many cells' comment is gone: fit is loose.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-27 19:13:03 +01:00
soul
795d3d9356 hull_packager/job.ps1: PYTHONPATH is the newest Blender user site that holds msgpack
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-27 18:27:49 +01:00
soul
bb33effb44 hull_packager/job.ps1: the failed --replace probe writes BOM-free JSON and checks it failed on the off-raster row
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-27 18:27:48 +01:00
soul
fdc8b3cbff package_hull: all-or-nothing --replace, a row that does not fit is a failure, manifest schema and reproducers committed; census pins every row and every package
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-27 18:27:47 +01:00
soul
6f7dd08e9e package_hull: no Blender version refusal (Steam's Blender is 5.3 now); the fixture manifest's rows fit its raster
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-27 18:27:47 +01:00
soul
853798ede9 PackageMountCensusTests: every package mount takes some catalog gear, and the census can fail
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-27 18:27:46 +01:00
soul
46e8b21953 tools/blender: package_hull.py, the headless hull packager fed by a per-hull manifest
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-27 18:27:45 +01:00
soul
6702b01bfb FungibleCommodityTests: reword a comment so the Extracted negative grep stays clean
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-27 17:32:34 +01:00
soul
80a3465241 mining-cut: mined units carry no lot (ruling simple-commodities-fungible)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-27 17:11:19 +01:00
soul
71a07e53bb Fungible commodity tests: merge by design, Extract mints nothing, pre-ruling saves read, sell-ore by ore kind
MiningCut5bTests becomes FungibleCommodityTests; StationServicesTests, HaulFeedTests, ItemTitleTests, RunSaveTests and StationKindDescriptionTests drop their lot clauses.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-27 17:11:19 +01:00
soul
18dd954f5e Simple commodities carry no lot and merge by design; Extract mints nothing; sell-ore selects by ore kind
Lot moves to CraftedItemInstance; ExtractedLot, its index and CargoGain.Lot die; Extracted becomes the empty load-only RetiredExtracted arm; FieldKinds.IsOre owns the raw-ore kind.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-27 16:47:52 +01:00
soul
587d19f525 EconomyLoopTests: a sortie is a function of its seed (follow-up sortie-determinism-pin)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-27 07:33:18 +01:00
soul
500dfdfc3b TrojanSwarmTests: a pre-flag belt save is now a 24-slot array (key 23 is BodyData.Site)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-27 07:31:52 +01:00
soul
17b28ac4f6 Zone bodies carry a seed Site; ore, chunk tie-break, rock meshes and names read it, never the minted key
A generated body's key stays cache-minted (a scenario of a saved run's seed generates beside the saved run), so the generation coordinate is its own field: BodyData.Site, written once by ZoneGenerator ({seed}:belt|body:{index}, {seed}:swarm:{k}, {seed}:lane:{k}). FireControl.Extract, the equal-index chunk order, DrawAhead and Name read SiteOr(key); a body from before this cut has no Site and keeps its key, so old saves keep their ore, order and meshes. Deletes the key-prefix naming and its keyless double Upsert, and the process-randomized GetHashCode tie-break.

Site takes MessagePack key 23: 6, 7 and 8 are retired on BodyData (ABodyRecordNeverReusesRetiredKeys) and an old save may still carry data there.

Ruling aetheria-living-world:ruling:zone-body-site-identity; cut aetheria-living-world:cut_spec:cut-zone-body-sites.r1.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-27 07:31:52 +01:00
soul
4520f78640 economy balance --loop fix batch: every belt its own sample, AmmoOut and RigFault outcomes kept out of the rate, exact accounting pins, committed golden of base output, finite positive cap
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-27 07:17:31 +01:00
soul
26541a62d9 economy balance --loop: a measured mining sortie per seed, income per minute, minutes to afford each offered design, ladder width against a band (report-only; H-loop, H-ladder; EconomyLadderMin/Max unset = no fault)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-27 07:17:30 +01:00
soul
ac84aa88df living-world map: zone body identity (two runs per store, key readers, Site)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 06:06:00 +01:00
soul
d3e51f22d9 living-world map: body facts for the player loop (per-seed starter fit, sortie cost, determinism)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 04:50:47 +01:00
soul
305d9cde73 A chain that does not settle has no price: author refuses it, L-price reports it; the clamp is deleted. Pin the L-price wiring, the floor of 1 and upkeep
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-27 03:40:16 +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
4d13003155 Made commodities are priced from their chain at the raw wage; economy author bakes it, L-price refuses drift
Balance's all-links median becomes Wage (raw links) and its inline sweep becomes Sweep, shared by Cost and Prices. economy author reprices every made commodity after the batches (none needed); L-price joins the refusing shape checks. Shipped-catalog test needs the next commit's Aetheria.cc.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-27 03:33:49 +01:00
soul
2a445dbdec Drop Unity batch-import residue from the hands-off commit
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-27 02:58:57 +01:00
soul
8a4a581c2c Hands-off input through one route: ActionGameManager subscribes and reads every Player and Global action via Bind/TryRead/Held/ActiveControl, which consult TacticalInput; tractor is press/release and releases on entry and ship change; scan test pins the route [ruling tactical-input-hands-off]
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-27 02:58:56 +01:00
soul
3d136645e1 Hands-off input: one classification owner (TacticalInput), Interact gated, Tractor held like fire, view controls live [fixes interact-ungated, tractor-latches, view-controls-gated, gate-fails-open]
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-27 02:58:48 +01:00
soul
e93e900bf3 Tactical view is hands-off: every direct ship input pauses and the ship holds its last commands [ruling tactical-input-hands-off]
TacticalView.Direct (= !Tactical) is the one gate; ActionGameManager's presses, polled move/turn/face-aim/tractor and mouse look consult it.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-27 02:58:47 +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
f8c67a4de0 TacticalView: Target eases with the rig weight, not the commanded flip; pin the detent rates, crest, ease and Reset
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-26 20:57:35 +01:00
soul
7866761265 Tactical view as a distinct camera: one eased log-distance axis, a detent band, a draggable grid target
TacticalView is the single owner: commanded and eased log distance, the detent between
flight and tactical (resistance, crest commit, relaxation), and the target on the grid.
Nothing stores a mode; Tactical is derived from the commanded position. Fade and
slowdown read the eased distance. A View Rig (mixing camera) blends the chase and a
three-quarters top-down tactical camera by that blend. Deleted: multiplicative Zoom/Step,
commanded-distance reads, stray cursor-lock writes, FollowCamera.enabled toggles.
Feel constants are placeholders for the operator to tune by eye.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-26 20:57:34 +01:00
soul
c821f3f378 AetherDb economy usage names both prices and balance after the merge
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 19:44:52 +01:00
soul
0650711537 economy balance: fix printer crash, label unpriced links by cause, cheaper recipe sets derived cost
verb-crashes: the link format string now gets the name argument; a test runs the full printer on the shipped catalog.
unpriced-label-and-filler: BalanceLink.Unpriced says output or input; any Price 0 filler leaves a role unpriced.
derived-last-writer: two recipes for one output take the cheaper derived cost, order independent.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-26 19:44:38 +01:00
soul
a2e8e89292 economy balance: static implied-wage, derived-cost and belt report
EconomyChecks.Columns is now the one reader of a recipe's per-cycle
consumption (Productive builds its matrix over it). EconomyBalance reads
the same columns: implied wage per link, prices derived from inputs plus
labour at the median wage, H-margin and H-wage health faults (report-only,
not a batch Shape invariant), belt rows. `economy balance` prints it.
GameplaySettings.EconomyWageSpread is the one tolerance.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-26 19:44:37 +01:00
soul
a39ef352ac Tests that pinned the shipped catalog before the ore batch and the rescale now read what the batch ships (18 failures at the previous head, all passing at d1ff2f78e)
Gear price pins move to the rescaled values (PdGearStatsAreAuthored, LaunchSuppressorCatalogTests, ConsumablesFirstSetTests); the two one-shot command tests compare a landed design to the shipped record through GearPrices.Rescaled, since the commands keep their gear-scale literals. A test that takes factions out of a catalog copy takes their stand-ins too (the batch stands every faction in on mining), and the station-kind worlds start with none. Shipped provinces are stripped where a test deals its own. Recipes with Inputs read an empty RoleInputs (the first smelting step takes roles); the simple commodity count is 50.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-26 18:06:33 +01:00
soul
21cc507308 Delete the rescale command and its fixture test now that it has applied (cut gear-money-rescale); economy prices stays
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-26 17:14:54 +01:00
soul
34ce6e6719 Gear money rescale: divide gear, consumable and package hull prices by 100 through economy rescale; economy prices reads every price field (aetheria-living-world, cut gear-money-rescale r2)
Equippable and Consumable prices in Aetheria.cc become round(p/100) (half away from zero, floor 1): 74 records, every ratio 100.0; commodities, ammo, missiles and mines keep their batch prices (ruling economy-numbers-are-sim-tuned-knobs). Nakovalnya 60000000 to 600000 through ShipAuthoringStore. StartingCredits 15000000 to 150000. DemoLoopIncomeToCostClosesAfterRescale pins the income-to-cost scale of the demo belt against the base measured before the ore batch. economy rescale is deleted in the next commit; economy prices stays.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-26 17:14:11 +01:00
soul
cc3b322e20 Apply batch OresAndProvinces to GameData/Aetheria.cc through economy author (62 added, 10 changed)
Ore prices are the batch's own starting values (ruling economy-numbers-are-sim-tuned-knobs); gear is rescaled in the next cut on this branch.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-26 17:08:20 +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
d1ff2f78e8 TrojanSwarmTests: swarmless zone digests pin per host class, windows-x64 added
Windows gives different swarmless digests at the commit that set the linux table (d0fc8adb7), so not a regression.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-26 03:23:03 +01:00
soul
60de0a6aab DeterminismLedgerTests: the two-AI digest pins per host class, windows-x64 added
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-26 03:23:01 +01:00
soul
8d8cf08f19 MiningCut3Tests: windows-x64 ChunkInfo pin reads the host's bits (second observer ...088)
Reproduced at the recording commit c86f28e93 with its own CultLib/CultMath pins and on runtime 10.0.6: the host moved, not the code.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-26 03:23:00 +01:00
soul
c834e5fa73 CreditsTests: compare the licence directory with forward slashes on both sides
Path.GetDirectoryName returns backslashes on Windows, so the licence text never "sat beside" its fonts there.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-26 03:22:59 +01:00
soul
f26ece5b32 IFL scenario handoff: Die's relaunch fires only if no launch has begun and the manager lives
MainMenu.Launching is true from Launch or EnterGame until a refusal; Die's fade completion checks it and the
subscription ends with the manager.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-26 02:48:12 +01:00
soul
14b6620f77 IFL scenario handoff: retarget the two tests that pinned the superseded release list
DemoTerminus_is_named_a_demo and ReleaseBuildsListOnlyTheDemo pinned demo-build-scenario-list, superseded by
ifl-wormhole-exit-standin. Same exact bounds, new list: Modes is the simulation, Terminus is a Development entry.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-26 02:48:12 +01:00
soul
8f3ea1c5e2 IFL scenario handoff: name RunStart.Staged
Unity batch compile of the first commit failed on the unqualified type; the dotnet suite does not compile ActionGameManager.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-26 02:48:11 +01:00
soul
c2faa7cfc6 IFL scenario handoff: New Game boots an unsaved simulation, its wormhole starts the run, death returns to it
Scenario.Saved declares a simulation; RunSave.Beside starts one beside the saved run and its Simulation token discards
what it wrote. ActionGameManager.Simulation is the one derived fact: SaveRun skips, EndRun discards, StartGame discards
first. Infinite Fun Land is the only release mode; Terminus is launched by LeaveSimulation (wormhole dialog, console
leave) and listed under Development. Death anywhere relaunches the simulation; the death fade now completes
(TakeWhile) so its completion callback runs.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-26 02:48:10 +01:00
soul
e3301069d6 Hold-value test: compare the pre-Regolith reading to 6 places
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-26 02:45:18 +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
soul
012f33e6ac Tactical view fixes: clamp SimClock.Rate (refuse NaN), one far-clip writer, pin blend curve, thresholds and clamps
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-26 00:32:50 +01:00
soul
0df1642d66 Tactical view, first cut: scroll zooms the flight camera out to a 3D zone schematic, sim time slows
TacticalView owns the zoom; blend, time rate, fade and schematic derive from camera
distance each frame. SimClock.Rate dilates real seconds fed, never Step.
Rulings tactical-view-is-zoom-out, tactical-view-in-runs-slow-time.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-26 00:23:25 +01:00
soul
91567cc685 IFL 8a tests: pin each formation's faction and the 60 m spacing to literals
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-25 23:51:50 +01:00
soul
1ea4b62db4 IFL 8a: compiled Formations and a summon console command
Formation (stable id, cast faction, a ZoneStage Place script) and Formations
registry; Formation.Summon resolves the faction (unknown refuses) and admits
through ZoneStage.Summon. Console "summon <id>" beside spawnturret.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-25 23:51:48 +01:00
soul
bff39805cf Wormhole warp: centre follows the wormhole the ship is at in each half
The presenter stored the entered wormhole's position once, so the exit half
pulled toward a point in the old zone. The ship already holds the wormhole
position for the current half; expose it as Ship.WormholePosition and read it
each frame, dropping the presenter's copy.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-25 23:29:12 +01:00
soul
1999cca521 Gate beacon: dressing beacon at every wormhole and a screen warp on wormhole travel
Delete the dead WormholeCamera field and the commented camera block in EnterWormhole.
Add Ship.WormholeWarp (derived from the wormhole animation), the Wormhole Warp
post-process effect with its Resources shader, and a presenter that holds the volume for
one transition. The wormhole prefab gains a collider-free Anchor Beacon child, turned by
ZoneRenderer.AddWormhole to stand beyond the wormhole as seen from the zone centre.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-25 21:59:26 +01:00
soul
6ccf5b4e09 Release workflow: fix backslash normalisation in bash preflight
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-25 20:47:32 +01:00
soul
f2481059ae Release workflow: quote Git Bash shell pin, put Git bin first on PATH, preflight bash resolution
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-25 20:46:58 +01:00
soul
8ce5482765 Checklist: fix tar.exe path
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-25 20:41:27 +01:00
soul
fc9d8702fe Release workflow: preflight host prerequisites, atomic push, pinned Git Bash; checklist recovery and exec bits; define player-visible
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-25 20:41:04 +01:00
soul
fca2fd725e Docs: change-file rule in CLAUDE.md; forge release is the live release home
Windows and Linux players are in scope; the site and feed ends remain targets.
2026-11-25 20:34:28 +01:00
soul
fddb37aa04 Release workflow: dispatch builds win64 and linux64 on Starfire and publishes a forge release
Nothing is pushed until both builds succeed. Inert until the runner exists.
2026-11-25 20:34:27 +01:00
soul
90c412bc3e Release prep: VERSION, knope.toml, CHANGELOG and the pipeline's own change file
Change files decide the bump and changelog; knope only prepares the release and
never reads commit subjects. VERSION is the one owner of the current version.
2026-11-25 20:34:23 +01:00
soul
8f3d23d386 Demo pressure tests: pin InGrace's depth term directly
Where depth <= 0.25 the curve's own ramp already draws no raider, so only the
antagonist's stations and turrets (moved away by grace) carried the depth term,
and no generated zone near the antagonist's home reaches it. Assert InGrace for
those zones so dropping the term fails.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-23 00:58:22 +01:00
soul
186cb5ebac Demo pressure curve tests: gate antagonist scope, depth span, grace literal
Ported from cut/demo-pressure-curve and reworked for Galaxy.Antagonist:
depth and the curve's expectation come from DemoPressure.Depth/Of; new
DemoGalaxy_grace_depth_by_literal, depth_spans_entrance_to_gate,
antagonist_is_the_gate_faction, MainGalaxy_patrol_ignores_boss_zones,
SavedGame_without_antagonist_continues_unraided; the ring test is renamed for
what it asserts and the pursuit measure is split out, env-gated, asserting only
that an engagement happened. DemoTerminus_standing_survives_continue pins the
restored Antagonist.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-23 00:58:13 +01:00
soul
0cac368bc2 Demo pressure curve: Galaxy.Antagonist scopes and sources the raids
Galaxy.Antagonist (set by PlaceGate, saved as SavedGame key 18) is the faction
whose gate the galaxy has. ZoneGenerator raids a galaxy that has one by
DemoPressure's curve, one depth formula e / (e + x) with no clamp, and keeps the
nearest faction's patrol for a galaxy that has none. Inside grace the
antagonist's stations and turrets pass to the nearest other faction, and the
antagonist is no wanderer. LoadoutGenerator.OfferedShipHulls feeds the price
ceiling. Cut demo-pressure-curve.r2.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-23 00:58:05 +01:00
soul
9cfae281ef DelaunayTests: pin OrientationBound with the wrong-signed double orientation set
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-22 23:00:05 +01:00
soul
c28003d295 DelaunayTests: pin the orientation predicate, the collinear detector, the super-triangle and whole triangulation of cocircular input
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-22 21:47:30 +01:00
Nibu
fc97c8be25 Delaunay: drop the fewer-than-two guard the collinear branch already covers
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-22 21:32:56 +01:00
Nibu
f428ab1d88 Delaunay: exact orientation and in-circle predicates, loud degenerate input, Galaxy zone-linked guard
Double-precision filter with BigInteger fallback replaces the circumcentre test; the super-triangle is far enough out
that no float input reaches it. Collinear points link along the line, duplicate or non-finite points throw, and
Galaxy refuses a zone no link reaches. The exact oracle replaces ScenarioTests' double brute force.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-22 21:32:55 +01:00
soul
faf44f857a aetherlight: record the fix batch and the accepted counter-blind-sizes finding
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 16:04:58 +01:00
soul
693fa444af aetherlight: a seeded property test over random patch sequences
Ten seeds of thirty random patches through the kernel: the resolver and
apply_operations never disagree (no Invariant error), a refusal writes nothing
and repeats, and every accepted commit leaves indexes equal to scans, no
overlap standing and the grain total unchanged.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 16:04:56 +01:00
soul
7ef60a7d21 aetherlight: touched_holders no longer reads retirement flips
A retirement only removes lent authority, so it cannot add an overlap; the
clause changed no answer over 20000 forged lists.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 16:04:55 +01:00
soul
022db116e5 aetherlight: pin the patch behaviours three triaged mutants showed unpinned
One holder with a same-kind levy over two subjects, a pressure advanced then
resolved or reduced inside one patch, and a declared subject's own affordance
granted or revoked-then-granted: each fails under its mutant
(candidate.rs targets_overlap ==, patch.rs pressure next == 0, patch.rs
!granted.is_empty()).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 16:04:53 +01:00
soul
1541cb6c4f aetherlight: apply_operations judges a holder restored to its start value
The conservation sum covers the union of the holders written at entry and the
holders the log reports, so a holder written before the operations and
returned to its transaction-start value (absent from changes()) still counts.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 16:04:52 +01:00
soul
aac972260f aetherlight: gate the patch lane's read work, and record the cut
patch_read_work_is_equal_at_100_and_1600 submits ten patch shapes through
AdmitPatch and holds their rows read equal at 100, 400 and 1600 persons. The
DischargeCommitment case that called apply_operation directly moves into it.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 16:04:41 +01:00
soul
f18c6d5e18 aetherlight: the resolver's candidate graph is an overlay, not a copy of the world
resolve_patch no longer seeds fifteen maps by copying every partition. Each
candidate map is an Overlay over its committed partition (patch/candidate.rs):
reads fall through by point get, the patch's writes sit in a local map. The
scale-sensitive reads are named methods of Candidate: occupants_under,
offices_of, offices_held_by, kind_taken, import_key_held, custody, and a
running overlap set re-judged at every write to authority, offices or
retirement, which is graph_overlaps' answer because the committed world is
disjoint. The seeding block and the old scans live on only as test references
(Materialized), and the new tests hold every named read to them.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 16:04:28 +01:00
soul
b41cae3b87 aetherlight: apply_operations checks conservation and disjointness from the log
Conservation sums only the holders the transaction wrote, with before taken from
each holder's value when the operations began; disjointness judges only the
holders whose grants, offices or institutions the transaction touched, through
holder_overlaps, which overlapping_holder now also calls for the open-time
whole-world check. resource_total becomes the test-only resource_total_by_scan.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 16:04:26 +01:00
soul
396bc6a63f aetherlight: import keys and affordance kinds are read through indexes
Subjects gain a ByImportKey index and the affordance catalog a ByKind index.
held_import_keys and the per-patch kind_names set are deleted: import_key_fault
takes a held predicate, and admit_resolved, resolve_patch and
verify_state_shape's open-time check ask the index (or nothing, at open).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 16:04:24 +01:00
soul
b63284349a aetherlight: a seeded differential test holds the views to their rebuild and the scans
Random bind, release, route, holding, relocate, retire, tick, speech and refused
commands over the clockwork world, reopened every 50 commits; after each, views ==
rebuild and derive_motion == scan at +1, +30 and +5000. PROVENANCE records the Soul
pass 1 fixes and the failing-dependency cost the gate does not defend.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 15:54:48 +01:00
soul
8fa2545675 aetherlight: the timing harness reports medians of 200 interleaved commits, and an open cost harness
clockwork_commit_cost takes the median of 200 samples with ticks and speeches
interleaved instead of a 30-sample mean per kind, whose speech ratio swung 2 to 4
over runs with flat rows. open_cost (ignored, like it) reports median open times
at 200 to 3200 persons, the bulk path the per-commit gate does not reach.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 15:54:47 +01:00
soul
e76ba61ee6 aetherlight: the clean-log contract of a view read holds in release builds
derive_motion asserts, not debug_asserts, that the six partitions the views join
have no open log, so a stale view cannot be read silently in a shipped build; the
refusal test runs in every profile.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 15:54:45 +01:00
soul
ba6c2dcd05 aetherlight: a retired dependent's route closing leaves no failing row, pinned
The view scenario retires a subject bound to a route and then closes the route;
dropping the retired-dependent guard in the fold's moved-targets arm now fails
views_are_derived.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 15:54:45 +01:00
soul
aa9e91247d aetherlight: fold the views of a bulk commit in rows proportional to the change
The moved-targets arm called Docs::indexed once per changed placement or route,
and indexed walks every touched key while a log is open, so genesis and every
replayed commit paid touched dependencies x changed targets. Docs::indexed_unchanged
names the committed index entries of keys the log did not change, with no log walk;
a changed dependencies key is already re-judged whole, so the fold loses nothing.
folding_a_bulk_commit_reads_rows_in_proportion_to_the_change pins it by rows read.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 15:54:44 +01:00
soul
19d514dc93 aetherlight: releasing a dependency removes the pressure it raised
Release deleted the dependency row only, so a pressed dependency's pressure row
outlived it and verify_state_shape refused the world at open (export then open
failed CorruptJournal). The Release arm now clears the dependency's pressure
through set_pressure, the one pressure writer. Pre-existing at 609b3ba5e.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 15:54:43 +01:00
soul
8112234597 aetherlight: the gate world grows dependencies, retirements, forums and checks to world scale
A dependency per person (to the previous live person), two failing on the last
place's grain, a forum per place, a Holds check on every routine, every tenth
person from the 35th retired, and the clock moved one period so every routine
is past due. The fixed-count pins on dependencies and redress go; the gate
asserts the population at scale, so a walk of dependencies, retired pledges,
holdings or forums fails it. PROVENANCE records the cut.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 15:54:42 +01:00
soul
08cda21b1a aetherlight: cross-partition views (live due, failing dependencies) derived at finish
views.rs owns Views { live_due, failing }, folded only by WorldState::finish
from the open change lists of commitments, subjects, dependencies, edges,
holdings and positions, before the logs close. Derived like a Docs index: not
digested, not encoded, ignored by equality, rebuilt by replay on open, never
touched by rollback. derive_motion reads it with clean logs (asserted) and no
longer walks every dependency row or visits retired subjects' dead pledges.

DueAt leaves commitments (the due question has one owner); dependencies gains
the DependsOn index the fold uses to re-judge a changed route's or placement's
dependents. The old walks live on as cfg(test) derive_motion_by_scan and
Views::rebuild; views_are_derived, view_reads_equal_reference_scans,
a_corrupted_view_is_detected and a debug refusal of an open-log read pin them.
golden.digests is byte-identical.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 15:54:41 +01:00
soul
ae0f6f3463 Stance follows the telemetry claim: pin it, and correct the Hated test's comment
StanceFollowsTheClaimNotTheLiveFaction changes ships' actual factions after they were tracked; reading other.Faction in the Hated
branch instead of the claim now fails it (verified by mutation). HatedIsKillOnSightInAnOwnerlessZone no longer claims that kill.

Note on the previous commit's catalog re-save: besides the 16 Faction schema ids, the records' Places arrays gained persisted element
ids, which the payload comparison (element ids not serialised in it) did not show. Accepted low resave-payload-claim-loose. The player
arm of GetFactionRelationship needs an entity to regard: follow-up regard-player-arm.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 15:14:24 +01:00
soul
4ce6e14d00 Catalog: re-saved through AetheriaStores after Faction.Relations changed its schema id
Every Faction record upserted as loaded and flushed through the game's own store composition; nothing authored. Relations stays
null in all 16. The other 396 records are untouched, and every one of the 412 serialises to the same payload as before.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 15:14:23 +01:00
soul
ea328b00e5 Faction.Relations at key 16 decides stance between NPC factions
Hated toward a claimed faction is kill on sight in any zone, owned or not; Hostile to Beloved govern presence by security
level through the existing PresencePermitted and trespass path. Entity.Regard is the one reader of the map: unset either side
is Neutral, a faction regards itself Beloved, absent is Neutral, and a faction the catalog does not hold is Neutral.
Relations are directed and stance reads the claimed faction from telemetry. The catalog authors none, so behaviour equals base
until the table lands; the schema id change is re-saved in the next commit.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 15:14:22 +01:00
soul
5bf507aba0 Summons write no stance: ZoneStage.Summon loses its player anchor, Neutral writes no override
ZoneStage.Place and AdmitPlaced write no IFF; authored stance is ScenarioStage's
run-start verb (Hostile written both ways once, in Admit). A summoned ship now
answers a provocation (Entity.Provoke), as the faction rule and grudges decide
(ruling summons-follow-faction-logic). Closes the summon anchor refusals, which
guarded an anchor that no longer exists.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 14:59:06 +01:00
soul
e700ead684 Follow camera: FrameFollow is the one writer of Follow, LookAt and distance; distance = FollowCameraDistancePerReach x Contacts.Radius
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 13:13:38 +01:00
soul
f25dcb54ce Follow camera: delete the dead transposer/composer comments; add GameSettings.FollowCameraDistancePerReach (1.5)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 13:10:34 +01:00
soul
609b3ba5e9 aetherlight: pin the gate world's dependency and redress counts, owned by cross-partition-views
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 07:37:37 +01:00
soul
128c00bdad aetherlight: a multivalue world, and the derived-index oracle checks the scans too
A pressure target fed by three sources and an institution with three
distinct incumbents (one in two offices) join the walked states, so a
projection that keeps only the first or last point of a document loses a
row the reference scans still see. indexes_are_derived now also compares
every read with its _by_scan twin, since a rebuild through P::points agrees
with a wrong projection.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 07:14:23 +01:00
soul
a4341a008e aetherlight: commit the random-walk differential of indexed against the projection of the map
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 07:12:17 +01:00
soul
08d0c26fd8 aetherlight: indexed counts the open-log walk, not only the entries it returns
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 07:11:33 +01:00
soul
c901d8b96a aetherlight: the gate world holds holdings, facts and knowledge at scale
One grain holding and one known fact per person, a fact and a resource per
place, and two dependencies (a fixed count: derive_motion still walks every
dependency row, follow-up aetherlight-cross-partition-views). read_work now
asserts the partitions are populated, so a scan of knowledge, holdings or
facts grows the count and fails it. golden.digests untouched.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 07:11:31 +01:00
soul
f656cfdb1b aetherlight: drop Counted's size_hint override
Delegation to the inner iterator's hint; cargo-mutants found only equivalent
mutants of it. The default hint costs nothing here.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 06:19:40 +01:00
soul
3aeea1749d aetherlight: the read-work gate, the gate world and the index oracles
The clockwork world now holds a route per consecutive place, a Reach::Place
channel per place, an institution with a warden office per place and two
past-due obligations, so no partition a read index serves is empty.
read_work_is_equal_at_100_and_1600 and operation_reads_are_equal_at_100_and_1600
gate the rows a commit and a set of otherwise unreached reads touch;
indexes_are_derived, index_reads_equal_reference_scans,
an_index_read_mid_transaction_sees_the_log and a_corrupted_index_is_detected
hold the index to its map and to the scans it replaced. The harness prints
rows read beside time and digests and asserts nothing. golden.digests
byte-identical.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 06:05:31 +01:00
soul
edeea42f5e aetherlight: partition read indexes owned by Docs; eight whole-partition scans become index reads
A Docs may carry a Projection: a pure function of one document's value.
Docs::finish folds each changed key (old points out, new points in) from
the list the digest folds; Docs::indexed returns (point, key) in order,
corrected by the open log so it is true mid-transaction; rollback never
touches the index. Seven projections: DueAt, StandsAt, ChildOf, BySource,
ByEndpoint, ByController, ByIncumbent. under_place, audience Colocated,
DischargeCommitment holders, scope_components routes and controls,
delegated_authority, derive_motion's commitments and reachable's outbound
edges now read the index; each old scan is kept as a cfg(test) *_by_scan
reference. golden.digests byte-identical.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 05:58:09 +01:00
soul
436c6d59ca aetherlight: Docs loses Deref; reads are inherent methods and every row an iterator yields is counted
No behaviour change. Reads of a partition go through get, contains_key,
len, is_empty, iter, keys, values, range, Index and IntoIterator, so no
reader can bypass the test-build row counter by coercing to BTreeMap.
Resolver and is_genesis parameters take &Docs. golden.digests untouched.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 05:51:57 +01:00
soul
576605c7b0 aetherlight: pin that a non-routine commitment cannot carry a check
A live check from a Routine is put on an obligation or goal and
verify_state_shape must refuse it; the honest world is the control. Kills the
survivor of && to || on the routine-or-no-checks conjunction (shape-conjunction-survivor).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 05:16:01 +01:00
soul
28db7e2197 aetherlight: pin every partition's digest, undo and finish, and the failure after the digest
every_partition_is_digested_undone_and_finished iterates the declaration: for
each partition one written document must be in the folded digest and agree with
the full recompute, be put back by rollback (state, bytes, logs), and leave the
logs empty and the accumulator at the full recompute on finish; a partition no
fixture world populates fails loudly. a_failed_apply_rolls_back now runs a tick
that rolls routines, a tick that writes pressure rows (the old tick wrote none,
contrary to its doc), a speech and a forget, each under the revision overflow
and under an injected failure after the digest is folded and the commit sealed
(test-only thread-local seam in submit). Addresses table-rows-undefended.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 04:56:03 +01:00
soul
9c8ab5ec85 aetherlight: TickMinutes owns its bound at decode, replay's clock clause goes
TickMinutes was serde(transparent): a stored zero-minute tick (or a span above
MAX_ROUTE_COST, which submit cannot build) decoded, and replay's clock clause
alone judged it. The type now decodes through TryFrom<u32> (1..=MAX_ROUTE_COST),
so a command, a routine period or a stored tick outside the bound cannot be read.
With that the clock clause in verify_history is unreachable (only TimeAdvanced
writes the clock, and a tick's span is at least one minute), so it is deleted
rather than defended; so is the period clause in verify_state_shape. Tests:
bounds at decode, and an export whose tick span is rewritten to 0 or over the
bound does not open. Addresses clock-clause-not-redundant.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 04:49:28 +01:00
soul
415ac9208b aetherlight: a commit of another schema generation is refused by name
A v1 export is well-formed, so it is not corruption: open now returns
UnsupportedSchema{found, supported} from the one schema judge, asked of every
commit before its other fields are believed, instead of CorruptJournal at
genesis. The test asserts the version in the error for a v1 chain and a later
commit of another generation. Addresses v1-refusal-unnamed.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 04:48:56 +01:00
soul
6896553a5b aetherlight: the partitions are declared once, the table is generated
The WorldState partition fields, the table begin/folded/finish/rollback and the
test oracle walk, and the empty world all come from one world_state! row list.
A partition cannot be a field without being in the digest and under the undo
log, and a field added to the generated struct without a row fails to compile
(missing field in with_header). Addresses partition-table-second-authority.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 04:44:41 +01:00
soul
412084d308 aetherlight: pin the snapshot's past_due against the clock
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 04:09:02 +01:00
soul
30c65cdef5 aetherlight: kill the surviving mutants of the digest and replay rewrite
An unchanged touched document costs no digest, begin refuses an open log, known_by is the knowledge
partition read the other way, each arm of the knowledge shape check and of the committed-command
target check is judged alone, the replay future check reads only touched new keys, and document keys
are canonical text.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 04:05:51 +01:00
soul
8ce1e7e23b aetherlight: pin the set digest, the rollback and the digest work bound
Incremental digest equals a full recompute at every revision of the golden
session and across a removal; LtHash16 add then subtract returns to zero in any
order and wraps; digest work per tick and per speech is equal at 100 and 1600
persons and equals Added + Removed + 2 x Updated; a failed apply rolls every
partition back; a v1 commit chain is refused. The clockwork harness takes
period N/2 and prints digests per submit beside the times. PROVENANCE records
the cut.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 03:45:19 +01:00
soul
5445e5daf9 aetherlight: the state digest is an LtHash16 set digest, events leave the state
The world digest is now a homomorphic set hash over per-document digests
(sha256 of schema, key and the named encoding of the value), updated by the
documents a commit changed, sealed with the revision. WorldState is no longer
an encoded value and loses Serialize; events live once, in the Acted commit
that applied them, and snapshot folds minted_at and last_acted_at over the
journal; knowledge is one document per (subject, fact). Schemas become
world_state.v2 and world_commit.v2, so every digest and the export hash move
and golden.digests is regenerated. verify_state_shape no longer judges events:
replay re-derives each through action::exercise.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 03:45:18 +01:00
soul
993b7a2948 aetherlight: partitions become tracked documents, submit applies in place under an undo log
Docs and Tracked<WorldHeader> record the first-touch value of every written
key. submit applies to the live state between begin and finish and rolls back
on any error, so the world is no longer cloned per commit; replay reads the
commitments subjects finish() reports instead of cloning the partition.
The encoding is unchanged: golden.digests is byte-identical.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 03:45:17 +01:00
soul
36d1d2507d aetherlight: pin the digest and genesis clauses, record a band draw in the golden, document host contracts
A stored digest flipped without re-sealing, and each genesis clause rewritten
and re-sealed on a lone genesis, are now refused by tests that only that clause
can satisfy. The golden session declares a two-band toss and uses it three
times, so band selection is pinned (golden.digests regenerated). The
BandPreimage doc no longer claims the payload cannot reach the draw; WorldId
byte-equality, and truncation or rollback of an export, are documented as host
contracts in the code and PROVENANCE.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 03:06:59 +01:00
soul
7b7d12ea83 aetherlight: pin the world-id derivation, revision position and chain-resealed schema refusal
Mutants that survived the first pass: dropping the genesis world-id check,
dropping the resulting-revision contiguity check, and a ghostlight commit schema
check (the old fixture left the next commit's previous digest stale, so the
chain refused it for the wrong reason). Each now has a test that fails without
the rule; all eleven named mutants are killed.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 02:45:26 +01:00
soul
d3a1caa01b aetherlight: golden session digests, clockwork commit-cost harness, provenance
fixtures/golden.digests pins every committed revision's state and commit digest
and the export digest for one scripted session: speech (Told), a display, a
routine placed and rolled by a thirty-minute tick, and a refused convene. The
round-trip test reopens the export and checks the next command gives equal
receipts on both worlds. clockwork_commit_cost is an ignored harness that
prints mean tick and speech submit times at 100, 400 and 1600 persons.
PROVENANCE.md records the id, journal and dependency changes.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 02:40:09 +01:00
soul
94a3c67d6d aetherlight: the journal is an in-memory commit list with export and open
The redb store, the state row, health and ownership checks, verify_append and
the retry paths are gone. WorldJournal holds the commits in revision order;
export() writes { schema: aetherlight.journal.v1, commits } as canonical named
messagepack and open(bytes) decodes canonically and replays through
verify_history, which now reads the slice and returns the head state it
derives. A genesis commit must carry WorldId::of(creation id). chrono,
cultcache-rs and tempfile leave the manifest; uuid v4 is dev-only. Tests build
worlds in memory and reopen from export(); forgery tests build exports.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 02:35:03 +01:00
soul
84a48f3f60 aetherlight: derive command, creation and world ids from content; drop committed_at; rename schemas
A command is named by sha256 over world, expected revision, caller and body;
a creation by its own bytes; a world by its creation. The id fields, the
random CommandId::new / WorldId::issue and WorldCommit.committed_at are gone,
so equal commands commit equal bytes. Retry identity goes with them:
SubmitReceipt collapses into CommitReceipt and a resubmitted command is a
RevisionMismatch. Schemas are aetherlight.world_state.v1 and
aetherlight.world_commit.v1; ghostlight rows stay refused.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 02:24:26 +01:00
soul
09a1c32560 Make a refused summon ledger-neutral: ItemManager.Mark/Rewind restore the stream and the lot ledger together
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 01:49:33 +01:00
soul
0c9ab54048 Fix Soul s1: boss presets refused, refusal restores the item stream, anchor must be the player ship, drop the dead stocking-order claim
Nothing at admission or activation reads cargo (ammunition is read at fire time), so the comment's ordering rule is removed.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 01:49:31 +01:00
soul
439c7d1b4f Test ZoneStage.Summon: joins a running zone, refusals admit nothing, fed ships carry crates
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 01:49:30 +01:00
soul
92b13c2fd5 Split ScenarioStage: ZoneStage owns placement and admission, Summon places into a running zone
ZoneStage holds the placement vocabulary and AdmitPlaced (stance both ways, Zone.Admit, pilot knowledge);
ScenarioStage : ZoneStage keeps player, credits and starting hull and Admit() in the run-start order.
RunStart.Stage no longer writes stance, admission or knowledge. ZoneStage.Summon admits a script's
placements into a zone the player is a member of, with no Player verb.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 01:49:28 +01:00
soul
39c50acfcd Aetherlight AL2b-2b: schema consumer.v10, v9 refused; pins and PROVENANCE
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 01:28:06 +01:00
soul
bdda374f20 Aetherlight AL2b-2b: delete controllers
ControllerAssignment, ControllerId/Mode, NewController, DecisionScope,
SubjectDeclaration.controller, UnadmittedController, validate_assignment and
the snapshot controller fields go. admits_human becomes is_genesis. The
fixture lookup is by label. The channel controller is untouched.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 01:25:32 +01:00
soul
c79f9b5671 Aetherlight AL2b-2b: retirement lives on SubjectState; grants keyed by SubjectId
SubjectState.retired is the one stored statement; is_retired reads it. The
Retire arm sets it; affordance_grants is keyed by SubjectId. Controllers still
compiled; removed in the next commit.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 01:11:45 +01:00
soul
9df34ea28a Aetherlight AL2b-2a: pin the reduce gate and the title clause
A non-Play caller's broken patch and ungranted act are Unauthorized, so dropping
require_play from reduce fails a test (it was not equivalent: the refusal would
leak world structure). A forged empty or padded stored title is Corrupt.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 00:59:20 +01:00
soul
105632df25 Aetherlight AL2b-2a: PROVENANCE section for the Play-only cut
Records what went (with f51275c61 locations), the born-Active genesis and the
one gate; restates the AL2b-1 residue as what AL2b-2b still owns and drops the
leave-set bullets and the valid_until obligation this cut deleted.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 00:37:22 +01:00
soul
475428bbd2 Aetherlight AL2b-2a: tests pin the Play-only gate, the born-Active genesis and grant rows
after_genesis_only_play_writes, apply_effect_re_decides_play,
a_world_is_born_active, retired_tags_do_not_decode,
a_revoke_may_leave_a_subject_with_no_verbs, a_subject_may_be_declared_with_no_verbs,
a_retired_subject_takes_no_grant, apply_refuses_a_grant_to_a_retired_subject,
retire_applies_to_every_subject. Deletes CommandId::derived (its only caller was
ConsumerId::of_name) and restates comments that named deleted lanes.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 00:37:21 +01:00
soul
be556e8a86 Aetherlight AL2b-2a: after genesis only Play writes; worlds are born Active
CallerId is { Principal, Play }; one require_play gate at the top of reduce and
apply_effect replaces the capability table, the owner's post-genesis doors and
the Clock capability. The consumer lane (ConsumerId, PatchGround, mirrors,
confine_to_ground, operation_ground), the draft phase and approvals,
VerifiedPrincipalEvidence, the dead intents and the never-mute and Retire-side
refusals are deleted. GrantsOutsideControl becomes GrantsToRetired; a grant row
exists iff the subject holds a verb. require_ruler is genesis-only
(forbid_rulings_at_genesis). Schema consumer.v9. Tests of deleted lanes are
deleted, the rest go through submit_play.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 00:22:36 +01:00
soul
f51275c61d Aetherlight AL2b-1: pin v8 schema ids, silent foreign actor, discharge-then-act
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-19 23:52:09 +01:00
soul
a02942f115 Aetherlight AL2b-1: kill the two survivors (Acted commit-time gate, event revision order)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-19 23:52:09 +01:00
soul
d48f1d7aa7 Aetherlight AL2b-1: comments, seal doc-test, PROVENANCE section, dead readers
Restates comments that named deleted symbols as a reason, swaps the seal
doc-test that named ScopeDigest for DecisionEvent, deletes WorldJournal::commits
and FictionalMinutes::since (dead with the operator log and attention order),
and writes the AL2b-1 PROVENANCE section with the residue list for AL2b-2.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-19 23:52:08 +01:00
soul
d512a6706a Aetherlight AL2b-1: Act door tests (only Play, Draft refusal, acted chain)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-19 23:52:08 +01:00
soul
cfad9819cf Aetherlight AL2b-1: Act { actor, invocation } replaces opportunity-based exercise
Deletes DecisionOpportunity, ScopeDigest, attention order, last_opportunity_at,
decline, the operator log, controller receipts and the three opportunity
errors. Adds CommandBody::Act and WorldEffect::Acted, admitted for System(Play)
in Active only; require_granted takes the actor. DecisionEvent carries actor,
not scope and controller_id. State and commit schema ids move to v8.

Tests whose subject was a deleted lane are deleted; kept-lane tests are
rewritten onto one helper submitting Act as System(Play), and write-locality
tests compare scope_components.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-19 23:52:07 +01:00
soul
bf92a054f6 Aetherlight AL2a fix 2: PROVENANCE routing note, schema bump and the completed residue list
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-19 22:40:15 +01:00
soul
fff6f9e7ed Aetherlight AL2a fix 1: declaring in Active is Play's act; bump schema ids; pin the confinement re-decisions
require_play_active refuses any non-Play declaration or evidence in an Active
world, restoring the typed-command path as the only door; the owner-declares
test becomes the_owner_cannot_declare_in_active and the kept-lane tests that
used the owner to declare use Play. STATE_SCHEMA and COMMIT_SCHEMA go to v7 and
a v6 row is refused. New tests pin apply_effect's confinement and
declare-in-Active re-decisions, and confine_to_ground's unconditional
retire/grant/revoke arm is probed directly on a hand-built resolved patch
(the resolver refuses those on a mirror first, so no submit can isolate it).
Stale elaboration-lane comments in patch.rs reworded.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-19 22:40:14 +01:00
soul
fe6819a0a8 Aetherlight AL2a.6: record the agency cut A in PROVENANCE
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-19 22:16:55 +01:00
soul
1919828a7e Aetherlight AL2a.5: delete the elaborator lane, the answer gate and the scale intent
Remove SystemCapability::Elaborator, PatchAnswer, CausalBoundary and its
derivation, the AnswerRequired gate (require_answer, the answers field of
AdmitPatch and PatchAdmitted, the three Answer* errors), ground_covers and the
jurisdiction ground, WorldScaleIntent and its refs, JurisdictionKey, the
scale deficit and the subject snapshot's qualified flag. require_play_active
keeps the one rule require_answer also held: Play authors nothing in Draft.
The owner now declares in Active unanswered.

Tests whose subject was the lane go. Kept-lane tests that used the elaborator
as setup are rewritten over the owner, Play or a consumer: the import-key and
grammar door tests, the capability-admission test, the ruler re-decision tests,
the confined-author retire/grant/revoke tests, the orphan-claim test, and the
witness-arrival test.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-19 22:16:54 +01:00
soul
f17a8147f8 Aetherlight AL2a.4: delete the genesis brief
Remove the brief string (prompt guidance for model lanes) from CreateWorld,
CreateWorldIntent, WorldState, WorldEffect::WorldCreated, the snapshot and the
journal's state-shape checks, with its replay test. The grammar test's
absent-grammar-key control now reads the title key.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-19 22:02:14 +01:00
soul
58493253b6 Aetherlight AL2a.3: delete persona material
Remove PersonaMaterial, PersonaReadRef, ComponentOp and ResolvedOp
SetPersonaMaterial with its resolution, apply and confinement arms,
WorldState.persona_material, the subject snapshot's material field and
WorldPatch::sets_persona_of_existing_subject, with the tests whose subject
they were. The op set goes from 34 to 33.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-19 22:01:10 +01:00
soul
98282a07af Aetherlight AL2a.2: delete the gestalt cover and the agency graph
Remove cover.rs (Cell, Cover, CoverBudget, derive_cover, AgencyGraph), the
kernel's agency_graph projection and CommandId::for_cell and
for_cell_constituent. Nothing in the kept lanes read them.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-19 21:59:27 +01:00
soul
10f487dc16 Aetherlight AL2a.1: delete the lens lane and the Ghostlight golden fixture
Remove lens.rs, LensWeights in genesis input, WorldState, snapshot and
creation, SetLensWeights, LensWeightsReplaced, LensWeightsNeverDraw and the
draw-rule shape check. The journal's lens replay tests are rewritten over an
owner AdvanceTime history (replays exactly; a forged caller fails replay).
The state shape changed, so Ghostlight's base_world fixture no longer decodes:
the golden replay test and its three fixtures go (AL4 adds Aetherlight's own).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-19 21:57:37 +01:00
soul
6ef5f51a42 Correct aetherlight provenance: drop .gitattributes, list leave-set residue and AL4 duties
The -text pin was not needed (the fixtures absorb CRLF and the .cc is binary),
so the file goes. external_admission.rs is described as the cross-crate forgery
proof it is, and the dead-code vocabulary and AL4 obligations are listed.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-19 21:45:35 +01:00
soul
cd2f45ff99 Pin the aetherlight seal and the precondition gates; make the crate docs true
Delete the two compile_fail doc-tests that named items absent from the fork and
drop the error codes stable rustdoc does not check; each remaining doc-test was
shown to fail when its item is made public. Add tests that kill four mutants
which survived upstream too: Committed ignoring kind, Committed ignoring
counterparty, Holds >= turned into >, and the apply-time can_broadcast guard.
Rewrite the crate docs for the fork as it is and remove the two unresolved links.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-19 21:45:34 +01:00
soul
96f553a00d Record aetherlight provenance
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-19 21:45:34 +01:00
soul
dbdaf64c4d Make the aetherlight take-set compile and its doc-tests honest
lib.rs drops the leave-set modules and re-exports, renames the compile_fail
doc-tests to aetherlight::, retitles the crate doc, and allows dead code until
AL4 adds the ABI. patch.rs drops the tool_schema and codex_connector imports.
lens.rs drops the test that read the dropped PATCH_TOOLS catalog. Imports and
`mut` bindings that only the dropped code used are removed or gated to tests so
`cargo build` is warning-free.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-19 21:45:33 +01:00
soul
5ea472fce2 Import Ghostlight c43eb54 synchronous kernel set as native/aetherlight
Verbatim copy of lib, action, clock, journal, grammar (+tests), lens, cover,
import_key_tests, patch (lines 1-6059 and 7906-9606) and the base_world
fixtures, with the pruned Cargo.toml/Cargo.lock and a gitignore line for the
target dir. native/aetherlight/.gitattributes pins `-text` so the verbatim
bytes survive autocrlf checkouts. lib.rs still names the leave-set modules,
so this commit does not build; the next commit makes it compile.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-19 21:45:32 +01:00
soul
a3c492d54f Pin that a compressed bufferView under an emitter's accessor is refused
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-19 20:47:07 +01:00
soul
a8ccfac6f1 Soul fixes for the emitter gate: refuse-side tests, normal matrix, geometry-hiding extensions only, one quarter-turn authority
The tests now cover the dot == 0 and tilted cases, vertex normals against the winding, a mirrored node and a non-uniform
scale, and allowed and refused extensions. Vertex normals take the inverse transpose of the node's world matrix. Only
KHR_draco_mesh_compression and EXT_meshopt_compression, which store geometry the gate cannot read, are refused; other
extensions pass. The generator refuses a thruster emitter yaw that is not a quarter turn, so the gate's four-direction
Rotation is the one authority for which way an emitter faces. An emitter anchor with no thruster hardpoint stays skipped
in the gate: ShipAuthoringStore.Validate already refuses it before Bind.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-19 20:47:06 +01:00
soul
28666e3550 A directional thruster's emitter is one-sided, and the catalog refuses one that fires along its push
The exhaust is born along each triangle's normal of the emitter mesh, and every Nakovalnya, Wren and starter emitter was
a thin closed box, so it fired both ways along the thruster axis. The generator now writes one side: hull_source keeps
of a hull source's emit mesh only the triangles facing its anchor's yaw (the exhaust), and the starter's thruster boxes
carry a single exhaust face. ShipModCatalog.Bind, which Compose and ship-authoring validate both run, reads the emitter
geometry from the GLB (world transform included) and refuses a directional thruster whose emitter has any face or vertex
normal with a non-negative dot with the push, naming the anchor. The rule is the directional class's alone; a ring
thruster would bring its own. The Nakovalnya and Wren ship.glb are regenerated through Build + Package and the starter;
ship.cc, anchors, node indices and every non-emitter node are unchanged. Blender smokes and the test GLBs now give
thrusters an exhaust-facing emitter and a matching Rotation.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-19 20:47:05 +01:00
soul
8aff1b8789 Settings: drop TorqueFloor and AgentFiringMinDot, authored values no code reads
Both were already unplaced at 8b2d1f544 (Soul finding orphan-asset-fields on
cut-retire-prelude.s1); AetherDb settings now reports 0 unplaced fields.
Operator, 2026-11-19: delete the orphaned settings.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 20:34:03 +01:00
soul
f2ddf70c12 Merge checklist step 4 describes the game after the prelude: Terminus (Demo), Main Galaxy, the scenario's EntranceStation
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-19 20:14:30 +01:00
soul
40a5457c9e Retire the prelude and the tutorial: the cast, the scenario and the save own what they bundled
Galaxy.IsPrelude, SavedGame.IsTutorial (key 11 retired), TutorialGalaxy, TutorialGenerationSettings, its Settings.asset block and the
dead GalaxyStage/Galaxy constructor parameters (PlayerSettings, narrative directory) are gone. The rules they bundled move to their
owners: GalaxyCast.InfluenceScale (demo and test cast .5, main 1) carried by Galaxy and saved as SavedGame key 17, so a pre-cut run is
refused at Continue with a message; Scenario.EntranceStation (MainGalaxy false) decides the forced entrance station instead of the
galaxy; GalaxyStage.Cast(cast) replaces Prelude. The six arenas that read the authored cast generate DemoTerminus.Cast; Development
lists only Main Galaxy. TutorialBackgroundSettings is renamed CastBackgroundSettings in the asset YAML. Tests build their galaxy from
TestCasts.Wide and Background, the retired block's values, so every test galaxy is unchanged.

Suite at 8b2d1f544: 4 red (font credits, chunk info, trojan swarm, two-ai digest, Windows). After: the same 4, digest unchanged.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-19 20:14:26 +01:00
soul
8b2d1f5442 Compose and validate judge a package's bins; the schematic gate reads offered-ness through them
MarketFault (renamed from SchematicFault) refuses a product bin whose line is neither an unbinned shipped product nor an unbinned product of the same package, which the catalog read would crash boot on, and which let an offered hull with no lines pass through a cross-package bin. The carve-out guard is gone: IsOffered now has an overload taking a line resolver, so it judges package-own lines too. Tests pin bin-derived offeredness, any-vs-all products, null SchematicLines and the exclusion of bad bins with the derived catalog still opening. The LFS staging derivation includes tests/fixtures/mods.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-17 19:12:07 +01:00
soul
ce5d012540 Wren becomes a test fixture; compose and validate refuse an offered hull with no schematic
Move the starter-box aetheria.wren package from GameData/Mods to tests/fixtures/mods (LFS rule added) so it no longer ships; the Wren tests compose it through TestCatalog.RepoWithFixtures. ShipModCatalog.SchematicFault, built on LoadoutGenerator.IsOffered, excludes an offered hull with no schematic lines at compose and is reported by ship-authoring validate.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-17 18:53:45 +01:00
3b7b55f384 Merge pull request 'Docs: remaining pre-scenarios New Game passages made true to the code' (#32) from eureka/aetheria-release-docs-leftovers-1 into master 2026-11-13 15:30:32 +00:00
soul
d61948f6dc Living-world target r2: consumer goods share gear's components, the gate is an exchange, crews are zone-local
- L-consumer-demand: every component commodity has a consumer-good sink, enforced by the catalog check
- L-source-sink counts the gate's outside market; L-gate-cap sits beside L-no-stall
- L-zone-crew: human crews come from their own zone; people move by migration
- Station kinds name a stand-in kind until their model lands
- DemandProfile is deleted in cut 1 (demandprofile-goes-in-cut-1); the compound records and the Ammo commodity stay
- Cut sequence: cut 2 no longer waits on cut 1; cuts 6 and 9 no longer wait on questions

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-22 17:25:36 +02:00
soul
90e1e77c3f Living-world target r1: the economy (invariants, 0b table, cut sequence)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-22 16:33:36 +02:00
542 changed files with 69755 additions and 37269 deletions

View file

@ -0,0 +1,5 @@
---
default: patch
---
Ballistic guns and the mine launcher are priced from what they are built from, and the heavier guns need rarer metals: rifled barrels from titanium, lined barrels from tungsten, charged scatter barrels from niobium, rare earths and platinum; flak and point defence guns take a tracking feed.

View file

@ -0,0 +1,5 @@
---
default: patch
---
The map screen and the minimap draw gravity contours and slope rays as smooth anti-aliased lines, and the rays flow slowly downhill into each well.

View file

@ -0,0 +1,5 @@
---
default: patch
---
Belts hold named ores by body class and province, mining stations name them, and gear, hull and consumable prices and the starting purse are a hundredth of what they were.

View file

@ -0,0 +1,5 @@
---
default: patch
---
Stations carry facility gear on a new Facility mount: every recipe names the facility that runs it, every station kind lists the facilities it is fitted with, and every station hull that serves a kind has the Facility row to take them (Zenith and the Arsenal Depot each have one). Nothing runs a recipe yet. Because the hardpoint tints spread across one more type, every hardpoint on the schematic turns a little around the colour wheel.

View file

@ -0,0 +1,5 @@
---
default: patch
---
Releases are built and published by a pipeline.

5
.changeset/shields.md Normal file
View file

@ -0,0 +1,5 @@
---
default: patch
---
Shields are on sale: a light 1x1 and a heavy 2x2 projector fit the Djinni's and the Nakovalnya's shield mounts and every starter ship's, and the Zenith's fourth radiator mount takes radiators again.

View file

@ -0,0 +1,5 @@
---
default: patch
---
The starting purse is 4000 credits: one first upgrade, not the ladder.

View file

@ -0,0 +1,5 @@
---
default: patch
---
The tactical view is a camera of its own: scroll out past a bump to a three-quarters top-down view over the grid, drag to move it, scroll back in through the bump to return to your ship.

View file

@ -0,0 +1,117 @@
# The one actor that turns .changeset/ files and VERSION into a tag and a forge release (docs/release-checklist.md).
# Dispatch by hand on the branch to release. Runs on the Starfire runner in host mode, as the operator's Windows user,
# because the Unity Personal licence lives there. Every host prerequisite is checked by the first step, before any build or
# push (list: docs/release-checklist.md, One-time setup). Nothing is pushed until both players have built: a failed
# preflight or build leaves the forge untouched. After the push, a failed forge release has a recovery in the checklist.
name: release
on:
workflow_dispatch:
concurrency:
group: release
cancel-in-progress: false
jobs:
release:
runs-on: starfire
env:
UNITY_EDITOR: ${{ vars.UNITY_EDITOR }}
CULTLIB_ROOT: ${{ vars.CULTLIB_ROOT }}
CULTMATH_ROOT: ${{ vars.CULTMATH_ROOT }}
BUILD_NAME: release-${{ github.run_id }}
defaults:
run:
shell: '"C:/Program Files/Git/bin/bash.exe" -e {0}'
steps:
# The composite forgejo-release action runs its steps with `shell: bash`, resolved through PATH, where System32's WSL
# bash.exe can win. Git's bin goes first for every later step of this job.
- name: Put Git Bash first on PATH
run: printf '%s\n' 'C:\Program Files\Git\bin' >> "$GITHUB_PATH"
- name: Preflight host prerequisites
env:
RELEASE_TOKEN: ${{ secrets.RELEASE_TOKEN }}
run: |
set -u
missing=""
first_bash="$(cmd.exe //c where bash 2>/dev/null | head -n 1 | tr -d '\r')"
case "${first_bash//$'\x5c'//}" in
"C:/Program Files/Git/"*) ;;
*) missing="$missing"$'\n'" PATH resolves bash to '$first_bash', not Git Bash (the forgejo-release action would run WSL bash)" ;;
esac
note() { missing="$missing"$'\n'" $1"; }
for tool in jq curl knope git tar dotnet; do
command -v "$tool" >/dev/null || note "$tool is not on PATH"
done
test -x /c/Windows/System32/tar.exe || note "C:/Windows/System32/tar.exe is missing"
test -n "$RELEASE_TOKEN" || note "secret RELEASE_TOKEN is not set"
test -f "$UNITY_EDITOR" || note "repo variable UNITY_EDITOR is unset or not a file: '$UNITY_EDITOR'"
test -d "$CULTLIB_ROOT" || note "repo variable CULTLIB_ROOT is unset or not a directory: '$CULTLIB_ROOT'"
test -d "$CULTMATH_ROOT" || note "repo variable CULTMATH_ROOT is unset or not a directory: '$CULTMATH_ROOT'"
if test -n "$missing"; then echo "release preflight failed, nothing was built or pushed:$missing"; exit 1; fi
- uses: actions/checkout@v4
with:
lfs: true
fetch-depth: 0
token: ${{ secrets.RELEASE_TOKEN }}
- name: Prepare release
id: prepare
run: |
set -euo pipefail
knope prepare-release
version="$(tr -d '\r\n' < VERSION)"
if git rev-parse -q --verify "refs/tags/v$version" >/dev/null; then
echo "v$version already exists: no change file asked for a new version"; exit 1
fi
awk -v heading="## $version " 'index($0, heading) == 1 { found = 1; next } /^## / { if (found) exit } found' CHANGELOG.md > "$RUNNER_TEMP/notes.md"
test -s "$RUNNER_TEMP/notes.md" || { echo "CHANGELOG.md has no section for $version"; exit 1; }
git add VERSION CHANGELOG.md .changeset
git -c user.name="Aetheria release" -c user.email="release@gamecult.invalid" commit -m "Release $version"
git -c user.name="Aetheria release" -c user.email="release@gamecult.invalid" tag -a "v$version" -m "Aetheria $version"
echo "version=$version" >> "$GITHUB_OUTPUT"
echo "sha=$(git rev-parse HEAD)" >> "$GITHUB_OUTPUT"
echo "notes=$RUNNER_TEMP/notes.md" >> "$GITHUB_OUTPUT"
- name: Build and zip players
run: |
set -euo pipefail
version="${{ steps.prepare.outputs.version }}"
build="$(cd .. && pwd)/$BUILD_NAME"
mkdir -p "$build/dist"
project="$(pwd -W)"
for target in win64 linux64; do
name="Aetheria-$version-$target"
"$UNITY_EDITOR" -batchmode -quit -projectPath "$project" -executeMethod AetheriaBuild.Build \
-aetheriaVersion "$version" -aetheriaOut "$(cd "$build" && pwd -W)/$name" -aetheriaTarget "$target" \
-logFile "$(cd "$build" && pwd -W)/$target.log"
/c/Windows/System32/tar.exe -a -c -f "$build/dist/$name.zip" -C "$build" "$name"
size="$(stat -c %s "$build/dist/$name.zip")"
test "$size" -le 2147483648 || { echo "$name.zip is $size bytes: over the forge's 2048 MB attachment limit"; exit 1; }
done
- name: Publish tag and release commit
run: |
set -euo pipefail
git push --atomic origin "HEAD:refs/heads/${{ github.ref_name }}" "refs/tags/v${{ steps.prepare.outputs.version }}"
- name: Forge release
uses: actions/forgejo-release@v2.13.4
with:
direction: upload
tag: v${{ steps.prepare.outputs.version }}
sha: ${{ steps.prepare.outputs.sha }}
title: Aetheria ${{ steps.prepare.outputs.version }}
token: ${{ secrets.RELEASE_TOKEN }}
release-dir: ../${{ env.BUILD_NAME }}/dist
release-notes-file: ${{ steps.prepare.outputs.notes }}
- name: Show build logs on failure
if: failure()
run: tail -n 40 ../"$BUILD_NAME"/*.log || true
- name: Remove build directory
if: success()
run: rm -rf ../"$BUILD_NAME"

4
.gitattributes vendored
View file

@ -55,6 +55,10 @@
GameData/*.cc filter=lfs diff=lfs merge=lfs -text
GameData/Mods/**/*.cc filter=lfs diff=lfs merge=lfs -text
GameData/Mods/**/*.glb filter=lfs diff=lfs merge=lfs -text
Assets/Content/**/*.springrig filter=lfs diff=lfs merge=lfs -text
"Asset Sources/**/*.glb" filter=lfs diff=lfs merge=lfs -text
tests/fixtures/mods/**/*.cc filter=lfs diff=lfs merge=lfs -text
tests/fixtures/mods/**/*.glb filter=lfs diff=lfs merge=lfs -text
tools/blender/tests/fixtures/*.glb filter=lfs diff=lfs merge=lfs -text
*.a filter=lfs diff=lfs merge=lfs -text
*AkSoundEngine filter=lfs diff=lfs merge=lfs -text

1
.gitignore vendored
View file

@ -113,3 +113,4 @@ tests/_scratch_*
# Stryker.NET mutation reports (regenerated per run)
StrykerOutput/
native/aetherlight/target/

View file

@ -26,6 +26,8 @@
<ItemGroup>
<!-- Tests record reveals through Entity.RecordReveal, the book's one writer -->
<InternalsVisibleTo Include="Aetheria.Shared.Tests" />
<!-- The economy loop harness fires weapons and sets targets as the player's handlers do: Weapon.Activate and Entity.SetTarget -->
<InternalsVisibleTo Include="AetherDb" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="$(CultMathRoot)\packages\cultmath\src\CultMath\CultMath.csproj" />

View file

@ -0,0 +1,11 @@
[
{"action": "importGltf", "filepath": "leviathan.source.glb"},
{"action": "brokkr_mesh_polish.repair", "object_name": "d10f161a_8820_489f_9754_0aa0ebd51d44"},
{"action": "brokkr_mesh_polish.orient", "object_name": "RootNode", "length": 1.0, "flip_forward": true},
{"action": "brokkr_rig.body", "object_name": "d10f161a_8820_489f_9754_0aa0ebd51d44", "spine_bones": 8, "head": "-y",
"seeds": "jaw=-0.2323,-0.39,0; sac_a=-0.2498,-0.026,0.0519; sac_b=-0.2597,-0.234,0.0364; fin=-0.1845,0.221,0.1037"},
{"action": "brokkr_rig.tendrils", "object_name": "d10f161a_8820_489f_9754_0aa0ebd51d44", "tau": 0.04, "band": 0.04, "dilate": 0.04,
"stiffness": 1.5, "stiffness_tip_ratio": 0.3, "drag": 0.08},
{"action": "brokkr_rig.colliders", "object_name": "d10f161a_8820_489f_9754_0aa0ebd51d44"},
{"action": "exportGltf", "filepath": "leviathan.glb"}
]

BIN
Asset Sources/Fauna/leviathan.source.glb (Stored with Git LFS) Normal file

Binary file not shown.

View file

@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: 8a827381b8571114091cd0fc9c0ebd1f
guid: 2f7f18edd4c10644ca54e15ecd169c9e
folderAsset: yes
DefaultImporter:
externalObjects: {}

View file

@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: 9430390b391327546960fd1b0303f494
guid: 0d522d55aeee549429eeafd12b894a91
folderAsset: yes
DefaultImporter:
externalObjects: {}

BIN
Assets/Content/Fauna/Leviathan/leviathan.springrig (Stored with Git LFS) Normal file

Binary file not shown.

View file

@ -0,0 +1,19 @@
fileFormatVersion: 2
guid: c3c31de84cff91c419b3d8e5f848b0d2
ScriptedImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 2
userData:
assetBundleName:
assetBundleVariant:
script: {fileID: 11500000, guid: 467b0d4c17afeb24e8a27b9be8f80f59, type: 3}
Swim:
AmplitudeDegrees: 9
PeriodSeconds: 3.2
PhasePerBone: 0.1
Axis:
x: 1
y: 0
z: 0
MaxTextureSize: 4096

View file

@ -8,11 +8,10 @@ Material:
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name: Map Gravity Lines
m_Shader: {fileID: 4800000, guid: f5505d3747493e24c91b7cb141fd7b8c, type: 3}
m_Shader: {fileID: 4800000, guid: 16ca943590e909145a2f5b7aaeef334e, type: 3}
m_Parent: {fileID: 0}
m_ModifiedSerializedProperties: 0
m_ValidKeywords:
- SCREEN_SPACE
m_ValidKeywords: []
m_InvalidKeywords: []
m_LightmapFlags: 4
m_EnableInstancingVariants: 0
@ -49,7 +48,7 @@ Material:
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _MainTex:
m_Texture: {fileID: 8400000, guid: ed3d896ce7cb4a84aa4de8515a60f59c, type: 2}
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _MetallicGlossMap:
@ -64,55 +63,34 @@ Material:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _TintTex:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
m_Ints: []
m_Floats:
- _Angle2Fade: 1.1
- _Angle2Width: 0.5
- _AngleFade: 1.15
- _AngleWidth: 0.05
- _BumpScale: 1
- _ClipDistance: 1000
- _ColorMask: 15
- _Cutoff: 0.5
- _DangerSteepness: 1.5
- _DepthRange: 228.79605
- _DetailGamma: 1
- _DetailNormalMapScale: 1
- _DstBlend: 0
- _GlossMapScale: 1
- _Glossiness: 0.5
- _GlossyReflections: 1
- _HeightRange: 50
- _LineFade: 5
- _LineWidth: 0.3
- _Metallic: 0
- _Mode: 0
- _OcclusionStrength: 1
- _Parallax: 0.02
- _Scale: 2.6924083
- _SmoothnessTextureChannel: 0
- _SpecularHighlights: 1
- _SrcBlend: 1
- _StartDepth: 2.310401
- _StartHeight: 0
- _Stencil: 0
- _StencilComp: 8
- _StencilOp: 0
- _StencilReadMask: 255
- _StencilWriteMask: 255
- _TintExponent: 3
- _TintIntensity: 4.54
- _UVSec: 0
- _UseScreenSpace: 1
- _UseUIAlphaClip: 0
- _ZWrite: 1
m_Colors:
- _AngleColor: {r: 0.248, g: 0, b: 0.21104322, a: 1}
- _Color: {r: 0, g: 0.4, b: 0.6, a: 1}
- _DangerColor: {r: 2.9960785, g: 0.26666668, b: 0, a: 1}
- _Color: {r: 1, g: 1, b: 1, a: 1}
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
m_BuildTextureStacks: []
m_AllowLocking: 1

View file

@ -1,111 +0,0 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!21 &2100000
Material:
serializedVersion: 8
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name: Minimap Gravity Lines
m_Shader: {fileID: 4800000, guid: f5505d3747493e24c91b7cb141fd7b8c, type: 3}
m_Parent: {fileID: 0}
m_ModifiedSerializedProperties: 0
m_ValidKeywords: []
m_InvalidKeywords: []
m_LightmapFlags: 4
m_EnableInstancingVariants: 0
m_DoubleSidedGI: 0
m_CustomRenderQueue: -1
stringTagMap: {}
disabledShaderPasses: []
m_LockedProperties:
m_SavedProperties:
serializedVersion: 3
m_TexEnvs:
- _BumpMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _DetailAlbedoMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _DetailMask:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _DetailNormalMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _DetailTex:
m_Texture: {fileID: 8400000, guid: ed3d896ce7cb4a84aa4de8515a60f59c, type: 2}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _EmissionMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _MainTex:
m_Texture: {fileID: 8400000, guid: ed3d896ce7cb4a84aa4de8515a60f59c, type: 2}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _MetallicGlossMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _OcclusionMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _ParallaxMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
m_Ints: []
m_Floats:
- _Angle2Fade: 1.1
- _Angle2Width: 0.5
- _AngleFade: 1.15
- _AngleWidth: 0.05
- _BumpScale: 1
- _ClipDistance: 1000
- _ColorMask: 15
- _Cutoff: 0.5
- _DangerSteepness: 1.5
- _DepthRange: 228.79605
- _DetailNormalMapScale: 1
- _DstBlend: 0
- _GlossMapScale: 1
- _Glossiness: 0.5
- _GlossyReflections: 1
- _HeightRange: 50
- _LineFade: 5
- _LineWidth: 0.15
- _Metallic: 0
- _Mode: 0
- _OcclusionStrength: 1
- _Parallax: 0.02
- _Scale: 10
- _SmoothnessTextureChannel: 0
- _SpecularHighlights: 1
- _SrcBlend: 1
- _StartDepth: 2.310401
- _StartHeight: 0
- _Stencil: 0
- _StencilComp: 8
- _StencilOp: 0
- _StencilReadMask: 255
- _StencilWriteMask: 255
- _UVSec: 0
- _UseScreenSpace: 0
- _UseUIAlphaClip: 0
- _ZWrite: 1
m_Colors:
- _AngleColor: {r: 1.4980392, g: 0, b: 1.2705883, a: 0.5019608}
- _Color: {r: 0, g: 0.4, b: 0.6, a: 1}
- _DangerColor: {r: 2.670157, g: 0.22367807, b: 0, a: 1}
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
m_BuildTextureStacks: []
m_AllowLocking: 1

View file

@ -1,8 +0,0 @@
fileFormatVersion: 2
guid: a92fc6d958edb9f46b6e58134f609cc0
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 2100000
userData:
assetBundleName:
assetBundleVariant:

View file

@ -1,90 +0,0 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!21 &2100000
Material:
serializedVersion: 6
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name: Zone
m_Shader: {fileID: 4800000, guid: 0ec0ecdb30ff1614698ae885ebcd873d, type: 3}
m_ShaderKeywords:
m_LightmapFlags: 4
m_EnableInstancingVariants: 0
m_DoubleSidedGI: 0
m_CustomRenderQueue: -1
stringTagMap: {}
disabledShaderPasses: []
m_SavedProperties:
serializedVersion: 3
m_TexEnvs:
- _BumpMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _DetailAlbedoMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _DetailMask:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _DetailNormalMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _EmissionMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _MainTex:
m_Texture: {fileID: 8400000, guid: ed3d896ce7cb4a84aa4de8515a60f59c, type: 2}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _MetallicGlossMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _OcclusionMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _ParallaxMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
m_Floats:
- _AngleFade: 5
- _AngleWidth: 100
- _BumpScale: 1
- _ClipDistance: 1000
- _Cutoff: 0.5
- _DangerSteepness: 5
- _DepthRange: 268.43512
- _DetailNormalMapScale: 1
- _DstBlend: 0
- _GlossMapScale: 1
- _Glossiness: 0.5
- _GlossyReflections: 1
- _HeightRange: 50
- _LineFade: 5
- _LineWidth: 100
- _Metallic: 0
- _Mode: 0
- _OcclusionStrength: 1
- _Parallax: 0.02
- _SmoothnessTextureChannel: 0
- _SpecularHighlights: 1
- _SrcBlend: 1
- _StartDepth: 423.4922
- _StartHeight: 0
- _UVSec: 0
- _ZWrite: 1
m_Colors:
- _AngleColor: {r: 0.103773594, g: 0, b: 0.088093735, a: 1}
- _Color: {r: 0, g: 0.4, b: 0.6, a: 1}
- _DangerColor: {r: 2.9803922, g: 0.2509804, b: 0, a: 1}
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
m_BuildTextureStacks: []

View file

@ -28,6 +28,7 @@ Transform:
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children:
- {fileID: 8249320701965103923}
- {fileID: 7100000000000000014}
m_Father: {fileID: 0}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
@ -112,3 +113,443 @@ MeshRenderer:
m_SortingLayer: 0
m_SortingOrder: 0
m_AdditionalVertexStreams: {fileID: 0}
--- !u!1 &7100000000000000007
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 7100000000000000014}
m_Layer: 0
m_Name: Anchor Beacon
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 0
--- !u!4 &7100000000000000014
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 7100000000000000007}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: -15, z: 110}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children:
- {fileID: 7100000000000000028}
- {fileID: 7100000000000000056}
- {fileID: 7100000000000000084}
- {fileID: 7100000000000000112}
- {fileID: 7100000000000000140}
m_Father: {fileID: 463084220523011477}
m_RootOrder: 1
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1 &7100000000000000021
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 7100000000000000028}
- component: {fileID: 7100000000000000035}
- component: {fileID: 7100000000000000042}
m_Layer: 0
m_Name: Base
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &7100000000000000028
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 7100000000000000021}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: -4, z: 0}
m_LocalScale: {x: 36, y: 1.5, z: 36}
m_Children: []
m_Father: {fileID: 7100000000000000014}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!33 &7100000000000000035
MeshFilter:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 7100000000000000021}
m_Mesh: {fileID: 10206, guid: 0000000000000000e000000000000000, type: 0}
--- !u!23 &7100000000000000042
MeshRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 7100000000000000021}
m_Enabled: 1
m_CastShadows: 1
m_ReceiveShadows: 1
m_DynamicOccludee: 1
m_MotionVectors: 1
m_LightProbeUsage: 1
m_ReflectionProbeUsage: 1
m_RayTracingMode: 2
m_RayTraceProcedural: 0
m_RenderingLayerMask: 1
m_RendererPriority: 0
m_Materials:
- {fileID: 2100000, guid: 0635cf2d392265944afa2b9ce2aab35f, type: 2}
m_StaticBatchInfo:
firstSubMesh: 0
subMeshCount: 0
m_StaticBatchRoot: {fileID: 0}
m_ProbeAnchor: {fileID: 0}
m_LightProbeVolumeOverride: {fileID: 0}
m_ScaleInLightmap: 1
m_ReceiveGI: 1
m_PreserveUVs: 0
m_IgnoreNormalsForChartDetection: 0
m_ImportantGI: 0
m_StitchLightmapSeams: 1
m_SelectedEditorRenderState: 3
m_MinimumChartSize: 4
m_AutoUVMaxDistance: 0.5
m_AutoUVMaxAngle: 89
m_LightmapParameters: {fileID: 0}
m_SortingLayerID: 0
m_SortingLayer: 0
m_SortingOrder: 0
m_AdditionalVertexStreams: {fileID: 0}
--- !u!1 &7100000000000000049
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 7100000000000000056}
- component: {fileID: 7100000000000000063}
- component: {fileID: 7100000000000000070}
m_Layer: 0
m_Name: Spire
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &7100000000000000056
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 7100000000000000049}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 3, z: 0}
m_LocalScale: {x: 5, y: 5, z: 5}
m_Children: []
m_Father: {fileID: 7100000000000000014}
m_RootOrder: 1
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!33 &7100000000000000063
MeshFilter:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 7100000000000000049}
m_Mesh: {fileID: 10206, guid: 0000000000000000e000000000000000, type: 0}
--- !u!23 &7100000000000000070
MeshRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 7100000000000000049}
m_Enabled: 1
m_CastShadows: 1
m_ReceiveShadows: 1
m_DynamicOccludee: 1
m_MotionVectors: 1
m_LightProbeUsage: 1
m_ReflectionProbeUsage: 1
m_RayTracingMode: 2
m_RayTraceProcedural: 0
m_RenderingLayerMask: 1
m_RendererPriority: 0
m_Materials:
- {fileID: 2100000, guid: 0635cf2d392265944afa2b9ce2aab35f, type: 2}
m_StaticBatchInfo:
firstSubMesh: 0
subMeshCount: 0
m_StaticBatchRoot: {fileID: 0}
m_ProbeAnchor: {fileID: 0}
m_LightProbeVolumeOverride: {fileID: 0}
m_ScaleInLightmap: 1
m_ReceiveGI: 1
m_PreserveUVs: 0
m_IgnoreNormalsForChartDetection: 0
m_ImportantGI: 0
m_StitchLightmapSeams: 1
m_SelectedEditorRenderState: 3
m_MinimumChartSize: 4
m_AutoUVMaxDistance: 0.5
m_AutoUVMaxAngle: 89
m_LightmapParameters: {fileID: 0}
m_SortingLayerID: 0
m_SortingLayer: 0
m_SortingOrder: 0
m_AdditionalVertexStreams: {fileID: 0}
--- !u!1 &7100000000000000077
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 7100000000000000084}
- component: {fileID: 7100000000000000091}
- component: {fileID: 7100000000000000098}
m_Layer: 0
m_Name: Crown
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &7100000000000000084
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 7100000000000000077}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 8, z: 0}
m_LocalScale: {x: 10, y: 10, z: 10}
m_Children: []
m_Father: {fileID: 7100000000000000014}
m_RootOrder: 2
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!33 &7100000000000000091
MeshFilter:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 7100000000000000077}
m_Mesh: {fileID: 10207, guid: 0000000000000000e000000000000000, type: 0}
--- !u!23 &7100000000000000098
MeshRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 7100000000000000077}
m_Enabled: 1
m_CastShadows: 1
m_ReceiveShadows: 1
m_DynamicOccludee: 1
m_MotionVectors: 1
m_LightProbeUsage: 1
m_ReflectionProbeUsage: 1
m_RayTracingMode: 2
m_RayTraceProcedural: 0
m_RenderingLayerMask: 1
m_RendererPriority: 0
m_Materials:
- {fileID: 2100000, guid: 0635cf2d392265944afa2b9ce2aab35f, type: 2}
m_StaticBatchInfo:
firstSubMesh: 0
subMeshCount: 0
m_StaticBatchRoot: {fileID: 0}
m_ProbeAnchor: {fileID: 0}
m_LightProbeVolumeOverride: {fileID: 0}
m_ScaleInLightmap: 1
m_ReceiveGI: 1
m_PreserveUVs: 0
m_IgnoreNormalsForChartDetection: 0
m_ImportantGI: 0
m_StitchLightmapSeams: 1
m_SelectedEditorRenderState: 3
m_MinimumChartSize: 4
m_AutoUVMaxDistance: 0.5
m_AutoUVMaxAngle: 89
m_LightmapParameters: {fileID: 0}
m_SortingLayerID: 0
m_SortingLayer: 0
m_SortingOrder: 0
m_AdditionalVertexStreams: {fileID: 0}
--- !u!1 &7100000000000000105
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 7100000000000000112}
- component: {fileID: 7100000000000000119}
- component: {fileID: 7100000000000000126}
m_Layer: 0
m_Name: Arm X
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &7100000000000000112
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 7100000000000000105}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 4, z: 0}
m_LocalScale: {x: 34, y: 1, z: 3}
m_Children: []
m_Father: {fileID: 7100000000000000014}
m_RootOrder: 3
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!33 &7100000000000000119
MeshFilter:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 7100000000000000105}
m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0}
--- !u!23 &7100000000000000126
MeshRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 7100000000000000105}
m_Enabled: 1
m_CastShadows: 1
m_ReceiveShadows: 1
m_DynamicOccludee: 1
m_MotionVectors: 1
m_LightProbeUsage: 1
m_ReflectionProbeUsage: 1
m_RayTracingMode: 2
m_RayTraceProcedural: 0
m_RenderingLayerMask: 1
m_RendererPriority: 0
m_Materials:
- {fileID: 2100000, guid: 0635cf2d392265944afa2b9ce2aab35f, type: 2}
m_StaticBatchInfo:
firstSubMesh: 0
subMeshCount: 0
m_StaticBatchRoot: {fileID: 0}
m_ProbeAnchor: {fileID: 0}
m_LightProbeVolumeOverride: {fileID: 0}
m_ScaleInLightmap: 1
m_ReceiveGI: 1
m_PreserveUVs: 0
m_IgnoreNormalsForChartDetection: 0
m_ImportantGI: 0
m_StitchLightmapSeams: 1
m_SelectedEditorRenderState: 3
m_MinimumChartSize: 4
m_AutoUVMaxDistance: 0.5
m_AutoUVMaxAngle: 89
m_LightmapParameters: {fileID: 0}
m_SortingLayerID: 0
m_SortingLayer: 0
m_SortingOrder: 0
m_AdditionalVertexStreams: {fileID: 0}
--- !u!1 &7100000000000000133
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 7100000000000000140}
- component: {fileID: 7100000000000000147}
- component: {fileID: 7100000000000000154}
m_Layer: 0
m_Name: Arm Z
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &7100000000000000140
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 7100000000000000133}
m_LocalRotation: {x: 0, y: 0.7071068, z: 0, w: 0.7071068}
m_LocalPosition: {x: 0, y: 4, z: 0}
m_LocalScale: {x: 34, y: 1, z: 3}
m_Children: []
m_Father: {fileID: 7100000000000000014}
m_RootOrder: 4
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!33 &7100000000000000147
MeshFilter:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 7100000000000000133}
m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0}
--- !u!23 &7100000000000000154
MeshRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 7100000000000000133}
m_Enabled: 1
m_CastShadows: 1
m_ReceiveShadows: 1
m_DynamicOccludee: 1
m_MotionVectors: 1
m_LightProbeUsage: 1
m_ReflectionProbeUsage: 1
m_RayTracingMode: 2
m_RayTraceProcedural: 0
m_RenderingLayerMask: 1
m_RendererPriority: 0
m_Materials:
- {fileID: 2100000, guid: 0635cf2d392265944afa2b9ce2aab35f, type: 2}
m_StaticBatchInfo:
firstSubMesh: 0
subMeshCount: 0
m_StaticBatchRoot: {fileID: 0}
m_ProbeAnchor: {fileID: 0}
m_LightProbeVolumeOverride: {fileID: 0}
m_ScaleInLightmap: 1
m_ReceiveGI: 1
m_PreserveUVs: 0
m_IgnoreNormalsForChartDetection: 0
m_ImportantGI: 0
m_StitchLightmapSeams: 1
m_SelectedEditorRenderState: 3
m_MinimumChartSize: 4
m_AutoUVMaxDistance: 0.5
m_AutoUVMaxAngle: 89
m_LightmapParameters: {fileID: 0}
m_SortingLayerID: 0
m_SortingLayer: 0
m_SortingOrder: 0
m_AdditionalVertexStreams: {fileID: 0}

File diff suppressed because it is too large Load diff

View file

@ -36,6 +36,36 @@
"initialStateCheck": false,
"priority": 0
},
{
"name": "Zoom",
"type": "Value",
"id": "47ee174a-e711-4dd1-885c-f1cfbdd3681e",
"expectedControlType": "Axis",
"processors": "",
"interactions": "",
"initialStateCheck": true,
"priority": 0
},
{
"name": "Pan",
"type": "Button",
"id": "591eacf3-8726-4393-8a6d-f09410b745a4",
"expectedControlType": "Button",
"processors": "",
"interactions": "",
"initialStateCheck": false,
"priority": 0
},
{
"name": "Point",
"type": "Value",
"id": "f0ec75bc-84a5-4ea4-8e0f-e72f725e6b9d",
"expectedControlType": "Vector2",
"processors": "",
"interactions": "",
"initialStateCheck": true,
"priority": 0
},
{
"name": "Target Reticle",
"type": "Button",
@ -353,6 +383,50 @@
"isComposite": false,
"isPartOfComposite": false
},
{
"name": "",
"id": "c2b6406d-0c48-47e1-ad45-9f05fc7b7017",
"path": "<Mouse>/scroll/y",
"interactions": "",
"processors": "",
"groups": "Keyboard&Mouse",
"action": "Zoom",
"isComposite": false,
"isPartOfComposite": false
},
{
"name": "",
"id": "e4e6d330-0963-4690-8e53-a1b52c5c6bce",
"path": "<Mouse>/leftButton",
"interactions": "",
"processors": "",
"groups": "Keyboard&Mouse",
"action": "Pan",
"isComposite": false,
"isPartOfComposite": false
},
{
"name": "",
"id": "fe708e7d-0f9e-4b03-b983-d60e769e4292",
"path": "<Mouse>/middleButton",
"interactions": "",
"processors": "",
"groups": "Keyboard&Mouse",
"action": "Pan",
"isComposite": false,
"isPartOfComposite": false
},
{
"name": "",
"id": "8ad98e17-f4bd-4d92-8300-f562b96f3750",
"path": "<Pointer>/position",
"interactions": "",
"processors": "",
"groups": "Keyboard&Mouse",
"action": "Point",
"isComposite": false,
"isPartOfComposite": false
},
{
"name": "",
"id": "5211a58c-428b-4ee6-820d-2f67789806d6",

View file

@ -1,39 +0,0 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!84 &8400000
RenderTexture:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name: MinimapGravity
m_ImageContentsHash:
serializedVersion: 2
Hash: 00000000000000000000000000000000
m_IsAlphaChannelOptional: 0
serializedVersion: 6
m_Width: 128
m_Height: 128
m_AntiAliasing: 1
m_MipCount: -1
m_DepthStencilFormat: 0
m_ColorFormat: 49
m_MipMap: 0
m_GenerateMips: 1
m_SRGB: 0
m_UseDynamicScale: 0
m_UseDynamicScaleExplicit: 0
m_BindMS: 0
m_EnableCompatibleFormat: 1
m_EnableRandomWrite: 0
m_TextureSettings:
serializedVersion: 2
m_FilterMode: 1
m_Aniso: 0
m_MipBias: 0
m_WrapU: 1
m_WrapV: 1
m_WrapW: 1
m_Dimension: 2
m_VolumeDepth: 1
m_ShadowSamplingMode: 2

BIN
Assets/Resources/Settings.asset (Stored with Git LFS)

Binary file not shown.

Binary file not shown.

File diff suppressed because it is too large Load diff

Binary file not shown.

View file

@ -1,94 +0,0 @@
fileFormatVersion: 2
guid: 900623fedce2bb240a11e066dc9708e7
TextureImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 11
mipmaps:
mipMapMode: 0
enableMipMap: 1
sRGBTexture: 1
linearTexture: 0
fadeOut: 0
borderMipMap: 0
mipMapsPreserveCoverage: 0
alphaTestReferenceValue: 0.5
mipMapFadeDistanceStart: 1
mipMapFadeDistanceEnd: 3
bumpmap:
convertToNormalMap: 0
externalNormalMap: 0
heightScale: 0.25
normalMapFilter: 0
isReadable: 0
streamingMipmaps: 0
streamingMipmapsPriority: 0
vTOnly: 0
grayScaleToAlpha: 0
generateCubemap: 6
cubemapConvolution: 0
seamlessCubemap: 0
textureFormat: 1
maxTextureSize: 2048
textureSettings:
serializedVersion: 2
filterMode: -1
aniso: -1
mipBias: -100
wrapU: -1
wrapV: -1
wrapW: -1
nPOTScale: 1
lightmap: 0
compressionQuality: 50
spriteMode: 0
spriteExtrude: 1
spriteMeshType: 1
alignment: 0
spritePivot: {x: 0.5, y: 0.5}
spritePixelsToUnits: 100
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
spriteGenerateFallbackPhysicsShape: 1
alphaUsage: 1
alphaIsTransparency: 0
spriteTessellationDetail: -1
textureType: 0
textureShape: 1
singleChannelComponent: 0
maxTextureSizeSet: 0
compressionQualitySet: 0
textureFormatSet: 0
ignorePngGamma: 0
applyGammaDecoding: 0
platformSettings:
- serializedVersion: 3
buildTarget: DefaultTexturePlatform
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
spriteSheet:
serializedVersion: 2
sprites: []
outline: []
physicsShape: []
bones: []
spriteID:
internalID: 0
vertices: []
indices:
edges: []
weights: []
secondaryTextures: []
spritePackingTag:
pSDRemoveMatte: 0
pSDShowRemoveMatteOption: 0
userData:
assetBundleName:
assetBundleVariant:

Binary file not shown.

File diff suppressed because it is too large Load diff

BIN
Assets/Resources/Sprites/Flat UI/pipes.png (Stored with Git LFS)

Binary file not shown.

View file

@ -1,96 +0,0 @@
fileFormatVersion: 2
guid: 2328bcc7bc4840b438d5d2500c562a17
TextureImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 11
mipmaps:
mipMapMode: 0
enableMipMap: 1
sRGBTexture: 1
linearTexture: 0
fadeOut: 0
borderMipMap: 0
mipMapsPreserveCoverage: 0
alphaTestReferenceValue: 0.5
mipMapFadeDistanceStart: 1
mipMapFadeDistanceEnd: 3
bumpmap:
convertToNormalMap: 0
externalNormalMap: 0
heightScale: 0.25
normalMapFilter: 0
isReadable: 0
streamingMipmaps: 0
streamingMipmapsPriority: 0
vTOnly: 0
grayScaleToAlpha: 0
generateCubemap: 6
cubemapConvolution: 0
seamlessCubemap: 0
textureFormat: 1
maxTextureSize: 2048
textureSettings:
serializedVersion: 2
filterMode: -1
aniso: -1
mipBias: -100
wrapU: -1
wrapV: -1
wrapW: -1
nPOTScale: 1
lightmap: 0
compressionQuality: 50
spriteMode: 0
spriteExtrude: 1
spriteMeshType: 1
alignment: 0
spritePivot: {x: 0.5, y: 0.5}
spritePixelsToUnits: 100
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
spriteGenerateFallbackPhysicsShape: 1
alphaUsage: 1
alphaIsTransparency: 0
spriteTessellationDetail: -1
textureType: 0
textureShape: 1
singleChannelComponent: 0
flipbookRows: 1
flipbookColumns: 1
maxTextureSizeSet: 0
compressionQualitySet: 0
textureFormatSet: 0
ignorePngGamma: 0
applyGammaDecoding: 0
platformSettings:
- serializedVersion: 3
buildTarget: DefaultTexturePlatform
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
spriteSheet:
serializedVersion: 2
sprites: []
outline: []
physicsShape: []
bones: []
spriteID:
internalID: 0
vertices: []
indices:
edges: []
weights: []
secondaryTextures: []
spritePackingTag:
pSDRemoveMatte: 0
pSDShowRemoveMatteOption: 0
userData:
assetBundleName:
assetBundleVariant:

BIN
Assets/Resources/Sprites/Flat UI/pipes.psd (Stored with Git LFS)

Binary file not shown.

View file

@ -1,510 +0,0 @@
fileFormatVersion: 2
guid: a53955671598f6b4a8b23b245fc38605
TextureImporter:
internalIDToNameTable:
- first:
213: 3624413539235301459
second: pipes_0
- first:
213: 7631404538767374335
second: pipes_1
- first:
213: -4752754735582442470
second: pipes_2
- first:
213: -2120189714087908947
second: pipes_3
- first:
213: -8507936627233245176
second: pipes_4
- first:
213: -2508138221163281763
second: pipes_5
- first:
213: -9264146362022084
second: pipes_6
- first:
213: -4505807909773429587
second: pipes_7
- first:
213: 1571344320749704877
second: pipes_8
- first:
213: -6624953910322571867
second: pipes_9
- first:
213: -7524521870618806978
second: pipes_10
- first:
213: -551590714208027187
second: pipes_11
- first:
213: -2054774350801148439
second: pipes_12
- first:
213: 2949637312520497048
second: pipes_13
- first:
213: 6572578204425805008
second: pipes_14
- first:
213: -2189814545099003515
second: pipes_15
externalObjects: {}
serializedVersion: 11
mipmaps:
mipMapMode: 0
enableMipMap: 0
sRGBTexture: 1
linearTexture: 0
fadeOut: 0
borderMipMap: 0
mipMapsPreserveCoverage: 0
alphaTestReferenceValue: 0.5
mipMapFadeDistanceStart: 1
mipMapFadeDistanceEnd: 3
bumpmap:
convertToNormalMap: 0
externalNormalMap: 0
heightScale: 0.25
normalMapFilter: 0
isReadable: 0
streamingMipmaps: 0
streamingMipmapsPriority: 0
vTOnly: 0
ignoreMasterTextureLimit: 0
grayScaleToAlpha: 0
generateCubemap: 6
cubemapConvolution: 0
seamlessCubemap: 0
textureFormat: 1
maxTextureSize: 2048
textureSettings:
serializedVersion: 2
filterMode: 1
aniso: 1
mipBias: 0
wrapU: 1
wrapV: 1
wrapW: 0
nPOTScale: 0
lightmap: 0
compressionQuality: 50
spriteMode: 2
spriteExtrude: 1
spriteMeshType: 1
alignment: 0
spritePivot: {x: 0.5, y: 0.5}
spritePixelsToUnits: 100
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
spriteGenerateFallbackPhysicsShape: 1
alphaUsage: 1
alphaIsTransparency: 1
spriteTessellationDetail: -1
textureType: 8
textureShape: 1
singleChannelComponent: 0
flipbookRows: 1
flipbookColumns: 1
maxTextureSizeSet: 0
compressionQualitySet: 0
textureFormatSet: 0
ignorePngGamma: 0
applyGammaDecoding: 0
platformSettings:
- serializedVersion: 3
buildTarget: DefaultTexturePlatform
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: Standalone
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
spriteSheet:
serializedVersion: 2
sprites:
- serializedVersion: 2
name: pipes_0
rect:
serializedVersion: 2
x: 1
y: 103
width: 32
height: 32
alignment: 0
pivot: {x: 0.5, y: 0.5}
border: {x: 0, y: 0, z: 0, w: 0}
outline: []
physicsShape: []
tessellationDetail: 0
bones: []
spriteID: 3588c3539e08c4230800000000000000
internalID: 3624413539235301459
vertices: []
indices:
edges: []
weights: []
- serializedVersion: 2
name: pipes_1
rect:
serializedVersion: 2
x: 35
y: 103
width: 32
height: 32
alignment: 0
pivot: {x: 0.5, y: 0.5}
border: {x: 0, y: 0, z: 0, w: 0}
outline: []
physicsShape: []
tessellationDetail: 0
bones: []
spriteID: ff7788ebef138e960800000000000000
internalID: 7631404538767374335
vertices: []
indices:
edges: []
weights: []
- serializedVersion: 2
name: pipes_2
rect:
serializedVersion: 2
x: 69
y: 103
width: 32
height: 32
alignment: 0
pivot: {x: 0.5, y: 0.5}
border: {x: 0, y: 0, z: 0, w: 0}
outline: []
physicsShape: []
tessellationDetail: 0
bones: []
spriteID: a1c8d09cfb2da0eb0800000000000000
internalID: -4752754735582442470
vertices: []
indices:
edges: []
weights: []
- serializedVersion: 2
name: pipes_3
rect:
serializedVersion: 2
x: 103
y: 103
width: 32
height: 32
alignment: 0
pivot: {x: 0.5, y: 0.5}
border: {x: 0, y: 0, z: 0, w: 0}
outline: []
physicsShape: []
tessellationDetail: 0
bones: []
spriteID: da96a5330b29392e0800000000000000
internalID: -2120189714087908947
vertices: []
indices:
edges: []
weights: []
- serializedVersion: 2
name: pipes_4
rect:
serializedVersion: 2
x: 1
y: 69
width: 32
height: 32
alignment: 0
pivot: {x: 0.5, y: 0.5}
border: {x: 0, y: 0, z: 0, w: 0}
outline: []
physicsShape: []
tessellationDetail: 0
bones: []
spriteID: 8083a3ae6bcbde980800000000000000
internalID: -8507936627233245176
vertices: []
indices:
edges: []
weights: []
- serializedVersion: 2
name: pipes_5
rect:
serializedVersion: 2
x: 35
y: 69
width: 32
height: 32
alignment: 0
pivot: {x: 0.5, y: 0.5}
border: {x: 0, y: 0, z: 0, w: 0}
outline: []
physicsShape: []
tessellationDetail: 0
bones: []
spriteID: d928bf7939d413dd0800000000000000
internalID: -2508138221163281763
vertices: []
indices:
edges: []
weights: []
- serializedVersion: 2
name: pipes_6
rect:
serializedVersion: 2
x: 69
y: 69
width: 32
height: 32
alignment: 0
pivot: {x: 0.5, y: 0.5}
border: {x: 0, y: 0, z: 0, w: 0}
outline: []
physicsShape: []
tessellationDetail: 0
bones: []
spriteID: c37c1f6de461fdff0800000000000000
internalID: -9264146362022084
vertices: []
indices:
edges: []
weights: []
- serializedVersion: 2
name: pipes_7
rect:
serializedVersion: 2
x: 103
y: 69
width: 32
height: 32
alignment: 0
pivot: {x: 0.5, y: 0.5}
border: {x: 0, y: 0, z: 0, w: 0}
outline: []
physicsShape: []
tessellationDetail: 0
bones: []
spriteID: da43fcf24972871c0800000000000000
internalID: -4505807909773429587
vertices: []
indices:
edges: []
weights: []
- serializedVersion: 2
name: pipes_8
rect:
serializedVersion: 2
x: 1
y: 35
width: 32
height: 32
alignment: 0
pivot: {x: 0.5, y: 0.5}
border: {x: 0, y: 0, z: 0, w: 0}
outline: []
physicsShape: []
tessellationDetail: 0
bones: []
spriteID: da61d1a95598ec510800000000000000
internalID: 1571344320749704877
vertices: []
indices:
edges: []
weights: []
- serializedVersion: 2
name: pipes_9
rect:
serializedVersion: 2
x: 35
y: 35
width: 32
height: 32
alignment: 0
pivot: {x: 0.5, y: 0.5}
border: {x: 0, y: 0, z: 0, w: 0}
outline: []
physicsShape: []
tessellationDetail: 0
bones: []
spriteID: 5a553e1e48f6f04a0800000000000000
internalID: -6624953910322571867
vertices: []
indices:
edges: []
weights: []
- serializedVersion: 2
name: pipes_10
rect:
serializedVersion: 2
x: 69
y: 35
width: 32
height: 32
alignment: 0
pivot: {x: 0.5, y: 0.5}
border: {x: 0, y: 0, z: 0, w: 0}
outline: []
physicsShape: []
tessellationDetail: 0
bones: []
spriteID: e35bb1da937839790800000000000000
internalID: -7524521870618806978
vertices: []
indices:
edges: []
weights: []
- serializedVersion: 2
name: pipes_11
rect:
serializedVersion: 2
x: 103
y: 35
width: 32
height: 32
alignment: 0
pivot: {x: 0.5, y: 0.5}
border: {x: 0, y: 0, z: 0, w: 0}
outline: []
physicsShape: []
tessellationDetail: 0
bones: []
spriteID: dcdf93afa2b5858f0800000000000000
internalID: -551590714208027187
vertices: []
indices:
edges: []
weights: []
- serializedVersion: 2
name: pipes_12
rect:
serializedVersion: 2
x: 1
y: 1
width: 32
height: 32
alignment: 0
pivot: {x: 0.5, y: 0.5}
border: {x: 0, y: 0, z: 0, w: 0}
outline: []
physicsShape: []
tessellationDetail: 0
bones: []
spriteID: 9e5e9e65d99fb73e0800000000000000
internalID: -2054774350801148439
vertices: []
indices:
edges: []
weights: []
- serializedVersion: 2
name: pipes_13
rect:
serializedVersion: 2
x: 35
y: 1
width: 32
height: 32
alignment: 0
pivot: {x: 0.5, y: 0.5}
border: {x: 0, y: 0, z: 0, w: 0}
outline: []
physicsShape: []
tessellationDetail: 0
bones: []
spriteID: 897a50502873fe820800000000000000
internalID: 2949637312520497048
vertices: []
indices:
edges: []
weights: []
- serializedVersion: 2
name: pipes_14
rect:
serializedVersion: 2
x: 69
y: 1
width: 32
height: 32
alignment: 0
pivot: {x: 0.5, y: 0.5}
border: {x: 0, y: 0, z: 0, w: 0}
outline: []
physicsShape: []
tessellationDetail: 0
bones: []
spriteID: 0dc564dcd0d763b50800000000000000
internalID: 6572578204425805008
vertices: []
indices:
edges: []
weights: []
- serializedVersion: 2
name: pipes_15
rect:
serializedVersion: 2
x: 103
y: 1
width: 32
height: 32
alignment: 0
pivot: {x: 0.5, y: 0.5}
border: {x: 0, y: 0, z: 0, w: 0}
outline: []
physicsShape: []
tessellationDetail: 0
bones: []
spriteID: 589e36bf5473c91e0800000000000000
internalID: -2189814545099003515
vertices: []
indices:
edges: []
weights: []
outline: []
physicsShape: []
bones: []
spriteID: 5e97eb03825dee720800000000000000
internalID: 0
vertices: []
indices:
edges: []
weights: []
secondaryTextures: []
nameFileIdTable:
pipes_13: 2949637312520497048
pipes_8: 1571344320749704877
pipes_5: -2508138221163281763
pipes_15: -2189814545099003515
pipes_0: 3624413539235301459
pipes_7: -4505807909773429587
pipes_4: -8507936627233245176
pipes_14: 6572578204425805008
pipes_10: -7524521870618806978
pipes_1: 7631404538767374335
pipes_9: -6624953910322571867
pipes_11: -551590714208027187
pipes_3: -2120189714087908947
pipes_6: -9264146362022084
pipes_2: -4752754735582442470
pipes_12: -2054774350801148439
spritePackingTag:
pSDRemoveMatte: 0
pSDShowRemoveMatteOption: 1
userData:
assetBundleName:
assetBundleVariant:

File diff suppressed because it is too large Load diff

View file

@ -122,6 +122,36 @@ public partial class @AetheriaInput: IInputActionCollection2, IDisposable
""initialStateCheck"": false,
""priority"": 0
},
{
""name"": ""Zoom"",
""type"": ""Value"",
""id"": ""47ee174a-e711-4dd1-885c-f1cfbdd3681e"",
""expectedControlType"": ""Axis"",
""processors"": """",
""interactions"": """",
""initialStateCheck"": true,
""priority"": 0
},
{
""name"": ""Pan"",
""type"": ""Button"",
""id"": ""591eacf3-8726-4393-8a6d-f09410b745a4"",
""expectedControlType"": ""Button"",
""processors"": """",
""interactions"": """",
""initialStateCheck"": false,
""priority"": 0
},
{
""name"": ""Point"",
""type"": ""Value"",
""id"": ""f0ec75bc-84a5-4ea4-8e0f-e72f725e6b9d"",
""expectedControlType"": ""Vector2"",
""processors"": """",
""interactions"": """",
""initialStateCheck"": true,
""priority"": 0
},
{
""name"": ""Target Reticle"",
""type"": ""Button"",
@ -439,6 +469,50 @@ public partial class @AetheriaInput: IInputActionCollection2, IDisposable
""isComposite"": false,
""isPartOfComposite"": false
},
{
""name"": """",
""id"": ""c2b6406d-0c48-47e1-ad45-9f05fc7b7017"",
""path"": ""<Mouse>/scroll/y"",
""interactions"": """",
""processors"": """",
""groups"": ""Keyboard&Mouse"",
""action"": ""Zoom"",
""isComposite"": false,
""isPartOfComposite"": false
},
{
""name"": """",
""id"": ""e4e6d330-0963-4690-8e53-a1b52c5c6bce"",
""path"": ""<Mouse>/leftButton"",
""interactions"": """",
""processors"": """",
""groups"": ""Keyboard&Mouse"",
""action"": ""Pan"",
""isComposite"": false,
""isPartOfComposite"": false
},
{
""name"": """",
""id"": ""fe708e7d-0f9e-4b03-b983-d60e769e4292"",
""path"": ""<Mouse>/middleButton"",
""interactions"": """",
""processors"": """",
""groups"": ""Keyboard&Mouse"",
""action"": ""Pan"",
""isComposite"": false,
""isPartOfComposite"": false
},
{
""name"": """",
""id"": ""8ad98e17-f4bd-4d92-8300-f562b96f3750"",
""path"": ""<Pointer>/position"",
""interactions"": """",
""processors"": """",
""groups"": ""Keyboard&Mouse"",
""action"": ""Point"",
""isComposite"": false,
""isPartOfComposite"": false
},
{
""name"": """",
""id"": ""5211a58c-428b-4ee6-820d-2f67789806d6"",
@ -1303,6 +1377,9 @@ public partial class @AetheriaInput: IInputActionCollection2, IDisposable
m_Player_Move = m_Player.FindAction("Move", throwIfNotFound: true);
m_Player_Look = m_Player.FindAction("Look", throwIfNotFound: true);
m_Player_MinimapZoom = m_Player.FindAction("Minimap Zoom", throwIfNotFound: true);
m_Player_Zoom = m_Player.FindAction("Zoom", throwIfNotFound: true);
m_Player_Pan = m_Player.FindAction("Pan", throwIfNotFound: true);
m_Player_Point = m_Player.FindAction("Point", throwIfNotFound: true);
m_Player_TargetReticle = m_Player.FindAction("Target Reticle", throwIfNotFound: true);
m_Player_TargetPrevious = m_Player.FindAction("Target Previous", throwIfNotFound: true);
m_Player_TargetNext = m_Player.FindAction("Target Next", throwIfNotFound: true);
@ -1422,6 +1499,9 @@ public partial class @AetheriaInput: IInputActionCollection2, IDisposable
private readonly InputAction m_Player_Move;
private readonly InputAction m_Player_Look;
private readonly InputAction m_Player_MinimapZoom;
private readonly InputAction m_Player_Zoom;
private readonly InputAction m_Player_Pan;
private readonly InputAction m_Player_Point;
private readonly InputAction m_Player_TargetReticle;
private readonly InputAction m_Player_TargetPrevious;
private readonly InputAction m_Player_TargetNext;
@ -1461,6 +1541,18 @@ public partial class @AetheriaInput: IInputActionCollection2, IDisposable
/// </summary>
public InputAction @MinimapZoom => m_Wrapper.m_Player_MinimapZoom;
/// <summary>
/// Provides access to the underlying input action "Player/Zoom".
/// </summary>
public InputAction @Zoom => m_Wrapper.m_Player_Zoom;
/// <summary>
/// Provides access to the underlying input action "Player/Pan".
/// </summary>
public InputAction @Pan => m_Wrapper.m_Player_Pan;
/// <summary>
/// Provides access to the underlying input action "Player/Point".
/// </summary>
public InputAction @Point => m_Wrapper.m_Player_Point;
/// <summary>
/// Provides access to the underlying input action "Player/TargetReticle".
/// </summary>
public InputAction @TargetReticle => m_Wrapper.m_Player_TargetReticle;
@ -1555,6 +1647,15 @@ public partial class @AetheriaInput: IInputActionCollection2, IDisposable
@MinimapZoom.started += instance.OnMinimapZoom;
@MinimapZoom.performed += instance.OnMinimapZoom;
@MinimapZoom.canceled += instance.OnMinimapZoom;
@Zoom.started += instance.OnZoom;
@Zoom.performed += instance.OnZoom;
@Zoom.canceled += instance.OnZoom;
@Pan.started += instance.OnPan;
@Pan.performed += instance.OnPan;
@Pan.canceled += instance.OnPan;
@Point.started += instance.OnPoint;
@Point.performed += instance.OnPoint;
@Point.canceled += instance.OnPoint;
@TargetReticle.started += instance.OnTargetReticle;
@TargetReticle.performed += instance.OnTargetReticle;
@TargetReticle.canceled += instance.OnTargetReticle;
@ -1620,6 +1721,15 @@ public partial class @AetheriaInput: IInputActionCollection2, IDisposable
@MinimapZoom.started -= instance.OnMinimapZoom;
@MinimapZoom.performed -= instance.OnMinimapZoom;
@MinimapZoom.canceled -= instance.OnMinimapZoom;
@Zoom.started -= instance.OnZoom;
@Zoom.performed -= instance.OnZoom;
@Zoom.canceled -= instance.OnZoom;
@Pan.started -= instance.OnPan;
@Pan.performed -= instance.OnPan;
@Pan.canceled -= instance.OnPan;
@Point.started -= instance.OnPoint;
@Point.performed -= instance.OnPoint;
@Point.canceled -= instance.OnPoint;
@TargetReticle.started -= instance.OnTargetReticle;
@TargetReticle.performed -= instance.OnTargetReticle;
@TargetReticle.canceled -= instance.OnTargetReticle;
@ -2101,6 +2211,27 @@ public partial class @AetheriaInput: IInputActionCollection2, IDisposable
/// <seealso cref="UnityEngine.InputSystem.InputAction.canceled" />
void OnMinimapZoom(InputAction.CallbackContext context);
/// <summary>
/// Method invoked when associated input action "Zoom" is either <see cref="UnityEngine.InputSystem.InputAction.started" />, <see cref="UnityEngine.InputSystem.InputAction.performed" /> or <see cref="UnityEngine.InputSystem.InputAction.canceled" />.
/// </summary>
/// <seealso cref="UnityEngine.InputSystem.InputAction.started" />
/// <seealso cref="UnityEngine.InputSystem.InputAction.performed" />
/// <seealso cref="UnityEngine.InputSystem.InputAction.canceled" />
void OnZoom(InputAction.CallbackContext context);
/// <summary>
/// Method invoked when associated input action "Pan" is either <see cref="UnityEngine.InputSystem.InputAction.started" />, <see cref="UnityEngine.InputSystem.InputAction.performed" /> or <see cref="UnityEngine.InputSystem.InputAction.canceled" />.
/// </summary>
/// <seealso cref="UnityEngine.InputSystem.InputAction.started" />
/// <seealso cref="UnityEngine.InputSystem.InputAction.performed" />
/// <seealso cref="UnityEngine.InputSystem.InputAction.canceled" />
void OnPan(InputAction.CallbackContext context);
/// <summary>
/// Method invoked when associated input action "Point" is either <see cref="UnityEngine.InputSystem.InputAction.started" />, <see cref="UnityEngine.InputSystem.InputAction.performed" /> or <see cref="UnityEngine.InputSystem.InputAction.canceled" />.
/// </summary>
/// <seealso cref="UnityEngine.InputSystem.InputAction.started" />
/// <seealso cref="UnityEngine.InputSystem.InputAction.performed" />
/// <seealso cref="UnityEngine.InputSystem.InputAction.canceled" />
void OnPoint(InputAction.CallbackContext context);
/// <summary>
/// Method invoked when associated input action "Target Reticle" is either <see cref="UnityEngine.InputSystem.InputAction.started" />, <see cref="UnityEngine.InputSystem.InputAction.performed" /> or <see cref="UnityEngine.InputSystem.InputAction.canceled" />.
/// </summary>
/// <seealso cref="UnityEngine.InputSystem.InputAction.started" />

View file

@ -1,966 +0,0 @@
using System;
using UnityEngine;
public static class XKCDColors
{
internal class ColorTranslator
{
public static Color FromHtml(string hexString)
{
return new Color(Convert.ToInt32(hexString.Substring(1, 2), 16) / 255f,
Convert.ToInt32(hexString.Substring(3, 2), 16) / 255f,
Convert.ToInt32(hexString.Substring(5, 2), 16) / 255f);
}
}
public static Color CloudyBlue { get { return ColorTranslator.FromHtml("#acc2d9"); } }
public static Color DarkPastelGreen { get { return ColorTranslator.FromHtml("#56ae57"); } }
public static Color Dust { get { return ColorTranslator.FromHtml("#b2996e"); } }
public static Color ElectricLime { get { return ColorTranslator.FromHtml("#a8ff04"); } }
public static Color FreshGreen { get { return ColorTranslator.FromHtml("#69d84f"); } }
public static Color LightEggplant { get { return ColorTranslator.FromHtml("#894585"); } }
public static Color NastyGreen { get { return ColorTranslator.FromHtml("#70b23f"); } }
public static Color ReallyLightBlue { get { return ColorTranslator.FromHtml("#d4ffff"); } }
public static Color Tea { get { return ColorTranslator.FromHtml("#65ab7c"); } }
public static Color WarmPurple { get { return ColorTranslator.FromHtml("#952e8f"); } }
public static Color YellowishTan { get { return ColorTranslator.FromHtml("#fcfc81"); } }
public static Color Cement { get { return ColorTranslator.FromHtml("#a5a391"); } }
public static Color DarkGrassGreen { get { return ColorTranslator.FromHtml("#388004"); } }
public static Color DustyTeal { get { return ColorTranslator.FromHtml("#4c9085"); } }
public static Color GreyTeal { get { return ColorTranslator.FromHtml("#5e9b8a"); } }
public static Color MacaroniAndCheese { get { return ColorTranslator.FromHtml("#efb435"); } }
public static Color PinkishTan { get { return ColorTranslator.FromHtml("#d99b82"); } }
public static Color Spruce { get { return ColorTranslator.FromHtml("#0a5f38"); } }
public static Color StrongBlue { get { return ColorTranslator.FromHtml("#0c06f7"); } }
public static Color ToxicGreen { get { return ColorTranslator.FromHtml("#61de2a"); } }
public static Color WindowsBlue { get { return ColorTranslator.FromHtml("#3778bf"); } }
public static Color BlueBlue { get { return ColorTranslator.FromHtml("#2242c7"); } }
public static Color BlueWithAHintOfPurple { get { return ColorTranslator.FromHtml("#533cc6"); } }
public static Color Booger { get { return ColorTranslator.FromHtml("#9bb53c"); } }
public static Color BrightSeaGreen { get { return ColorTranslator.FromHtml("#05ffa6"); } }
public static Color DarkGreenBlue { get { return ColorTranslator.FromHtml("#1f6357"); } }
public static Color DeepTurquoise { get { return ColorTranslator.FromHtml("#017374"); } }
public static Color GreenTeal { get { return ColorTranslator.FromHtml("#0cb577"); } }
public static Color StrongPink { get { return ColorTranslator.FromHtml("#ff0789"); } }
public static Color Bland { get { return ColorTranslator.FromHtml("#afa88b"); } }
public static Color DeepAqua { get { return ColorTranslator.FromHtml("#08787f"); } }
public static Color LavenderPink { get { return ColorTranslator.FromHtml("#dd85d7"); } }
public static Color LightMossGreen { get { return ColorTranslator.FromHtml("#a6c875"); } }
public static Color LightSeafoamGreen { get { return ColorTranslator.FromHtml("#a7ffb5"); } }
public static Color OliveYellow { get { return ColorTranslator.FromHtml("#c2b709"); } }
public static Color PigPink { get { return ColorTranslator.FromHtml("#e78ea5"); } }
public static Color DeepLilac { get { return ColorTranslator.FromHtml("#966ebd"); } }
public static Color Desert { get { return ColorTranslator.FromHtml("#ccad60"); } }
public static Color DustyLavender { get { return ColorTranslator.FromHtml("#ac86a8"); } }
public static Color PurpleyGrey { get { return ColorTranslator.FromHtml("#947e94"); } }
public static Color Purply { get { return ColorTranslator.FromHtml("#983fb2"); } }
public static Color CandyPink { get { return ColorTranslator.FromHtml("#ff63e9"); } }
public static Color LightPastelGreen { get { return ColorTranslator.FromHtml("#b2fba5"); } }
public static Color BoringGreen { get { return ColorTranslator.FromHtml("#63b365"); } }
public static Color KiwiGreen { get { return ColorTranslator.FromHtml("#8ee53f"); } }
public static Color LightGreyGreen { get { return ColorTranslator.FromHtml("#b7e1a1"); } }
public static Color OrangePink { get { return ColorTranslator.FromHtml("#ff6f52"); } }
public static Color TeaGreen { get { return ColorTranslator.FromHtml("#bdf8a3"); } }
public static Color VeryLightBrown { get { return ColorTranslator.FromHtml("#d3b683"); } }
public static Color EggShell { get { return ColorTranslator.FromHtml("#fffcc4"); } }
public static Color EggplantPurple { get { return ColorTranslator.FromHtml("#430541"); } }
public static Color PowderPink { get { return ColorTranslator.FromHtml("#ffb2d0"); } }
public static Color ReddishGrey { get { return ColorTranslator.FromHtml("#997570"); } }
public static Color BabyShitBrown { get { return ColorTranslator.FromHtml("#ad900d"); } }
public static Color Liliac { get { return ColorTranslator.FromHtml("#c48efd"); } }
public static Color StormyBlue { get { return ColorTranslator.FromHtml("#507b9c"); } }
public static Color UglyBrown { get { return ColorTranslator.FromHtml("#7d7103"); } }
public static Color Custard { get { return ColorTranslator.FromHtml("#fffd78"); } }
public static Color DarkishPink { get { return ColorTranslator.FromHtml("#da467d"); } }
public static Color DeepBrown { get { return ColorTranslator.FromHtml("#410200"); } }
public static Color GreenishBeige { get { return ColorTranslator.FromHtml("#c9d179"); } }
public static Color Manilla { get { return ColorTranslator.FromHtml("#fffa86"); } }
public static Color OffBlue { get { return ColorTranslator.FromHtml("#5684ae"); } }
public static Color BattleshipGrey { get { return ColorTranslator.FromHtml("#6b7c85"); } }
public static Color BrownyGreen { get { return ColorTranslator.FromHtml("#6f6c0a"); } }
public static Color Bruise { get { return ColorTranslator.FromHtml("#7e4071"); } }
public static Color KelleyGreen { get { return ColorTranslator.FromHtml("#009337"); } }
public static Color SicklyYellow { get { return ColorTranslator.FromHtml("#d0e429"); } }
public static Color SunnyYellow { get { return ColorTranslator.FromHtml("#fff917"); } }
public static Color Azul { get { return ColorTranslator.FromHtml("#1d5dec"); } }
public static Color Darkgreen { get { return ColorTranslator.FromHtml("#054907"); } }
public static Color Green_Yellow { get { return ColorTranslator.FromHtml("#b5ce08"); } }
public static Color Lichen { get { return ColorTranslator.FromHtml("#8fb67b"); } }
public static Color LightLightGreen { get { return ColorTranslator.FromHtml("#c8ffb0"); } }
public static Color PaleGold { get { return ColorTranslator.FromHtml("#fdde6c"); } }
public static Color SunYellow { get { return ColorTranslator.FromHtml("#ffdf22"); } }
public static Color TanGreen { get { return ColorTranslator.FromHtml("#a9be70"); } }
public static Color Burple { get { return ColorTranslator.FromHtml("#6832e3"); } }
public static Color Butterscotch { get { return ColorTranslator.FromHtml("#fdb147"); } }
public static Color Toupe { get { return ColorTranslator.FromHtml("#c7ac7d"); } }
public static Color DarkCream { get { return ColorTranslator.FromHtml("#fff39a"); } }
public static Color IndianRed { get { return ColorTranslator.FromHtml("#850e04"); } }
public static Color LightLavendar { get { return ColorTranslator.FromHtml("#efc0fe"); } }
public static Color PoisonGreen { get { return ColorTranslator.FromHtml("#40fd14"); } }
public static Color BabyPukeGreen { get { return ColorTranslator.FromHtml("#b6c406"); } }
public static Color BrightYellowGreen { get { return ColorTranslator.FromHtml("#9dff00"); } }
public static Color CharcoalGrey { get { return ColorTranslator.FromHtml("#3c4142"); } }
public static Color Squash { get { return ColorTranslator.FromHtml("#f2ab15"); } }
public static Color Cinnamon { get { return ColorTranslator.FromHtml("#ac4f06"); } }
public static Color LightPeaGreen { get { return ColorTranslator.FromHtml("#c4fe82"); } }
public static Color RadioactiveGreen { get { return ColorTranslator.FromHtml("#2cfa1f"); } }
public static Color RawSienna { get { return ColorTranslator.FromHtml("#9a6200"); } }
public static Color BabyPurple { get { return ColorTranslator.FromHtml("#ca9bf7"); } }
public static Color Cocoa { get { return ColorTranslator.FromHtml("#875f42"); } }
public static Color LightRoyalBlue { get { return ColorTranslator.FromHtml("#3a2efe"); } }
public static Color Orangeish { get { return ColorTranslator.FromHtml("#fd8d49"); } }
public static Color RustBrown { get { return ColorTranslator.FromHtml("#8b3103"); } }
public static Color SandBrown { get { return ColorTranslator.FromHtml("#cba560"); } }
public static Color Swamp { get { return ColorTranslator.FromHtml("#698339"); } }
public static Color TealishGreen { get { return ColorTranslator.FromHtml("#0cdc73"); } }
public static Color BurntSiena { get { return ColorTranslator.FromHtml("#b75203"); } }
public static Color Camo { get { return ColorTranslator.FromHtml("#7f8f4e"); } }
public static Color DuskBlue { get { return ColorTranslator.FromHtml("#26538d"); } }
public static Color Fern { get { return ColorTranslator.FromHtml("#63a950"); } }
public static Color OldRose { get { return ColorTranslator.FromHtml("#c87f89"); } }
public static Color PaleLightGreen { get { return ColorTranslator.FromHtml("#b1fc99"); } }
public static Color PeachyPink { get { return ColorTranslator.FromHtml("#ff9a8a"); } }
public static Color RosyPink { get { return ColorTranslator.FromHtml("#f6688e"); } }
public static Color LightBluishGreen { get { return ColorTranslator.FromHtml("#76fda8"); } }
public static Color LightBrightGreen { get { return ColorTranslator.FromHtml("#53fe5c"); } }
public static Color LightNeonGreen { get { return ColorTranslator.FromHtml("#4efd54"); } }
public static Color LightSeafoam { get { return ColorTranslator.FromHtml("#a0febf"); } }
public static Color TiffanyBlue { get { return ColorTranslator.FromHtml("#7bf2da"); } }
public static Color WashedOutGreen { get { return ColorTranslator.FromHtml("#bcf5a6"); } }
public static Color BrownyOrange { get { return ColorTranslator.FromHtml("#ca6b02"); } }
public static Color NiceBlue { get { return ColorTranslator.FromHtml("#107ab0"); } }
public static Color Sapphire { get { return ColorTranslator.FromHtml("#2138ab"); } }
public static Color GreyishTeal { get { return ColorTranslator.FromHtml("#719f91"); } }
public static Color OrangeyYellow { get { return ColorTranslator.FromHtml("#fdb915"); } }
public static Color Parchment { get { return ColorTranslator.FromHtml("#fefcaf"); } }
public static Color Straw { get { return ColorTranslator.FromHtml("#fcf679"); } }
public static Color VeryDarkBrown { get { return ColorTranslator.FromHtml("#1d0200"); } }
public static Color Terracota { get { return ColorTranslator.FromHtml("#cb6843"); } }
public static Color UglyBlue { get { return ColorTranslator.FromHtml("#31668a"); } }
public static Color ClearBlue { get { return ColorTranslator.FromHtml("#247afd"); } }
public static Color Creme { get { return ColorTranslator.FromHtml("#ffffb6"); } }
public static Color FoamGreen { get { return ColorTranslator.FromHtml("#90fda9"); } }
public static Color Grey_Green { get { return ColorTranslator.FromHtml("#86a17d"); } }
public static Color LightGold { get { return ColorTranslator.FromHtml("#fddc5c"); } }
public static Color SeafoamBlue { get { return ColorTranslator.FromHtml("#78d1b6"); } }
public static Color Topaz { get { return ColorTranslator.FromHtml("#13bbaf"); } }
public static Color VioletPink { get { return ColorTranslator.FromHtml("#fb5ffc"); } }
public static Color Wintergreen { get { return ColorTranslator.FromHtml("#20f986"); } }
public static Color YellowTan { get { return ColorTranslator.FromHtml("#ffe36e"); } }
public static Color DarkFuchsia { get { return ColorTranslator.FromHtml("#9d0759"); } }
public static Color IndigoBlue { get { return ColorTranslator.FromHtml("#3a18b1"); } }
public static Color LightYellowishGreen { get { return ColorTranslator.FromHtml("#c2ff89"); } }
public static Color PaleMagenta { get { return ColorTranslator.FromHtml("#d767ad"); } }
public static Color RichPurple { get { return ColorTranslator.FromHtml("#720058"); } }
public static Color SunflowerYellow { get { return ColorTranslator.FromHtml("#ffda03"); } }
public static Color Green_Blue { get { return ColorTranslator.FromHtml("#01c08d"); } }
public static Color Leather { get { return ColorTranslator.FromHtml("#ac7434"); } }
public static Color RacingGreen { get { return ColorTranslator.FromHtml("#014600"); } }
public static Color VividPurple { get { return ColorTranslator.FromHtml("#9900fa"); } }
public static Color DarkRoyalBlue { get { return ColorTranslator.FromHtml("#02066f"); } }
public static Color Hazel { get { return ColorTranslator.FromHtml("#8e7618"); } }
public static Color MutedPink { get { return ColorTranslator.FromHtml("#d1768f"); } }
public static Color BoogerGreen { get { return ColorTranslator.FromHtml("#96b403"); } }
public static Color Canary { get { return ColorTranslator.FromHtml("#fdff63"); } }
public static Color CoolGrey { get { return ColorTranslator.FromHtml("#95a3a6"); } }
public static Color DarkTaupe { get { return ColorTranslator.FromHtml("#7f684e"); } }
public static Color DarkishPurple { get { return ColorTranslator.FromHtml("#751973"); } }
public static Color TrueGreen { get { return ColorTranslator.FromHtml("#089404"); } }
public static Color CoralPink { get { return ColorTranslator.FromHtml("#ff6163"); } }
public static Color DarkSage { get { return ColorTranslator.FromHtml("#598556"); } }
public static Color DarkSlateBlue { get { return ColorTranslator.FromHtml("#214761"); } }
public static Color FlatBlue { get { return ColorTranslator.FromHtml("#3c73a8"); } }
public static Color Mushroom { get { return ColorTranslator.FromHtml("#ba9e88"); } }
public static Color RichBlue { get { return ColorTranslator.FromHtml("#021bf9"); } }
public static Color DirtyPurple { get { return ColorTranslator.FromHtml("#734a65"); } }
public static Color Greenblue { get { return ColorTranslator.FromHtml("#23c48b"); } }
public static Color IckyGreen { get { return ColorTranslator.FromHtml("#8fae22"); } }
public static Color LightKhaki { get { return ColorTranslator.FromHtml("#e6f2a2"); } }
public static Color WarmBlue { get { return ColorTranslator.FromHtml("#4b57db"); } }
public static Color DarkHotPink { get { return ColorTranslator.FromHtml("#d90166"); } }
public static Color DeepSeaBlue { get { return ColorTranslator.FromHtml("#015482"); } }
public static Color Carmine { get { return ColorTranslator.FromHtml("#9d0216"); } }
public static Color DarkYellowGreen { get { return ColorTranslator.FromHtml("#728f02"); } }
public static Color PalePeach { get { return ColorTranslator.FromHtml("#ffe5ad"); } }
public static Color PlumPurple { get { return ColorTranslator.FromHtml("#4e0550"); } }
public static Color GoldenRod { get { return ColorTranslator.FromHtml("#f9bc08"); } }
public static Color NeonRed { get { return ColorTranslator.FromHtml("#ff073a"); } }
public static Color OldPink { get { return ColorTranslator.FromHtml("#c77986"); } }
public static Color VeryPaleBlue { get { return ColorTranslator.FromHtml("#d6fffe"); } }
public static Color BloodOrange { get { return ColorTranslator.FromHtml("#fe4b03"); } }
public static Color Grapefruit { get { return ColorTranslator.FromHtml("#fd5956"); } }
public static Color SandYellow { get { return ColorTranslator.FromHtml("#fce166"); } }
public static Color ClayBrown { get { return ColorTranslator.FromHtml("#b2713d"); } }
public static Color DarkBlueGrey { get { return ColorTranslator.FromHtml("#1f3b4d"); } }
public static Color FlatGreen { get { return ColorTranslator.FromHtml("#699d4c"); } }
public static Color LightGreenBlue { get { return ColorTranslator.FromHtml("#56fca2"); } }
public static Color WarmPink { get { return ColorTranslator.FromHtml("#fb5581"); } }
public static Color DodgerBlue { get { return ColorTranslator.FromHtml("#3e82fc"); } }
public static Color GrossGreen { get { return ColorTranslator.FromHtml("#a0bf16"); } }
public static Color Ice { get { return ColorTranslator.FromHtml("#d6fffa"); } }
public static Color MetallicBlue { get { return ColorTranslator.FromHtml("#4f738e"); } }
public static Color PaleSalmon { get { return ColorTranslator.FromHtml("#ffb19a"); } }
public static Color SapGreen { get { return ColorTranslator.FromHtml("#5c8b15"); } }
public static Color Algae { get { return ColorTranslator.FromHtml("#54ac68"); } }
public static Color BlueyGrey { get { return ColorTranslator.FromHtml("#89a0b0"); } }
public static Color GreenyGrey { get { return ColorTranslator.FromHtml("#7ea07a"); } }
public static Color HighlighterGreen { get { return ColorTranslator.FromHtml("#1bfc06"); } }
public static Color LightLightBlue { get { return ColorTranslator.FromHtml("#cafffb"); } }
public static Color LightMint { get { return ColorTranslator.FromHtml("#b6ffbb"); } }
public static Color RawUmber { get { return ColorTranslator.FromHtml("#a75e09"); } }
public static Color VividBlue { get { return ColorTranslator.FromHtml("#152eff"); } }
public static Color DeepLavender { get { return ColorTranslator.FromHtml("#8d5eb7"); } }
public static Color DullTeal { get { return ColorTranslator.FromHtml("#5f9e8f"); } }
public static Color LightGreenishBlue { get { return ColorTranslator.FromHtml("#63f7b4"); } }
public static Color MudGreen { get { return ColorTranslator.FromHtml("#606602"); } }
public static Color Pinky { get { return ColorTranslator.FromHtml("#fc86aa"); } }
public static Color RedWine { get { return ColorTranslator.FromHtml("#8c0034"); } }
public static Color ShitGreen { get { return ColorTranslator.FromHtml("#758000"); } }
public static Color TanBrown { get { return ColorTranslator.FromHtml("#ab7e4c"); } }
public static Color Darkblue { get { return ColorTranslator.FromHtml("#030764"); } }
public static Color Rosa { get { return ColorTranslator.FromHtml("#fe86a4"); } }
public static Color Lipstick { get { return ColorTranslator.FromHtml("#d5174e"); } }
public static Color PaleMauve { get { return ColorTranslator.FromHtml("#fed0fc"); } }
public static Color Claret { get { return ColorTranslator.FromHtml("#680018"); } }
public static Color Dandelion { get { return ColorTranslator.FromHtml("#fedf08"); } }
public static Color Orangered { get { return ColorTranslator.FromHtml("#fe420f"); } }
public static Color PoopGreen { get { return ColorTranslator.FromHtml("#6f7c00"); } }
public static Color Ruby { get { return ColorTranslator.FromHtml("#ca0147"); } }
public static Color Dark { get { return ColorTranslator.FromHtml("#1b2431"); } }
public static Color GreenishTurquoise { get { return ColorTranslator.FromHtml("#00fbb0"); } }
public static Color PastelRed { get { return ColorTranslator.FromHtml("#db5856"); } }
public static Color PissYellow { get { return ColorTranslator.FromHtml("#ddd618"); } }
public static Color BrightCyan { get { return ColorTranslator.FromHtml("#41fdfe"); } }
public static Color DarkCoral { get { return ColorTranslator.FromHtml("#cf524e"); } }
public static Color AlgaeGreen { get { return ColorTranslator.FromHtml("#21c36f"); } }
public static Color DarkishRed { get { return ColorTranslator.FromHtml("#a90308"); } }
public static Color ReddyBrown { get { return ColorTranslator.FromHtml("#6e1005"); } }
public static Color BlushPink { get { return ColorTranslator.FromHtml("#fe828c"); } }
public static Color CamouflageGreen { get { return ColorTranslator.FromHtml("#4b6113"); } }
public static Color LawnGreen { get { return ColorTranslator.FromHtml("#4da409"); } }
public static Color Putty { get { return ColorTranslator.FromHtml("#beae8a"); } }
public static Color VibrantBlue { get { return ColorTranslator.FromHtml("#0339f8"); } }
public static Color DarkSand { get { return ColorTranslator.FromHtml("#a88f59"); } }
public static Color Purple_Blue { get { return ColorTranslator.FromHtml("#5d21d0"); } }
public static Color Saffron { get { return ColorTranslator.FromHtml("#feb209"); } }
public static Color Twilight { get { return ColorTranslator.FromHtml("#4e518b"); } }
public static Color WarmBrown { get { return ColorTranslator.FromHtml("#964e02"); } }
public static Color Bluegrey { get { return ColorTranslator.FromHtml("#85a3b2"); } }
public static Color BubbleGumPink { get { return ColorTranslator.FromHtml("#ff69af"); } }
public static Color DuckEggBlue { get { return ColorTranslator.FromHtml("#c3fbf4"); } }
public static Color GreenishCyan { get { return ColorTranslator.FromHtml("#2afeb7"); } }
public static Color Petrol { get { return ColorTranslator.FromHtml("#005f6a"); } }
public static Color Royal { get { return ColorTranslator.FromHtml("#0c1793"); } }
public static Color Butter { get { return ColorTranslator.FromHtml("#ffff81"); } }
public static Color DustyOrange { get { return ColorTranslator.FromHtml("#f0833a"); } }
public static Color OffYellow { get { return ColorTranslator.FromHtml("#f1f33f"); } }
public static Color PaleOliveGreen { get { return ColorTranslator.FromHtml("#b1d27b"); } }
public static Color Orangish { get { return ColorTranslator.FromHtml("#fc824a"); } }
public static Color Leaf { get { return ColorTranslator.FromHtml("#71aa34"); } }
public static Color LightBlueGrey { get { return ColorTranslator.FromHtml("#b7c9e2"); } }
public static Color DriedBlood { get { return ColorTranslator.FromHtml("#4b0101"); } }
public static Color LightishPurple { get { return ColorTranslator.FromHtml("#a552e6"); } }
public static Color RustyRed { get { return ColorTranslator.FromHtml("#af2f0d"); } }
public static Color LavenderBlue { get { return ColorTranslator.FromHtml("#8b88f8"); } }
public static Color LightGrassGreen { get { return ColorTranslator.FromHtml("#9af764"); } }
public static Color LightMintGreen { get { return ColorTranslator.FromHtml("#a6fbb2"); } }
public static Color Sunflower { get { return ColorTranslator.FromHtml("#ffc512"); } }
public static Color Velvet { get { return ColorTranslator.FromHtml("#750851"); } }
public static Color BrickOrange { get { return ColorTranslator.FromHtml("#c14a09"); } }
public static Color LightishRed { get { return ColorTranslator.FromHtml("#fe2f4a"); } }
public static Color PureBlue { get { return ColorTranslator.FromHtml("#0203e2"); } }
public static Color TwilightBlue { get { return ColorTranslator.FromHtml("#0a437a"); } }
public static Color VioletRed { get { return ColorTranslator.FromHtml("#a50055"); } }
public static Color YellowyBrown { get { return ColorTranslator.FromHtml("#ae8b0c"); } }
public static Color Carnation { get { return ColorTranslator.FromHtml("#fd798f"); } }
public static Color MuddyYellow { get { return ColorTranslator.FromHtml("#bfac05"); } }
public static Color DarkSeafoamGreen { get { return ColorTranslator.FromHtml("#3eaf76"); } }
public static Color DeepRose { get { return ColorTranslator.FromHtml("#c74767"); } }
public static Color DustyRed { get { return ColorTranslator.FromHtml("#b9484e"); } }
public static Color Grey_Blue { get { return ColorTranslator.FromHtml("#647d8e"); } }
public static Color LemonLime { get { return ColorTranslator.FromHtml("#bffe28"); } }
public static Color Purple_Pink { get { return ColorTranslator.FromHtml("#d725de"); } }
public static Color BrownYellow { get { return ColorTranslator.FromHtml("#b29705"); } }
public static Color PurpleBrown { get { return ColorTranslator.FromHtml("#673a3f"); } }
public static Color Wisteria { get { return ColorTranslator.FromHtml("#a87dc2"); } }
public static Color BananaYellow { get { return ColorTranslator.FromHtml("#fafe4b"); } }
public static Color LipstickRed { get { return ColorTranslator.FromHtml("#c0022f"); } }
public static Color WaterBlue { get { return ColorTranslator.FromHtml("#0e87cc"); } }
public static Color BrownGrey { get { return ColorTranslator.FromHtml("#8d8468"); } }
public static Color VibrantPurple { get { return ColorTranslator.FromHtml("#ad03de"); } }
public static Color BabyGreen { get { return ColorTranslator.FromHtml("#8cff9e"); } }
public static Color BarfGreen { get { return ColorTranslator.FromHtml("#94ac02"); } }
public static Color EggshellBlue { get { return ColorTranslator.FromHtml("#c4fff7"); } }
public static Color SandyYellow { get { return ColorTranslator.FromHtml("#fdee73"); } }
public static Color CoolGreen { get { return ColorTranslator.FromHtml("#33b864"); } }
public static Color Pale { get { return ColorTranslator.FromHtml("#fff9d0"); } }
public static Color Blue_Grey { get { return ColorTranslator.FromHtml("#758da3"); } }
public static Color HotMagenta { get { return ColorTranslator.FromHtml("#f504c9"); } }
public static Color Greyblue { get { return ColorTranslator.FromHtml("#77a1b5"); } }
public static Color Purpley { get { return ColorTranslator.FromHtml("#8756e4"); } }
public static Color BabyShitGreen { get { return ColorTranslator.FromHtml("#889717"); } }
public static Color BrownishPink { get { return ColorTranslator.FromHtml("#c27e79"); } }
public static Color DarkAquamarine { get { return ColorTranslator.FromHtml("#017371"); } }
public static Color Diarrhea { get { return ColorTranslator.FromHtml("#9f8303"); } }
public static Color LightMustard { get { return ColorTranslator.FromHtml("#f7d560"); } }
public static Color PaleSkyBlue { get { return ColorTranslator.FromHtml("#bdf6fe"); } }
public static Color TurtleGreen { get { return ColorTranslator.FromHtml("#75b84f"); } }
public static Color BrightOlive { get { return ColorTranslator.FromHtml("#9cbb04"); } }
public static Color DarkGreyBlue { get { return ColorTranslator.FromHtml("#29465b"); } }
public static Color GreenyBrown { get { return ColorTranslator.FromHtml("#696006"); } }
public static Color LemonGreen { get { return ColorTranslator.FromHtml("#adf802"); } }
public static Color LightPeriwinkle { get { return ColorTranslator.FromHtml("#c1c6fc"); } }
public static Color SeaweedGreen { get { return ColorTranslator.FromHtml("#35ad6b"); } }
public static Color SunshineYellow { get { return ColorTranslator.FromHtml("#fffd37"); } }
public static Color UglyPurple { get { return ColorTranslator.FromHtml("#a442a0"); } }
public static Color MediumPink { get { return ColorTranslator.FromHtml("#f36196"); } }
public static Color PukeBrown { get { return ColorTranslator.FromHtml("#947706"); } }
public static Color VeryLightPink { get { return ColorTranslator.FromHtml("#fff4f2"); } }
public static Color Viridian { get { return ColorTranslator.FromHtml("#1e9167"); } }
public static Color Bile { get { return ColorTranslator.FromHtml("#b5c306"); } }
public static Color FadedYellow { get { return ColorTranslator.FromHtml("#feff7f"); } }
public static Color VeryPaleGreen { get { return ColorTranslator.FromHtml("#cffdbc"); } }
public static Color VibrantGreen { get { return ColorTranslator.FromHtml("#0add08"); } }
public static Color BrightLime { get { return ColorTranslator.FromHtml("#87fd05"); } }
public static Color Spearmint { get { return ColorTranslator.FromHtml("#1ef876"); } }
public static Color LightAquamarine { get { return ColorTranslator.FromHtml("#7bfdc7"); } }
public static Color LightSage { get { return ColorTranslator.FromHtml("#bcecac"); } }
public static Color Yellowgreen { get { return ColorTranslator.FromHtml("#bbf90f"); } }
public static Color BabyPoo { get { return ColorTranslator.FromHtml("#ab9004"); } }
public static Color DarkSeafoam { get { return ColorTranslator.FromHtml("#1fb57a"); } }
public static Color DeepTeal { get { return ColorTranslator.FromHtml("#00555a"); } }
public static Color Heather { get { return ColorTranslator.FromHtml("#a484ac"); } }
public static Color RustOrange { get { return ColorTranslator.FromHtml("#c45508"); } }
public static Color DirtyBlue { get { return ColorTranslator.FromHtml("#3f829d"); } }
public static Color FernGreen { get { return ColorTranslator.FromHtml("#548d44"); } }
public static Color BrightLilac { get { return ColorTranslator.FromHtml("#c95efb"); } }
public static Color WeirdGreen { get { return ColorTranslator.FromHtml("#3ae57f"); } }
public static Color PeacockBlue { get { return ColorTranslator.FromHtml("#016795"); } }
public static Color AvocadoGreen { get { return ColorTranslator.FromHtml("#87a922"); } }
public static Color FadedOrange { get { return ColorTranslator.FromHtml("#f0944d"); } }
public static Color GrapePurple { get { return ColorTranslator.FromHtml("#5d1451"); } }
public static Color HotGreen { get { return ColorTranslator.FromHtml("#25ff29"); } }
public static Color LimeYellow { get { return ColorTranslator.FromHtml("#d0fe1d"); } }
public static Color Mango { get { return ColorTranslator.FromHtml("#ffa62b"); } }
public static Color Shamrock { get { return ColorTranslator.FromHtml("#01b44c"); } }
public static Color Bubblegum { get { return ColorTranslator.FromHtml("#ff6cb5"); } }
public static Color PurplishBrown { get { return ColorTranslator.FromHtml("#6b4247"); } }
public static Color VomitYellow { get { return ColorTranslator.FromHtml("#c7c10c"); } }
public static Color PaleCyan { get { return ColorTranslator.FromHtml("#b7fffa"); } }
public static Color KeyLime { get { return ColorTranslator.FromHtml("#aeff6e"); } }
public static Color TomatoRed { get { return ColorTranslator.FromHtml("#ec2d01"); } }
public static Color Lightgreen { get { return ColorTranslator.FromHtml("#76ff7b"); } }
public static Color Merlot { get { return ColorTranslator.FromHtml("#730039"); } }
public static Color NightBlue { get { return ColorTranslator.FromHtml("#040348"); } }
public static Color PurpleishPink { get { return ColorTranslator.FromHtml("#df4ec8"); } }
public static Color Apple { get { return ColorTranslator.FromHtml("#6ecb3c"); } }
public static Color BabyPoopGreen { get { return ColorTranslator.FromHtml("#8f9805"); } }
public static Color GreenApple { get { return ColorTranslator.FromHtml("#5edc1f"); } }
public static Color Heliotrope { get { return ColorTranslator.FromHtml("#d94ff5"); } }
public static Color Yellow_Green { get { return ColorTranslator.FromHtml("#c8fd3d"); } }
public static Color AlmostBlack { get { return ColorTranslator.FromHtml("#070d0d"); } }
public static Color CoolBlue { get { return ColorTranslator.FromHtml("#4984b8"); } }
public static Color LeafyGreen { get { return ColorTranslator.FromHtml("#51b73b"); } }
public static Color MustardBrown { get { return ColorTranslator.FromHtml("#ac7e04"); } }
public static Color Dusk { get { return ColorTranslator.FromHtml("#4e5481"); } }
public static Color DullBrown { get { return ColorTranslator.FromHtml("#876e4b"); } }
public static Color FrogGreen { get { return ColorTranslator.FromHtml("#58bc08"); } }
public static Color VividGreen { get { return ColorTranslator.FromHtml("#2fef10"); } }
public static Color BrightLightGreen { get { return ColorTranslator.FromHtml("#2dfe54"); } }
public static Color FluroGreen { get { return ColorTranslator.FromHtml("#0aff02"); } }
public static Color Kiwi { get { return ColorTranslator.FromHtml("#9cef43"); } }
public static Color Seaweed { get { return ColorTranslator.FromHtml("#18d17b"); } }
public static Color NavyGreen { get { return ColorTranslator.FromHtml("#35530a"); } }
public static Color UltramarineBlue { get { return ColorTranslator.FromHtml("#1805db"); } }
public static Color Iris { get { return ColorTranslator.FromHtml("#6258c4"); } }
public static Color PastelOrange { get { return ColorTranslator.FromHtml("#ff964f"); } }
public static Color YellowishOrange { get { return ColorTranslator.FromHtml("#ffab0f"); } }
public static Color Perrywinkle { get { return ColorTranslator.FromHtml("#8f8ce7"); } }
public static Color Tealish { get { return ColorTranslator.FromHtml("#24bca8"); } }
public static Color DarkPlum { get { return ColorTranslator.FromHtml("#3f012c"); } }
public static Color Pear { get { return ColorTranslator.FromHtml("#cbf85f"); } }
public static Color PinkishOrange { get { return ColorTranslator.FromHtml("#ff724c"); } }
public static Color MidnightPurple { get { return ColorTranslator.FromHtml("#280137"); } }
public static Color LightUrple { get { return ColorTranslator.FromHtml("#b36ff6"); } }
public static Color DarkMint { get { return ColorTranslator.FromHtml("#48c072"); } }
public static Color GreenishTan { get { return ColorTranslator.FromHtml("#bccb7a"); } }
public static Color LightBurgundy { get { return ColorTranslator.FromHtml("#a8415b"); } }
public static Color TurquoiseBlue { get { return ColorTranslator.FromHtml("#06b1c4"); } }
public static Color UglyPink { get { return ColorTranslator.FromHtml("#cd7584"); } }
public static Color Sandy { get { return ColorTranslator.FromHtml("#f1da7a"); } }
public static Color ElectricPink { get { return ColorTranslator.FromHtml("#ff0490"); } }
public static Color MutedPurple { get { return ColorTranslator.FromHtml("#805b87"); } }
public static Color MidGreen { get { return ColorTranslator.FromHtml("#50a747"); } }
public static Color Greyish { get { return ColorTranslator.FromHtml("#a8a495"); } }
public static Color NeonYellow { get { return ColorTranslator.FromHtml("#cfff04"); } }
public static Color Banana { get { return ColorTranslator.FromHtml("#ffff7e"); } }
public static Color CarnationPink { get { return ColorTranslator.FromHtml("#ff7fa7"); } }
public static Color Tomato { get { return ColorTranslator.FromHtml("#ef4026"); } }
public static Color Sea { get { return ColorTranslator.FromHtml("#3c9992"); } }
public static Color MuddyBrown { get { return ColorTranslator.FromHtml("#886806"); } }
public static Color TurquoiseGreen { get { return ColorTranslator.FromHtml("#04f489"); } }
public static Color Buff { get { return ColorTranslator.FromHtml("#fef69e"); } }
public static Color Fawn { get { return ColorTranslator.FromHtml("#cfaf7b"); } }
public static Color MutedBlue { get { return ColorTranslator.FromHtml("#3b719f"); } }
public static Color PaleRose { get { return ColorTranslator.FromHtml("#fdc1c5"); } }
public static Color DarkMintGreen { get { return ColorTranslator.FromHtml("#20c073"); } }
public static Color Amethyst { get { return ColorTranslator.FromHtml("#9b5fc0"); } }
public static Color Blue_Green { get { return ColorTranslator.FromHtml("#0f9b8e"); } }
public static Color Chestnut { get { return ColorTranslator.FromHtml("#742802"); } }
public static Color SickGreen { get { return ColorTranslator.FromHtml("#9db92c"); } }
public static Color Pea { get { return ColorTranslator.FromHtml("#a4bf20"); } }
public static Color RustyOrange { get { return ColorTranslator.FromHtml("#cd5909"); } }
public static Color Stone { get { return ColorTranslator.FromHtml("#ada587"); } }
public static Color RoseRed { get { return ColorTranslator.FromHtml("#be013c"); } }
public static Color PaleAqua { get { return ColorTranslator.FromHtml("#b8ffeb"); } }
public static Color DeepOrange { get { return ColorTranslator.FromHtml("#dc4d01"); } }
public static Color Earth { get { return ColorTranslator.FromHtml("#a2653e"); } }
public static Color MossyGreen { get { return ColorTranslator.FromHtml("#638b27"); } }
public static Color GrassyGreen { get { return ColorTranslator.FromHtml("#419c03"); } }
public static Color PaleLimeGreen { get { return ColorTranslator.FromHtml("#b1ff65"); } }
public static Color LightGreyBlue { get { return ColorTranslator.FromHtml("#9dbcd4"); } }
public static Color PaleGrey { get { return ColorTranslator.FromHtml("#fdfdfe"); } }
public static Color Asparagus { get { return ColorTranslator.FromHtml("#77ab56"); } }
public static Color Blueberry { get { return ColorTranslator.FromHtml("#464196"); } }
public static Color PurpleRed { get { return ColorTranslator.FromHtml("#990147"); } }
public static Color PaleLime { get { return ColorTranslator.FromHtml("#befd73"); } }
public static Color GreenishTeal { get { return ColorTranslator.FromHtml("#32bf84"); } }
public static Color Caramel { get { return ColorTranslator.FromHtml("#af6f09"); } }
public static Color DeepMagenta { get { return ColorTranslator.FromHtml("#a0025c"); } }
public static Color LightPeach { get { return ColorTranslator.FromHtml("#ffd8b1"); } }
public static Color MilkChocolate { get { return ColorTranslator.FromHtml("#7f4e1e"); } }
public static Color Ocher { get { return ColorTranslator.FromHtml("#bf9b0c"); } }
public static Color OffGreen { get { return ColorTranslator.FromHtml("#6ba353"); } }
public static Color PurplyPink { get { return ColorTranslator.FromHtml("#f075e6"); } }
public static Color Lightblue { get { return ColorTranslator.FromHtml("#7bc8f6"); } }
public static Color DuskyBlue { get { return ColorTranslator.FromHtml("#475f94"); } }
public static Color Golden { get { return ColorTranslator.FromHtml("#f5bf03"); } }
public static Color LightBeige { get { return ColorTranslator.FromHtml("#fffeb6"); } }
public static Color ButterYellow { get { return ColorTranslator.FromHtml("#fffd74"); } }
public static Color DuskyPurple { get { return ColorTranslator.FromHtml("#895b7b"); } }
public static Color FrenchBlue { get { return ColorTranslator.FromHtml("#436bad"); } }
public static Color UglyYellow { get { return ColorTranslator.FromHtml("#d0c101"); } }
public static Color GreenyYellow { get { return ColorTranslator.FromHtml("#c6f808"); } }
public static Color OrangishRed { get { return ColorTranslator.FromHtml("#f43605"); } }
public static Color ShamrockGreen { get { return ColorTranslator.FromHtml("#02c14d"); } }
public static Color OrangishBrown { get { return ColorTranslator.FromHtml("#b25f03"); } }
public static Color TreeGreen { get { return ColorTranslator.FromHtml("#2a7e19"); } }
public static Color DeepViolet { get { return ColorTranslator.FromHtml("#490648"); } }
public static Color Gunmetal { get { return ColorTranslator.FromHtml("#536267"); } }
public static Color Blue_Purple { get { return ColorTranslator.FromHtml("#5a06ef"); } }
public static Color Cherry { get { return ColorTranslator.FromHtml("#cf0234"); } }
public static Color SandyBrown { get { return ColorTranslator.FromHtml("#c4a661"); } }
public static Color WarmGrey { get { return ColorTranslator.FromHtml("#978a84"); } }
public static Color DarkIndigo { get { return ColorTranslator.FromHtml("#1f0954"); } }
public static Color Midnight { get { return ColorTranslator.FromHtml("#03012d"); } }
public static Color BlueyGreen { get { return ColorTranslator.FromHtml("#2bb179"); } }
public static Color GreyPink { get { return ColorTranslator.FromHtml("#c3909b"); } }
public static Color SoftPurple { get { return ColorTranslator.FromHtml("#a66fb5"); } }
public static Color Blood { get { return ColorTranslator.FromHtml("#770001"); } }
public static Color BrownRed { get { return ColorTranslator.FromHtml("#922b05"); } }
public static Color MediumGrey { get { return ColorTranslator.FromHtml("#7d7f7c"); } }
public static Color Berry { get { return ColorTranslator.FromHtml("#990f4b"); } }
public static Color Poo { get { return ColorTranslator.FromHtml("#8f7303"); } }
public static Color PurpleyPink { get { return ColorTranslator.FromHtml("#c83cb9"); } }
public static Color LightSalmon { get { return ColorTranslator.FromHtml("#fea993"); } }
public static Color Snot { get { return ColorTranslator.FromHtml("#acbb0d"); } }
public static Color EasterPurple { get { return ColorTranslator.FromHtml("#c071fe"); } }
public static Color LightYellowGreen { get { return ColorTranslator.FromHtml("#ccfd7f"); } }
public static Color DarkNavyBlue { get { return ColorTranslator.FromHtml("#00022e"); } }
public static Color Drab { get { return ColorTranslator.FromHtml("#828344"); } }
public static Color LightRose { get { return ColorTranslator.FromHtml("#ffc5cb"); } }
public static Color Rouge { get { return ColorTranslator.FromHtml("#ab1239"); } }
public static Color PurplishRed { get { return ColorTranslator.FromHtml("#b0054b"); } }
public static Color SlimeGreen { get { return ColorTranslator.FromHtml("#99cc04"); } }
public static Color BabyPoop { get { return ColorTranslator.FromHtml("#937c00"); } }
public static Color IrishGreen { get { return ColorTranslator.FromHtml("#019529"); } }
public static Color Pink_Purple { get { return ColorTranslator.FromHtml("#ef1de7"); } }
public static Color DarkNavy { get { return ColorTranslator.FromHtml("#000435"); } }
public static Color GreenyBlue { get { return ColorTranslator.FromHtml("#42b395"); } }
public static Color LightPlum { get { return ColorTranslator.FromHtml("#9d5783"); } }
public static Color PinkishGrey { get { return ColorTranslator.FromHtml("#c8aca9"); } }
public static Color DirtyOrange { get { return ColorTranslator.FromHtml("#c87606"); } }
public static Color RustRed { get { return ColorTranslator.FromHtml("#aa2704"); } }
public static Color PaleLilac { get { return ColorTranslator.FromHtml("#e4cbff"); } }
public static Color OrangeyRed { get { return ColorTranslator.FromHtml("#fa4224"); } }
public static Color PrimaryBlue { get { return ColorTranslator.FromHtml("#0804f9"); } }
public static Color KermitGreen { get { return ColorTranslator.FromHtml("#5cb200"); } }
public static Color BrownishPurple { get { return ColorTranslator.FromHtml("#76424e"); } }
public static Color MurkyGreen { get { return ColorTranslator.FromHtml("#6c7a0e"); } }
public static Color Wheat { get { return ColorTranslator.FromHtml("#fbdd7e"); } }
public static Color VeryDarkPurple { get { return ColorTranslator.FromHtml("#2a0134"); } }
public static Color BottleGreen { get { return ColorTranslator.FromHtml("#044a05"); } }
public static Color Watermelon { get { return ColorTranslator.FromHtml("#fd4659"); } }
public static Color DeepSkyBlue { get { return ColorTranslator.FromHtml("#0d75f8"); } }
public static Color FireEngineRed { get { return ColorTranslator.FromHtml("#fe0002"); } }
public static Color YellowOchre { get { return ColorTranslator.FromHtml("#cb9d06"); } }
public static Color PumpkinOrange { get { return ColorTranslator.FromHtml("#fb7d07"); } }
public static Color PaleOlive { get { return ColorTranslator.FromHtml("#b9cc81"); } }
public static Color LightLilac { get { return ColorTranslator.FromHtml("#edc8ff"); } }
public static Color LightishGreen { get { return ColorTranslator.FromHtml("#61e160"); } }
public static Color CarolinaBlue { get { return ColorTranslator.FromHtml("#8ab8fe"); } }
public static Color Mulberry { get { return ColorTranslator.FromHtml("#920a4e"); } }
public static Color ShockingPink { get { return ColorTranslator.FromHtml("#fe02a2"); } }
public static Color Auburn { get { return ColorTranslator.FromHtml("#9a3001"); } }
public static Color BrightLimeGreen { get { return ColorTranslator.FromHtml("#65fe08"); } }
public static Color Celadon { get { return ColorTranslator.FromHtml("#befdb7"); } }
public static Color PinkishBrown { get { return ColorTranslator.FromHtml("#b17261"); } }
public static Color PooBrown { get { return ColorTranslator.FromHtml("#885f01"); } }
public static Color BrightSkyBlue { get { return ColorTranslator.FromHtml("#02ccfe"); } }
public static Color Celery { get { return ColorTranslator.FromHtml("#c1fd95"); } }
public static Color DirtBrown { get { return ColorTranslator.FromHtml("#836539"); } }
public static Color Strawberry { get { return ColorTranslator.FromHtml("#fb2943"); } }
public static Color DarkLime { get { return ColorTranslator.FromHtml("#84b701"); } }
public static Color Copper { get { return ColorTranslator.FromHtml("#b66325"); } }
public static Color MediumBrown { get { return ColorTranslator.FromHtml("#7f5112"); } }
public static Color MutedGreen { get { return ColorTranslator.FromHtml("#5fa052"); } }
public static Color RobinSEgg { get { return ColorTranslator.FromHtml("#6dedfd"); } }
public static Color BrightAqua { get { return ColorTranslator.FromHtml("#0bf9ea"); } }
public static Color BrightLavender { get { return ColorTranslator.FromHtml("#c760ff"); } }
public static Color Ivory { get { return ColorTranslator.FromHtml("#ffffcb"); } }
public static Color VeryLightPurple { get { return ColorTranslator.FromHtml("#f6cefc"); } }
public static Color LightNavy { get { return ColorTranslator.FromHtml("#155084"); } }
public static Color PinkRed { get { return ColorTranslator.FromHtml("#f5054f"); } }
public static Color OliveBrown { get { return ColorTranslator.FromHtml("#645403"); } }
public static Color PoopBrown { get { return ColorTranslator.FromHtml("#7a5901"); } }
public static Color MustardGreen { get { return ColorTranslator.FromHtml("#a8b504"); } }
public static Color OceanGreen { get { return ColorTranslator.FromHtml("#3d9973"); } }
public static Color VeryDarkBlue { get { return ColorTranslator.FromHtml("#000133"); } }
public static Color DustyGreen { get { return ColorTranslator.FromHtml("#76a973"); } }
public static Color LightNavyBlue { get { return ColorTranslator.FromHtml("#2e5a88"); } }
public static Color MintyGreen { get { return ColorTranslator.FromHtml("#0bf77d"); } }
public static Color Adobe { get { return ColorTranslator.FromHtml("#bd6c48"); } }
public static Color Barney { get { return ColorTranslator.FromHtml("#ac1db8"); } }
public static Color JadeGreen { get { return ColorTranslator.FromHtml("#2baf6a"); } }
public static Color BrightLightBlue { get { return ColorTranslator.FromHtml("#26f7fd"); } }
public static Color LightLime { get { return ColorTranslator.FromHtml("#aefd6c"); } }
public static Color DarkKhaki { get { return ColorTranslator.FromHtml("#9b8f55"); } }
public static Color OrangeYellow { get { return ColorTranslator.FromHtml("#ffad01"); } }
public static Color Ocre { get { return ColorTranslator.FromHtml("#c69c04"); } }
public static Color Maize { get { return ColorTranslator.FromHtml("#f4d054"); } }
public static Color FadedPink { get { return ColorTranslator.FromHtml("#de9dac"); } }
public static Color BritishRacingGreen { get { return ColorTranslator.FromHtml("#05480d"); } }
public static Color Sandstone { get { return ColorTranslator.FromHtml("#c9ae74"); } }
public static Color MudBrown { get { return ColorTranslator.FromHtml("#60460f"); } }
public static Color LightSeaGreen { get { return ColorTranslator.FromHtml("#98f6b0"); } }
public static Color RobinEggBlue { get { return ColorTranslator.FromHtml("#8af1fe"); } }
public static Color AquaMarine { get { return ColorTranslator.FromHtml("#2ee8bb"); } }
public static Color DarkSeaGreen { get { return ColorTranslator.FromHtml("#11875d"); } }
public static Color SoftPink { get { return ColorTranslator.FromHtml("#fdb0c0"); } }
public static Color OrangeyBrown { get { return ColorTranslator.FromHtml("#b16002"); } }
public static Color CherryRed { get { return ColorTranslator.FromHtml("#f7022a"); } }
public static Color BurntYellow { get { return ColorTranslator.FromHtml("#d5ab09"); } }
public static Color BrownishGrey { get { return ColorTranslator.FromHtml("#86775f"); } }
public static Color Camel { get { return ColorTranslator.FromHtml("#c69f59"); } }
public static Color PurplishGrey { get { return ColorTranslator.FromHtml("#7a687f"); } }
public static Color Marine { get { return ColorTranslator.FromHtml("#042e60"); } }
public static Color GreyishPink { get { return ColorTranslator.FromHtml("#c88d94"); } }
public static Color PaleTurquoise { get { return ColorTranslator.FromHtml("#a5fbd5"); } }
public static Color PastelYellow { get { return ColorTranslator.FromHtml("#fffe71"); } }
public static Color BlueyPurple { get { return ColorTranslator.FromHtml("#6241c7"); } }
public static Color CanaryYellow { get { return ColorTranslator.FromHtml("#fffe40"); } }
public static Color FadedRed { get { return ColorTranslator.FromHtml("#d3494e"); } }
public static Color Sepia { get { return ColorTranslator.FromHtml("#985e2b"); } }
public static Color Coffee { get { return ColorTranslator.FromHtml("#a6814c"); } }
public static Color BrightMagenta { get { return ColorTranslator.FromHtml("#ff08e8"); } }
public static Color Mocha { get { return ColorTranslator.FromHtml("#9d7651"); } }
public static Color Ecru { get { return ColorTranslator.FromHtml("#feffca"); } }
public static Color Purpleish { get { return ColorTranslator.FromHtml("#98568d"); } }
public static Color Cranberry { get { return ColorTranslator.FromHtml("#9e003a"); } }
public static Color DarkishGreen { get { return ColorTranslator.FromHtml("#287c37"); } }
public static Color BrownOrange { get { return ColorTranslator.FromHtml("#b96902"); } }
public static Color DuskyRose { get { return ColorTranslator.FromHtml("#ba6873"); } }
public static Color Melon { get { return ColorTranslator.FromHtml("#ff7855"); } }
public static Color SicklyGreen { get { return ColorTranslator.FromHtml("#94b21c"); } }
public static Color Silver { get { return ColorTranslator.FromHtml("#c5c9c7"); } }
public static Color PurplyBlue { get { return ColorTranslator.FromHtml("#661aee"); } }
public static Color PurpleishBlue { get { return ColorTranslator.FromHtml("#6140ef"); } }
public static Color HospitalGreen { get { return ColorTranslator.FromHtml("#9be5aa"); } }
public static Color ShitBrown { get { return ColorTranslator.FromHtml("#7b5804"); } }
public static Color MidBlue { get { return ColorTranslator.FromHtml("#276ab3"); } }
public static Color Amber { get { return ColorTranslator.FromHtml("#feb308"); } }
public static Color EasterGreen { get { return ColorTranslator.FromHtml("#8cfd7e"); } }
public static Color SoftBlue { get { return ColorTranslator.FromHtml("#6488ea"); } }
public static Color CeruleanBlue { get { return ColorTranslator.FromHtml("#056eee"); } }
public static Color GoldenBrown { get { return ColorTranslator.FromHtml("#b27a01"); } }
public static Color BrightTurquoise { get { return ColorTranslator.FromHtml("#0ffef9"); } }
public static Color RedPink { get { return ColorTranslator.FromHtml("#fa2a55"); } }
public static Color RedPurple { get { return ColorTranslator.FromHtml("#820747"); } }
public static Color GreyishBrown { get { return ColorTranslator.FromHtml("#7a6a4f"); } }
public static Color Vermillion { get { return ColorTranslator.FromHtml("#f4320c"); } }
public static Color Russet { get { return ColorTranslator.FromHtml("#a13905"); } }
public static Color SteelGrey { get { return ColorTranslator.FromHtml("#6f828a"); } }
public static Color LighterPurple { get { return ColorTranslator.FromHtml("#a55af4"); } }
public static Color BrightViolet { get { return ColorTranslator.FromHtml("#ad0afd"); } }
public static Color PrussianBlue { get { return ColorTranslator.FromHtml("#004577"); } }
public static Color SlateGreen { get { return ColorTranslator.FromHtml("#658d6d"); } }
public static Color DirtyPink { get { return ColorTranslator.FromHtml("#ca7b80"); } }
public static Color DarkBlueGreen { get { return ColorTranslator.FromHtml("#005249"); } }
public static Color Pine { get { return ColorTranslator.FromHtml("#2b5d34"); } }
public static Color YellowyGreen { get { return ColorTranslator.FromHtml("#bff128"); } }
public static Color DarkGold { get { return ColorTranslator.FromHtml("#b59410"); } }
public static Color Bluish { get { return ColorTranslator.FromHtml("#2976bb"); } }
public static Color DarkishBlue { get { return ColorTranslator.FromHtml("#014182"); } }
public static Color DullRed { get { return ColorTranslator.FromHtml("#bb3f3f"); } }
public static Color PinkyRed { get { return ColorTranslator.FromHtml("#fc2647"); } }
public static Color Bronze { get { return ColorTranslator.FromHtml("#a87900"); } }
public static Color PaleTeal { get { return ColorTranslator.FromHtml("#82cbb2"); } }
public static Color MilitaryGreen { get { return ColorTranslator.FromHtml("#667c3e"); } }
public static Color BarbiePink { get { return ColorTranslator.FromHtml("#fe46a5"); } }
public static Color BubblegumPink { get { return ColorTranslator.FromHtml("#fe83cc"); } }
public static Color PeaSoupGreen { get { return ColorTranslator.FromHtml("#94a617"); } }
public static Color DarkMustard { get { return ColorTranslator.FromHtml("#a88905"); } }
public static Color Shit { get { return ColorTranslator.FromHtml("#7f5f00"); } }
public static Color MediumPurple { get { return ColorTranslator.FromHtml("#9e43a2"); } }
public static Color VeryDarkGreen { get { return ColorTranslator.FromHtml("#062e03"); } }
public static Color Dirt { get { return ColorTranslator.FromHtml("#8a6e45"); } }
public static Color DuskyPink { get { return ColorTranslator.FromHtml("#cc7a8b"); } }
public static Color RedViolet { get { return ColorTranslator.FromHtml("#9e0168"); } }
public static Color LemonYellow { get { return ColorTranslator.FromHtml("#fdff38"); } }
public static Color Pistachio { get { return ColorTranslator.FromHtml("#c0fa8b"); } }
public static Color DullYellow { get { return ColorTranslator.FromHtml("#eedc5b"); } }
public static Color DarkLimeGreen { get { return ColorTranslator.FromHtml("#7ebd01"); } }
public static Color DenimBlue { get { return ColorTranslator.FromHtml("#3b5b92"); } }
public static Color TealBlue { get { return ColorTranslator.FromHtml("#01889f"); } }
public static Color LightishBlue { get { return ColorTranslator.FromHtml("#3d7afd"); } }
public static Color PurpleyBlue { get { return ColorTranslator.FromHtml("#5f34e7"); } }
public static Color LightIndigo { get { return ColorTranslator.FromHtml("#6d5acf"); } }
public static Color SwampGreen { get { return ColorTranslator.FromHtml("#748500"); } }
public static Color BrownGreen { get { return ColorTranslator.FromHtml("#706c11"); } }
public static Color DarkMaroon { get { return ColorTranslator.FromHtml("#3c0008"); } }
public static Color HotPurple { get { return ColorTranslator.FromHtml("#cb00f5"); } }
public static Color DarkForestGreen { get { return ColorTranslator.FromHtml("#002d04"); } }
public static Color FadedBlue { get { return ColorTranslator.FromHtml("#658cbb"); } }
public static Color DrabGreen { get { return ColorTranslator.FromHtml("#749551"); } }
public static Color LightLimeGreen { get { return ColorTranslator.FromHtml("#b9ff66"); } }
public static Color SnotGreen { get { return ColorTranslator.FromHtml("#9dc100"); } }
public static Color Yellowish { get { return ColorTranslator.FromHtml("#faee66"); } }
public static Color LightBlueGreen { get { return ColorTranslator.FromHtml("#7efbb3"); } }
public static Color Bordeaux { get { return ColorTranslator.FromHtml("#7b002c"); } }
public static Color LightMauve { get { return ColorTranslator.FromHtml("#c292a1"); } }
public static Color Ocean { get { return ColorTranslator.FromHtml("#017b92"); } }
public static Color Marigold { get { return ColorTranslator.FromHtml("#fcc006"); } }
public static Color MuddyGreen { get { return ColorTranslator.FromHtml("#657432"); } }
public static Color DullOrange { get { return ColorTranslator.FromHtml("#d8863b"); } }
public static Color Steel { get { return ColorTranslator.FromHtml("#738595"); } }
public static Color ElectricPurple { get { return ColorTranslator.FromHtml("#aa23ff"); } }
public static Color FluorescentGreen { get { return ColorTranslator.FromHtml("#08ff08"); } }
public static Color YellowishBrown { get { return ColorTranslator.FromHtml("#9b7a01"); } }
public static Color Blush { get { return ColorTranslator.FromHtml("#f29e8e"); } }
public static Color SoftGreen { get { return ColorTranslator.FromHtml("#6fc276"); } }
public static Color BrightOrange { get { return ColorTranslator.FromHtml("#ff5b00"); } }
public static Color Lemon { get { return ColorTranslator.FromHtml("#fdff52"); } }
public static Color PurpleGrey { get { return ColorTranslator.FromHtml("#866f85"); } }
public static Color AcidGreen { get { return ColorTranslator.FromHtml("#8ffe09"); } }
public static Color PaleLavender { get { return ColorTranslator.FromHtml("#eecffe"); } }
public static Color VioletBlue { get { return ColorTranslator.FromHtml("#510ac9"); } }
public static Color LightForestGreen { get { return ColorTranslator.FromHtml("#4f9153"); } }
public static Color BurntRed { get { return ColorTranslator.FromHtml("#9f2305"); } }
public static Color KhakiGreen { get { return ColorTranslator.FromHtml("#728639"); } }
public static Color Cerise { get { return ColorTranslator.FromHtml("#de0c62"); } }
public static Color FadedPurple { get { return ColorTranslator.FromHtml("#916e99"); } }
public static Color Apricot { get { return ColorTranslator.FromHtml("#ffb16d"); } }
public static Color DarkOliveGreen { get { return ColorTranslator.FromHtml("#3c4d03"); } }
public static Color GreyBrown { get { return ColorTranslator.FromHtml("#7f7053"); } }
public static Color GreenGrey { get { return ColorTranslator.FromHtml("#77926f"); } }
public static Color TrueBlue { get { return ColorTranslator.FromHtml("#010fcc"); } }
public static Color PaleViolet { get { return ColorTranslator.FromHtml("#ceaefa"); } }
public static Color PeriwinkleBlue { get { return ColorTranslator.FromHtml("#8f99fb"); } }
public static Color LightSkyBlue { get { return ColorTranslator.FromHtml("#c6fcff"); } }
public static Color Blurple { get { return ColorTranslator.FromHtml("#5539cc"); } }
public static Color GreenBrown { get { return ColorTranslator.FromHtml("#544e03"); } }
public static Color Bluegreen { get { return ColorTranslator.FromHtml("#017a79"); } }
public static Color BrightTeal { get { return ColorTranslator.FromHtml("#01f9c6"); } }
public static Color BrownishYellow { get { return ColorTranslator.FromHtml("#c9b003"); } }
public static Color PeaSoup { get { return ColorTranslator.FromHtml("#929901"); } }
public static Color Forest { get { return ColorTranslator.FromHtml("#0b5509"); } }
public static Color BarneyPurple { get { return ColorTranslator.FromHtml("#a00498"); } }
public static Color Ultramarine { get { return ColorTranslator.FromHtml("#2000b1"); } }
public static Color Purplish { get { return ColorTranslator.FromHtml("#94568c"); } }
public static Color PukeYellow { get { return ColorTranslator.FromHtml("#c2be0e"); } }
public static Color BluishGrey { get { return ColorTranslator.FromHtml("#748b97"); } }
public static Color DarkPeriwinkle { get { return ColorTranslator.FromHtml("#665fd1"); } }
public static Color DarkLilac { get { return ColorTranslator.FromHtml("#9c6da5"); } }
public static Color Reddish { get { return ColorTranslator.FromHtml("#c44240"); } }
public static Color LightMaroon { get { return ColorTranslator.FromHtml("#a24857"); } }
public static Color DustyPurple { get { return ColorTranslator.FromHtml("#825f87"); } }
public static Color TerraCotta { get { return ColorTranslator.FromHtml("#c9643b"); } }
public static Color Avocado { get { return ColorTranslator.FromHtml("#90b134"); } }
public static Color MarineBlue { get { return ColorTranslator.FromHtml("#01386a"); } }
public static Color TealGreen { get { return ColorTranslator.FromHtml("#25a36f"); } }
public static Color SlateGrey { get { return ColorTranslator.FromHtml("#59656d"); } }
public static Color LighterGreen { get { return ColorTranslator.FromHtml("#75fd63"); } }
public static Color ElectricGreen { get { return ColorTranslator.FromHtml("#21fc0d"); } }
public static Color DustyBlue { get { return ColorTranslator.FromHtml("#5a86ad"); } }
public static Color GoldenYellow { get { return ColorTranslator.FromHtml("#fec615"); } }
public static Color BrightYellow { get { return ColorTranslator.FromHtml("#fffd01"); } }
public static Color LightLavender { get { return ColorTranslator.FromHtml("#dfc5fe"); } }
public static Color Umber { get { return ColorTranslator.FromHtml("#b26400"); } }
public static Color Poop { get { return ColorTranslator.FromHtml("#7f5e00"); } }
public static Color DarkPeach { get { return ColorTranslator.FromHtml("#de7e5d"); } }
public static Color JungleGreen { get { return ColorTranslator.FromHtml("#048243"); } }
public static Color Eggshell { get { return ColorTranslator.FromHtml("#ffffd4"); } }
public static Color Denim { get { return ColorTranslator.FromHtml("#3b638c"); } }
public static Color YellowBrown { get { return ColorTranslator.FromHtml("#b79400"); } }
public static Color DullPurple { get { return ColorTranslator.FromHtml("#84597e"); } }
public static Color ChocolateBrown { get { return ColorTranslator.FromHtml("#411900"); } }
public static Color WineRed { get { return ColorTranslator.FromHtml("#7b0323"); } }
public static Color NeonBlue { get { return ColorTranslator.FromHtml("#04d9ff"); } }
public static Color DirtyGreen { get { return ColorTranslator.FromHtml("#667e2c"); } }
public static Color LightTan { get { return ColorTranslator.FromHtml("#fbeeac"); } }
public static Color IceBlue { get { return ColorTranslator.FromHtml("#d7fffe"); } }
public static Color CadetBlue { get { return ColorTranslator.FromHtml("#4e7496"); } }
public static Color DarkMauve { get { return ColorTranslator.FromHtml("#874c62"); } }
public static Color VeryLightBlue { get { return ColorTranslator.FromHtml("#d5ffff"); } }
public static Color GreyPurple { get { return ColorTranslator.FromHtml("#826d8c"); } }
public static Color PastelPink { get { return ColorTranslator.FromHtml("#ffbacd"); } }
public static Color VeryLightGreen { get { return ColorTranslator.FromHtml("#d1ffbd"); } }
public static Color DarkSkyBlue { get { return ColorTranslator.FromHtml("#448ee4"); } }
public static Color Evergreen { get { return ColorTranslator.FromHtml("#05472a"); } }
public static Color DullPink { get { return ColorTranslator.FromHtml("#d5869d"); } }
public static Color Aubergine { get { return ColorTranslator.FromHtml("#3d0734"); } }
public static Color Mahogany { get { return ColorTranslator.FromHtml("#4a0100"); } }
public static Color ReddishOrange { get { return ColorTranslator.FromHtml("#f8481c"); } }
public static Color DeepGreen { get { return ColorTranslator.FromHtml("#02590f"); } }
public static Color VomitGreen { get { return ColorTranslator.FromHtml("#89a203"); } }
public static Color PurplePink { get { return ColorTranslator.FromHtml("#e03fd8"); } }
public static Color DustyPink { get { return ColorTranslator.FromHtml("#d58a94"); } }
public static Color FadedGreen { get { return ColorTranslator.FromHtml("#7bb274"); } }
public static Color CamoGreen { get { return ColorTranslator.FromHtml("#526525"); } }
public static Color PinkyPurple { get { return ColorTranslator.FromHtml("#c94cbe"); } }
public static Color PinkPurple { get { return ColorTranslator.FromHtml("#db4bda"); } }
public static Color BrownishRed { get { return ColorTranslator.FromHtml("#9e3623"); } }
public static Color DarkRose { get { return ColorTranslator.FromHtml("#b5485d"); } }
public static Color Mud { get { return ColorTranslator.FromHtml("#735c12"); } }
public static Color Brownish { get { return ColorTranslator.FromHtml("#9c6d57"); } }
public static Color EmeraldGreen { get { return ColorTranslator.FromHtml("#028f1e"); } }
public static Color PaleBrown { get { return ColorTranslator.FromHtml("#b1916e"); } }
public static Color DullBlue { get { return ColorTranslator.FromHtml("#49759c"); } }
public static Color BurntUmber { get { return ColorTranslator.FromHtml("#a0450e"); } }
public static Color MediumGreen { get { return ColorTranslator.FromHtml("#39ad48"); } }
public static Color Clay { get { return ColorTranslator.FromHtml("#b66a50"); } }
public static Color LightAqua { get { return ColorTranslator.FromHtml("#8cffdb"); } }
public static Color LightOliveGreen { get { return ColorTranslator.FromHtml("#a4be5c"); } }
public static Color BrownishOrange { get { return ColorTranslator.FromHtml("#cb7723"); } }
public static Color DarkAqua { get { return ColorTranslator.FromHtml("#05696b"); } }
public static Color PurplishPink { get { return ColorTranslator.FromHtml("#ce5dae"); } }
public static Color DarkSalmon { get { return ColorTranslator.FromHtml("#c85a53"); } }
public static Color GreenishGrey { get { return ColorTranslator.FromHtml("#96ae8d"); } }
public static Color Jade { get { return ColorTranslator.FromHtml("#1fa774"); } }
public static Color UglyGreen { get { return ColorTranslator.FromHtml("#7a9703"); } }
public static Color DarkBeige { get { return ColorTranslator.FromHtml("#ac9362"); } }
public static Color Emerald { get { return ColorTranslator.FromHtml("#01a049"); } }
public static Color PaleRed { get { return ColorTranslator.FromHtml("#d9544d"); } }
public static Color LightMagenta { get { return ColorTranslator.FromHtml("#fa5ff7"); } }
public static Color Sky { get { return ColorTranslator.FromHtml("#82cafc"); } }
public static Color LightCyan { get { return ColorTranslator.FromHtml("#acfffc"); } }
public static Color YellowOrange { get { return ColorTranslator.FromHtml("#fcb001"); } }
public static Color ReddishPurple { get { return ColorTranslator.FromHtml("#910951"); } }
public static Color ReddishPink { get { return ColorTranslator.FromHtml("#fe2c54"); } }
public static Color Orchid { get { return ColorTranslator.FromHtml("#c875c4"); } }
public static Color DirtyYellow { get { return ColorTranslator.FromHtml("#cdc50a"); } }
public static Color OrangeRed { get { return ColorTranslator.FromHtml("#fd411e"); } }
public static Color DeepRed { get { return ColorTranslator.FromHtml("#9a0200"); } }
public static Color OrangeBrown { get { return ColorTranslator.FromHtml("#be6400"); } }
public static Color CobaltBlue { get { return ColorTranslator.FromHtml("#030aa7"); } }
public static Color NeonPink { get { return ColorTranslator.FromHtml("#fe019a"); } }
public static Color RosePink { get { return ColorTranslator.FromHtml("#f7879a"); } }
public static Color GreyishPurple { get { return ColorTranslator.FromHtml("#887191"); } }
public static Color Raspberry { get { return ColorTranslator.FromHtml("#b00149"); } }
public static Color AquaGreen { get { return ColorTranslator.FromHtml("#12e193"); } }
public static Color SalmonPink { get { return ColorTranslator.FromHtml("#fe7b7c"); } }
public static Color Tangerine { get { return ColorTranslator.FromHtml("#ff9408"); } }
public static Color BrownishGreen { get { return ColorTranslator.FromHtml("#6a6e09"); } }
public static Color RedBrown { get { return ColorTranslator.FromHtml("#8b2e16"); } }
public static Color GreenishBrown { get { return ColorTranslator.FromHtml("#696112"); } }
public static Color Pumpkin { get { return ColorTranslator.FromHtml("#e17701"); } }
public static Color PineGreen { get { return ColorTranslator.FromHtml("#0a481e"); } }
public static Color Charcoal { get { return ColorTranslator.FromHtml("#343837"); } }
public static Color BabyPink { get { return ColorTranslator.FromHtml("#ffb7ce"); } }
public static Color Cornflower { get { return ColorTranslator.FromHtml("#6a79f7"); } }
public static Color BlueViolet { get { return ColorTranslator.FromHtml("#5d06e9"); } }
public static Color Chocolate { get { return ColorTranslator.FromHtml("#3d1c02"); } }
public static Color GreyishGreen { get { return ColorTranslator.FromHtml("#82a67d"); } }
public static Color Scarlet { get { return ColorTranslator.FromHtml("#be0119"); } }
public static Color GreenYellow { get { return ColorTranslator.FromHtml("#c9ff27"); } }
public static Color DarkOlive { get { return ColorTranslator.FromHtml("#373e02"); } }
public static Color Sienna { get { return ColorTranslator.FromHtml("#a9561e"); } }
public static Color PastelPurple { get { return ColorTranslator.FromHtml("#caa0ff"); } }
public static Color Terracotta { get { return ColorTranslator.FromHtml("#ca6641"); } }
public static Color AquaBlue { get { return ColorTranslator.FromHtml("#02d8e9"); } }
public static Color SageGreen { get { return ColorTranslator.FromHtml("#88b378"); } }
public static Color BloodRed { get { return ColorTranslator.FromHtml("#980002"); } }
public static Color DeepPink { get { return ColorTranslator.FromHtml("#cb0162"); } }
public static Color Grass { get { return ColorTranslator.FromHtml("#5cac2d"); } }
public static Color Moss { get { return ColorTranslator.FromHtml("#769958"); } }
public static Color PastelBlue { get { return ColorTranslator.FromHtml("#a2bffe"); } }
public static Color BluishGreen { get { return ColorTranslator.FromHtml("#10a674"); } }
public static Color GreenBlue { get { return ColorTranslator.FromHtml("#06b48b"); } }
public static Color DarkTan { get { return ColorTranslator.FromHtml("#af884a"); } }
public static Color GreenishBlue { get { return ColorTranslator.FromHtml("#0b8b87"); } }
public static Color PaleOrange { get { return ColorTranslator.FromHtml("#ffa756"); } }
public static Color Vomit { get { return ColorTranslator.FromHtml("#a2a415"); } }
public static Color ForrestGreen { get { return ColorTranslator.FromHtml("#154406"); } }
public static Color DarkLavender { get { return ColorTranslator.FromHtml("#856798"); } }
public static Color DarkViolet { get { return ColorTranslator.FromHtml("#34013f"); } }
public static Color PurpleBlue { get { return ColorTranslator.FromHtml("#632de9"); } }
public static Color DarkCyan { get { return ColorTranslator.FromHtml("#0a888a"); } }
public static Color OliveDrab { get { return ColorTranslator.FromHtml("#6f7632"); } }
public static Color Pinkish { get { return ColorTranslator.FromHtml("#d46a7e"); } }
public static Color Cobalt { get { return ColorTranslator.FromHtml("#1e488f"); } }
public static Color NeonPurple { get { return ColorTranslator.FromHtml("#bc13fe"); } }
public static Color LightTurquoise { get { return ColorTranslator.FromHtml("#7ef4cc"); } }
public static Color AppleGreen { get { return ColorTranslator.FromHtml("#76cd26"); } }
public static Color DullGreen { get { return ColorTranslator.FromHtml("#74a662"); } }
public static Color Wine { get { return ColorTranslator.FromHtml("#80013f"); } }
public static Color PowderBlue { get { return ColorTranslator.FromHtml("#b1d1fc"); } }
public static Color OffWhite { get { return ColorTranslator.FromHtml("#ffffe4"); } }
public static Color ElectricBlue { get { return ColorTranslator.FromHtml("#0652ff"); } }
public static Color DarkTurquoise { get { return ColorTranslator.FromHtml("#045c5a"); } }
public static Color BluePurple { get { return ColorTranslator.FromHtml("#5729ce"); } }
public static Color Azure { get { return ColorTranslator.FromHtml("#069af3"); } }
public static Color BrightRed { get { return ColorTranslator.FromHtml("#ff000d"); } }
public static Color PinkishRed { get { return ColorTranslator.FromHtml("#f10c45"); } }
public static Color CornflowerBlue { get { return ColorTranslator.FromHtml("#5170d7"); } }
public static Color LightOlive { get { return ColorTranslator.FromHtml("#acbf69"); } }
public static Color Grape { get { return ColorTranslator.FromHtml("#6c3461"); } }
public static Color GreyishBlue { get { return ColorTranslator.FromHtml("#5e819d"); } }
public static Color PurplishBlue { get { return ColorTranslator.FromHtml("#601ef9"); } }
public static Color YellowishGreen { get { return ColorTranslator.FromHtml("#b0dd16"); } }
public static Color GreenishYellow { get { return ColorTranslator.FromHtml("#cdfd02"); } }
public static Color MediumBlue { get { return ColorTranslator.FromHtml("#2c6fbb"); } }
public static Color DustyRose { get { return ColorTranslator.FromHtml("#c0737a"); } }
public static Color LightViolet { get { return ColorTranslator.FromHtml("#d6b4fc"); } }
public static Color MidnightBlue { get { return ColorTranslator.FromHtml("#020035"); } }
public static Color BluishPurple { get { return ColorTranslator.FromHtml("#703be7"); } }
public static Color RedOrange { get { return ColorTranslator.FromHtml("#fd3c06"); } }
public static Color DarkMagenta { get { return ColorTranslator.FromHtml("#960056"); } }
public static Color Greenish { get { return ColorTranslator.FromHtml("#40a368"); } }
public static Color OceanBlue { get { return ColorTranslator.FromHtml("#03719c"); } }
public static Color Coral { get { return ColorTranslator.FromHtml("#fc5a50"); } }
public static Color Cream { get { return ColorTranslator.FromHtml("#ffffc2"); } }
public static Color ReddishBrown { get { return ColorTranslator.FromHtml("#7f2b0a"); } }
public static Color BurntSienna { get { return ColorTranslator.FromHtml("#b04e0f"); } }
public static Color Brick { get { return ColorTranslator.FromHtml("#a03623"); } }
public static Color Sage { get { return ColorTranslator.FromHtml("#87ae73"); } }
public static Color GreyGreen { get { return ColorTranslator.FromHtml("#789b73"); } }
public static Color White { get { return ColorTranslator.FromHtml("#ffffff"); } }
public static Color RobinSEggBlue { get { return ColorTranslator.FromHtml("#98eff9"); } }
public static Color MossGreen { get { return ColorTranslator.FromHtml("#658b38"); } }
public static Color SteelBlue { get { return ColorTranslator.FromHtml("#5a7d9a"); } }
public static Color Eggplant { get { return ColorTranslator.FromHtml("#380835"); } }
public static Color LightYellow { get { return ColorTranslator.FromHtml("#fffe7a"); } }
public static Color LeafGreen { get { return ColorTranslator.FromHtml("#5ca904"); } }
public static Color LightGrey { get { return ColorTranslator.FromHtml("#d8dcd6"); } }
public static Color Puke { get { return ColorTranslator.FromHtml("#a5a502"); } }
public static Color PinkishPurple { get { return ColorTranslator.FromHtml("#d648d7"); } }
public static Color SeaBlue { get { return ColorTranslator.FromHtml("#047495"); } }
public static Color PalePurple { get { return ColorTranslator.FromHtml("#b790d4"); } }
public static Color SlateBlue { get { return ColorTranslator.FromHtml("#5b7c99"); } }
public static Color BlueGrey { get { return ColorTranslator.FromHtml("#607c8e"); } }
public static Color HunterGreen { get { return ColorTranslator.FromHtml("#0b4008"); } }
public static Color Fuchsia { get { return ColorTranslator.FromHtml("#ed0dd9"); } }
public static Color Crimson { get { return ColorTranslator.FromHtml("#8c000f"); } }
public static Color PaleYellow { get { return ColorTranslator.FromHtml("#ffff84"); } }
public static Color Ochre { get { return ColorTranslator.FromHtml("#bf9005"); } }
public static Color MustardYellow { get { return ColorTranslator.FromHtml("#d2bd0a"); } }
public static Color LightRed { get { return ColorTranslator.FromHtml("#ff474c"); } }
public static Color Cerulean { get { return ColorTranslator.FromHtml("#0485d1"); } }
public static Color PalePink { get { return ColorTranslator.FromHtml("#ffcfdc"); } }
public static Color DeepBlue { get { return ColorTranslator.FromHtml("#040273"); } }
public static Color Rust { get { return ColorTranslator.FromHtml("#a83c09"); } }
public static Color LightTeal { get { return ColorTranslator.FromHtml("#90e4c1"); } }
public static Color Slate { get { return ColorTranslator.FromHtml("#516572"); } }
public static Color Goldenrod { get { return ColorTranslator.FromHtml("#fac205"); } }
public static Color DarkYellow { get { return ColorTranslator.FromHtml("#d5b60a"); } }
public static Color DarkGrey { get { return ColorTranslator.FromHtml("#363737"); } }
public static Color ArmyGreen { get { return ColorTranslator.FromHtml("#4b5d16"); } }
public static Color GreyBlue { get { return ColorTranslator.FromHtml("#6b8ba4"); } }
public static Color Seafoam { get { return ColorTranslator.FromHtml("#80f9ad"); } }
public static Color Puce { get { return ColorTranslator.FromHtml("#a57e52"); } }
public static Color SpringGreen { get { return ColorTranslator.FromHtml("#a9f971"); } }
public static Color DarkOrange { get { return ColorTranslator.FromHtml("#c65102"); } }
public static Color Sand { get { return ColorTranslator.FromHtml("#e2ca76"); } }
public static Color PastelGreen { get { return ColorTranslator.FromHtml("#b0ff9d"); } }
public static Color Mint { get { return ColorTranslator.FromHtml("#9ffeb0"); } }
public static Color LightOrange { get { return ColorTranslator.FromHtml("#fdaa48"); } }
public static Color BrightPink { get { return ColorTranslator.FromHtml("#fe01b1"); } }
public static Color Chartreuse { get { return ColorTranslator.FromHtml("#c1f80a"); } }
public static Color DeepPurple { get { return ColorTranslator.FromHtml("#36013f"); } }
public static Color DarkBrown { get { return ColorTranslator.FromHtml("#341c02"); } }
public static Color Taupe { get { return ColorTranslator.FromHtml("#b9a281"); } }
public static Color PeaGreen { get { return ColorTranslator.FromHtml("#8eab12"); } }
public static Color PukeGreen { get { return ColorTranslator.FromHtml("#9aae07"); } }
public static Color KellyGreen { get { return ColorTranslator.FromHtml("#02ab2e"); } }
public static Color SeafoamGreen { get { return ColorTranslator.FromHtml("#7af9ab"); } }
public static Color BlueGreen { get { return ColorTranslator.FromHtml("#137e6d"); } }
public static Color Khaki { get { return ColorTranslator.FromHtml("#aaa662"); } }
public static Color Burgundy { get { return ColorTranslator.FromHtml("#610023"); } }
public static Color DarkTeal { get { return ColorTranslator.FromHtml("#014d4e"); } }
public static Color BrickRed { get { return ColorTranslator.FromHtml("#8f1402"); } }
public static Color RoyalPurple { get { return ColorTranslator.FromHtml("#4b006e"); } }
public static Color Plum { get { return ColorTranslator.FromHtml("#580f41"); } }
public static Color MintGreen { get { return ColorTranslator.FromHtml("#8fff9f"); } }
public static Color Gold { get { return ColorTranslator.FromHtml("#dbb40c"); } }
public static Color BabyBlue { get { return ColorTranslator.FromHtml("#a2cffe"); } }
public static Color YellowGreen { get { return ColorTranslator.FromHtml("#c0fb2d"); } }
public static Color BrightPurple { get { return ColorTranslator.FromHtml("#be03fd"); } }
public static Color DarkRed { get { return ColorTranslator.FromHtml("#840000"); } }
public static Color PaleBlue { get { return ColorTranslator.FromHtml("#d0fefe"); } }
public static Color GrassGreen { get { return ColorTranslator.FromHtml("#3f9b0b"); } }
public static Color Navy { get { return ColorTranslator.FromHtml("#01153e"); } }
public static Color Aquamarine { get { return ColorTranslator.FromHtml("#04d8b2"); } }
public static Color BurntOrange { get { return ColorTranslator.FromHtml("#c04e01"); } }
public static Color NeonGreen { get { return ColorTranslator.FromHtml("#0cff0c"); } }
public static Color BrightBlue { get { return ColorTranslator.FromHtml("#0165fc"); } }
public static Color Rose { get { return ColorTranslator.FromHtml("#cf6275"); } }
public static Color LightPink { get { return ColorTranslator.FromHtml("#ffd1df"); } }
public static Color Mustard { get { return ColorTranslator.FromHtml("#ceb301"); } }
public static Color Indigo { get { return ColorTranslator.FromHtml("#380282"); } }
public static Color Lime { get { return ColorTranslator.FromHtml("#aaff32"); } }
public static Color SeaGreen { get { return ColorTranslator.FromHtml("#53fca1"); } }
public static Color Periwinkle { get { return ColorTranslator.FromHtml("#8e82fe"); } }
public static Color DarkPink { get { return ColorTranslator.FromHtml("#cb416b"); } }
public static Color OliveGreen { get { return ColorTranslator.FromHtml("#677a04"); } }
public static Color Peach { get { return ColorTranslator.FromHtml("#ffb07c"); } }
public static Color PaleGreen { get { return ColorTranslator.FromHtml("#c7fdb5"); } }
public static Color LightBrown { get { return ColorTranslator.FromHtml("#ad8150"); } }
public static Color HotPink { get { return ColorTranslator.FromHtml("#ff028d"); } }
public static Color Black { get { return ColorTranslator.FromHtml("#000000"); } }
public static Color Lilac { get { return ColorTranslator.FromHtml("#cea2fd"); } }
public static Color NavyBlue { get { return ColorTranslator.FromHtml("#001146"); } }
public static Color RoyalBlue { get { return ColorTranslator.FromHtml("#0504aa"); } }
public static Color Beige { get { return ColorTranslator.FromHtml("#e6daa6"); } }
public static Color Salmon { get { return ColorTranslator.FromHtml("#ff796c"); } }
public static Color Olive { get { return ColorTranslator.FromHtml("#6e750e"); } }
public static Color Maroon { get { return ColorTranslator.FromHtml("#650021"); } }
public static Color BrightGreen { get { return ColorTranslator.FromHtml("#01ff07"); } }
public static Color DarkPurple { get { return ColorTranslator.FromHtml("#35063e"); } }
public static Color Mauve { get { return ColorTranslator.FromHtml("#ae7181"); } }
public static Color ForestGreen { get { return ColorTranslator.FromHtml("#06470c"); } }
public static Color Aqua { get { return ColorTranslator.FromHtml("#13eac9"); } }
public static Color Cyan { get { return ColorTranslator.FromHtml("#00ffff"); } }
public static Color Tan { get { return ColorTranslator.FromHtml("#d1b26f"); } }
public static Color DarkBlue { get { return ColorTranslator.FromHtml("#00035b"); } }
public static Color Lavender { get { return ColorTranslator.FromHtml("#c79fef"); } }
public static Color Turquoise { get { return ColorTranslator.FromHtml("#06c2ac"); } }
public static Color DarkGreen { get { return ColorTranslator.FromHtml("#033500"); } }
public static Color Violet { get { return ColorTranslator.FromHtml("#9a0eea"); } }
public static Color LightPurple { get { return ColorTranslator.FromHtml("#bf77f6"); } }
public static Color LimeGreen { get { return ColorTranslator.FromHtml("#89fe05"); } }
public static Color Grey { get { return ColorTranslator.FromHtml("#929591"); } }
public static Color SkyBlue { get { return ColorTranslator.FromHtml("#75bbfd"); } }
public static Color Yellow { get { return ColorTranslator.FromHtml("#ffff14"); } }
public static Color Magenta { get { return ColorTranslator.FromHtml("#c20078"); } }
public static Color LightGreen { get { return ColorTranslator.FromHtml("#96f97b"); } }
public static Color Orange { get { return ColorTranslator.FromHtml("#f97306"); } }
public static Color Teal { get { return ColorTranslator.FromHtml("#029386"); } }
public static Color LightBlue { get { return ColorTranslator.FromHtml("#95d0fc"); } }
public static Color Red { get { return ColorTranslator.FromHtml("#e50000"); } }
public static Color Brown { get { return ColorTranslator.FromHtml("#653700"); } }
public static Color Pink { get { return ColorTranslator.FromHtml("#ff81c0"); } }
public static Color Blue { get { return ColorTranslator.FromHtml("#0343df"); } }
public static Color Green { get { return ColorTranslator.FromHtml("#15b01a"); } }
public static Color Purple { get { return ColorTranslator.FromHtml("#7e1e9c"); } }
}

View file

@ -88,7 +88,6 @@ public static class CapabilityPresentationSmoke
// The scene's map: an entity registers its icon with the ZoneRenderer's presenter, so each instance carries a quad.
var mapRenderer = new GameObject("Smoke Zone Renderer").AddComponent<ZoneRenderer>();
mapRenderer.Settings = AssetDatabase.LoadAssetAtPath<GameSettings>("Assets/Resources/Settings.asset");
mapRenderer.MapGravityMaterials = new Material[0];
Awaken(mapRenderer);
(GameObject Object, EntityInstance Instance, TractorBeam Beam) Bound(string name, Entity entity)
{

View file

@ -32,11 +32,11 @@ namespace Aetheria.EditorTools
// single-precision floor of 1.5e-5 per unit strength against the CPU's, the quad's interpolated world position). The
// tolerance is 2.9x that. A band whose terms were drawn from the wrong edge (reference, inner or outer) moves the
// drawn height by whole units.
const float Tolerance = 0.03f;
internal const float Tolerance = 0.03f;
// The worst angle between the texture's central difference and GetForce (B28: 1.0 degrees median zone, 2.9 worst).
const float GradientDegrees = 3f;
internal const float GradientDegrees = 3f;
// Below this force (u/s^2) the drawn height differs between neighbouring texels by less than float32 resolves.
const float FlatForce = 1e-3f;
internal const float FlatForce = 1e-3f;
static float _maxError, _maxAngle, _maxTau;
static bool _ok = true;
@ -369,32 +369,61 @@ namespace Aetheria.EditorTools
return found;
}
// Both isoline views: the map screen's Gravity Lines Image (UI/MaskedWorldSpaceUI, posed by MapRenderer.MapOverlayCamera) and
// the minimap's Gravity Fields RawImage (no material, posed by the minimap camera that targets Minimap).
static void CheckIsolineViews(MapRenderer map, ZoneRenderer renderer)
{
var views = UnityEngine.Object.FindObjectsByType<IsolineView>(FindObjectsInactive.Include, FindObjectsSortMode.None);
if (views.Length != 2) Fail("wiring", $"{views.Length} IsolineViews in ARPG.unity, expected 2");
foreach (var kind in new[] { IsolineView.Kind.Map, IsolineView.Kind.Minimap })
{
var view = views.FirstOrDefault(v => v.View == kind);
if (view == null) { Fail("wiring", $"no {kind} IsolineView in ARPG.unity"); continue; }
if (view.ZoneRenderer != renderer) Fail("wiring", $"{kind} IsolineView.ZoneRenderer is not the scene's ZoneRenderer");
if (view.Extract == null || view.Render == null) Fail("wiring", $"{kind} IsolineView lacks its compute shaders");
if (kind == IsolineView.Kind.Map)
{
if (view.name != "Gravity Lines" || !(view.GetComponent<UnityEngine.UI.Graphic>() is UnityEngine.UI.Image image))
Fail("wiring", "the Map IsolineView is not on the Image named Gravity Lines");
else if (image.material == null || image.material.shader.name != "UI/MaskedWorldSpaceUI")
Fail("wiring", "Gravity Lines does not draw with a UI/MaskedWorldSpaceUI material");
if (map == null || view.PoseCamera != map.MapOverlayCamera) Fail("wiring", "the Map IsolineView's PoseCamera is not MapRenderer.MapOverlayCamera");
}
else
{
if (view.name != "Gravity Fields" || !(view.GetComponent<UnityEngine.UI.Graphic>() is UnityEngine.UI.RawImage raw))
Fail("wiring", "the Minimap IsolineView is not on the RawImage named Gravity Fields");
else if (raw.material.shader.name != "UI/Default")
Fail("wiring", "Gravity Fields draws with a material other than UI/Default");
var pose = renderer == null ? null : renderer.MinimapCameras.FirstOrDefault(c => c.targetTexture != null && c.targetTexture.name == "Minimap");
if (pose == null || view.PoseCamera != pose) Fail("wiring", "the Minimap IsolineView's PoseCamera is not the minimap camera that targets Minimap");
}
}
}
static void CheckWiring(GameSettings settings)
{
var scene = EditorSceneManager.OpenScene("Assets/Scenes/ARPG.unity", OpenSceneMode.Single);
try
{
var gravityTargets = new[] { "Fog Surface Displacement", "Slime Gravity", "MinimapGravity" };
var seen = 0;
// The layer-9 cameras are exactly the fog's and the slime's: the isolines read no camera (cut isoline-wiring).
var gravityTargets = new[] { "Fog Surface Displacement", "Slime Gravity" };
var seen = new List<string>();
foreach (var camera in UnityEngine.Object.FindObjectsByType<Camera>(FindObjectsInactive.Include, FindObjectsSortMode.None))
{
if (camera.targetTexture == null || !gravityTargets.Contains(camera.targetTexture.name)) continue;
seen++;
if (camera.cullingMask != 1 << GravityLowering.FieldLayer)
Fail("wiring", $"camera {camera.name} (target {camera.targetTexture.name}) culls mask {camera.cullingMask}, not layer {GravityLowering.FieldLayer} alone");
if (camera.name == "Map Gravity") Fail("wiring", "a camera named Map Gravity is back in ARPG.unity");
if (camera.cullingMask != 1 << GravityLowering.FieldLayer) continue;
seen.Add(camera.targetTexture != null ? camera.targetTexture.name : "(no target) " + camera.name);
}
if (seen < gravityTargets.Length) Fail("wiring", $"only {seen} gravity cameras found in ARPG.unity");
if (seen.Count != gravityTargets.Length || gravityTargets.Any(t => !seen.Contains(t)))
Fail("wiring", $"the layer-9 cameras are [{string.Join(", ", seen)}], not exactly [{string.Join(", ", gravityTargets)}]");
// The patch texture is half-float: it holds the patch layers only, the nebula reads gravity from the R32 surface.
if (CheckPatchCameras("ARPG.unity") != 1) Fail("wiring", "ARPG.unity does not have exactly 1 Fog Patch Displacement camera");
// The map screen's gravity camera has no target until MapRenderer gives it one at run time.
var map = UnityEngine.Object.FindFirstObjectByType<MapRenderer>(FindObjectsInactive.Include);
if (map == null || map.GravityCamera == null) Fail("wiring", "no MapRenderer.GravityCamera in ARPG.unity");
else if (map.GravityCamera.cullingMask != 1 << GravityLowering.FieldLayer)
Fail("wiring", $"MapRenderer.GravityCamera culls mask {map.GravityCamera.cullingMask}, not layer {GravityLowering.FieldLayer} alone");
var renderer = UnityEngine.Object.FindFirstObjectByType<ZoneRenderer>(FindObjectsInactive.Include);
CheckIsolineViews(map, renderer);
if (renderer == null) Fail("wiring", "no ZoneRenderer in ARPG.unity");
else if (renderer.GravityField == null || renderer.GravityField.shader.name != "Brushes/Gravity Field")
Fail("wiring", "ZoneRenderer.GravityField is not a Brushes/Gravity Field material");

View file

@ -0,0 +1,243 @@
using System;
using System.Collections;
using System.IO;
using UnityEditor;
using UnityEngine;
using UnityEngine.UI;
using int2 = CultMath.int2;
// The inventory grid on a ScreenSpaceOverlay canvas, the kind the game's canvases are, which the camera rig of
// InventoryGridParityCapture cannot draw. An overlay canvas draws to the Game view's back buffer, so this enters play mode and
// reads the screen at the end of a frame, and compares the grid's crop with its golden PNG (tests/fixtures/inventory-grid/overlay-*.png).
//
// Unity -batchmode -projectPath <project> -executeMethod InventoryGridOverlayCapture.Run [-pngOut <dir>] [-goldenIn <dir>] [-goldenOut [<dir>]] -logFile <log>
//
// -goldenIn is where the goldens are read from and -goldenOut writes the grid's crop of each capture as overlay-<name>.png instead (both
// default to tests/fixtures/inventory-grid/); a run with -goldenOut compares nothing.
//
// Needs a GPU device; do not pass -nographics or -quit. Logs "[InventoryGridOverlay]" lines and exits 0 or 1.
public static class InventoryGridOverlayCapture
{
private const string Pending = "InventoryGridOverlayCapture.pending";
private const string PngKey = "InventoryGridOverlayCapture.png";
private const string GoldenKey = "InventoryGridOverlayCapture.golden";
private const string GoldenInKey = "InventoryGridOverlayCapture.goldenIn";
// The bound on the largest 8-bit channel difference of the grid's crop against its golden. lodur:ruling:deterministic-bound-margin: the
// shipped reading is 0 in both of two fresh runs, taken as 1 (the 8-bit quantum); the least claimed mutant is alpha-multiply-dropped at 43
// (concave-bracket-dropped reads 138); sqrt(1 x 43) = 6.6, bound 7, a separation of 7 below and 6.1 above.
private const int Bound = 7;
public static void Run()
{
var args = Environment.GetCommandLineArgs();
var i = Array.IndexOf(args, "-pngOut");
SessionState.SetString(PngKey, i >= 0 && i + 1 < args.Length ? args[i + 1] : "");
var golden = Array.IndexOf(args, "-goldenOut");
SessionState.SetString(GoldenKey, golden < 0 ? "" : golden + 1 < args.Length && !args[golden + 1].StartsWith("-") ? args[golden + 1]
: Path.Combine(Directory.GetParent(Application.dataPath)!.FullName, "tests", "fixtures", "inventory-grid"));
var goldenIn = Array.IndexOf(args, "-goldenIn");
SessionState.SetString(GoldenInKey, goldenIn >= 0 && goldenIn + 1 < args.Length ? args[goldenIn + 1]
: Path.Combine(Directory.GetParent(Application.dataPath)!.FullName, "tests", "fixtures", "inventory-grid"));
SessionState.SetBool(Pending, true);
EditorApplication.EnterPlaymode();
}
[InitializeOnLoadMethod]
private static void Hook()
{
EditorApplication.playModeStateChanged += state =>
{
if (state != PlayModeStateChange.EnteredPlayMode || !SessionState.GetBool(Pending, false)) return;
SessionState.SetBool(Pending, false);
new GameObject("Overlay parity").AddComponent<Runner>();
};
}
private static void Log(string line) => Debug.Log("[InventoryGridOverlay] " + line);
private sealed class Runner : MonoBehaviour
{
// An exception inside a coroutine would leave the session running, so any failure exits 1.
private IEnumerator Start()
{
var inner = Capture();
while (true)
{
try
{
if (!inner.MoveNext()) yield break;
}
catch (Exception exception)
{
Debug.LogException(exception);
EditorApplication.Exit(1);
yield break;
}
yield return inner.Current;
}
}
private IEnumerator Capture()
{
var failed = false;
var overallWorst = 0;
var png = SessionState.GetString(PngKey, "");
var goldenOut = SessionState.GetString(GoldenKey, "");
var goldenIn = SessionState.GetString(GoldenInKey, "");
var shader = AssetDatabase.LoadAssetAtPath<Shader>("Assets/Shaders/InventoryGrid.shader");
// An overlay canvas draws to the Game view's back buffer, which batch mode does not create on its own.
Log("Game view menu item: " + EditorApplication.ExecuteMenuItem("Window/General/Game"));
yield return null;
yield return null;
Log($"screen {Screen.width}x{Screen.height}");
var watchdog = gameObject.AddComponent<Watchdog>();
// The first frames of a freshly opened Game view are not drawn yet (solid cyan).
for (var warm = 0; warm < 5; warm++)
{
watchdog.Arm("warm-up end of frame");
yield return new WaitForEndOfFrame();
watchdog.Disarm();
}
foreach (var (name, size, multiplier, alpha) in new[] { ("S32m1", 32f, 1f, 1f), ("S16m1.5", 16f, 1.5f, 1f), ("S32m1-halfalpha", 32f, 1f, .5f) })
{
var canvasObject = new GameObject("Overlay canvas", typeof(RectTransform));
canvasObject.layer = LayerMask.NameToLayer("UI");
var canvas = canvasObject.AddComponent<Canvas>();
canvas.renderMode = RenderMode.ScreenSpaceOverlay;
canvas.vertexColorAlwaysGammaSpace = false;
canvas.sortingOrder = 5000;
// The Main Menu scene behind it moves, so the canvas lays an opaque black page under the cells.
var page = new GameObject("Page", typeof(RectTransform), typeof(CanvasRenderer), typeof(Image)) { layer = canvasObject.layer };
var pageRect = (RectTransform) page.transform;
pageRect.SetParent(canvasObject.transform, false);
pageRect.anchorMin = Vector2.zero;
pageRect.anchorMax = Vector2.one;
pageRect.offsetMin = pageRect.offsetMax = Vector2.zero;
page.GetComponent<Image>().color = Color.black;
var scaler = canvasObject.AddComponent<CanvasScaler>();
// The Game view of a batch session is small (321x531), so the canvas runs at the 1920 reference's own scale, one pixel
// to a canvas unit, which is where the camera rig's 1920 captures sit.
scaler.uiScaleMode = CanvasScaler.ScaleMode.ConstantPixelSize;
scaler.scaleFactor = 1;
scaler.referencePixelsPerUnit = 100;
var stride = size + 8;
var masks = new System.Collections.Generic.List<int>();
for (var m = 0; m < 512 && masks.Count < 96; m += 4)
if (m != 33 && m != 289 && m != 136 && m != 392) masks.Add(m);
var iconColor = new Color(.9f, .45f, .15f) * .7071f;
var bgColor = new Color(.6f, .2f, .1f, .8f);
Vector2 At(int k) => new Vector2(8 + k % 8 * stride, 8 + k / 8 * stride);
for (var k = 0; k < masks.Count; k++)
{
var go = new GameObject("Grid", typeof(RectTransform), typeof(CanvasRenderer)) { layer = canvasObject.layer };
var rect = (RectTransform) go.transform;
rect.SetParent(canvasObject.transform, false);
rect.anchorMin = rect.anchorMax = Vector2.zero;
rect.pivot = Vector2.zero;
rect.anchoredPosition = At(k);
rect.sizeDelta = new Vector2(size, size);
var grid = go.AddComponent<InventoryGrid>();
grid.Shader = shader;
grid.color = new Color(1, 1, 1, alpha);
grid.IconTexel = InventoryGrid.TexelOf(66f, multiplier);
grid.BgTexel = InventoryGrid.TexelOf(100f, 1f);
grid.Resize(1, 1, size, new RectOffset(), GridOrientation.LowerLeft);
grid.SetCell(new int2(0, 0), new CellRecord
{
Mask = (byte) (masks[k] & 255), Present = true, Item = masks[k] >= 256, Icon = iconColor, Background = bgColor
});
}
watchdog.Arm("end of frame, grid");
yield return new WaitForEndOfFrame();
watchdog.Disarm();
var fresh = ScreenCapture.CaptureScreenshotAsTexture();
var cropW = Mathf.Min(fresh.width, Mathf.CeilToInt(8 + 8 * stride));
var cropH = Mathf.Min(fresh.height, Mathf.CeilToInt(8 + 12 * stride));
var b = fresh.GetPixels32();
var crop = new Color32[cropW * cropH];
var lit = 0;
for (var y = 0; y < cropH; y++)
for (var x = 0; x < cropW; x++)
{
crop[y * cropW + x] = b[y * fresh.width + x];
if (crop[y * cropW + x].r + crop[y * cropW + x].g + crop[y * cropW + x].b > 30) lit++;
}
var worst = 0;
Color32[] a = null;
if (goldenOut != "")
{
Directory.CreateDirectory(goldenOut);
var written = new Texture2D(cropW, cropH, TextureFormat.RGBA32, false, true);
written.SetPixels32(crop);
File.WriteAllBytes(Path.Combine(goldenOut, $"overlay-{name}.png"), written.EncodeToPNG());
Destroy(written);
Log($"golden written: overlay-{name}.png {cropW}x{cropH}");
}
else
{
var path = Path.Combine(goldenIn, $"overlay-{name}.png");
var golden = new Texture2D(2, 2, TextureFormat.RGBA32, false, true);
if (!File.Exists(path) || !golden.LoadImage(File.ReadAllBytes(path)) || golden.width != cropW || golden.height != cropH)
{
failed = true;
Log($"BOUND BREACHED overlay {name}: no golden {path} of {cropW}x{cropH}");
}
else
{
a = golden.GetPixels32();
for (var i = 0; i < a.Length; i++)
worst = Mathf.Max(worst, Mathf.Abs(a[i].r - crop[i].r), Mathf.Abs(a[i].g - crop[i].g), Mathf.Abs(a[i].b - crop[i].b), Mathf.Abs(a[i].a - crop[i].a));
}
Destroy(golden);
}
overallWorst = Mathf.Max(overallWorst, worst);
Log($"overlay {name}: {masks.Count} masks, max8bitDiff against the golden={worst}, {lit} lit pixels");
if (lit == 0 || worst > Bound)
{
failed = true;
Log($"BOUND BREACHED overlay {name}: worst {worst} (bound {Bound}), lit {lit}");
}
if (png != "" && a != null)
{
Directory.CreateDirectory(png);
var sheet = new Texture2D(cropW * 3, cropH, TextureFormat.RGBA32, false);
var pixels = new Color32[cropW * 3 * cropH];
for (var y = 0; y < cropH; y++)
for (var x = 0; x < cropW; x++)
{
var i = y * cropW + x;
pixels[y * cropW * 3 + x] = new Color32(a[i].r, a[i].g, a[i].b, 255);
pixels[y * cropW * 3 + cropW + x] = new Color32(crop[i].r, crop[i].g, crop[i].b, 255);
pixels[y * cropW * 3 + 2 * cropW + x] = new Color32(
(byte) Mathf.Min(255, 8 * Mathf.Abs(a[i].r - crop[i].r)), (byte) Mathf.Min(255, 8 * Mathf.Abs(a[i].g - crop[i].g)),
(byte) Mathf.Min(255, 8 * Mathf.Abs(a[i].b - crop[i].b)), 255);
}
sheet.SetPixels32(pixels);
File.WriteAllBytes(Path.Combine(png, $"overlay-{name}.png"), sheet.EncodeToPNG());
}
Destroy(canvasObject);
yield return null;
}
Log($"SUMMARY overlayWorst={overallWorst} bound={Bound}");
Log(failed ? "FAIL" : "PASS");
EditorApplication.Exit(failed ? 1 : 0);
}
}
// Exits when an end of frame never comes: no Game view renders in this batch session, so an overlay canvas cannot be drawn.
private sealed class Watchdog : MonoBehaviour
{
private string _waiting;
private float _since;
public void Arm(string what) { _waiting = what; _since = Time.realtimeSinceStartup; }
public void Disarm() => _waiting = null;
private void Update()
{
if (_waiting == null || Time.realtimeSinceStartup - _since < 20f) return;
Log($"BLOCKED: no {_waiting} within 20 s; the Game view does not render in this session");
EditorApplication.Exit(2);
}
}
}

View file

@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: 88f470014ea5fdd43a80ec1eba54b42a

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: dd00afc599e4d704696448c5fec05990

View file

@ -0,0 +1,303 @@
using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Reflection;
using UnityEditor;
using UnityEditor.SceneManagement;
using UnityEngine;
using UnityEngine.EventSystems;
using UnityEngine.UI;
using int2 = CultMath.int2;
// The inventory panels in a real play session (map IG-S9): the Duel test arena (the player's Longinus carries a Store-All Plus cargo bay,
// a hostile Longinus is placed in the zone) is launched through MainMenu.Launch from the Main Menu scene, and each state of the panels is
// asserted and written as a PNG of the game's overlay canvases at 1920x1080 (hud, enemy, pulse, menu, cargo, highlight, drag, hover,
// thermal). The PNGs are the operator's evidence, not a gate; any failed assertion exits 1.
//
// Unity -batchmode -projectPath <project> -executeMethod InventoryPanelsPlayCapture.Run -pngOut <dir> -logFile <log>
//
// Needs a GPU device; do not pass -nographics or -quit. Run enters play mode (a domain reload), the check runs there as an
// EditorApplication.update stepper with a 300 s real-time budget, and the Editor exits itself, 0 or 1. The overlay canvases are switched to
// ScreenSpaceCamera for the frame a capture renders through a camera into a 1920x1080 RenderTexture, then restored.
[InitializeOnLoad]
public static class InventoryPanelsPlayCapture
{
private const string Flag = "InventoryPanelsPlayCapture.running";
private const string PngKey = "InventoryPanelsPlayCapture.png";
private const double Budget = 300;
// The check and the enumerators it yields (a state's capture), stepped one yield per editor update.
private static readonly Stack<IEnumerator> Steps = new Stack<IEnumerator>();
private static double _started;
private static string _png;
static InventoryPanelsPlayCapture()
{
if (SessionState.GetBool(Flag, false)) EditorApplication.playModeStateChanged += OnPlayMode;
}
private static void Log(string line) => Debug.Log("[InventoryPanelsPlayCapture] " + line);
public static void Run()
{
try
{
var args = Environment.GetCommandLineArgs();
var at = Array.IndexOf(args, "-pngOut");
if (at < 0 || at + 1 >= args.Length) throw new InvalidOperationException("-pngOut <dir> is required.");
Directory.CreateDirectory(args[at + 1]);
SessionState.SetString(PngKey, Path.GetFullPath(args[at + 1]));
EditorSceneManager.playModeStartScene = AssetDatabase.LoadAssetAtPath<SceneAsset>("Assets/Scenes/Main Menu.unity")
?? throw new InvalidOperationException("No Assets/Scenes/Main Menu.unity.");
SessionState.SetBool(Flag, true);
EditorApplication.EnterPlaymode();
}
catch (Exception exception)
{
Debug.LogException(exception);
EditorApplication.Exit(1);
}
}
private static void OnPlayMode(PlayModeStateChange change)
{
if (change != PlayModeStateChange.EnteredPlayMode) return;
_png = SessionState.GetString(PngKey, "");
_started = Time.realtimeSinceStartupAsDouble;
Steps.Push(Check());
EditorApplication.update += Step;
}
private static void Step()
{
try
{
if (Time.realtimeSinceStartupAsDouble - _started > Budget) throw new InvalidOperationException($"The capture did not finish in {Budget} seconds.");
while (Steps.Count > 0)
{
var top = Steps.Peek();
if (!top.MoveNext()) { Steps.Pop(); continue; }
if (top.Current is IEnumerator nested) { Steps.Push(nested); continue; }
return;
}
Finish(0);
}
catch (Exception exception)
{
Debug.LogException(exception);
Finish(1);
}
}
private static void Finish(int code)
{
EditorApplication.update -= Step;
SessionState.SetBool(Flag, false);
EditorSceneManager.playModeStartScene = null;
Log(code == 0 ? "PASS" : "FAILED");
ClearDirtyAssets();
EditorApplication.Exit(code);
}
// A play session modifies the assets it loads (render texture descriptors, material properties set from code) and the exit saves them.
// The capture leaves the project as it found it: the dirty flag of every persistent object is cleared first, and logged by path.
private static void ClearDirtyAssets()
{
var cleared = new SortedSet<string>();
foreach (var asset in Resources.FindObjectsOfTypeAll<UnityEngine.Object>())
{
if (!EditorUtility.IsPersistent(asset) || !EditorUtility.IsDirty(asset)) continue;
EditorUtility.ClearDirty(asset);
cleared.Add(AssetDatabase.GetAssetPath(asset));
}
Log($"cleared the dirty flag of persistent assets: {(cleared.Count == 0 ? "none" : string.Join(", ", cleared))}");
}
private static void Require(bool condition, string what)
{
if (!condition) throw new InvalidOperationException("assertion failed: " + what);
Log("ok: " + what);
}
private static int Present(InventoryGrid grid)
{
var count = 0;
for (var y = 0; y < grid.Height; y++)
for (var x = 0; x < grid.Width; x++)
if (grid.RecordAt(new int2(x, y)).Present) count++;
return count;
}
private static uint Pack(Color32 c) => (uint) c.r << 24 | (uint) c.g << 16 | (uint) c.b << 8 | c.a;
// The game's overlay canvases drawn through a camera into a 1920x1080 RenderTexture and written as <state>.png: each root canvas that
// is an overlay is switched to ScreenSpaceCamera for the frames the render needs, then restored.
private static IEnumerator Snap(string state)
{
for (var i = 0; i < 3; i++) yield return null;
var cameraObject = new GameObject("Capture camera");
var camera = cameraObject.AddComponent<Camera>();
camera.orthographic = true;
camera.orthographicSize = 5;
camera.clearFlags = CameraClearFlags.SolidColor;
camera.backgroundColor = new Color(.1f, .1f, .12f, 1f);
camera.cullingMask = 1 << LayerMask.NameToLayer("UI");
camera.enabled = false;
var target = new RenderTexture(1920, 1080, 24, RenderTextureFormat.ARGB32);
camera.targetTexture = target;
var canvases = UnityEngine.Object.FindObjectsByType<Canvas>(FindObjectsSortMode.None)
.Where(c => c.isRootCanvas && c.renderMode == RenderMode.ScreenSpaceOverlay && c.gameObject.activeInHierarchy).ToList();
var saved = canvases.Select(c => (c, c.worldCamera, c.planeDistance)).ToList();
foreach (var canvas in canvases)
{
canvas.renderMode = RenderMode.ScreenSpaceCamera;
canvas.worldCamera = camera;
canvas.planeDistance = 10;
}
for (var i = 0; i < 3; i++) yield return null;
Canvas.ForceUpdateCanvases();
foreach (var grid in UnityEngine.Object.FindObjectsByType<InventoryGrid>(FindObjectsSortMode.None)) grid.Flush();
camera.Render();
var previous = RenderTexture.active;
RenderTexture.active = target;
var read = new Texture2D(1920, 1080, TextureFormat.RGBA32, false);
read.ReadPixels(new Rect(0, 0, 1920, 1080), 0, 0);
RenderTexture.active = previous;
var path = Path.Combine(_png, $"play-{state}.png");
File.WriteAllBytes(path, read.EncodeToPNG());
UnityEngine.Object.Destroy(read);
foreach (var (canvas, worldCamera, plane) in saved)
{
canvas.renderMode = RenderMode.ScreenSpaceOverlay;
canvas.worldCamera = worldCamera;
canvas.planeDistance = plane;
}
UnityEngine.Object.Destroy(cameraObject);
target.Release();
UnityEngine.Object.Destroy(target);
Log($"wrote {path} ({canvases.Count} overlay canvases)");
yield return null;
}
private static PointerEventData Pointer(Vector2 position, Vector2? press = null) => new PointerEventData(EventSystem.current)
{
position = position, pressPosition = press ?? position, button = PointerEventData.InputButton.Left
};
// Overlay canvases: a cell's world position is its screen position.
private static Vector2 Centre(InventoryGrid grid, int2 v) => grid.rectTransform.TransformPoint(grid.CellRect(v).center);
private static IEnumerator Check()
{
// The Main Menu scene: launch the Duel arena, whose player ship carries a cargo bay and has another ship in the zone.
MainMenu menu = null;
while (!(menu = UnityEngine.Object.FindFirstObjectByType<MainMenu>())) yield return null;
for (var i = 0; i < 30; i++) yield return null;
var scenario = Scenarios.Tests.First(s => s.Id == "duel");
Log($"launching {scenario.Name} ({scenario.Id}): the player's Longinus fits a Store-All Plus cargo bay, a hostile Longinus is placed 900 m away");
menu.Launch(scenario);
ActionGameManager game = null;
while (!((game = ActionGameManager.Instance) && game.CurrentEntity != null && game.ShipPanel && game.ShipPanel.Grid.Width > 0)) yield return null;
for (var i = 0; i < 60; i++) yield return null;
var ship = game.CurrentEntity;
var other = game.Zone.Entities.First(e => e != ship && e is Ship);
var bay = ship.CargoBays.FirstOrDefault();
Require(bay != null, $"the player's {ship.Name} carries a cargo bay ({bay?.Data.Name})");
Log($"player {ship.Name}, other ship {other.Name}");
// hud
var hud = game.ShipPanel;
Require(Present(hud.Grid) > 0 && !hud.Interactive && hud.Grid.GetComponents<UniRx.Triggers.ObservableTriggerBase>().Length == 0, $"the HUD panel draws {Present(hud.Grid)} cells through its grid and takes no pointer input");
yield return Snap("hud");
// enemy: the one target slot names the other ship
typeof(Entity).GetMethod("SetTarget", BindingFlags.Instance | BindingFlags.NonPublic).Invoke(ship, new object[] { new TargetRef(other) });
for (var i = 0; i < 10; i++) yield return null;
var enemy = game.TargetShipPanel;
Require(enemy.gameObject.activeInHierarchy && Present(enemy.Grid) > 0 && enemy.Flip, $"the enemy panel shows {other.Name} through a flipped grid ({Present(enemy.Grid)} cells)");
yield return Snap("enemy");
// pulse: an armor hit makes the cell's background differ from CellBackgroundColor until CellHitPulseTime has passed
var hit = FirstPresent(hud.Grid);
var background = (Color32) hud.CellBackgroundColor;
Require(Pack(hud.Grid.RecordAt(hit).Background) == Pack(background), "before the hit the cell's background is CellBackgroundColor");
ship.ArmorDamage.OnNext((hit, 5f));
Require(Pack(hud.Grid.RecordAt(hit).Background) != Pack(background), "an ArmorDamage hit makes the cell's RecordAt background differ from CellBackgroundColor");
yield return Snap("pulse");
var until = Time.time + hud.CellHitPulseTime + .5f;
while (Time.time < until) yield return null;
Require(Pack(hud.Grid.RecordAt(hit).Background) == Pack(background), $"after CellHitPulseTime ({hud.CellHitPulseTime:F2} s) it is CellBackgroundColor again");
// menu and cargo
game.Menu.ShowTab(MenuTab.Inventory);
for (var i = 0; i < 20; i++) yield return null;
var cargoPanel = game.Inventory.InventoryPanels[0];
var equipmentPanel = game.Inventory.InventoryPanels[1];
Require(Present(equipmentPanel.Grid) > 0 && equipmentPanel.Interactive, $"the menu's equipment panel draws {Present(equipmentPanel.Grid)} cells and takes pointer input");
yield return Snap("menu");
var items = game.ItemManager;
foreach (var commodity in items.ItemData.GetAll<SimpleCommodityData>().Take(3))
bay.TryStore(new SimpleCommodity { Data = items.ItemData.RefOf<ItemData>(commodity), Quantity = 1 });
cargoPanel.Display(bay);
for (var i = 0; i < 5; i++) yield return null;
Require(Present(cargoPanel.Grid) == bay.Data.InteriorShape.Coordinates.Length && cargoPanel.Grid.Thermal == false, $"the cargo panel draws the bay's {Present(cargoPanel.Grid)} cells, holding {bay.Occupancy.Cast<ItemInstance>().Where(i => i != null).Distinct().Count()} items");
yield return Snap("cargo");
// highlight: a click on an item cell
var fitted = ship.Equipment.Where(e => e.EquippableItem != null).OrderBy(e => e.Data.Shape.Coordinates.Length).First();
var hull = (HullData) game.ItemManager.GetData(ship.Hull);
var itemCells = hull.Shape.Inset(fitted.Data.Shape, fitted.Position, fitted.EquippableItem.Rotation).Coordinates;
var grid = equipmentPanel.Grid;
var click = Pointer(Centre(grid, itemCells[0]));
ExecuteEvents.Execute(grid.gameObject, click, ExecuteEvents.pointerClickHandler);
Require(itemCells.All(v => Pack(grid.RecordAt(v).Icon) == Pack(equipmentPanel.GetColor(v, true))) && itemCells.All(v => Pack(equipmentPanel.GetColor(v, true)) != Pack(equipmentPanel.GetColor(v))),
$"a click on {fitted.Data.Name} highlights its {itemCells.Length} cells");
yield return Snap("highlight");
// a click on a different item un-highlights the first: its cells draw their plain colour again, the second item's the highlight colour
var second = ship.Equipment.Where(e => e.EquippableItem != null && e.EquippableItem != fitted.EquippableItem).OrderBy(e => e.Data.Shape.Coordinates.Length).FirstOrDefault();
Require(second != null, "a second fitted item exists to click");
var secondCells = hull.Shape.Inset(second.Data.Shape, second.Position, second.EquippableItem.Rotation).Coordinates;
ExecuteEvents.Execute(grid.gameObject, Pointer(Centre(grid, secondCells[0])), ExecuteEvents.pointerClickHandler);
Require(itemCells.All(v => Pack(grid.RecordAt(v).Icon) == Pack(equipmentPanel.GetColor(v, false))) && secondCells.All(v => Pack(grid.RecordAt(v).Icon) == Pack(equipmentPanel.GetColor(v, true))),
$"a click on {second.Data.Name} un-highlights {fitted.Data.Name} and highlights its own {secondCells.Length} cells");
// drag: the ghost; hover: the other panel's FakeOccupancy
var press = Centre(grid, itemCells[0]);
ExecuteEvents.Execute(grid.gameObject, Pointer(press), ExecuteEvents.beginDragHandler);
var ghost = equipmentPanel.DragGhost;
Require(ghost.gameObject.activeSelf && Present(ghost) == itemCells.Length, "a begin drag shows the drag ghost with the item's cells");
ExecuteEvents.Execute(grid.gameObject, Pointer(press + new Vector2(120, 40), press), ExecuteEvents.dragHandler);
yield return Snap("drag");
var cargoGrid = cargoPanel.Grid;
var emptied = bay.Occupancy.Cast<ItemInstance>().Where(i => i != null).Distinct().ToArray();
foreach (var stored in emptied) bay.Remove(stored);
cargoPanel.RefreshCells();
var offset = fitted.Position - itemCells[0];
var target = bay.Data.InteriorShape.AllCoordinates.FirstOrDefault(h => bay.Data.InteriorShape[h] && bay.ItemFits(fitted.EquippableItem, h + offset));
Require(bay.ItemFits(fitted.EquippableItem, target + offset), "the dragged item fits the emptied bay");
ExecuteEvents.Execute(cargoGrid.gameObject, Pointer(Centre(cargoGrid, target)), ExecuteEvents.pointerMoveHandler);
Require(cargoPanel.FakeOccupancy != null && cargoPanel.FakeOccupancy.Coordinates.Length > 0, "the pointer over a fitting cell sets the other panel's FakeOccupancy");
yield return Snap("hover");
ExecuteEvents.Execute(cargoGrid.gameObject, Pointer(Centre(cargoGrid, target)), ExecuteEvents.pointerExitHandler);
ExecuteEvents.Execute(grid.gameObject, Pointer(press + new Vector2(120, 40), press), ExecuteEvents.endDragHandler);
Require(!ghost.gameObject.activeSelf && cargoPanel.FakeOccupancy == null, "the drag ends: ghost hidden, FakeOccupancy cleared");
// thermal: the Thermal button
equipmentPanel.Thermal.onClick.Invoke();
for (var i = 0; i < 5; i++) yield return null;
Require(equipmentPanel.Grid.Thermal && Enumerable.Range(0, grid.Height).SelectMany(y => Enumerable.Range(0, grid.Width).Select(x => grid.RecordAt(new int2(x, y)))).Any(r => r.Present && r.Conductivity != 0),
"the Thermal button switches the grid to the pipes view with conducting cells");
yield return Snap("thermal");
}
private static int2 FirstPresent(InventoryGrid grid)
{
for (var y = 0; y < grid.Height; y++)
for (var x = 0; x < grid.Width; x++)
if (grid.RecordAt(new int2(x, y)).Present) return new int2(x, y);
throw new InvalidOperationException("The grid has no present cell.");
}
}

View file

@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: 901479284564b1d44a6e766e7c8a0a46

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: 961a55f8990ee804faf3edd6d76b3268

View file

@ -0,0 +1,281 @@
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using Aetheria.EditorTools;
using UnityEditor;
using UnityEditor.SceneManagement;
using UnityEngine;
using UnityEngine.Rendering;
using UnityEngine.UI;
// Batchmode play check for campaign aetheria-release, cut isoline-wiring (ported from the soul pass's IsolinePlayProbe): the only check that
// runs IsolineView.LateUpdate. It boots a Duel through MainMenu.Launch and asserts that both views draw (target, wiring, coverage), that
// the map screen releases on close and draws again on reopen, that a pan moves no contour on the live pose cameras (the bound of
// IsolineRenderSmoke's anchor check, many poses, the live terms), and that an overflow logs one warning per view.
//
// Needs a graphics device: run WITHOUT -nographics and without -quit; it exits the Editor itself, 0 on success.
// Unity -batchmode -projectPath <repo> -executeMethod IsolinePlayCheck.Run -logFile <path>
[InitializeOnLoad]
public static class IsolinePlayCheck
{
const string Tag = "[IsolinePlayCheck]";
const string Flag = "IsolinePlayCheck.running";
const double Budget = 540;
const BindingFlags Any = BindingFlags.Instance | BindingFlags.NonPublic | BindingFlags.Public;
static readonly Stack<IEnumerator> Steps = new Stack<IEnumerator>();
static readonly List<string> Fails = new List<string>();
static readonly List<string> Warnings = new List<string>();
static double _started;
static int _errors;
static IsolinePlayCheck()
{
if (SessionState.GetBool(Flag, false)) EditorApplication.playModeStateChanged += OnPlayMode;
}
static void Log(string line) => Debug.Log($"{Tag} {line}");
public static void Run()
{
try
{
EditorSceneManager.playModeStartScene = AssetDatabase.LoadAssetAtPath<SceneAsset>("Assets/Scenes/Main Menu.unity")
?? throw new InvalidOperationException("No Main Menu scene.");
SessionState.SetBool(Flag, true);
EditorApplication.EnterPlaymode();
}
catch (Exception exception) { Debug.LogException(exception); EditorApplication.Exit(1); }
}
static void OnPlayMode(PlayModeStateChange change)
{
if (change != PlayModeStateChange.EnteredPlayMode) return;
_started = Time.realtimeSinceStartupAsDouble;
Application.logMessageReceived += OnLog;
Steps.Push(Play());
EditorApplication.update += Step;
}
static void OnLog(string condition, string stack, LogType type)
{
// Other systems' errors (the console view, the editor's indexer) are counted, not failed: only an isoline error fails the check.
if (type == LogType.Error || type == LogType.Exception || type == LogType.Assert)
{
_errors++;
if (stack.Contains("Isoline") || condition.Contains("Isoline")) Fails.Add($"logged {type}: {condition}");
}
else if (type == LogType.Warning) Warnings.Add(condition);
}
static void Step()
{
try
{
if (Time.realtimeSinceStartupAsDouble - _started > Budget) throw new InvalidOperationException($"did not finish in {Budget} s");
while (Steps.Count > 0)
{
var top = Steps.Peek();
if (!top.MoveNext()) { Steps.Pop(); continue; }
if (top.Current is IEnumerator nested) { Steps.Push(nested); continue; }
return;
}
Finish();
}
catch (Exception exception) { Debug.LogException(exception); Fails.Add(exception.Message); Finish(); }
}
static void Finish()
{
EditorApplication.update -= Step;
Application.logMessageReceived -= OnLog;
SessionState.SetBool(Flag, false);
EditorSceneManager.playModeStartScene = null;
Log($"errors logged during the run: {_errors}; failures: {Fails.Count}");
foreach (var f in Fails) Log(" FAIL " + f);
Log(Fails.Count == 0 ? "PASS" : "FAILED");
EditorApplication.Exit(Fails.Count == 0 ? 0 : 1);
}
static void Check(bool condition, string what)
{
if (!condition) Fails.Add(what);
Log((condition ? "ok: " : "FAIL: ") + what);
}
static T Get<T>(object o, string field) => (T)o.GetType().GetField(field, Any).GetValue(o);
static int Covered(RenderTexture rt)
{
var previous = RenderTexture.active;
RenderTexture.active = rt;
var tex = new Texture2D(rt.width, rt.height, TextureFormat.RGBAHalf, false);
tex.ReadPixels(new Rect(0, 0, rt.width, rt.height), 0, 0);
RenderTexture.active = previous;
var covered = tex.GetPixels().Count(p => p.a > .05f);
UnityEngine.Object.Destroy(tex);
return covered;
}
static GameSettings.IsolineViewSettings SettingsOf(IsolineView view) =>
view.View == IsolineView.Kind.Map ? view.ZoneRenderer.Settings.MapIsolines : view.ZoneRenderer.Settings.MinimapIsolines;
static Vector2Int TargetSizeOf(IsolineView view) => (Vector2Int)typeof(IsolineView).GetMethod("TargetSize", Any).Invoke(view, null);
struct Frame { public Vector2 origin, perTexel; public Vector2Int size; public IsolineExtractor.IsoSegment[] segments; }
// The grid of the live pose camera extracted in this frame from the live terms: every pose reads the same field, so only the grid moves.
static Frame ExtractNow(IsolineView view)
{
var renderer = Get<IsolineRenderer>(view, "_renderer");
IsolineView.Grid(view.PoseCamera, TargetSizeOf(view), Mathf.Max(SettingsOf(view).CellPixels, 1), out var o, out var p, out var s);
var levels = new IsolineExtractor.IsolineLevels(0f, view.ZoneRenderer.Map.ContourRange, 1e-3f);
var command = new CommandBuffer { name = "IsolinePlayCheck" };
renderer.Extractor.Extract(command, view.ZoneRenderer.Terms, o, p, s, levels);
Graphics.ExecuteCommandBuffer(command);
command.Release();
var count = new uint[2];
renderer.Extractor.Count.GetData(count);
var n = (int)Mathf.Min(count[0], renderer.Extractor.Capacity);
var segments = new IsolineExtractor.IsoSegment[n];
renderer.Extractor.Segments.GetData(segments, 0, 0, n);
return new Frame { origin = o, perTexel = p, size = s, segments = segments };
}
static (Vector2 lo, Vector2 hi) Reach(Frame f)
{
var end = f.origin + new Vector2((f.size.x - 1) * f.perTexel.x, (f.size.y - 1) * f.perTexel.y);
return (Vector2.Min(f.origin, end), Vector2.Max(f.origin, end));
}
static float Distance(Vector2 p, Vector2 a, Vector2 b)
{
var ab = b - a;
var t = ab.sqrMagnitude < 1e-20f ? 0f : Mathf.Clamp01(Vector2.Dot(p - a, ab) / ab.sqrMagnitude);
return (p - (a + ab * t)).magnitude;
}
// Worst distance, in steps, of the moved grid's interior vertices (every 6th) from the first grid's polyline of the same key.
static double Deviation(Frame a, Frame b, double step, out int vertices)
{
var ra = Reach(a); var rb = Reach(b);
var margin = new Vector2((float)step, (float)step) * 2;
var lo = Vector2.Max(ra.lo, rb.lo) + margin;
var hi = Vector2.Min(ra.hi, rb.hi) - margin;
bool In(Vector2 q) => q.x >= lo.x && q.x <= hi.x && q.y >= lo.y && q.y <= hi.y;
var byKey = a.segments.Where(s => In(s.a) || In(s.b)).GroupBy(s => s.key).ToDictionary(g => g.Key, g => g.ToArray());
var sample = b.segments.Where(s => In(s.a) && In(s.b)).Where((_, k) => k % 6 == 0).ToArray();
vertices = sample.Length;
double worst = 0;
foreach (var s in sample)
{
if (!byKey.TryGetValue(s.key, out var list)) { worst = Math.Max(worst, 1e3); continue; }
var best = float.MaxValue;
foreach (var t in list) best = Mathf.Min(best, Distance(s.a, t.a, t.b));
worst = Math.Max(worst, best / step);
}
return worst;
}
// Grids of the live pose camera at poses around its home and at that pose moved by (0.37, 0.61) of a step, from the live terms.
static IEnumerator Pan(IsolineView view, string label, float radius, int poses)
{
yield return null;
var camera = view.PoseCamera;
var home = camera.transform.position;
Frame At(Vector2 p) { camera.transform.position = new Vector3(p.x, home.y, p.y); return ExtractNow(view); }
var rng = new System.Random(5);
var usable = 0;
double worst = 0;
for (var i = 0; i < poses; i++)
{
var p = new Vector2(home.x, home.z) + new Vector2((float)(rng.NextDouble() * 2 - 1) * radius, (float)(rng.NextDouble() * 2 - 1) * radius);
var a = At(p);
var b = At(p + new Vector2(.37f * Mathf.Abs(a.perTexel.x), .61f * Mathf.Abs(a.perTexel.y)));
var d = Deviation(a, b, Mathf.Abs(a.perTexel.x), out var vertices);
if (vertices < 30) continue;
usable++;
worst = Math.Max(worst, d);
}
camera.transform.position = home;
Log($"{label} pan: {usable} usable poses of {poses} within +-{radius} u, worst vertex deviation {worst:G3} step (bound {IsolineRenderSmoke.AnchorBound})");
Check(usable >= poses / 2, $"{label}: the pan test is not vacuous ({usable} usable poses)");
Check(worst <= IsolineRenderSmoke.AnchorBound, $"{label}: a pan by a fraction of a step moves no vertex off its contour ({worst:G3} step)");
yield return null;
}
static IEnumerator Play()
{
MainMenu menu = null;
while (!(menu = UnityEngine.Object.FindFirstObjectByType<MainMenu>())) yield return null;
for (var i = 0; i < 30; i++) yield return null;
var scenario = Scenarios.Tests.First(s => s.Id == "duel");
Log($"Screen {Screen.width}x{Screen.height}; device {SystemInfo.graphicsDeviceName}; launching {scenario.Name}");
menu.Launch(scenario);
ActionGameManager game = null;
while (!((game = ActionGameManager.Instance) && game.CurrentEntity != null && game.ShipPanel && game.ShipPanel.Grid.Width > 0)) yield return null;
for (var i = 0; i < 90; i++) yield return null;
Check(ActionGameManager.RunLive, "the game is live");
var views = UnityEngine.Object.FindObjectsByType<IsolineView>(FindObjectsInactive.Include, FindObjectsSortMode.None);
var mini = views.First(v => v.View == IsolineView.Kind.Minimap);
var map = views.First(v => v.View == IsolineView.Kind.Map);
// minimap: LateUpdate ran, the RawImage shows the target, the target carries contours
var miniTarget = Get<RenderTexture>(mini, "_target");
Check(miniTarget != null, "the minimap view's target exists: LateUpdate ran in play");
Check(miniTarget != null && ((RawImage)mini.GetComponent<Graphic>()).texture == miniTarget, "RawImage.texture is the minimap target");
Check(miniTarget != null && Covered(miniTarget) > 200, "the minimap target carries contours");
var follow = mini.PoseCamera.GetComponent<CopyTransform>();
if (follow != null) follow.enabled = false;
yield return Pan(mini, "minimap", 1500f, 20);
if (follow != null) follow.enabled = true;
// map screen: an instance of the template carries the target; the template is never written. The zone fills the screen at
// this scale whatever the Screen size (a batchmode Game view is 640 x 480).
game.Menu.ShowTab(MenuTab.Map);
var mapRenderer = UnityEngine.Object.FindFirstObjectByType<MapRenderer>();
mapRenderer.Scale = 4000f / Screen.height;
var enough = Screen.width * Screen.height / 400;
for (var i = 0; i < 30; i++) yield return null;
var mapTarget = Get<RenderTexture>(map, "_target");
Check(mapTarget != null, "the map view's target exists: LateUpdate ran in play");
var instance = Get<Material>(map, "_instance");
var template = Get<Material>(map, "_template");
var image = map.GetComponent<Graphic>();
Check(instance != null && image.material == instance && instance.GetTexture("_DetailTex") == mapTarget, "the Image draws a material instance whose _DetailTex is the target");
Check(template != null && template != instance && template.GetTexture("_DetailTex") != mapTarget, "the shared template material was never written");
Check(mapTarget != null && mapTarget.width == Screen.width && mapTarget.height == Screen.height, "the map target is Screen-sized");
Check(mapTarget != null && Covered(mapTarget) > enough, "the map target carries contours");
yield return Pan(map, "map", 1500f, 31);
// closing the map releases, reopening draws again
game.Menu.ShowTab(MenuTab.Inventory);
for (var i = 0; i < 20; i++) yield return null;
Check(Get<RenderTexture>(map, "_target") == null && Get<Material>(map, "_instance") == null, "closing the map releases the target and the instance");
Check(image.material == template, "closing the map puts the template material back on the Image");
game.Menu.ShowTab(MenuTab.Map);
for (var i = 0; i < 20; i++) yield return null;
var again = Get<RenderTexture>(map, "_target");
Check(again != null && Covered(again) > enough, "reopening the map draws again");
// overflow: one warning per view, then no second
var settings = mini.ZoneRenderer.Settings;
var saveMini = settings.MinimapIsolines;
var saveMap = settings.MapIsolines;
Warnings.Clear();
var m = saveMini; m.SegmentCapacity = 100; settings.MinimapIsolines = m;
for (var i = 0; i < 800; i++) yield return null;
var miniWarnings = Warnings.Where(w => w.Contains("isolines overflowed")).ToList();
Check(miniWarnings.Count == 1 && miniWarnings[0].StartsWith("Minimap"), $"the minimap view logs exactly one overflow warning in 800 frames ({miniWarnings.Count})");
settings.MinimapIsolines = saveMini;
Warnings.Clear();
var mm = saveMap; mm.PoolCapacity = 100; settings.MapIsolines = mm;
for (var i = 0; i < 400; i++) yield return null;
var mapWarnings = Warnings.Where(w => w.Contains("isolines overflowed")).ToList();
Check(mapWarnings.Count == 1 && mapWarnings[0].StartsWith("Map"), $"the map view logs exactly one overflow warning ({mapWarnings.Count})");
settings.MapIsolines = saveMap;
}
}

View file

@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: e50d7fff7160807408e7ea2ddbe3f02a

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: 87b6207c8e82c354b878bc6c6c6aee5d

View file

@ -63,7 +63,7 @@ public static class MapBeltPerf
}, pack, new GalaxyZone { Name = "Perf", Owner = null }, null);
var transforms = new float4[count];
var presenter = new MapPresenter(new Material[0], AssetDatabase.LoadAssetAtPath<Material>("Assets/Materials/UI/MapAsteroid.mat"), 4, 4, 3f);
var presenter = new MapPresenter(AssetDatabase.LoadAssetAtPath<Material>("Assets/Materials/UI/MapAsteroid.mat"), 4, 4, 3f);
presenter.RegisterBelt(beltKey, transforms);
var baseBelt = new MapBeltPerfBase(zone, zone.AsteroidBelts[beltKey], 4, 4, 3f);

View file

@ -136,7 +136,7 @@ public static class MapPresenterSmoke
ship.Direction = float2(Mathf.Sin(40 * Mathf.Deg2Rad), Mathf.Cos(40 * Mathf.Deg2Rad));
typeof(Ship).GetProperty("Rotation", Any).GetSetMethod(true).Invoke(ship, new object[] { new CultMath.quaternion(pose.x, pose.y, pose.z, pose.w) });
var map = new MapPresenter(new Material[0], AssetDatabase.LoadAssetAtPath<Material>("Assets/Materials/UI/MapAsteroid.mat"), 4, 4, 3f);
var map = new MapPresenter(AssetDatabase.LoadAssetAtPath<Material>("Assets/Materials/UI/MapAsteroid.mat"), 4, 4, 3f);
var roots = new GameObject("Smoke Roots").transform;
EntityInstance Bound(Entity entity)
{
@ -152,7 +152,6 @@ public static class MapPresenterSmoke
instance.MapIcon = NewIcon(body.transform, flatIcons);
var zoneRenderer = new GameObject("Smoke Zone Renderer").AddComponent<ZoneRenderer>();
zoneRenderer.Settings = settings;
zoneRenderer.MapGravityMaterials = new Material[0];
Awaken(zoneRenderer);
typeof(ZoneRenderer).GetProperty("Map").GetSetMethod(true).Invoke(zoneRenderer, new object[] { map });
instance.SetEntity(zoneRenderer, entity);

View file

@ -15,6 +15,9 @@ using UnityEngine;
// accepts it, so it composes, and the importer cannot build it, so Preload faults Loading with ImportFault naming it.
// RemovePackage then moves it aside and the next Compose leaves it out.
//
// A Station package takes the same path to an EntityInstance with no ShipInstance (a station does not fly), checked without
// thruster or weapon asserts; its .broken sibling swaps the map-icon anchor with the shield anchor, which has no mesh.
//
// Unity -batchmode -nographics -projectPath <project> -executeMethod ShipModPlaySmoke.Run
// -shipModPath <mods>/<id>/ship.cc [-shippedCatalog GameData/Aetheria.cc] -logFile <log>
//
@ -39,11 +42,12 @@ public static class ShipModPlaySmoke
if (packagePath == null) throw new InvalidOperationException("-shipModPath <package/ship.cc> is required");
var package = ShipModCatalog.ReadPackage(packagePath);
Install(package.Visual.Id, package, modsRoot, Path.GetFullPath(packagePath));
var station = package.Hull.HullType == HullType.Station;
var broken = InstallSibling(package, modsRoot, ".broken", ship =>
{
var mapIcon = ship.Anchors.Single(anchor => anchor.Role == "map-icon");
var muzzle = ship.Anchors.First(anchor => anchor.Role == "weapon-muzzle");
(mapIcon.ModelNodeId, muzzle.ModelNodeId) = (muzzle.ModelNodeId, mapIcon.ModelNodeId);
var meshless = station ? ship.Anchors.Single(anchor => anchor.Role == "shield") : ship.Anchors.First(anchor => anchor.Role == "weapon-muzzle");
(mapIcon.ModelNodeId, meshless.ModelNodeId) = (meshless.ModelNodeId, mapIcon.ModelNodeId);
}, null);
var shipped = Path.GetFullPath(Option("-shippedCatalog", "GameData/Aetheria.cc"));
var composition = ShipModCatalog.Compose(shipped, derived, modsRoot);
@ -60,13 +64,23 @@ public static class ShipModPlaySmoke
var hull = Hull(package.Hull.Name);
zone = new GameObject("Play Smoke Zone");
var ship = ShipModShips.Instantiate(hull, zone.transform).GetComponent<ShipInstance>();
if (ship == null) throw new InvalidOperationException("The mod ship body has no ShipInstance.");
var body = ShipModShips.Instantiate(hull, zone.transform);
var ship = body.GetComponent<EntityInstance>();
if (ship == null) throw new InvalidOperationException("The mod hull's body has no EntityInstance.");
var thrusters = ship.ThrusterHardpoints?.Length ?? 0;
var weapons = ship.WeaponHardpoints?.Length ?? 0;
if (thrusters == 0) throw new InvalidOperationException("ThrusterHardpoints is empty.");
if (weapons == 0 || ship.WeaponHardpoints.Any(node => node.FiringPoint == null || node.FiringPoint.Length == 0))
throw new InvalidOperationException("WeaponHardpoints is empty or a weapon has no muzzle.");
if (station)
{
// A station renders as an EntityInstance: a ShipInstance would throw in Update (SetEntity returns before _thrusters).
if (body.GetComponent<ShipInstance>() != null) throw new InvalidOperationException("A station body must not carry a ShipInstance.");
}
else
{
if (ship is not ShipInstance) throw new InvalidOperationException("The mod ship body has no ShipInstance.");
if (thrusters == 0) throw new InvalidOperationException("ThrusterHardpoints is empty.");
if (weapons == 0 || ship.WeaponHardpoints.Any(node => node.FiringPoint == null || node.FiringPoint.Length == 0))
throw new InvalidOperationException("WeaponHardpoints is empty or a weapon has no muzzle.");
}
if (ship.HullColliders == null || ship.HullColliders.Length != 1)
throw new InvalidOperationException("The ship needs exactly one hull collider.");
var collider = ship.HullColliders[0].GetComponent<MeshCollider>();

View file

@ -47,17 +47,24 @@ public static class ShipModPreview
if (template == null) throw new InvalidOperationException($"{TemplatePath} is missing or has no ShipModTemplate.");
var plan = ShipModPlan.Build(package.Hull, package.Visual);
var ship = ShipModShips.Assemble(visual, package.Hull, package.Visual, template);
// A station is a plain EntityInstance: ShipInstance flies, and SetEntity would read thrusters it does not have.
if ((package.Hull.HullType == HullType.Ship) != (ship is ShipInstance))
throw new InvalidOperationException($"assembled: a {package.Hull.HullType} hull got {ship.GetType().Name}; only a Ship gets a ShipInstance.");
CheckShip(ship, plan, "assembled");
// Instantiate clones the assembled root, and Unity must remap every array reference into the clone.
var clone = UnityEngine.Object.Instantiate(ship.gameObject).GetComponent<ShipInstance>();
try { CheckShip(clone, plan, "clone"); CheckExhaust(clone); }
var clone = UnityEngine.Object.Instantiate(ship.gameObject).GetComponent<EntityInstance>();
try
{
CheckShip(clone, plan, "clone");
if (clone is ShipInstance flier) CheckExhaust(flier);
}
finally { UnityEngine.Object.DestroyImmediate(clone.gameObject); }
Debug.Log($"SHIP_MOD_ASSEMBLY_SMOKE thrusters={plan.Thrusters.Length} exhaust=ok collider=hidden " +
$"weapons={plan.Weapons.Length} radiators={plan.Radiators.Length}");
}
private static void CheckShip(ShipInstance ship, ShipModPlan plan, string what)
private static void CheckShip(EntityInstance ship, ShipModPlan plan, string what)
{
void Require(bool ok, string claim) { if (!ok) throw new InvalidOperationException($"{what}: {claim}"); }
bool Inside(Component part) => part != null && part.transform.IsChildOf(ship.transform);
@ -66,7 +73,8 @@ public static class ShipModPreview
Require(ship.HullColliders[0].GetComponentsInChildren<Renderer>(true).All(renderer =>
renderer.sharedMaterials.All(material => material == ship.InvisibleMaterial)),
"a hull collider that draws nothing");
Require(Inside(ship.MapIcon) && Inside(ship.Shield) && Inside(ship.TractorBeam), "map icon, shield and tractor inside the ship");
Require(Inside(ship.MapIcon) && Inside(ship.Shield) && (ship is not ShipInstance flier || Inside(flier.TractorBeam)),
"map icon, shield and tractor inside the ship");
Require(ship.ThrusterHardpoints.Select(node => node.name).SequenceEqual(plan.Thrusters) &&
ship.ThrusterHardpoints.All(node => Inside(node) && Inside(node.Emitter) &&
node.Emitter.sharedMaterials.All(material => material == ship.InvisibleMaterial)),

View file

@ -0,0 +1,252 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using Aetheria.FaunaDisplay;
using Newtonsoft.Json.Linq;
using Unity.Mathematics;
using UnityEditor;
using UnityEditor.AssetImporters;
using UnityEngine;
using UnityEngine.Rendering;
namespace Aetheria.EditorTools
{
/// <summary>
/// A .springrig file is a rig GLB (Brokkr's recipe export: a mesh, one skin, VRMC_springBone) and the one committed source of a
/// fauna rig asset (campaign aetheria-fauna, cut whale-rig-leviathan-asset). The importer derives from its bytes, and commits
/// nothing derived: the mesh in SpringSkin's layout, the base colour as a BC7 texture with mips, a material on Aetheria/FaunaSkinned,
/// a TextAsset of the GLB with its image bytes zeroed (SpringRig parses it at Awake; the rig reads no image), and a main object with
/// MeshFilter, MeshRenderer and SpringRig. SpringRigData.FromGlb decides whether the rig is acceptable and adds no rule here; glTFast
/// supplies the mesh in the same handedness as the rig (SpringRigData's mirror) and is used here and in VerifyGlb only.
/// </summary>
// The version is bumped whenever the importer's product changes (a Library keeps what an older importer made); the dependency on this
// script's own file reimports on any edit of it, so a forgotten bump cannot leave a stale asset behind.
[ScriptedImporter(2, "springrig")]
public sealed class SpringRigImporter : ScriptedImporter
{
public SwimSettings Swim = new SwimSettings { AmplitudeDegrees = 9f, PeriodSeconds = 3.2f, PhasePerBone = 0.1f, Axis = new float3(1, 0, 0) };
[Tooltip("The base colour is scaled down to at most this many texels a side before it is compressed.")]
public int MaxTextureSize = 4096;
public override void OnImportAsset(AssetImportContext ctx)
{
byte[] glb = File.ReadAllBytes(ctx.assetPath);
try { SpringRigData.FromGlb(glb); }
catch (Exception e) { ctx.LogImportError($"{ctx.assetPath}: not an acceptable rig: {e.Message}"); return; }
var (json, binAt) = Chunks(glb);
var mesh = ImportMesh(glb, out string refusal);
if (mesh == null) { ctx.LogImportError($"{ctx.assetPath}: {refusal}"); return; }
mesh.name = "mesh";
ctx.DependsOnSourceAsset("Assets/Scripts/Editor/SpringRigImporter.cs");
ctx.DependsOnSourceAsset("Assets/Shaders/FaunaSkinned.shader"); // the material needs the shader imported first, and reimports with it
var material = new Material(Shader.Find("Aetheria/FaunaSkinned")) { name = "material" };
var materialIndex = json["meshes"]?[0]?["primitives"]?[0]?["material"];
var pbr = materialIndex == null ? null : json["materials"]?[(int)materialIndex]?["pbrMetallicRoughness"];
material.SetFloat("_Glossiness", 1f - ((float?)pbr?["roughnessFactor"] ?? 1f));
material.SetFloat("_Metallic", 0f);
Texture2D albedo = null;
var image = BaseColorImage(json, binAt, glb);
if (image != null)
{
albedo = Albedo(image, Math.Max(MaxTextureSize, 4));
albedo.name = "albedo";
material.SetTexture("_MainTex", albedo);
}
// The rig's bytes with every image's bytes zeroed: FromGlb reads JSON and BIN only, and zeros compress.
var rigBytes = (byte[])glb.Clone();
foreach (var each in json["images"] as JArray ?? new JArray())
if (each["bufferView"] != null)
{
var view = json["bufferViews"][(int)each["bufferView"]];
Array.Clear(rigBytes, binAt + ((int?)view["byteOffset"] ?? 0), (int)view["byteLength"]);
}
var rig = new TextAsset(rigBytes) { name = "rig" };
var go = new GameObject(Path.GetFileNameWithoutExtension(ctx.assetPath));
go.AddComponent<MeshFilter>().sharedMesh = mesh;
var renderer = go.AddComponent<MeshRenderer>();
renderer.sharedMaterial = material;
var spring = go.AddComponent<SpringRig>();
spring.Renderer = renderer;
spring.Rig = rig;
spring.Swim = Swim;
ctx.AddObjectToAsset("main", go);
ctx.SetMainObject(go);
ctx.AddObjectToAsset("mesh", mesh);
ctx.AddObjectToAsset("material", material);
ctx.AddObjectToAsset("rig", rig);
if (albedo != null) ctx.AddObjectToAsset("albedo", albedo);
}
// glTFast loads the GLB and instantiates it once; the one skinned mesh is repacked into SpringSkin's layout.
static Mesh ImportMesh(byte[] glb, out string refusal)
{
refusal = null;
var gltf = new GLTFast.GltfImport(deferAgent: new GLTFast.UninterruptedDeferAgent());
var root = new GameObject("springrig-import");
try
{
bool ok = RunSync(async () => await gltf.Load(glb) && await gltf.InstantiateMainSceneAsync(root.transform));
var skinned = root.GetComponentsInChildren<SkinnedMeshRenderer>();
if (!ok || skinned.Length != 1) { refusal = ok ? $"expected one skinned mesh, glTFast made {skinned.Length}" : "glTFast did not import the GLB"; return null; }
var src = skinned[0].sharedMesh;
var weights = src.boneWeights;
var uv = src.uv;
return Pack(src.vertices, src.normals, uv.Length == src.vertexCount ? uv : new Vector2[src.vertexCount],
weights.Select(w => new Vector4(w.weight0, w.weight1, w.weight2, w.weight3)).ToArray(),
weights.SelectMany(w => new[] { (uint)w.boneIndex0, (uint)w.boneIndex1, (uint)w.boneIndex2, (uint)w.boneIndex3 }).ToArray(),
src.triangles);
}
finally
{
UnityEngine.Object.DestroyImmediate(root);
gltf.Dispose();
}
}
// The mesh as SpringSkin reads it: position and normal in stream 0, uv in 1, blend weights (Float32x4) and indices (UInt32x4)
// in 2. bones holds four indices per vertex. Also the layout of every synthetic mesh the checks build.
public static Mesh Pack(Vector3[] position, Vector3[] normal, Vector2[] uv, Vector4[] weight, uint[] bones, int[] triangles)
{
int n = position.Length;
var mesh = new Mesh { indexFormat = IndexFormat.UInt32 };
mesh.SetVertexBufferParams(n,
new VertexAttributeDescriptor(VertexAttribute.Position, VertexAttributeFormat.Float32, 3, 0),
new VertexAttributeDescriptor(VertexAttribute.Normal, VertexAttributeFormat.Float32, 3, 0),
new VertexAttributeDescriptor(VertexAttribute.TexCoord0, VertexAttributeFormat.Float32, 2, 1),
new VertexAttributeDescriptor(VertexAttribute.BlendWeight, VertexAttributeFormat.Float32, 4, 2),
new VertexAttributeDescriptor(VertexAttribute.BlendIndices, VertexAttributeFormat.UInt32, 4, 2));
// Unity wants position and normal, texcoords and the blend pair in streams 0, 1, 2 for a skinned mesh, and warns otherwise.
var stream0 = new float[n * 6]; var stream2 = new byte[n * 32];
for (int i = 0; i < n; i++)
{
Buffer.BlockCopy(new[] { position[i].x, position[i].y, position[i].z, normal[i].x, normal[i].y, normal[i].z }, 0, stream0, i * 24, 24);
Buffer.BlockCopy(new[] { weight[i].x, weight[i].y, weight[i].z, weight[i].w }, 0, stream2, i * 32, 16);
Buffer.BlockCopy(bones, i * 16, stream2, i * 32 + 16, 16);
}
mesh.SetVertexBufferData(stream0, 0, 0, n * 6, 0);
mesh.SetVertexBufferData(uv, 0, 0, n, 1);
mesh.SetVertexBufferData(stream2, 0, 0, stream2.Length, 2);
mesh.SetIndexBufferParams(triangles.Length, IndexFormat.UInt32);
mesh.SetIndexBufferData(triangles, 0, 0, triangles.Length);
mesh.subMeshCount = 1;
mesh.SetSubMesh(0, new SubMeshDescriptor(0, triangles.Length));
mesh.RecalculateBounds();
return mesh;
}
// The bytes of the image the first primitive's material names as its base colour, or null.
static byte[] BaseColorImage(JObject json, int binAt, byte[] glb)
{
var material = json["meshes"]?[0]?["primitives"]?[0]?["material"];
var index = material == null ? null : json["materials"]?[(int)material]?["pbrMetallicRoughness"]?["baseColorTexture"]?["index"];
var source = index == null ? null : json["textures"]?[(int)index]?["source"];
var view = source == null ? null : json["images"]?[(int)source]?["bufferView"];
if (view == null) return null;
var v = json["bufferViews"][(int)view];
var bytes = new byte[(int)v["byteLength"]];
Buffer.BlockCopy(glb, binAt + ((int?)v["byteOffset"] ?? 0), bytes, 0, bytes.Length);
return bytes;
}
// sRGB, mips, BC7. Scaled down first when larger than max. Every step is CPU work on the image's pixels (decode, area average,
// mip chain, BC7), so the product is the same with or without a graphics device (-nographics batch imports, CI, cache producers).
static Texture2D Albedo(byte[] image, int max)
{
var decoded = new Texture2D(2, 2, TextureFormat.RGBA32, false, false);
if (!decoded.LoadImage(image, false)) { UnityEngine.Object.DestroyImmediate(decoded); return null; }
int w = decoded.width, h = decoded.height, side = Math.Max(w, h);
var pixels = decoded.GetPixels32();
UnityEngine.Object.DestroyImmediate(decoded);
if (side > max)
{
int tw = Math.Max(1, w * max / side), th = Math.Max(1, h * max / side);
pixels = AreaAverage(pixels, w, h, tw, th);
w = tw; h = th;
}
var texture = new Texture2D(w, h, TextureFormat.RGBA32, true, false);
texture.SetPixels32(pixels);
texture.Apply(true);
EditorUtility.CompressTexture(texture, TextureFormat.BC7, TextureCompressionQuality.Normal);
return texture;
}
// Each target pixel is the mean of the source pixels it covers (box filter by source index ranges).
static Color32[] AreaAverage(Color32[] src, int w, int h, int tw, int th)
{
var dst = new Color32[tw * th];
for (int y = 0; y < th; y++)
{
int y0 = y * h / th, y1 = Math.Max(y0 + 1, (y + 1) * h / th);
for (int x = 0; x < tw; x++)
{
int x0 = x * w / tw, x1 = Math.Max(x0 + 1, (x + 1) * w / tw);
int r = 0, g = 0, bl = 0, a = 0, n = 0;
for (int sy = y0; sy < y1; sy++)
for (int sx = x0; sx < x1; sx++) { var p = src[sy * w + sx]; r += p.r; g += p.g; bl += p.b; a += p.a; n++; }
dst[y * tw + x] = new Color32((byte)((r + n / 2) / n), (byte)((g + n / 2) / n), (byte)((bl + n / 2) / n), (byte)((a + n / 2) / n));
}
}
return dst;
}
// The JSON chunk and the offset of the BIN chunk's data (the container SpringRigData.FromGlb reads).
static (JObject json, int binAt) Chunks(byte[] glb)
{
JObject json = null; int binAt = -1;
for (int at = 12; at + 8 <= glb.Length;)
{
int length = (int)BitConverter.ToUInt32(glb, at);
uint type = BitConverter.ToUInt32(glb, at + 4);
if (type == 0x4E4F534A) json = JObject.Parse(Encoding.UTF8.GetString(glb, at + 8, length));
else if (type == 0x004E4942 && binAt < 0) binAt = at + 8;
at += 8 + length;
}
return (json, binAt);
}
// glTFast's own importer drives its loader to completion this way (its AsyncHelpers.RunSync is internal): a context that runs
// every continuation on this thread, so Unity's API is only touched from it.
static bool RunSync(Func<Task<bool>> work)
{
var previous = SynchronizationContext.Current;
var loop = new Loop();
SynchronizationContext.SetSynchronizationContext(loop);
try { return loop.Run(work); }
finally { SynchronizationContext.SetSynchronizationContext(previous); }
}
sealed class Loop : SynchronizationContext
{
readonly Queue<(SendOrPostCallback, object)> _queue = new Queue<(SendOrPostCallback, object)>();
readonly AutoResetEvent _wake = new AutoResetEvent(false);
public override void Post(SendOrPostCallback d, object state) { lock (_queue) _queue.Enqueue((d, state)); _wake.Set(); }
public bool Run(Func<Task<bool>> work)
{
var task = work();
task.ContinueWith(_ => _wake.Set(), TaskScheduler.Default);
while (!task.IsCompleted)
{
(SendOrPostCallback, object) item = default; bool any;
lock (_queue) { any = _queue.Count > 0; if (any) item = _queue.Dequeue(); }
if (any) item.Item1(item.Item2); else _wake.WaitOne(50);
}
return task.GetAwaiter().GetResult();
}
}
}
}

View file

@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: 467b0d4c17afeb24e8a27b9be8f80f59

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: 5f27873c0b90b6049a96315bf294d8c0

View file

@ -1,8 +1,6 @@
fileFormatVersion: 2
guid: d27acc7ea045f65488b96d108768512f
guid: 7f592f693bf509d4990685519d0cc371
folderAsset: yes
timeCreated: 1518622476
licenseType: Free
DefaultImporter:
externalObjects: {}
userData:

View file

@ -0,0 +1,221 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
using System;
using Unity.Collections;
using Unity.Jobs;
using Unity.Mathematics;
using UnityEngine;
namespace Aetheria.FaunaDisplay
{
public enum SpringLod { Full, Frozen, Hidden }
// One whale's skeleton, presentation only (rulings whale-rig-spring-bone-tendrils, presenter-phase-from-zone-time,
// fauna-in-sim-ruled): it owns every bone pose and skin matrix, body and tendril, of the frame it draws. The caller
// hands in the drawn time (DrawAhead.Time) and the whale's root pose; nothing else enters, and only the skin buffer
// and the renderer's bounds leave. No GameObject per joint and no Unity skinning or animation components: a shader reads the
// skin matrices (SpringSkin.cginc) from the mesh's BLENDINDICES and BLENDWEIGHTS.
public sealed class SpringRig : MonoBehaviour
{
// The solver's fixed substep, in drawn seconds, and the most substeps one frame runs. The two cannot both hold below
// MaxSubsteps x SubstepRate = 30 frames a second: there a frame owes more than 4 and the tendrils run slow (24 fps: at
// 80% of drawn time), which is the clamp's purpose (a hitch or a slow machine must not spiral). At 30 fps and above
// the count over any span is floor(span x 120) up to rounding at a boundary, which the interpolated pose hides.
public const int SubstepRate = 120;
public const int MaxSubsteps = 4;
[Tooltip("The rig's GLB (a .springrig the importer wraps). Awake initializes from it when set; callers that Initialize by hand leave it null.")]
public TextAsset Rig;
public MeshRenderer Renderer;
public SwimSettings Swim = SwimSettings.Default;
[Tooltip("Projected height of the whale as a fraction of the viewport at or above which the tendrils are solved.")]
public float FullAbove = 0.06f;
[Tooltip("Below FullAbove and at or above this the tendrils hold their rest pose on the swimming body; below it the caller hides them.")]
public float FrozenAbove = 0.015f;
[Tooltip("A level is left only once the projected height is this fraction below the threshold that entered it.")]
[Range(0f, 0.5f)] public float Hysteresis = 0.15f;
[Tooltip("Drawn seconds over which the tendrils ease to rest when the level leaves Full: 0.5 to 1 reads as settling, a quarter second as a flare.")]
public float BlendSeconds = 0.75f;
public Camera LodCamera;
public SpringRigData Data { get; private set; }
public SpringLod Level { get; private set; }
public GraphicsBuffer SkinBuffer { get; private set; }
public NativeArray<float4x4>.ReadOnly Skin => _skin.AsReadOnly();
public long SubstepsRun { get; private set; }
public int SolveJobsScheduled { get; private set; }
public int Resets { get; private set; }
public float3 BonePosition(int bone) => _bonePos[bone];
public quaternion BoneRotation(int bone) => _boneRot[bone];
NativeArray<int> _order, _parent, _spine, _chainStart, _chainLen, _chainBone, _chainColStart, _chainColLen, _chainCol;
NativeArray<float3> _restPos, _bonePos, _simPos, _simPrev, _drawn;
NativeArray<quaternion> _restRot, _boneRot;
NativeArray<float4x4> _bind, _skin;
NativeArray<SpringJointParams> _param;
NativeArray<SpringCollider> _colliders;
bool _started, _wasFull;
long _lastIndex;
float3 _lastPosition;
float _pad;
float _lodDiameter, _restWeight = 1f, _lastFrac;
double _lastTime;
bool _everFull;
NativeArray<float3> _minMax;
readonly System.Collections.Generic.List<IDisposable> _owned = new System.Collections.Generic.List<IDisposable>();
NativeArray<T> Own<T>(T[] source) where T : unmanaged { var a = new NativeArray<T>(source, Allocator.Persistent); _owned.Add(a); return a; }
NativeArray<T> Own<T>(int length) where T : unmanaged { var a = new NativeArray<T>(length, Allocator.Persistent); _owned.Add(a); return a; }
public void Initialize(SpringRigData data, Bounds meshBounds)
{
Release();
Data = data;
_order = Own(data._order);
_parent = Own(data._parent);
_spine = Own(data._spine);
_chainStart = Own(data._chainStart);
_chainLen = Own(data._chainLen);
_chainBone = Own(data._chainBone);
_chainColStart = Own(data._chainColStart);
_chainColLen = Own(data._chainColLen);
_chainCol = Own(data._chainCol);
_restPos = Own(data._restPos);
_restRot = Own(data._restRot);
_bind = Own(data._bind);
_param = Own(data._chainParam);
_colliders = Own(data._colliders);
int n = data.BoneCount;
_bonePos = Own<float3>(n);
_simPos = Own<float3>(n);
_simPrev = Own<float3>(n);
_drawn = Own<float3>(n);
_boneRot = Own<quaternion>(n);
_skin = Own<float4x4>(n);
_minMax = Own<float3>(2);
SkinBuffer = new GraphicsBuffer(GraphicsBuffer.Target.Structured, n, 64);
var block = new MaterialPropertyBlock();
block.SetBuffer("_SpringBones", SkinBuffer);
Renderer.SetPropertyBlock(block);
// The mesh reaches past its bones by the rest mesh's margin; each frame's bounds are the bones' reach plus that margin.
var restPos = new float3[n]; var restRot = new quaternion[n];
float3 lo = new float3(float.MaxValue), hi = new float3(float.MinValue);
foreach (int i in data._order)
{
int p = data._parent[i];
restPos[i] = (p < 0 ? default : restPos[p]) + math.mul(p < 0 ? quaternion.identity : restRot[p], data._restPos[i]);
restRot[i] = math.mul(p < 0 ? quaternion.identity : restRot[p], data._restRot[i]);
lo = math.min(lo, restPos[i]); hi = math.max(hi, restPos[i]);
}
_lodDiameter = meshBounds.extents.magnitude * 2f;
Renderer.localBounds = meshBounds;
// One radius all round (the mesh turns with its bones): the rest mesh's largest margin past its bones, per axis, as a length.
_pad = math.length(math.max(math.max(lo - (float3)meshBounds.min, (float3)meshBounds.max - hi), 0f));
_started = false;
_everFull = false;
_restWeight = 1f;
}
// The one entry: swim pose, solver substeps, skin write, upload, bounds. drawnTime is DrawAhead.Time.
public SpringLod Present(double drawnTime, Vector3 position, Quaternion rotation, float scale)
{
if (Data == null) throw new InvalidOperationException("SpringRig.Present before Initialize.");
Level = Classify(position, scale);
bool full = Level == SpringLod.Full;
// Substeps owed: the fixed 1/120 s boundaries crossed since the last frame, by absolute drawn time so the
// count over any span is the same at any frame rate. Not full: keep the index current so an unfreeze owes nothing.
long index = (long)math.floor(drawnTime * SubstepRate);
int steps = _started && full ? (int)math.clamp(index - _lastIndex, 0, MaxSubsteps) : 0;
_lastIndex = index;
float frac = (float)(drawnTime * SubstepRate - index);
// Leaving Full the tendrils ease to rest over BlendSeconds of drawn time (no snap); the solver still draws, with no steps.
double dt = _started ? math.max(drawnTime - _lastTime, 0) : 0;
_lastTime = drawnTime;
bool midEase = _everFull && _restWeight < 1f; // a return to Full from here starts from the pose last drawn, not from rest
if (full) { _restWeight = 0f; _everFull = true; _lastFrac = frac; }
else if (_everFull) _restWeight = (float)math.min(1.0, _restWeight + dt / math.max(BlendSeconds, 1e-4f));
bool easing = !full && _everFull && _restWeight < 1f;
bool jumped = math.distance(_lastPosition, position) > Data.MaxChainLength * scale;
bool reset = !_started || (full && !_wasFull) || jumped;
bool seedDrawn = reset && _started && !jumped && full && !_wasFull && midEase;
_started = true;
_wasFull = full;
_lastPosition = position;
if (reset && full) Resets++;
var pos = (float3)position;
var rot = (quaternion)rotation;
var pose = new PoseJob
{
order = _order, parent = _parent, spine = _spine, restPos = _restPos, restRot = _restRot,
swim = Swim, time = drawnTime, rootPos = pos, rootRot = rot, scale = scale, bonePos = _bonePos, boneRot = _boneRot,
}.Schedule();
if (full || easing)
{
SolveJobsScheduled++;
SubstepsRun += steps;
pose = new SpringSolveJob
{
chainStart = _chainStart, chainLen = _chainLen, chainBone = _chainBone, chainColStart = _chainColStart, chainColLen = _chainColLen,
chainCol = _chainCol, restPos = _restPos, restRot = _restRot, param = _param, colliders = _colliders,
bonePos = _bonePos, boneRot = _boneRot, simPos = _simPos, simPrev = _simPrev,
drawn = _drawn, seedDrawn = seedDrawn,
substeps = steps, step = 1f / SubstepRate, scale = scale, frac = full ? frac : _lastFrac, blend = full ? 0f : _restWeight, reset = reset,
}.Schedule(Data.ChainCount, 4, pose);
}
var skinned = new SkinJob
{
bonePos = _bonePos, boneRot = _boneRot, bind = _bind, rootInverse = math.inverse(float4x4.TRS(pos, rot, new float3(scale))), scale = scale, skin = _skin,
}.Schedule(Data.BoneCount, 64, pose);
new BoundsJob { bonePos = _bonePos, rootPos = pos, rootRot = rot, scale = scale, minMax = _minMax }.Schedule(skinned).Complete();
SkinBuffer.SetData(_skin);
_drawn.CopyFrom(_bonePos);
var t = Renderer.transform;
t.SetPositionAndRotation(position, rotation);
t.localScale = new Vector3(scale, scale, scale);
// Bounds follow the pose: every bone in object space, plus the rest mesh's margin around the bones.
float3 min = _minMax[0] - _pad, max = _minMax[1] + _pad;
Renderer.localBounds = new Bounds((min + max) * 0.5f, max - min);
return Level;
}
// Projected height of the whale's bounds as a fraction of the viewport.
SpringLod Classify(Vector3 position, float scale)
{
var cam = LodCamera;
if (cam == null) return SpringLod.Full;
float diameter = _lodDiameter * scale;
float visible = cam.orthographic ? cam.orthographicSize * 2f : 2f * Vector3.Distance(cam.transform.position, position) * Mathf.Tan(cam.fieldOfView * 0.5f * Mathf.Deg2Rad);
float height = diameter / Mathf.Max(visible, 1e-6f), stay = 1f - Hysteresis;
if (height >= FullAbove * (Level == SpringLod.Full ? stay : 1f)) return SpringLod.Full;
return height >= FrozenAbove * (Level != SpringLod.Hidden ? stay : 1f) ? SpringLod.Frozen : SpringLod.Hidden;
}
void Release()
{
foreach (var a in _owned) a.Dispose();
_owned.Clear();
SkinBuffer?.Release();
SkinBuffer = null;
}
// From the serialized Rig and this object's mesh. Awake calls it in play; an editor tool that instantiates the asset outside play
// (Awake does not run there) calls it itself.
public void Initialize() => Initialize(SpringRigData.FromGlb(Rig.bytes), GetComponent<MeshFilter>().sharedMesh.bounds);
void Awake()
{
if (Rig != null && Data == null) Initialize();
}
void OnDestroy() => Release();
}
}

View file

@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: 02a69b7a8aa84824cbd397cbe3c02d4b

View file

@ -0,0 +1,316 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using Newtonsoft.Json.Linq;
using Unity.Mathematics;
namespace Aetheria.FaunaDisplay
{
// One spring joint's VRMC_springBone parameters. They drive the segment that ends at the NEXT joint of the chain.
// Stiffness is a RATE in 1/s and dimensionless in length: each substep the joint closes saturate(Stiffness x step) of its
// distance to the rest target, so the same number moves a 0.1 u tendril and a 10 u one by the same fraction. VRMC_springBone
// gives stiffness a length-per-second unit (a fixed-magnitude nudge along the rest axis), so a rig authored by a VRM tool
// reads this field with a different meaning; the Blender builder (whale-rig-builder) authors it as a rate. GravityPower is
// a displacement per second in rig units and DragForce a fraction of velocity lost per substep, as in VRM.
public readonly struct SpringJointParams
{
public readonly float HitRadius, Stiffness, GravityPower, DragForce;
public readonly float3 GravityDir;
public SpringJointParams(float hitRadius, float stiffness, float gravityPower, float3 gravityDir, float dragForce)
{ HitRadius = hitRadius; Stiffness = stiffness; GravityPower = gravityPower; GravityDir = gravityDir; DragForce = dragForce; }
}
// A VRMC_springBone collider bound to a body bone: sphere (Tail unused) or capsule from Offset to Tail, in the bone's frame.
public readonly struct SpringCollider
{
public readonly int Bone;
public readonly bool Capsule;
public readonly float3 Offset, Tail;
public readonly float Radius;
public SpringCollider(int bone, bool capsule, float3 offset, float3 tail, float radius)
{ Bone = bone; Capsule = capsule; Offset = offset; Tail = tail; Radius = radius; }
}
// The parsed rig: a glTF skin plus VRMC_springBone 1.0 (the seam with the Blender builder). Bone index = skin joint
// index, so the mesh's BLENDINDICES address the skin matrices directly. Skin joints no spring names are body bones.
// Immutable after FromGlbJson; presentation only (nothing in ServerShared reads it).
// HANDEDNESS: glTF is right-handed, Unity left-handed, and glTFast mirrors x on everything it imports (positions, normals,
// node translations (-x,y,z), rotations (x,-y,-z,w), bind poses S M S with S = diag(-1,1,1)). FromGlbJson is the one owner
// of the same mirror for the rig: every vector, rotation, matrix, collider offset and gravity direction it returns is in
// Unity space, matching a glTFast-imported mesh and node tree. Nothing downstream converts.
public sealed class SpringRigData
{
public int BoneCount => _parent.Length;
public int BodyCount { get; private set; }
public int ChainCount => _chainStart.Length;
public int SpringJointCount => _chainBone.Length;
public float MaxChainLength { get; private set; }
public IReadOnlyList<int> Parent => _parent; // bone parent in the skin, -1 for a root
public IReadOnlyList<float3> RestPosition => _restPos; // local to the parent (roots: composed over non-skin ancestors)
public IReadOnlyList<quaternion> RestRotation => _restRot;
public IReadOnlyList<float4x4> BindPose => _bind; // inverseBindMatrices
public IReadOnlyList<bool> IsBody => _isBody;
public IReadOnlyList<int> SpineIndex => _spine; // position along the swimming spine, -1 off it
public IReadOnlyList<SpringCollider> Colliders => _colliders;
public string ChainName(int c) => _chainName[c];
public IReadOnlyList<int> ChainBones(int c) => new ArraySegment<int>(_chainBone, _chainStart[c], _chainLen[c]);
public SpringJointParams ChainJoint(int c, int k) => _chainParam[_chainStart[c] + k];
public IReadOnlyList<int> ChainColliders(int c) => new ArraySegment<int>(_chainCol, _chainColStart[c], _chainColLen[c]);
// Flattened layout the jobs copy: chain c owns [ChainStart[c], +ChainLen[c]) of ChainBone/ChainParam.
internal int[] _parent, _order, _spine, _chainStart, _chainLen, _chainBone, _chainColStart, _chainColLen, _chainCol;
internal float3[] _restPos;
internal quaternion[] _restRot;
internal float4x4[] _bind;
internal bool[] _isBody;
internal SpringJointParams[] _chainParam;
internal SpringCollider[] _colliders;
string[] _chainName;
SpringRigData() { }
// A GLB container: header, JSON chunk, optional BIN chunk.
public static SpringRigData FromGlb(byte[] glb, int skin = 0)
{
if (glb.Length < 20 || BitConverter.ToUInt32(glb, 0) != 0x46546C67) throw new InvalidDataException("Not a GLB (magic).");
int at = 12;
JObject json = null;
byte[] bin = null;
while (at + 8 <= glb.Length)
{
int length = (int)BitConverter.ToUInt32(glb, at);
uint type = BitConverter.ToUInt32(glb, at + 4);
if (type == 0x4E4F534A) json = JObject.Parse(Encoding.UTF8.GetString(glb, at + 8, length));
else if (type == 0x004E4942 && bin == null) { bin = new byte[length]; Buffer.BlockCopy(glb, at + 8, bin, 0, length); }
at += 8 + length;
}
return FromGlbJson(json ?? throw new InvalidDataException("GLB has no JSON chunk."), bin, skin);
}
// json is the GLB JSON chunk, bin the BIN chunk (the inverseBindMatrices live there).
public static SpringRigData FromGlbJson(JObject json, byte[] bin, int skinIndex = 0)
{
var nodes = json["nodes"] as JArray ?? throw new InvalidDataException("glTF has no nodes.");
var skins = json["skins"] as JArray;
var skin = skins != null && skinIndex >= 0 && skinIndex < skins.Count ? skins[skinIndex] as JObject : null;
if (skin == null) throw new InvalidDataException($"glTF has no skin {skinIndex}.");
var joints = (skin["joints"] as JArray)?.Select(j => (int)j).ToArray() ?? throw new InvalidDataException("Skin has no joints.");
int n = nodes.Count, b = joints.Length;
// Node parents from children; a node with two parents or a loop is refused by name.
var nodeParent = Enumerable.Repeat(-1, n).ToArray();
for (int i = 0; i < n; i++)
foreach (var child in (nodes[i]["children"] as JArray) ?? new JArray())
{
int c = (int)child;
if (c < 0 || c >= n) throw new InvalidDataException($"Node {i} names child {c} outside the node list.");
if (nodeParent[c] >= 0) throw new InvalidDataException($"Node {c} has two parents ({nodeParent[c]} and {i}).");
nodeParent[c] = i;
}
for (int i = 0; i < n; i++)
{
int hops = 0;
for (int p = nodeParent[i]; p >= 0; p = nodeParent[p])
if (++hops > n) throw new InvalidDataException($"Cycle in the node tree through node {i}.");
}
var boneOfNode = Enumerable.Repeat(-1, n).ToArray();
for (int i = 0; i < b; i++)
{
if (joints[i] < 0 || joints[i] >= n) throw new InvalidDataException($"Skin joint {i} names node {joints[i]} outside the node list.");
if (boneOfNode[joints[i]] >= 0) throw new InvalidDataException($"Node {joints[i]} appears twice in the skin.");
boneOfNode[joints[i]] = i;
}
var d = new SpringRigData { _isBody = Enumerable.Repeat(true, b).ToArray() };
d._parent = new int[b];
d._restPos = new float3[b];
d._restRot = new quaternion[b];
for (int i = 0; i < b; i++)
{
// Rest pose of a bone is its node's TRS; a bone whose parent node is outside the skin composes that ancestry in.
var (pos, rot) = LocalRest(nodes, joints[i]);
int pn = nodeParent[joints[i]];
var outside = new List<int>();
while (pn >= 0 && boneOfNode[pn] < 0) { outside.Add(pn); pn = nodeParent[pn]; }
d._parent[i] = pn >= 0 ? boneOfNode[pn] : -1;
foreach (var o in outside)
{
var (op, or) = LocalRest(nodes, o);
pos = op + math.mul(or, pos);
rot = math.mul(or, rot);
}
d._restPos[i] = pos;
d._restRot[i] = rot;
}
// Colliders, groups, springs.
var ext = json["extensions"]?["VRMC_springBone"] as JObject;
var colliders = new List<SpringCollider>();
var colliderJson = (ext?["colliders"] as JArray) ?? new JArray();
for (int ci = 0; ci < colliderJson.Count; ci++)
{
var c = colliderJson[ci];
int node = (int)c["node"];
if (node < 0 || node >= n || boneOfNode[node] < 0) throw new InvalidDataException($"Collider {ci} sits on node {node}, which is not a skin joint.");
var shape = c["shape"] as JObject ?? throw new InvalidDataException($"Collider {ci} has no shape.");
var props = shape.Properties().ToArray();
if (props.Length != 1 || (props[0].Name != "sphere" && props[0].Name != "capsule"))
throw new InvalidDataException($"Collider {ci}: unknown shape '{string.Join(",", props.Select(p => p.Name))}' (sphere or capsule).");
var s = props[0].Value;
bool capsule = props[0].Name == "capsule";
var offset = Vec3(s["offset"], default);
colliders.Add(new SpringCollider(boneOfNode[node], capsule, offset, capsule ? Vec3(s["tail"], default) : offset, (float)(s["radius"] ?? 0f)));
}
d._colliders = colliders.ToArray();
var groups = ((ext?["colliderGroups"] as JArray) ?? new JArray()).Select(g => ((g["colliders"] as JArray) ?? new JArray()).Select(x => (int)x).ToArray()).ToArray();
var springs = ((ext?["springs"] as JArray) ?? new JArray()).Cast<JObject>().ToArray();
var springBones = new List<int[]>();
for (int si = 0; si < springs.Length; si++)
{
var name = (string)springs[si]["name"] ?? $"spring{si}";
var bones = ((springs[si]["joints"] as JArray) ?? new JArray()).Select(j =>
{
int node = (int)j["node"];
if (node < 0 || node >= n || boneOfNode[node] < 0) throw new InvalidDataException($"Spring '{name}' names node {node}, which is not a skin joint.");
return boneOfNode[node];
}).ToArray();
if (bones.Length < 2) throw new InvalidDataException($"Spring '{name}' needs at least two joints.");
foreach (var bone in bones)
{
if (!d._isBody[bone]) throw new InvalidDataException($"Spring '{name}': node {joints[bone]} is named twice by springs.");
d._isBody[bone] = false;
}
springBones.Add(bones);
}
for (int ci = 0; ci < d._colliders.Length; ci++)
if (!d._isBody[d._colliders[ci].Bone])
throw new InvalidDataException($"Collider {ci} sits on node {joints[d._colliders[ci].Bone]}, a spring joint; colliders ride body bones.");
for (int si = 0; si < springBones.Count; si++)
{
var bones = springBones[si];
var name = (string)springs[si]["name"] ?? $"spring{si}";
for (int k = 0; k < bones.Length; k++)
{
int parent = d._parent[bones[k]];
if (k == 0 && (parent < 0 || !d._isBody[parent]))
throw new InvalidDataException($"Spring '{name}': first joint (node {joints[bones[0]]}) must hang from a body bone.");
if (k > 0 && math.lengthsq(d._restPos[bones[k]]) < 1e-12f)
throw new InvalidDataException($"Spring '{name}': joint {k} (node {joints[bones[k]]}) sits on its predecessor; a segment needs a length.");
if (k > 0 && parent != bones[k - 1])
throw new InvalidDataException($"Spring '{name}': joint {k} (node {joints[bones[k]]}) has parent {(parent < 0 ? "none" : "node " + joints[parent])}, not its predecessor node {joints[bones[k - 1]]}.");
}
}
var chainBone = new List<int>(); var chainParam = new List<SpringJointParams>(); var chainCol = new List<int>();
var starts = new List<int>(); var lens = new List<int>(); var cstarts = new List<int>(); var clens = new List<int>(); var names = new List<string>();
float longest = 0;
for (int si = 0; si < springBones.Count; si++)
{
var bones = springBones[si];
var sp = springs[si];
starts.Add(chainBone.Count); lens.Add(bones.Length); names.Add((string)sp["name"] ?? $"spring{si}");
var js = (JArray)sp["joints"];
float length = 0;
for (int k = 0; k < bones.Length; k++)
{
chainBone.Add(bones[k]);
var j = js[k];
chainParam.Add(new SpringJointParams((float)(j["hitRadius"] ?? 0f), (float)(j["stiffness"] ?? 1f), (float)(j["gravityPower"] ?? 0f),
Vec3(j["gravityDir"], new float3(0, -1, 0)), (float)(j["dragForce"] ?? 0.5f)));
if (k > 0) length += math.length(d._restPos[bones[k]]);
}
longest = math.max(longest, length);
cstarts.Add(chainCol.Count);
var set = new SortedSet<int>();
foreach (var g in (sp["colliderGroups"] as JArray) ?? new JArray())
{
int gi = (int)g;
if (gi < 0 || gi >= groups.Length) throw new InvalidDataException($"Spring '{names[names.Count - 1]}' names collider group {gi}, which does not exist.");
foreach (var c in groups[gi])
{
if (c < 0 || c >= d._colliders.Length) throw new InvalidDataException($"Collider group {gi} names collider {c}, which does not exist.");
set.Add(c);
}
}
chainCol.AddRange(set); clens.Add(set.Count);
}
d._chainBone = chainBone.ToArray(); d._chainParam = chainParam.ToArray(); d._chainCol = chainCol.ToArray();
d._chainStart = starts.ToArray(); d._chainLen = lens.ToArray(); d._chainColStart = cstarts.ToArray(); d._chainColLen = clens.ToArray();
d._chainName = names.ToArray();
d.MaxChainLength = longest;
d.BodyCount = d._isBody.Count(x => x);
// Parents before children.
var children = new List<int>[b];
for (int i = 0; i < b; i++) children[i] = new List<int>();
var roots = new List<int>();
for (int i = 0; i < b; i++) (d._parent[i] < 0 ? roots : children[d._parent[i]]).Add(i);
var order = new List<int>(roots);
for (int i = 0; i < order.Count; i++) order.AddRange(children[order[i]]);
d._order = order.ToArray();
// Spine: from the first body root, the body child with the most body descendants at each step; the swim wave runs down it.
var weight = new int[b];
for (int i = d._order.Length - 1; i >= 0; i--)
{
int bone = d._order[i];
if (!d._isBody[bone]) continue;
weight[bone] += 1;
if (d._parent[bone] >= 0) weight[d._parent[bone]] += weight[bone];
}
d._spine = Enumerable.Repeat(-1, b).ToArray();
int cur = roots.Where(r => d._isBody[r]).DefaultIfEmpty(-1).First(), depth = 0;
while (cur >= 0)
{
d._spine[cur] = depth++;
cur = children[cur].Where(c => d._isBody[c]).OrderByDescending(c => weight[c]).DefaultIfEmpty(-1).First();
}
d._bind = ReadBindPoses(json, skin, bin, b);
return d;
}
// A glTF vector read into Unity space (x mirrored).
static float3 Vec3(JToken t, float3 fallback) => t is JArray a && a.Count == 3 ? new float3(-(float)a[0], (float)a[1], (float)a[2]) : fallback;
static (float3, quaternion) LocalRest(JArray nodes, int node)
{
var nd = nodes[node];
if (nd["matrix"] != null) throw new InvalidDataException($"Node {node} uses a matrix; the rig takes translation, rotation and unit scale.");
if (nd["scale"] is JArray s && (math.abs((float)s[0] - 1) > 1e-4f || math.abs((float)s[1] - 1) > 1e-4f || math.abs((float)s[2] - 1) > 1e-4f))
throw new InvalidDataException($"Node {node} has a non-unit scale; bake it before export.");
float3 t = Vec3(nd["translation"], default);
var r = nd["rotation"] as JArray;
return (t, r != null && r.Count == 4 ? math.normalize(new quaternion((float)r[0], -(float)r[1], -(float)r[2], (float)r[3])) : quaternion.identity);
}
static float4x4[] ReadBindPoses(JObject json, JObject skin, byte[] bin, int count)
{
var result = Enumerable.Repeat(float4x4.identity, count).ToArray();
if (skin["inverseBindMatrices"] == null) return result;
var acc = (json["accessors"] as JArray)?[(int)skin["inverseBindMatrices"]] ?? throw new InvalidDataException("inverseBindMatrices names a missing accessor.");
var view = (json["bufferViews"] as JArray)?[(int)acc["bufferView"]] ?? throw new InvalidDataException("inverseBindMatrices accessor has no bufferView.");
if ((int)acc["componentType"] != 5126 || (string)acc["type"] != "MAT4" || (int)acc["count"] < count)
throw new InvalidDataException("inverseBindMatrices must be float MAT4, one per joint.");
int at = (int)(view["byteOffset"] ?? 0) + (int)(acc["byteOffset"] ?? 0);
if (bin == null || at + count * 64 > bin.Length) throw new InvalidDataException("inverseBindMatrices run past the BIN chunk.");
for (int i = 0; i < count; i++)
{
var f = new float[16];
Buffer.BlockCopy(bin, at + i * 64, f, 0, 64);
// glTF is column-major; S M S negates the x row and column but for m00.
result[i] = new float4x4(f[0], -f[4], -f[8], -f[12], -f[1], f[5], f[9], f[13], -f[2], f[6], f[10], f[14], f[3], f[7], f[11], f[15]);
}
return result;
}
}
}

View file

@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: f6469766221cfcc439a676418613514c

View file

@ -0,0 +1,204 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
using Unity.Burst;
using Unity.Collections;
using Unity.Jobs;
using Unity.Mathematics;
namespace Aetheria.FaunaDisplay
{
// The three jobs one whale runs each frame, in order: PoseJob (every bone at its swimming-body pose, springs at rest),
// SpringSolveJob (the VRM SpringBone step over chains, then the interpolated drawn pose, overwriting the spring bones; skipped when frozen) and SkinJob
// (skin = rootInverse x boneWorld x bindPose for every bone). Bone worlds are position + rotation with a uniform scale;
// the solver works in world space so a swimming root drags the tendrils.
[BurstCompile(CompileSynchronously = true, DisableSafetyChecks = true)]
public struct PoseJob : IJob
{
[ReadOnly] public NativeArray<int> order, parent, spine;
[ReadOnly] public NativeArray<float3> restPos;
[ReadOnly] public NativeArray<quaternion> restRot;
public SwimSettings swim;
public double time;
public float3 rootPos;
public quaternion rootRot;
public float scale;
public NativeArray<float3> bonePos;
public NativeArray<quaternion> boneRot;
public void Execute()
{
for (int n = 0; n < order.Length; n++)
{
int i = order[n], p = parent[i];
quaternion local = spine[i] >= 0 ? math.mul(restRot[i], SwimPose.Rotation(time, spine[i], swim)) : restRot[i];
quaternion pr = p < 0 ? rootRot : boneRot[p];
float3 pp = p < 0 ? rootPos : bonePos[p];
bonePos[i] = pp + math.mul(pr, restPos[i] * scale);
boneRot[i] = math.mul(pr, local);
}
}
}
[BurstCompile(CompileSynchronously = true, DisableSafetyChecks = true)]
public struct SpringSolveJob : IJobParallelFor
{
[ReadOnly] public NativeArray<int> chainStart, chainLen, chainBone, chainColStart, chainColLen, chainCol;
[ReadOnly] public NativeArray<float3> restPos;
[ReadOnly] public NativeArray<quaternion> restRot;
[ReadOnly] public NativeArray<SpringJointParams> param;
[ReadOnly] public NativeArray<SpringCollider> colliders;
// The bone positions drawn last frame; a reset seeds from them when seedDrawn (a return to Full part way through the ease), from rest otherwise.
[ReadOnly] public NativeArray<float3> drawn;
public bool seedDrawn;
// Bone-indexed. A chain writes only its own bones; colliders read body bones only.
[NativeDisableParallelForRestriction] public NativeArray<float3> bonePos, simPos, simPrev;
[NativeDisableParallelForRestriction] public NativeArray<quaternion> boneRot;
public int substeps;
public float step, scale, frac, blend;
public bool reset;
public void Execute(int c)
{
int start = chainStart[c], len = chainLen[c];
if (reset)
for (int k = 0; k < len; k++)
{
int bone = chainBone[start + k];
simPos[bone] = simPrev[bone] = seedDrawn ? drawn[bone] : bonePos[bone];
}
int root = chainBone[start];
float3 headPos0 = bonePos[root];
quaternion headRest0 = boneRot[root];
// The fixed steps: the VRM SpringBone step per joint, head to tip, against the body as posed this frame.
for (int s = 0; s < substeps; s++)
{
float3 headPos = headPos0;
quaternion headRest = headRest0;
for (int k = 1; k < len; k++)
{
int bone = chainBone[start + k];
var jp = param[start + k - 1];
float3 p = simPos[bone];
float seg = math.length(restPos[bone]) * scale;
float3 axis = math.normalizesafe(restPos[bone], new float3(0, -1, 0));
float3 target = headPos + math.mul(headRest, restPos[bone] * scale);
float3 np = p + (p - simPrev[bone]) * (1f - jp.DragForce) // inertia
+ (target - p) * math.saturate(jp.Stiffness * step) // pull to the rest direction from the parent's current rotation
+ jp.GravityDir * (jp.GravityPower * step * scale); // gravity
np = Reproject(headPos, np, seg, math.mul(headRest, axis));
float hit = jp.HitRadius * scale;
int cs = chainColStart[c], cn = chainColLen[c];
for (int q = 0; q < cn; q++) np = PushOut(np, colliders[chainCol[cs + q]], hit);
np = Reproject(headPos, np, seg, math.mul(headRest, axis));
simPrev[bone] = p;
simPos[bone] = np;
headRest = math.mul(Aim(headRest, axis, np - headPos), restRot[bone]);
headPos = np;
}
}
// The pose drawn: the last two fixed steps blended by the leftover fraction of a step (so a frame that owes no
// step still moves), then pushed out of the colliders and the lengths held again from this frame's head. The state itself is not touched.
float3 head = headPos0;
quaternion rest = headRest0;
for (int k = 1; k < len; k++)
{
int bone = chainBone[start + k];
float seg = math.length(restPos[bone]) * scale;
float3 axis = math.normalizesafe(restPos[bone], new float3(0, -1, 0));
var jp = param[start + k - 1];
float3 fall = math.mul(rest, axis);
float3 p = Reproject(head, math.lerp(math.lerp(simPrev[bone], simPos[bone], frac), bonePos[bone], blend), seg, fall); // blend: weight toward rest (bonePos still holds it)
int cs = chainColStart[c], cn = chainColLen[c];
// A blend of two pushed-out points can dip into a collider; two rounds of push-out and length settle it.
for (int round = 0; round < 2 && cn > 0; round++)
{
for (int q = 0; q < cn; q++) p = PushOut(p, colliders[chainCol[cs + q]], jp.HitRadius * scale);
p = Reproject(head, p, seg, fall);
}
quaternion aimed = Aim(rest, axis, p - head);
boneRot[chainBone[start + k - 1]] = aimed;
bonePos[bone] = p;
head = p;
rest = math.mul(aimed, restRot[bone]);
}
boneRot[chainBone[start + len - 1]] = rest;
}
// The head's rotation once its bone axis (in its rest frame) points along dir.
static quaternion Aim(quaternion headRest, float3 axis, float3 dir)
{
float3 from = math.mul(headRest, axis);
return math.mul(FromTo(from, math.normalizesafe(dir, from)), headRest);
}
static float3 Reproject(float3 head, float3 p, float length, float3 fallback) => head + math.normalizesafe(p - head, fallback) * length;
float3 PushOut(float3 p, SpringCollider col, float hit)
{
float3 origin = bonePos[col.Bone], center = origin + math.mul(boneRot[col.Bone], col.Offset * scale);
float3 nearest = center;
if (col.Capsule)
{
float3 tail = origin + math.mul(boneRot[col.Bone], col.Tail * scale), axis = tail - center;
nearest = center + axis * math.saturate(math.dot(p - center, axis) / math.max(math.lengthsq(axis), 1e-12f));
}
float3 d = p - nearest;
float r = col.Radius * scale + hit, l = math.length(d);
return l < r ? nearest + (l > 1e-9f ? d / l : new float3(0, 1, 0)) * r : p;
}
static quaternion FromTo(float3 a, float3 b)
{
float d = math.dot(a, b);
if (d < -0.99999f)
{
float3 axis = math.normalize(math.cross(a, math.abs(a.x) < 0.9f ? new float3(1, 0, 0) : new float3(0, 1, 0)));
return new quaternion(axis.x, axis.y, axis.z, 0);
}
float3 c = math.cross(a, b);
return math.normalize(new quaternion(c.x, c.y, c.z, 1f + d));
}
}
// The renderer's bounds: every bone's place in the whale's object space, min and max.
[BurstCompile(CompileSynchronously = true, DisableSafetyChecks = true)]
public struct BoundsJob : IJob
{
[ReadOnly] public NativeArray<float3> bonePos;
public float3 rootPos;
public quaternion rootRot;
public float scale;
public NativeArray<float3> minMax;
public void Execute()
{
quaternion inverse = math.inverse(rootRot);
float3 min = new float3(float.MaxValue), max = new float3(float.MinValue);
for (int i = 0; i < bonePos.Length; i++)
{
float3 local = math.mul(inverse, bonePos[i] - rootPos) / scale;
min = math.min(min, local); max = math.max(max, local);
}
minMax[0] = min; minMax[1] = max;
}
}
[BurstCompile(CompileSynchronously = true, DisableSafetyChecks = true)]
public struct SkinJob : IJobParallelFor
{
[ReadOnly] public NativeArray<float3> bonePos;
[ReadOnly] public NativeArray<quaternion> boneRot;
[ReadOnly] public NativeArray<float4x4> bind;
public float4x4 rootInverse;
public float scale;
[WriteOnly] public NativeArray<float4x4> skin;
public void Execute(int i) =>
skin[i] = math.mul(rootInverse, math.mul(float4x4.TRS(bonePos[i], boneRot[i], new float3(scale)), bind[i]));
}
}

View file

@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: 93b873d12ec4f68459ca547f239f3b15

View file

@ -0,0 +1,34 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
using System;
using Unity.Mathematics;
namespace Aetheria.FaunaDisplay
{
// Body swim as a closed form of drawn time (ruling presenter-phase-from-zone-time): a wave travelling down the spine
// chain, one phase step per spine bone. Pure: no state, no clock; the same drawn time gives the same pose however it
// was reached, and a paused zone holds it.
[Serializable]
public struct SwimSettings
{
public float AmplitudeDegrees; // peak bend of each spine bone
public float PeriodSeconds; // one full wave cycle
public float PhasePerBone; // cycles of lag per spine bone (0.1 = ten bones per wavelength)
public float3 Axis; // bend axis in the bone's local frame (X: pitch for a body along Z)
public static SwimSettings Default => new SwimSettings { AmplitudeDegrees = 6f, PeriodSeconds = 4f, PhasePerBone = 0.08f, Axis = new float3(1, 0, 0) };
}
public static class SwimPose
{
// Extra local rotation (applied after the rest rotation) of the spine bone at spineIndex at drawn time t.
public static quaternion Rotation(double t, int spineIndex, in SwimSettings s)
{
double cycles = t / math.max(s.PeriodSeconds, 1e-4f) - spineIndex * (double)s.PhasePerBone;
float phase = (float)(cycles - math.floor(cycles));
return quaternion.AxisAngle(math.normalizesafe(s.Axis, new float3(1, 0, 0)), math.radians(s.AmplitudeDegrees) * math.sin(phase * (2f * math.PI)));
}
}
}

View file

@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: 2e41e6c57dffede48a9926cd59432848

View file

@ -140,7 +140,6 @@ public class ActionGameManager : MonoBehaviour
public ZoneRenderer ZoneRenderer;
public CinemachineVirtualCamera DockCamera;
public CinemachineVirtualCamera FollowCamera;
public CinemachineVirtualCamera WormholeCamera;
//public SectorRenderer SectorRenderer;
public SectorMap SectorMap;
@ -191,9 +190,6 @@ public class ActionGameManager : MonoBehaviour
//public PlayerInput Input;
// private CinemachineFramingTransposer _transposer;
// private CinemachineComposer _composer;
private bool _paused;
private float _time;
private int _zoomLevelIndex;
@ -277,13 +273,25 @@ public class ActionGameManager : MonoBehaviour
private void OnApplicationQuit()
{
SaveRun();
DiscardSimulation();
SavePlayerSettings();
}
// Wormhole arrival and quit save the run; a dead run has no galaxy, so it is not saved.
// The live simulation (Scenario.Saved false), or null while a saved run or nothing is live. Whether the session is
// saved is derived from it alone: StartScenario is the only setter and DiscardSimulation the only clearer.
public static RunSave.Simulation Simulation { get; private set; }
// Removes what the simulation wrote to the run store, so the saved run and the next run never see it.
private void DiscardSimulation()
{
Simulation?.Discard(CultCache);
Simulation = null;
}
// Wormhole arrival and quit save the run; a dead run has no galaxy, so it is not saved, and a simulation never is.
public void SaveRun()
{
if (CurrentGalaxy != null)
if (Simulation == null && CurrentGalaxy != null)
{
var (game, zones) = RunSave.Capture(CultCache, CurrentGalaxy, Zone, DockedEntity ?? CurrentEntity,
_actionBarSlots.Select(s => s.Save()).ToArray(), Credits);
@ -324,7 +332,7 @@ public class ActionGameManager : MonoBehaviour
Input.Global.Enable();
// The latch is the game's own, so it can disagree with the keyboard's Caps Lock light: show it.
Input.Player.ToggleFaceAim.performed += context => _helm.Toggle();
Bind(Input.Player.ToggleFaceAim, context => _helm.Toggle());
var markParent = GameplayUI != null ? GameplayUI.transform : UiRoot.transform;
var markObject = new GameObject("Face Aim Mark", typeof(RectTransform));
markObject.transform.SetParent(markParent, false);
@ -338,23 +346,59 @@ public class ActionGameManager : MonoBehaviour
_faceAimMark.enabled = false;
_zoomLevelIndex = Settings.DefaultMinimapZoom;
Input.Player.MinimapZoom.performed += context =>
Bind(Input.Player.MinimapZoom, context =>
{
_zoomLevelIndex = (_zoomLevelIndex + 1) % Settings.MinimapZoomLevels.Length;
ZoneRenderer.MinimapDistance = Settings.MinimapZoomLevels[_zoomLevelIndex];
};
});
Input.Global.ZoneMap.performed += context =>
// The tactical view is a distinct camera over the grid (ruling tactical-view-distinct-mode): the wheel is one axis
// from the chase view through a detent into it, and TacticalView the one owner of where on that axis the camera is.
_tactical = new TacticalView(Settings.TacticalZoomStep, Settings.TacticalBlendStart, Settings.TacticalBlendEnd,
Settings.TacticalTimeScale, Settings.TacticalFitPerRadius, Settings.DetentResistance, Settings.DetentRelaxTime,
Settings.ViewEaseTime);
// The view rig: the chase camera (child 0) and the tactical camera (child 1) mixed by the blend, built here so the
// scene stays as authored. The mix is a function of the eased distance, not a brain blend on a priority switch.
var rig = new GameObject("View Rig");
_viewRig = rig.AddComponent<CinemachineMixingCamera>();
_viewRig.Priority = FollowCamera.Priority;
FollowCamera.transform.SetParent(rig.transform, false);
FollowCamera.transform.SetAsFirstSibling();
var tacticalCamera = new GameObject("Tactical Camera");
tacticalCamera.transform.SetParent(rig.transform, false);
_tacticalCamera = tacticalCamera.AddComponent<CinemachineVirtualCamera>();
_tacticalFade = ScriptableObject.CreateInstance<TacticalFade>();
_tacticalFade.enabled.Override(true);
_tacticalFade.Background.Override(Settings.TacticalBackground);
_tacticalVolume = PostProcessManager.instance.QuickVolume(DeathPost.gameObject.layer, 100f, _tacticalFade);
_tacticalVolume.weight = 0;
var schematic = new GameObject("Tactical Schematic Camera");
schematic.transform.SetParent(ZoneRenderer.MainCamera.transform, false);
_schematicCamera = schematic.AddComponent<Camera>();
_schematicCamera.clearFlags = CameraClearFlags.Depth;
_schematicCamera.depth = ZoneRenderer.MainCamera.depth + 1;
_schematicCamera.cullingMask = 1 << LayerMask.NameToLayer("Minimap");
_schematicCamera.enabled = false;
Bind(Input.Player.Zoom, context =>
{
var scroll = context.ReadValue<float>();
if (scroll == 0 || !Flying) return;
var was = _tactical.Tactical;
_tactical.Scroll(-Mathf.Sign(scroll));
if (_tactical.Tactical != was) EnablePlayerInput();
});
Bind(Input.Global.ZoneMap, context =>
{
ToggleMenuTab(MenuTab.Map);
MenuMap.Position = DrawAhead.Position(CurrentEntity, Clock.Lead).xz;
};
});
Input.Global.Inventory.performed += context => ToggleMenuTab(MenuTab.Inventory);
Bind(Input.Global.Inventory, context => ToggleMenuTab(MenuTab.Inventory));
Input.Global.GalaxyMap.performed += context => ToggleMenuTab(MenuTab.Galaxy);
Bind(Input.Global.GalaxyMap, context => ToggleMenuTab(MenuTab.Galaxy));
Input.Global.Interact.performed += context =>
Bind(Input.Global.Interact, context =>
{
if (EventSystem.current.currentSelectedGameObject != null && EventSystem.current.currentSelectedGameObject.GetComponent<TMP_InputField>() != null) return;
if (MainMenu.gameObject.activeSelf) return;
@ -371,6 +415,15 @@ public class ActionGameManager : MonoBehaviour
foreach (var wormhole in ZoneRenderer.WormholeInstances.Keys)
{
if (!(length(wormhole.Position - CurrentEntity.Position.xz) < Settings.GameplaySettings.WormholeExitRadius)) continue;
if (Simulation != null)
{
// The simulation's wormhole is its exit (ruling ifl-wormhole-exit-standin).
Dialog.Clear();
Dialog.Title.text = "Leave the simulation and start a run?";
Dialog.Show(onConfirm: LeaveSimulation, onCancel: () => { }, confirmText: "Leave", cancelText: "Stay");
Dialog.MoveToCursor();
return;
}
if (wormhole.Exit)
{
// The exit gate leads nowhere: TryWin consults RunGoal and ends the run when the gate is open.
@ -388,53 +441,57 @@ public class ActionGameManager : MonoBehaviour
Dock();
}
else Undock();
};
});
Input.Global.MainMenu.performed += context =>
Bind(Input.Global.MainMenu, context =>
{
if(Menu.gameObject.activeSelf)
ToggleMenuTab(Menu.CurrentTab);
else
ToggleFullscreenMenu(MainMenu.gameObject);
};
});
Input.Global.InputScreen.performed += context => ToggleFullscreenMenu(HelpScreen);
Bind(Input.Global.InputScreen, context => ToggleFullscreenMenu(HelpScreen));
Input.Player.HideUI.performed += context =>
Bind(Input.Player.HideUI, context =>
{
_uiHidden = !_uiHidden;
GameplayUI.alpha = _uiHidden ? 0 : 1;
ActionBar.gameObject.SetActive(!_uiHidden);
};
});
// The switches and the ping are presses on the entity's command, flipped at the next step.
Input.Player.OverrideShutdown.performed += context => CurrentEntity.Command.ToggleOverrideShutdown();
Input.Player.Ping.performed += context => CurrentEntity.Command.Ping();
Bind(Input.Player.OverrideShutdown, context => CurrentEntity.Command.ToggleOverrideShutdown());
Bind(Input.Player.Ping, context => CurrentEntity.Command.Ping());
// TODO: SFX: Success/Fail
Input.Player.ToggleHeatsinks.performed += context => CurrentEntity.Command.ToggleHeatsinks();
Bind(Input.Player.ToggleHeatsinks, context => CurrentEntity.Command.ToggleHeatsinks());
// TODO: SFX: Success/Fail
Input.Player.ToggleShield.performed += context => CurrentEntity.Command.ToggleShield();
Bind(Input.Player.ToggleShield, context => CurrentEntity.Command.ToggleShield());
// Flips the player's own stance on the current target between hostile and neutral. Going
// neutral mid-fight safes weapons (Weapon.StanceAllowsFire); an unmarked/undetected target
// reads as non-hostile, so the first press declares hostile. The flip reads the target and its stance when applied,
// after the step's target presses, so two presses in a step cancel.
Input.Player.ToggleStance.performed += context => CurrentEntity.Command.ToggleStance();
Bind(Input.Player.ToggleStance, context => CurrentEntity.Command.ToggleStance());
#region Targeting
// The reticle, nearest, next and previous presses each command a verb; the applier chooses through Entity at the
// next step (mining target-queries cut): the rule lives with the entity, so the player, the test agent and any
// director pick alike.
Input.Player.TargetReticle.performed += context => CurrentEntity.Command.Verb(TargetVerb.UnderReticle);
Input.Player.TargetNearest.performed += context => CurrentEntity.Command.Verb(TargetVerb.NearestEnemy);
Input.Player.TargetNext.performed += context => CurrentEntity.Command.Verb(TargetVerb.Next);
Input.Player.TargetPrevious.performed += context => CurrentEntity.Command.Verb(TargetVerb.Previous);
Bind(Input.Player.TargetReticle, context => CurrentEntity.Command.Verb(TargetVerb.UnderReticle));
Bind(Input.Player.TargetNearest, context => CurrentEntity.Command.Verb(TargetVerb.NearestEnemy));
Bind(Input.Player.TargetNext, context => CurrentEntity.Command.Verb(TargetVerb.Next));
Bind(Input.Player.TargetPrevious, context => CurrentEntity.Command.Verb(TargetVerb.Previous));
// Cut 2 (docs/fire-control-cut.md): steps the aim through the target's schematic rows -- every mount this ship
// has located, empty or not, minus the ones it saw destroyed. Decides nothing: the entity owns the cycle, applied at
// the next step.
Input.Player.CycleTargetItem.performed += context => CurrentEntity.Command.CycleAim();
Bind(Input.Player.CycleTargetItem, context => CurrentEntity.Command.CycleAim());
// The tractor is held while its key is: a press and a release each set it. It is not polled, so a key already down when the
// flight view returns does nothing until it is pressed again, as with fire; Update releases it while the view is tactical.
Bind(Input.Player.TractorBeam, context => CurrentEntity.Command.Tractor = context.ReadValue<float>(), context => CurrentEntity.Command.Tractor = 0);
#endregion
@ -559,11 +616,7 @@ public class ActionGameManager : MonoBehaviour
{
FollowCamera.Follow = x.missile.transform;
FollowCamera.LookAt = x.target ? x.target : x.missile.transform;
x.missile.OnKill += () =>
{
FollowCamera.LookAt = ZoneRenderer.EntityInstances[CurrentEntity].LookAtPoint;
FollowCamera.Follow = ZoneRenderer.EntityInstances[CurrentEntity].transform;
};
x.missile.OnKill += () => FrameFollow(CurrentEntity);
});
}
});
@ -580,6 +633,33 @@ public class ActionGameManager : MonoBehaviour
ItemManager.Random.NextFloat2Direction() * ItemManager.Random.NextFloat(50, 500);
Zone.Admit(turret, piloted: false);
});
// "summon" lists the formations; "summon <id>" places one 400 m ahead of the current ship, facing back toward it. The
// faction rule decides who fights whom: a summon writes no stance.
ConsoleController.AddCommand("summon",
args =>
{
var console = ConsoleController.Instance;
if (args.Length == 0)
{
console.AppendLogLine("Formations: " + string.Join(", ", Formations.All.Select(formation => formation.Id)));
return;
}
var formation = Formations.ById(args[0]);
if (formation == null)
{
console.AppendLogLine($"No formation \"{args[0]}\"; summon alone lists them");
return;
}
if (_currentEntity == null || _currentEntity.Parent != null)
{
console.AppendLogLine("Refused: undock first");
return;
}
var failures = new List<string>();
var summoned = formation.Summon(ItemManager, Zone, _currentEntity.Position.xz + _currentEntity.Direction * 400, -_currentEntity.Direction, failures);
foreach (var failure in failures) console.AppendLogLine($"summon {formation.Id}: {failure}");
if (summoned != null) console.AppendLogLine($"Summoned {formation.Name}: {string.Join(", ", summoned.Select(entity => entity.Name))}");
});
// "fly Djinni": a freshly fitted ship of the named hull beside the current one, and you in it. The ship you leave
// stays where it is, unpiloted.
ConsoleController.AddCommand("fly",
@ -622,6 +702,12 @@ public class ActionGameManager : MonoBehaviour
//Temporary, or not
ConsoleController.AddCommand("tow", _ => TowShip());
ConsoleController.AddCommand("leave", _ =>
{
if (Simulation == null) Debug.Log("leave: only a simulation can be left; there is no simulation");
else LeaveSimulation();
});
// Manual IFF override for the player's current target, for hand-testing combat.
// "iff hostile"/"iff neutral" force a stance; "iff clear" restores the derived faction rule.
ConsoleController.AddCommand("iff", args =>
@ -691,11 +777,37 @@ public class ActionGameManager : MonoBehaviour
return success ?? false;
}
// Ruling tactical-input-hands-off: the one route every Player and Global action is subscribed and read through. TacticalInput
// decides per action whether it is live (an unclassified action is not); a press, a release or a read that is not live is
// dropped, never queued, so the ship holds its last commands. A test scans this file and fails if an action is touched anywhere else.
private bool Live(InputAction action) => TacticalInput.Live(_tactical, action.actionMap.name, action.name);
private void Bind(InputAction action, Action<InputAction.CallbackContext> performed, Action<InputAction.CallbackContext> canceled = null)
{
action.performed += context => { if (Live(action)) performed(context); };
if (canceled != null) action.canceled += context => { if (Live(action)) canceled(context); };
}
private bool TryRead<T>(InputAction action, out T value) where T : struct
{
value = default;
if (!Live(action)) return false;
value = action.ReadValue<T>();
return true;
}
private bool Held(InputAction action) => Live(action) && action.IsPressed();
private InputControl ActiveControl(InputAction action) => Live(action) ? action.activeControl : null;
// The one writer of the cursor lock and the action bar while playing: the tactical view frees the cursor and gives the
// mouse buttons to Pan, so the bar is off there. It is re-applied whenever Tactical changes.
public void EnablePlayerInput()
{
Cursor.lockState = CursorLockMode.Locked;
Cursor.lockState = _tactical.Tactical ? CursorLockMode.None : CursorLockMode.Locked;
Input.Player.Enable();
foreach (var a in _actionBarActions) a.Enable();
foreach (var a in _actionBarActions)
if (_tactical.Tactical) a.Disable(); else a.Enable();
}
public void DisablePlayerInput()
@ -708,13 +820,10 @@ public class ActionGameManager : MonoBehaviour
private void EnterWormhole(Wormhole wormhole)
{
if (!(CurrentEntity is Ship ship) || ship.WormholeAnimationInProgress) return;
// var wormholeCameraFollow = new GameObject("Wormhole Camera Follow").transform;
// wormholeCameraFollow.position = new Vector3(wormhole.Position.x, -50, wormhole.Position.y);
// wormholeCameraFollow.rotation = Quaternion.LookRotation(Vector3.down, ship.Aim);
// WormholeCamera.enabled = true;
// WormholeCamera.Follow = wormholeCameraFollow;
// FollowCamera.enabled = false;
ship.EnterWormhole(wormhole.Position);
WormholeWarpPresenter.Begin(ship, DeathPost.gameObject.layer,
Mathf.Max(DeathPost.priority, HeatstrokePost.priority, HypothermiaPost.priority,
SevereHeatstrokePost.priority, SevereHypothermiaPost.priority) + 1);
ship.OnEnteredWormhole += () =>
{
var oldZone = Zone;
@ -722,30 +831,33 @@ public class ActionGameManager : MonoBehaviour
foreach (var zone in wormhole.Target.AdjacentZones)
CurrentGalaxy.DiscoveredZones.Add(zone);
SectorMap.QueueZoneReveal(wormhole.Target.AdjacentZones);
ship.ExitWormhole(ZoneRenderer.WormholeInstances.Keys.First(w => w.Target == oldZone.GalaxyZone).Position,
ship.ExitWormhole(Zone.WormholeTo(oldZone.GalaxyZone),
Settings.GameplaySettings.WormholeExitVelocity * ItemManager.Random.NextFloat2Direction());
CurrentEntity.Zone = Zone;
SaveRun();
};
}
// The one way out of a simulation: starts the Terminus run. AL7 puts the pilot pick in front of this call.
public void LeaveSimulation()
{
MainMenu.gameObject.SetActive(true); // Launch starts a coroutine on it
MainMenu.Launch(Scenarios.Terminus);
}
public void PopulateLevel(GalaxyZone galaxyZone)
{
if (galaxyZone == null) throw new ArgumentNullException(nameof(galaxyZone));
if (galaxyZone.Contents == null)
// RunStart.Materialize owns every zone's existence; RegionClock.Enter settles the zone entered, records the sighting
// of the zone left and writes the visit. The traveller leaves first, so the sighting holds no player.
var leaving = Zone;
if (CurrentEntity != null)
{
galaxyZone.PackedContents ??= ZoneGenerator.GenerateZone(
ItemManager,
Settings.ZoneSettings,
Settings.PlanetSettings,
CurrentGalaxy,
galaxyZone,
CurrentGalaxy.IsPrelude
);
galaxyZone.Contents = new Zone(ItemManager, Settings.PlanetSettings, galaxyZone.PackedContents, galaxyZone, CurrentGalaxy);
CurrentEntity.Deactivate();
CurrentEntity.Zone.Remove(CurrentEntity);
}
Zone = galaxyZone.Contents;
Zone = RegionClock.Enter(CurrentGalaxy, leaving, galaxyZone);
_zoneEntered = true; // the clock forgets its lead between frames, never inside a step
PlayMusic(MusicType.Overworld);
_music = MusicType.Overworld;
@ -754,8 +866,6 @@ public class ActionGameManager : MonoBehaviour
if (CurrentEntity != null)
{
CurrentEntity.Deactivate();
CurrentEntity.Zone.Remove(CurrentEntity);
CurrentEntity.Zone = Zone;
Zone.Admit(CurrentEntity, piloted: false);
}
@ -819,6 +929,7 @@ public class ActionGameManager : MonoBehaviour
private void StartGame()
{
DiscardSimulation(); // a run's Replace never sees simulation records
if (CurrentGalaxy != null)
{
if (PendingScenario != null) StartScenario();
@ -829,6 +940,7 @@ public class ActionGameManager : MonoBehaviour
foreach(var group in CurrentGalaxy.DiscoveredZones
.GroupBy(dz=>dz.Distance[CurrentGalaxy.Entrance]))
SectorMap.QueueZoneReveal(group);
RunStart.Materialize(ItemManager, Settings.ZoneSettings, Settings.PlanetSettings, CurrentGalaxy);
PopulateLevel(CurrentGalaxy.Zones[saved.CurrentZone]);
var targetEntity = Zone.Entities[saved.CurrentZoneEntity];
if (targetEntity is OrbitalEntity orbitalEntity)
@ -850,19 +962,26 @@ public class ActionGameManager : MonoBehaviour
}
// RunStart owns what a new run starts with (docs/scenarios-cut.md, R.4); this enters and binds. The saved run is
// replaced only once the scenario has staged. A start that fails leaves the saved run as it was and says why on
// replaced only once the scenario has staged; a simulation starts beside it and never replaces it. A start that fails leaves the saved run as it was and says why on
// the main menu, where Continue still resumes the saved run.
private void StartScenario()
{
var scenario = PendingScenario;
PendingScenario = null;
var failures = new List<string>();
var staged = RunStart.Launch(() => RunSave.Replace(CultCache, () =>
RunSave.Simulation simulation = null;
Func<RunStart.Staged> start = () =>
{
RunStart.GenerateArena(ItemManager, Settings.ZoneSettings, Settings.PlanetSettings, CurrentGalaxy, scenario);
PopulateLevel(CurrentGalaxy.Entrance);
return RunStart.Stage(ItemManager, Zone, scenario, Settings.StartingHullName, Settings.TutorialGenerationSettings, failures);
}), failures, Debug.LogException);
return RunStart.Begin(ItemManager, Settings.ZoneSettings, Settings.PlanetSettings, CurrentGalaxy, scenario,
Settings.StartingHullName, failures, () => PopulateLevel(CurrentGalaxy.Entrance));
};
var staged = RunStart.Launch(() =>
{
if (scenario.Saved) return RunSave.Replace(CultCache, start);
var (started, begun) = RunSave.Beside(CultCache, start);
simulation = begun;
return started;
}, failures, Debug.LogException);
if (staged == null)
{
@ -871,6 +990,7 @@ public class ActionGameManager : MonoBehaviour
MainMenu.Refuse($"{scenario.Name} could not start", string.Join("\n", failures));
return;
}
Simulation = simulation;
Credits = staged.Credits;
SectorMap.QueueZoneReveal(CurrentGalaxy.Entrance.AdjacentZones.Prepend(CurrentGalaxy.Entrance));
BindToEntity(staged.Player);
@ -916,7 +1036,7 @@ public class ActionGameManager : MonoBehaviour
ZoneRenderer.PerspectiveEntity = DockedEntity;
DockingBay = dockingBay;
DockCamera.enabled = true;
FollowCamera.enabled = false;
_viewRig.enabled = false;
var orbital = (OrbitalEntity) entity;
DockCamera.Follow = ZoneRenderer.EntityInstances[orbital].transform;
var parentOrbit = Zone.Orbits[orbital.OrbitData].Data.Parent.Key;
@ -1018,7 +1138,6 @@ public class ActionGameManager : MonoBehaviour
if(_incomingLockIndicator.indicator != null) _incomingLockIndicator.indicator.GetComponent<Prototype>().ReturnToPool();
_incomingLockIndicator = default;
DisablePlayerInput();
Cursor.lockState = CursorLockMode.None;
GameplayUI.gameObject.SetActive(false);
foreach(var subscription in _shipSubscriptions) subscription.Dispose();
@ -1058,6 +1177,8 @@ public class ActionGameManager : MonoBehaviour
private void BindToEntity(Entity entity)
{
// A tractor held through a ship change would stay on for the ship we leave: its release is a press we will no longer see.
if (CurrentEntity != null) CurrentEntity.Command.Tractor = 0;
if (!ZoneRenderer.EntityInstances.ContainsKey(entity))
{
Debug.LogError($"Attempted to bind to entity {entity.Name}, but SectorRenderer has no such instance!");
@ -1065,6 +1186,7 @@ public class ActionGameManager : MonoBehaviour
}
CurrentEntity = entity;
_tactical.Reset(entity.Zone.Pack.Radius, BaseFollowDistance(entity), DrawAhead.Position(entity, Clock.Lead).xz);
DeathPost.weight = 0;
ZoneRenderer.PerspectiveEntity = CurrentEntity;
@ -1072,12 +1194,11 @@ public class ActionGameManager : MonoBehaviour
DockedEntity = null;
DockingBay = null;
DockCamera.enabled = false;
FollowCamera.enabled = true;
_viewRig.enabled = true;
if (length(CurrentEntity.Direction) > .1f)
_viewDirection = float3(CurrentEntity.Direction.x,0,CurrentEntity.Direction.y);
Cursor.lockState = CursorLockMode.Locked;
EnablePlayerInput();
GameplayUI.gameObject.SetActive(true);
ShipPanel.Display(CurrentEntity, true);
@ -1093,8 +1214,7 @@ public class ActionGameManager : MonoBehaviour
if (EventLog != null) EventLog.LogMessage(HaulFeed.Line(gain, ItemManager), gain.Adrift > 0 ? Color.yellow : Color.white);
}));
FollowCamera.LookAt = ZoneRenderer.EntityInstances[CurrentEntity].LookAtPoint;
FollowCamera.Follow = ZoneRenderer.EntityInstances[CurrentEntity].transform;
FrameFollow(CurrentEntity);
_articulationGroups = CurrentEntity.Equipment
.Where(item => item.Behaviors.Any(x => x.Data is WeaponData && !(x.Data is LauncherData)))
.GroupBy(item => ZoneRenderer.EntityInstances[CurrentEntity]
@ -1202,6 +1322,85 @@ public class ActionGameManager : MonoBehaviour
_incomingLockIndicator = (incoming, incoming.GetComponent<Rotate>());
}
private CinemachineFramingTransposer _framingTransposer;
private CinemachineMixingCamera _viewRig;
private CinemachineVirtualCamera _tacticalCamera;
// The grid point the Pan drag holds under the cursor; one gesture's state, nothing else.
private float2? _grab;
private TacticalView _tactical;
private TacticalFade _tacticalFade;
private PostProcessVolume _tacticalVolume;
private Camera _schematicCamera;
// Flying: a ship under the player's hand, not docked. Everything tactical reads 0 otherwise.
private bool Flying => RunLive && CurrentEntity != null && DockedEntity == null;
// The one writer of the follow camera's Follow, LookAt and distance for an entity: the distance is
// the hull's reach (from its centre of mass, where Follow sits) times the authored ratio.
private void FrameFollow(Entity entity)
{
var instance = ZoneRenderer.EntityInstances[entity];
FollowCamera.LookAt = instance.LookAtPoint;
FollowCamera.Follow = instance.transform;
ApplyFraming(entity);
}
private float BaseFollowDistance(Entity entity) => Settings.FollowCameraDistancePerReach * Contacts.Radius(entity);
// The one writer of the follow camera's distance: the eased view distance. It asks ZoneRenderer, the one writer of the
// far clip, to see the whole zone from there.
private void ApplyFraming(Entity entity)
{
if (_framingTransposer == null)
_framingTransposer = FollowCamera.GetCinemachineComponent<CinemachineFramingTransposer>();
var distance = _tactical.Distance;
_framingTransposer.m_CameraDistance = distance;
ZoneRenderer.FarClipNeeded = distance + 2 * entity.Zone.Pack.Radius;
}
// The one writer of the tactical camera: three-quarters top-down over the view target on the grid surface, the chase
// view's yaw held, at the eased distance. Its lens is the chase camera's, so the far clip is the one writer's.
private void PoseTactical()
{
var target = _tactical.Target;
var target3 = new Vector3(target.x, DrawAhead.Height(CurrentEntity.Zone, target, Clock.Lead), target.y);
var rotation = Quaternion.Euler(Settings.TacticalPitch, _entityYawPitch.x * Mathf.Rad2Deg, 0);
_tacticalCamera.transform.SetPositionAndRotation(target3 - rotation * Vector3.forward * _tactical.Distance, rotation);
_tacticalCamera.m_Lens = FollowCamera.m_Lens;
}
// Drag: the grid point under the cursor when the button went down stays under it.
private void PanTarget()
{
if (!Held(Input.Player.Pan))
{
_grab = null;
return;
}
var height = DrawAhead.Height(CurrentEntity.Zone, _tactical.Target, Clock.Lead);
TryRead(Input.Player.Point, out Vector2 pointer);
var ray = ZoneRenderer.MainCamera.ScreenPointToRay(pointer);
if (!new Plane(Vector3.up, new Vector3(0, height, 0)).Raycast(ray, out var hit)) return;
var point = ray.GetPoint(hit);
var ground = float2(point.x, point.z);
if (_grab is { } grab) _tactical.Pan(grab - ground);
else _grab = ground;
}
// Everything the tactical view shows is read off the eased camera distance: the fade, the rig's mix, the schematic, the
// map icons' size and the minimap cameras. Time is the Update line that feeds the clock.
private float TacticalBlend() => Flying ? _tactical.Blend(_tactical.Distance) : 0f;
private void ShowTactical(float blend)
{
_viewRig.SetWeight(0, 1 - blend);
_viewRig.SetWeight(1, blend);
_tacticalVolume.weight = blend;
_schematicCamera.enabled = blend > 0;
ZoneRenderer.Map.SetTacticalScale(blend > 0 ? _tactical.Distance * Settings.TacticalIconSize : 0);
foreach (var camera in ZoneRenderer.MinimapCameras) camera.enabled = blend == 0;
}
private void UpdatePlayerPanel()
{
ShipPanel.Display(CurrentEntity, true);
@ -1228,7 +1427,8 @@ public class ActionGameManager : MonoBehaviour
MainMenu.gameObject.SetActive(true);
Menu.gameObject.SetActive(false);
CurrentGalaxy = null;
RunSave.Clear(CultCache);
if (Simulation != null) DiscardSimulation();
else RunSave.Clear(CultCache);
SavePlayerSettings();
}
@ -1250,7 +1450,7 @@ public class ActionGameManager : MonoBehaviour
var deathTime = Time.time;
EndRun();
Observable.EveryUpdate()
.Where(_ => Time.time - deathTime < DeathPostTransitionTime)
.TakeWhile(_ => Time.time - deathTime < DeathPostTransitionTime)
.Subscribe(_ =>
{
var t = (Time.time - deathTime) / DeathPostTransitionTime;
@ -1273,7 +1473,11 @@ public class ActionGameManager : MonoBehaviour
HypothermiaPost.weight = 0;
SevereHypothermiaPost.weight = 0;
DeathPost.weight = 1;
});
// Every run begins in the simulation (ruling terminus-boots-into-ifl), so death anywhere returns to it.
// A New Game or Continue click during the fade has already launched; the scene reload ends the subscription.
if (!MainMenu.Launching) MainMenu.Launch(Scenarios.Simulation);
})
.AddTo(this);
}
// public void ToggleEditMode()
@ -1342,6 +1546,17 @@ public class ActionGameManager : MonoBehaviour
void Update()
{
if (Flying)
{
_tactical.Tick(Time.unscaledDeltaTime);
_tactical.Track(DrawAhead.Position(CurrentEntity, Clock.Lead).xz);
if (_tactical.Tactical) PanTarget();
else _grab = null;
ApplyFraming(CurrentEntity);
PoseTactical();
}
var blend = TacticalBlend();
ShowTactical(blend);
if (!RunLive) return;
if(!_paused)
{
@ -1363,10 +1578,13 @@ public class ActionGameManager : MonoBehaviour
indicator.Value.Place.Target = DrawAhead.Position(indicator.Key, Clock.Lead).ToUnity();
PlaceFill(indicator.Value, indicator.Key);
}
var look = Input.Player.Look.ReadValue<Vector2>();
var sensitivity = PlayerSettings.InputSettings.Sensitivity;
_entityYawPitch = float2(_entityYawPitch.x + look.x * sensitivity.x, clamp(_entityYawPitch.y + look.y * sensitivity.y, -.45f * PI, .45f * PI));
_viewDirection = mul(float3(0, 0, 1), CultMath.float3x3.Euler(float3(_entityYawPitch.yx, 0), RotationOrder.YXZ));
// The tactical view does not steer: the aim and the chase yaw hold while the mouse pans the view.
if (TryRead(Input.Player.Look, out Vector2 look))
{
var sensitivity = PlayerSettings.InputSettings.Sensitivity;
_entityYawPitch = float2(_entityYawPitch.x + look.x * sensitivity.x, clamp(_entityYawPitch.y + look.y * sensitivity.y, -.45f * PI, .45f * PI));
_viewDirection = mul(float3(0, 0, 1), CultMath.float3x3.Euler(float3(_entityYawPitch.yx, 0), RotationOrder.YXZ));
}
CurrentEntity.Command.Aim = _viewDirection;
HeatstrokePost.weight = saturate(unlerp(0, Settings.GameplaySettings.SevereHeatstrokeRiskThreshold, CurrentEntity.Heatstroke));
var severeHeatstrokeLerp = saturate(unlerp(Settings.GameplaySettings.SevereHeatstrokeRiskThreshold, 1, CurrentEntity.Heatstroke));
@ -1375,13 +1593,14 @@ public class ActionGameManager : MonoBehaviour
max(Settings.HeatstrokePhasingFloor, sin(Time.time * Settings.HeatstrokePhasingFrequency));
_faceAimMark.enabled = _helm.Latched;
if(CurrentEntity is Ship ship)
if (CurrentEntity is Ship ship && TryRead(Input.Player.Move, out Vector2 move))
{
ship.Command.Movement = Input.Player.Move.ReadValue<Vector2>().ToCultMath();
_helm.Held = Input.Player.FaceAim.IsPressed();
if (Input.Player.Turn.activeControl is { } turnControl)
ship.Command.Movement = move.ToCultMath();
_helm.Held = Held(Input.Player.FaceAim);
if (ActiveControl(Input.Player.Turn) is { } turnControl)
_turnDigital = turnControl.device is UnityEngine.InputSystem.Keyboard;
var turnAxis = _helm.TurnAxis(Input.Player.Turn.ReadValue<float>(), _turnDigital, Time.deltaTime, KeyboardTurnRampTime);
TryRead(Input.Player.Turn, out float turn);
var turnAxis = _helm.TurnAxis(turn, _turnDigital, Time.deltaTime, KeyboardTurnRampTime);
ship.Command.Turn = _helm.Demand(_viewDirection.xz, ship.BandedTurn(turnAxis));
}
@ -1397,7 +1616,7 @@ public class ActionGameManager : MonoBehaviour
TargetShieldsFill.fillAmount = target.Shield == null ? 0 : lerp(.25f, .75f, target.Shield.Progress);
}
CurrentEntity.Command.Tractor = Input.Player.TractorBeam.ReadValue<float>();
if (!Live(Input.Player.TractorBeam)) CurrentEntity.Command.Tractor = 0;
}
}
// One clock steps the zone, paused or not: a paused frame feeds it no real time.
@ -1405,10 +1624,11 @@ public class ActionGameManager : MonoBehaviour
void EnterNewZone() { if (_zoneEntered) { Clock.Reset(); _zoneEntered = false; } }
EnterNewZone();
var steppedZone = Zone;
Clock.Rate = _tactical.TimeRate(blend);
Clock.Advance(_paused ? 0f : Time.deltaTime, delta =>
{
if (Zone != steppedZone) return;
steppedZone.Update(delta);
RegionClock.Step(steppedZone, delta);
// A warning lives one tick, so sweeps are collected per tick, never read per frame.
if (CurrentEntity != null && CurrentEntity.Zone == steppedZone)
foreach (var warning in CurrentEntity.IncomingPaints)
@ -1494,6 +1714,11 @@ public class ActionGameManager : MonoBehaviour
private void LateUpdate()
{
// The schematic camera is the game camera's pose and lens, seeing only the map's layer.
var output = ZoneRenderer.MainCamera;
_schematicCamera.fieldOfView = output.fieldOfView;
_schematicCamera.nearClipPlane = output.nearClipPlane;
_schematicCamera.farClipPlane = output.farClipPlane;
UpdateTargetIndicators();
}

View file

@ -13,7 +13,9 @@ public class GameSettings : ScriptableObject
public string StartingHullName = "Longinus";
public float HeatstrokePhasingFloor = 0;
public float HeatstrokePhasingFrequency = 5;
public float WormholeDistanceRatio;
// The follow camera's distance from the hull's centre of mass, as a multiple of the hull's reach
// (Contacts.Radius); 1.5 keeps the Longinus at about 30 m.
public float FollowCameraDistancePerReach = 1.5f;
public float DefaultViewDistance;
public float[] MinimapZoomLevels;
public int DefaultMinimapZoom;
@ -21,9 +23,44 @@ public class GameSettings : ScriptableObject
public int AsteroidMeshCount = 5;
public float MinimapAsteroidSize = 3;
public float MinimapIconSize = 1f / 32;
// One isoline view's settings (IsolineView reads them every frame). The look is the operator's to tune by eye;
// CellPixels is the target pixels per field sample; the capacities are sized from the smokes' readings (IsolineRenderSmoke
// 'shipped capacities hold'): the next power of two at or above twice the worst reading at the view's largest pose.
[Serializable]
public struct IsolineViewSettings
{
public IsolineLook Look;
public int CellPixels;
public int SegmentCapacity;
public int PoolCapacity;
}
public IsolineViewSettings MapIsolines, MinimapIsolines;
// Tactical view (rulings tactical-view-distinct-mode, tactical-view-in-runs-slow-time): one wheel notch multiplies the
// camera distance by this, in either view. Every feel constant here (step, band, detent, ease, pitch) is a placeholder
// the operator tunes by eye.
public float TacticalZoomStep = 1.25f;
// The camera distance (m) where the scene starts to fade to the schematic: the chase view's farthest distance and the
// detent band's near edge; and where it is fully faded: the tactical view's nearest distance and the band's far edge.
public float TacticalBlendStart = 250;
public float TacticalBlendEnd = 1000;
// Inside the detent band a notch moves the view this fraction as far as outside it (lower holds harder).
public float DetentResistance = .6f;
// Seconds, e-folding, for the band to push the view back to the edge it came from.
public float DetentRelaxTime = .4f;
// Seconds the camera takes to settle on where the wheel put it (critically damped).
public float ViewEaseTime = .15f;
// The tactical camera's pitch down from the horizon, degrees.
public float TacticalPitch = 55;
// Sim seconds per real second at full fade (about 100x slower).
public float TacticalTimeScale = .01f;
// The farthest zoom, as a multiple of the zone radius.
public float TacticalFitPerRadius = 2;
// Schematic icon size as a fraction of the camera distance.
public float TacticalIconSize = 1f / 40;
// The colour the scene fades toward.
public Color TacticalBackground = new Color(.02f, .03f, .05f, 1);
public float PlanetRotationSpeed = 1;
public TutorialGenerationSettings TutorialGenerationSettings;
public SectorBackgroundSettings TutorialBackgroundSettings;
public SectorBackgroundSettings CastBackgroundSettings;
public SectorBackgroundSettings SectorBackgroundSettings;
public SectorGenerationSettings SectorGenerationSettings;
public BodySettingsCollection[] BodySettingsCollections;
@ -43,7 +80,16 @@ public class GameSettings : ScriptableObject
[HideInInspector] public Sprite[] WeaponFireTypeIcons;
[HideInInspector] public Sprite[] WeaponModifierIcons;
public Sprite GetIcon(HardpointType type) => ItemIcons[(int) type];
// Every HardpointType has an entry in the asset's ItemIcons; a missing one is named, never an IndexOutOfRange.
public Sprite GetIcon(HardpointType type) => IconOf(ItemIcons, type);
public static Sprite IconOf(Sprite[] icons, HardpointType type)
{
var index = (int) type;
if (icons == null || index < 0 || index >= icons.Length || icons[index] == null)
throw new InvalidOperationException($"GameSettings.ItemIcons has no sprite for HardpointType.{type} (index {index}, {icons?.Length ?? 0} entries); set it in the Settings asset.");
return icons[index];
}
public Sprite GetIcon(WeaponType type) => WeaponTypeIcons[(int) type];
public Sprite GetIcon(WeaponRange range) => WeaponRangeIcons[(int) range];
public Sprite GetIcon(WeaponCaliber caliber) => WeaponCaliberIcons[(int) caliber];

View file

@ -1,23 +0,0 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using CultMath;
using static CultMath.math;
public class ShieldTest : MonoBehaviour
{
public float Acceleration;
private float _velocity;
// Update is called once per frame
void Update()
{
_velocity += -sign(transform.position.x) * Acceleration * Time.deltaTime;
transform.position += Vector3.right * (_velocity * Time.deltaTime);
}
private void OnCollisionEnter(Collision other)
{
_velocity = -_velocity;
}
}

View file

@ -85,10 +85,11 @@ public static class ShipModShips
return body;
}
// Fills a ShipInstance on the visual's root from its anchors, as ShipModPlan says; the shared effects come from the
// Fills an instance on the visual's root from its anchors, as ShipModPlan says; the shared effects come from the
// template. Nothing here decides a slot: the plan does. The schematic lines stay in the prototype but are hidden in
// world; the in-world ship is the GLB.
public static ShipInstance Assemble(ShipModVisual.Instance visual, HullData hull, ShipAuthoring ship, ShipModTemplate template)
// world; the in-world ship is the GLB. A Ship hull gets a ShipInstance and a tractor beam; any other hull (a station)
// gets a plain EntityInstance, because ShipInstance flies (SetEntity and Update read its thrusters) and a station does not.
public static EntityInstance Assemble(ShipModVisual.Instance visual, HullData hull, ShipAuthoring ship, ShipModTemplate template)
{
var plan = ShipModPlan.Build(hull, ship);
var minimap = LayerMask.NameToLayer("Minimap");
@ -135,8 +136,14 @@ public static class ShipModShips
var shield = Object.Instantiate(template.Shield.GetComponent<ShieldManager>(), shieldMarker, false);
Reset(shield.transform);
AddOrGet<ShieldEnvelope>(shield.gameObject);
var tractor = Object.Instantiate(template.TractorBeam.GetComponent<TractorBeam>(), Node(plan.Tractor), false);
Reset(tractor.transform);
var isShip = hull.HullType == HullType.Ship;
// The tractor anchor stays required by the plan; a station leaves it unused.
TractorBeam tractor = null;
if (isShip)
{
tractor = Object.Instantiate(template.TractorBeam.GetComponent<TractorBeam>(), Node(plan.Tractor), false);
Reset(tractor.transform);
}
var thrusters = plan.Thrusters.Select(id =>
{
@ -164,7 +171,7 @@ public static class ShipModShips
var lines = visual.Root.transform.Find("Schematic Lines");
if (lines != null) lines.gameObject.SetActive(false);
var instance = AddOrGet<ShipInstance>(visual.Root);
EntityInstance instance = isShip ? AddOrGet<ShipInstance>(visual.Root) : AddOrGet<EntityInstance>(visual.Root);
instance.MapIcon = mapIcon;
instance.InfluencePrefab = null;
instance.PingPrefab = template.Ping.transform;
@ -176,7 +183,7 @@ public static class ShipModShips
instance.RadiatorHardpoints = radiators;
instance.ArticulationPoints = Array.Empty<ArticulationPoint>();
instance.DestroyEffect = template.DestroyEffect;
instance.TractorBeam = tractor;
if (instance is ShipInstance flier) flier.TractorBeam = tractor;
return instance;
}

View file

@ -7,8 +7,8 @@ using GameCult.Caching.MessagePack;
// Aetheria's stores: one home store per type, composed here and nowhere else.
public static class AetheriaStores
{
public static readonly Type[] CatalogTypes = { typeof(ItemData), typeof(ShipAuthoring), typeof(Faction), typeof(FactionProductData), typeof(PersonalityAttribute), typeof(InputLayout), typeof(Loadout), typeof(FieldKindData), typeof(ProvinceData), typeof(VerseGrammar), typeof(VerseVerb), typeof(StationKindData), typeof(RecipeData), typeof(OutsideMarketData) };
public static readonly Type[] RunTypes = { typeof(OrbitData), typeof(BodyData), typeof(SavedZone), typeof(SavedGame), typeof(ProvenanceLedger) };
public static readonly Type[] CatalogTypes = { typeof(ItemData), typeof(ShipAuthoring), typeof(Faction), typeof(FactionProductData), typeof(PersonalityAttribute), typeof(InputLayout), typeof(Loadout), typeof(FieldKindData), typeof(ProvinceData), typeof(VerseGrammar), typeof(VerseVerb), typeof(StationKindData), typeof(RecipeData), typeof(OutsideMarketData), typeof(AtmosphereData) };
public static readonly Type[] RunTypes = { typeof(OrbitData), typeof(BodyData), typeof(SavedZone), typeof(SavedGame), typeof(ProvenanceLedger), typeof(HaulOrderData) };
public static readonly Type[] PlayerTypes = { typeof(PlayerSettings) };
// Attaches (hydrates) the catalog read-only unless catalogWritable, then the run and player stores when given.

View file

@ -34,7 +34,11 @@ public class Agent
public GameplaySettings Settings { get; }
// How this pilot fights: its faction's doctrine for its role (Zone.CreateAgent resolves it).
public RoleDoctrine Doctrine { get; }
public float TopSpeed => _velocityLimit?.Limit ?? 100;
// How fast this hull flies: its VelocityLimit, or 100 without one. The pilot (the cached limit) and an off-screen hauler's flight
// (HaulRun.Fly, TopSpeedOf) read the one rule.
public float TopSpeed => SpeedOf(_velocityLimit);
public static float TopSpeedOf(Ship ship) => SpeedOf(ship.GetBehavior<VelocityLimit>());
private static float SpeedOf(VelocityLimit limit) => limit?.Limit ?? 100;
public Agent(Ship ship, RoleDoctrine doctrine)
{

View file

@ -20,6 +20,14 @@ public class Minion : Agent
followState.AddTransition(patrolState, () => Task is PatrolOrbitsTask, Patrol);
followState.AddTransition(_rootState, () => !(Task is FollowTask));
// The hauler's task (HaulRun.TaskOf): the same switch as patrol's, ignoring the other task states each walk could reach.
var haulState = new HaulState(this);
_rootState.AddTransition(haulState, () => Task is HaulingTask);
haulState.AddTransition(followState, () => Task is FollowTask, null, true, _rootState);
haulState.AddTransition(_rootState, () => !(Task is HaulingTask), null, true, _rootState, followState);
followState.AddTransition(haulState, () => Task is HaulingTask);
patrolState.AddTransition(haulState, () => Task is HaulingTask, null, true, _rootState, followState);
var combatState = new CombatState(this);
_rootState.AddTransition(combatState,
() => View.TargetOf(Ship) != null, null, true, _rootState);

View file

@ -0,0 +1,33 @@
using GameCult.Caching;
// A hauler's pilot: it flies to HaulRun.Waypoint, derived from the hold and the order on every update. With no hop it flies to the leg's
// orbit and, within docking distance of a station where the call would move a unit, commands the call (HaulRun.Call docks, moves the
// goods and undocks it, which gives it a fresh pilot on the same task). With a hop the leg lies in another zone: it flies to this zone's
// wormhole toward it and, within the wormhole's reach, commands the jump (HaulRun.Jump). No field but its children: a hand-emptied hold
// changes the waypoint at once.
public class HaulState : BaseState
{
public HaulState(Agent agent) : base(agent)
{
var move = new MoveToOrbitState(agent);
var leave = new MoveToPointState(agent);
HaulOrderData Order() => _agent.Task is HaulingTask task ? HaulRun.OrderOf(_agent.ItemManager, task.Order) : null;
(CultRecordKey Orbit, GalaxyZone Hop)? Way() => Order() is HaulOrderData order ? HaulRun.Waypoint(_agent.Ship, order) : null;
OrbitalEntity Station() => HaulRun.Station(_agent.Ship.Zone, move.Orbit);
bool Callable()
{
var order = Order();
var station = order == null ? null : Station();
return station != null && move.Distance < _agent.Settings.DockingDistance && HaulRun.CanCall(_agent.Ship, station, order);
}
bool Leaving() => leave.Distance < _agent.Settings.WormholeExitRadius && !_agent.Ship.WormholeAnimationInProgress;
Transitions.Add(new StateTransition(move, () => Way() is { Hop: null }, () => move.Orbit = Way().Value.Orbit));
Transitions.Add(new StateTransition(leave, () => Way() is { Hop: not null }, () => leave.Point = _agent.Ship.Zone.WormholeTo(Way().Value.Hop)));
// A changed waypoint re-enters this state, which points the child at it; a callable station commands the call, a reached wormhole the jump.
move.Transitions.Add(new StateTransition(this, () => !(Way() is { Hop: null } way && way.Orbit.Equals(move.Orbit)), null));
move.Transitions.Add(new StateTransition(this, Callable, () => _agent.Ship.Command.Call(Station())));
leave.Transitions.Add(new StateTransition(this, () => !(Way() is { Hop: not null } way && _agent.Ship.Zone.WormholeTo(way.Hop).Equals(leave.Point)), null));
leave.Transitions.Add(new StateTransition(this, Leaving, () => _agent.Ship.Command.Jump(Way().Value.Hop)));
}
}

View file

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: c8eaf78200fa454292cd86bdde3f4903
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View file

@ -36,3 +36,11 @@ public class MoveToOrbitState : MoveToState
protected override float2 TargetPosition => _agent.Ship.Zone.GetOrbitPosition(Orbit);
}
public class MoveToPointState : MoveToState
{
public float2 Point { get; set; }
public MoveToPointState(Agent agent) : base(agent) { }
protected override float2 TargetPosition => Point;
}

View file

@ -1,27 +1,16 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
using GameCult.Caching;
using System;
using System.Collections;
using System.Collections.Generic;
using MessagePack;
using Newtonsoft.Json;
// The order key alone: the leg is HaulRun.Leg's, derived from the hold and the order every update, never stored here.
public class HaulingTask : AgentTask
{
public override TaskType Type => TaskType.Haul;
[JsonProperty("origin"), Key(4)]
public Entity Origin;
[JsonProperty("target"), Key(5)]
public Entity Target;
[JsonProperty("itemType"), Key(6)]
public CultRecordKey ItemType;
[JsonProperty("quantity"), Key(7)]
public int Quantity;
[JsonProperty("order"), Key(4)]
public CultRecordKey Order;
}

View file

@ -28,7 +28,7 @@ public abstract class Behavior
{
if(Item != null)
{
var itemDirection = Entity.Direction.Rotate(Item.EquippableItem.Rotation);
var itemDirection = Item.Orient(Entity.Direction);
return float3(itemDirection.x, 0, itemDirection.y);
}
@ -109,11 +109,6 @@ public interface IInitializableBehavior
void Initialize();
}
public interface IInteractiveBehavior
{
bool Exposed { get; }
}
public interface IAlwaysUpdatedBehavior
{
void Update(float delta);
@ -124,11 +119,6 @@ public interface IProgressBehavior
float Progress { get; }
}
public interface IPopulationAssignment
{
int AssignedPopulation { get; set; }
}
// Cut 3 (docs/stats-and-power-cut.md §1.2): a behaviour that wants to draw from its entity's PowerBus declares a
// request instead of spending energy itself. PowerBus.Step calls this on every consumer once per tick, before
// any behaviour's Execute runs, so PowerRequest must be computable from state that is already current at that
@ -200,6 +190,8 @@ public interface IPowerConsumer
Union(50, typeof(ListenerData)),
Union(51, typeof(ScannerData)),
Union(52, typeof(LockWeaponData)),
Union(53, typeof(FacilityData)),
Union(54, typeof(HabitationData)),
JsonObject(MemberSerialization.OptIn)]
public abstract class BehaviorData
{

View file

@ -0,0 +1,160 @@
using System;
using System.Collections.Generic;
using System.Linq;
using GameCult.Caching;
using MessagePack;
using Newtonsoft.Json;
// The facility gear a station carries to run recipes: a GearData of HardpointType Facility whose Behaviors hold one of these. The type
// says where it mounts (a hull's Facility rows), this says it runs recipes. It holds no field of its own: which recipes a facility
// runs is derived from RecipeData.Facility, so no list is stored here. A facility is installed gear, never a consumable's effect.
[Inspectable, MessagePackObject, JsonObject(MemberSerialization.OptIn)]
public class FacilityData : BehaviorData
{
public override Behavior CreateInstance(EquippedItem item)
{
return new Facility(this, item);
}
public override Behavior CreateInstance(ConsumableItemEffect item)
{
throw new System.InvalidOperationException($"{item.Data.Name} cannot carry a facility: a facility is installed gear, never a consumable effect.");
}
}
// The installed facility (ruling demand-consumed-inputs-processed-by-facilities). It ticks once per zone step, from EquippedItem.Update
// while the item is active, on screen; off screen RegionClock.AdvanceInstalled calls Span with the span the zone missed. Its recipes are
// the run list of its design, fixed for a run because the catalog is.
//
// Two paths, by where the zone is (ruling auto-mining-is-off-screen-only). Off screen every facility advances by Production.Advance:
// an ore rig's raw recipes start by Production.Pick. On screen the raw ore entries of the list work the zone's rocks instead (Work),
// through Zone.Wear and FireControl.Extract, the player's own mining, an ore at a time as Production.Pick names it, at the recipe's own
// cycle and count, so the units of each ore come as the pick has them off screen; the player sees the rocks break, and the unit's
// FacilityRun is left as the off-screen path last wrote it. Every other entry, a skimmer's volatiles included (ruling
// skimmers-run-their-recipe-on-screen-for-now), runs Advance in both.
public class Facility : Behavior
{
private IReadOnlyList<RecipeData> _runList;
private IReadOnlyList<RecipeData> _ores;
private IReadOnlyList<RecipeData> _others;
private EntityHold _hold;
// Why the facility advanced no further this step: derived by Advance every step, never stored on the unit.
public Stall Stall { get; private set; }
// The hold's Revision when an idle facility last failed to take a cycle's inputs. A failed take reads nothing but the hold, so
// until the hold changes a retry fails the same way and is skipped. Not persisted: a restored facility tries once on its first step.
private long _failedAt;
// How many steps tried to take a cycle's inputs: a diagnostic of the skip above, derived and not persisted.
public int Attempts { get; private set; }
// The rig's on-screen cycle, derived and not persisted: how many it has worked (the pick's count, begun from the unit's own count
// when first worked), the recipe and rock of the one under way, and the sim seconds into it.
private long _worked = -1;
private RecipeData _working;
private ChunkId _rock;
private bool _rocked;
private double _into;
public Facility(FacilityData data, EquippedItem item) : base(data, item)
{
SetRunList();
}
// The run list as the catalog holds it, split into the raw ore entries that work rocks on screen and the rest.
private void SetRunList()
{
var catalog = ItemManager.ItemData;
_runList = Production.RunList(catalog, Item.EquippableItem.Data.Key);
bool Ore(RecipeData recipe) => Recipes.IsRaw(catalog, recipe) && catalog.Get(recipe.Output) is SimpleCommodityData output && FieldKinds.IsOre(catalog, output);
_ores = _runList.Where(Ore).ToArray();
_others = _runList.Where(recipe => !Ore(recipe)).ToArray();
}
// The on-screen step: one zone step.
public override bool Execute(float dt)
{
if (_ores.Count > 0) Work(dt);
if (_others.Count > 0 || _ores.Count == 0) Advance(dt, _others);
return true;
}
// The off-screen step: the span the zone missed, always the recipe rule.
public void Span(double seconds) => Advance(seconds, _runList);
// Whether the station's output bays have a cell for one unit of the good and its share of the silo has room: the landing Advance's
// put takes, asked before any rock is worn.
private bool Lands(CultRecordKey good) =>
StationWants.Room(Entity, good) >= 1 && StationWants.OutputBays(Entity, good).Any(bay =>
bay.TryFindSpace(new SimpleCommodity { Data = new CultRecordRef<ItemData>(good), Quantity = 1 }));
// The rock an ore rig works, in sim time dt. A cycle begins at Production.Pick on the cycles worked (then the next recipe the ground
// holds and the station has room for, as Advance goes on), picks a whole rock whose belt holds that ore, by a stable hash of the cycle
// (so rocks take turns), and for the recipe's Cycle seconds wears it by what OutputCount units of it owe (what FireControl.Extract
// pays for the damage it absorbs); a rock that breaks gives way to the next. Extract pays that ore only, into the output bays, by dice
// of its own stream. Barren with no ore the ground holds or no whole rock of it; Room, with nothing worn, when the ore has no landing.
private void Work(double dt)
{
_hold ??= new EntityHold(Entity);
var catalog = ItemManager.ItemData;
var zone = Entity.Zone;
if (zone == null) { Stall = Stall.Barren; return; }
if (_worked < 0) _worked = Item.EquippableItem.Run?.Cycles ?? 0;
if (_working == null)
{
var pick = Production.Pick(_ores, _worked, _hold);
if (pick < 0) { Stall = Stall.Barren; return; }
for (var step = 0; step < _ores.Count && _working == null; step++)
{
var candidate = _ores[(pick + step) % _ores.Count];
if (_hold.Deposit(candidate.Output.Key) > 0f && Lands(candidate.Output.Key)) _working = candidate;
}
if (_working == null) { Stall = Stall.Room; return; }
_into = 0;
_rocked = false;
}
var ore = _working.Output.Key;
if (!Lands(ore)) { Stall = Stall.Room; return; }
if (!_rocked || !zone.ChunkExists(_rock))
{
var province = zone.GalaxyZone?.Province?.Type ?? default;
var whole = new List<ChunkId>();
foreach (var belt in zone.AsteroidBelts.OrderBy(entry => entry.Value.Data.SiteOr(entry.Key), StringComparer.Ordinal))
{
if (!FieldKinds.Yield(belt.Value.Data.Kind, province, catalog).Any(yield => yield.Commodity.Key.Equals(ore))) continue;
for (var index = 0; index < belt.Value.Data.Asteroids.Length; index++)
if (zone.ChunkExists(new ChunkId(belt.Key, index))) whole.Add(new ChunkId(belt.Key, index));
}
if (whole.Count == 0) { _rocked = false; Stall = Stall.Barren; return; }
_rock = whole[(int) ($"rock:{_worked}:{ore.Value}".StableHash() % (uint) whole.Count)];
_rocked = true;
}
var settings = zone.Settings;
var size = ((AsteroidBeltData) zone.Planets[_rock.Field]).Asteroids[_rock.Index].Size;
var damage = (float) (_working.OutputCount / (double) _working.Cycle * dt / settings.AsteroidYield.Evaluate(size) * settings.AsteroidHitpoints.Evaluate(size));
var place = Entity.Equipment.IndexOf(Item);
var ordinal = SimulationDice.Mix(unchecked((uint) (long) Math.Floor(zone.ExactTime * 1000))) ^ (uint) place;
FireControl.Extract(zone, _rock, zone.Wear(_rock, damage), Entity, SimulationDice.For(zone.DropSeed, SimulationDice.RigStream, ordinal),
ore, StationWants.OutputBays(Entity, ore));
Stall = Stall.None;
_into += dt;
if (_into >= _working.Cycle) { _worked++; _working = null; _rocked = false; }
}
private void Advance(double seconds, IReadOnlyList<RecipeData> list)
{
_hold ??= new EntityHold(Entity);
var idle = Item.EquippableItem.Run == null || Item.EquippableItem.Run.Progress <= 0;
if (idle && Stall == Stall.Inputs && _hold.Revision == _failedAt) return;
Attempts++;
// A running cycle whose recipe left the catalog or stopped running here is dropped by Advance: the list it was built from is
// stale, so it is rebuilt from the catalog before that step.
if (!idle && Production.Live(ItemManager.ItemData, Item.EquippableItem.Run.Recipe) == null)
SetRunList();
var (run, stall) = Production.Advance(ItemManager.ItemData, list, Item.EquippableItem.Run, seconds, _hold);
Item.EquippableItem.Run = run;
Stall = stall;
if (idle && stall == Stall.Inputs) _failedAt = _hold.Revision;
}
}

View file

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: a65a21b40f2a4daba2b058018ba5e8d7
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View file

@ -0,0 +1,119 @@
using System;
using System.Collections.Generic;
using System.Linq;
using GameCult.Caching;
using MessagePack;
using Newtonsoft.Json;
// The habitation gear a station carries to house a population: a GearData whose Behaviors hold one of these. The design says how many
// it houses and what each occupant consumes, so a population is installed gear like a facility is (rulings
// installed-gear-decides-what-a-station-buys, mass-populations-live-in-blooms): there is no population record and no needs table
// outside the module design. A station's Crew Quarters and a habitat's Housing Districts are designs of it. Installed gear, never a
// consumable's effect.
[Inspectable, MessagePackObject, JsonObject(MemberSerialization.OptIn)]
public class HabitationData : BehaviorData
{
// The occupants the unit houses when full: what a unit with no recorded population holds, and, until population dynamics moves
// it, what it holds always.
[Inspectable, JsonProperty("capacity"), Key(1)]
public int Capacity;
// What each occupant consumes: one row per commodity.
[Inspectable, JsonProperty("table"), Key(2)]
public List<HabitationRow> Table = new List<HabitationRow>();
public override Behavior CreateInstance(EquippedItem item)
{
return new Habitation(this, item);
}
public override Behavior CreateInstance(ConsumableItemEffect item)
{
throw new InvalidOperationException($"{item.Data.Name} cannot carry a habitation module: a habitation module is installed gear, never a consumable effect.");
}
}
// One commodity a population eats: units per occupant per sim hour, and whether the occupants cannot do without it (Basic) or it is
// a lifestyle good. Basic is recorded for the follow-up that makes a shortfall matter; this cut reads it nowhere.
[MessagePackObject, JsonObject(MemberSerialization.OptIn)]
public class HabitationRow
{
[JsonProperty("commodity"), Key(0)] public CultRecordRef<ItemData> Commodity;
[JsonProperty("perOccupantHour"), Key(1)] public float PerOccupantHour;
[JsonProperty("basic"), Key(2)] public bool Basic;
// Element identity: minted by the cache on write; "" means unset.
[Key(3)] [CultElementId] public string Id = "";
}
// The population an installed habitation unit houses, on the unit (EquippableItem.Habitants): its size and, per table row, the
// fraction of a unit its occupants have consumed and not yet taken. Written only by Habitation.Execute from Upkeep.Advance's result.
[MessagePackObject, JsonObject(MemberSerialization.OptIn)]
public class Habitants
{
[JsonProperty("size"), Key(0)] public double Size;
// By table row. Always a fraction below one between steps: whole units are taken, or dropped when the hold lacks them.
[JsonProperty("owed"), Key(1)] public double[] Owed = Array.Empty<double>();
}
// The one rule for what a population consumes: the occupants of a unit accrue Size x rate x seconds / 3600 of each row, the hold is
// asked for the whole units, and a unit the hold cannot give is dropped, never carried as a debt (idea planets-blooms-map.rejected-carry-unmet-debt).
// On screen its one caller is Habitation.Execute with one zone step; off screen RegionClock.AdvanceInstalled calls that with the span
// the zone missed. It reads no random, no clock and no crew.
public static class Upkeep
{
// The population after `seconds`, and the rows of the table that went short (a row whose hold gave fewer whole units than the
// occupants owed). A null state is a unit that has not stepped yet: full capacity, nothing owed. Pure over its arguments but for the
// hold it takes from.
public static (Habitants state, IReadOnlyList<CultRecordKey> shortfall) Advance(HabitationData data, Habitants state, double seconds, IProductionHold hold)
{
var size = state?.Size ?? data.Capacity;
if (!(seconds > 0)) seconds = 0;
var owed = new double[data.Table.Count];
var shortfall = new List<CultRecordKey>();
for (var at = 0; at < owed.Length; at++)
{
var row = data.Table[at];
// A row that names no commodity consumes nothing and owes nothing: its Owed stays zero, so Owed is a fraction below one always.
if (!row.Commodity.IsSet()) continue;
var was = state?.Owed != null && at < state.Owed.Length ? state.Owed[at] : 0;
owed[at] = was + size * row.PerOccupantHour * seconds / 3600;
var whole = (int) Math.Floor(owed[at]);
if (whole <= 0) continue;
var key = row.Commodity.Key;
var taken = whole;
if (!hold.TryTake(new[] { (key, whole) }))
{
taken = Math.Min(whole, hold.Held(key));
if (taken > 0 && !hold.TryTake(new[] { (key, taken) })) taken = 0;
shortfall.Add(key);
}
owed[at] -= whole;
}
return (new Habitants { Size = size, Owed = owed }, shortfall);
}
}
// The installed habitation unit. It ticks once per zone step, from EquippedItem.Update while the item is active, on screen; off screen
// RegionClock.AdvanceInstalled calls Execute with the span the zone missed. It takes from the same hold a facility does.
public class Habitation : Behavior
{
private readonly HabitationData _data;
private EntityHold _hold;
// The commodities the last step could not fully take: derived by Execute every step, never stored on the unit.
public IReadOnlyList<CultRecordKey> Shortfall { get; private set; } = Array.Empty<CultRecordKey>();
public Habitation(HabitationData data, EquippedItem item) : base(data, item)
{
_data = data;
}
public override bool Execute(float dt)
{
_hold ??= new EntityHold(Entity);
var (state, shortfall) = Upkeep.Advance(_data, Item.EquippableItem.Habitants, dt, _hold);
Item.EquippableItem.Habitants = state;
Shortfall = shortfall;
return true;
}
}

View file

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 4066805b976ae8b493827f0cefb1a1d0
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View file

@ -45,10 +45,8 @@ public class ItemUsage : Behavior
if (cargo == null) return false;
var item = cargo.ItemsOfType[_data.Item.Key][0];
if (item is SimpleCommodity simpleCommodity)
cargo.Remove(simpleCommodity, 1);
if (item is CraftedItemInstance craftedItemInstance)
cargo.Remove(craftedItemInstance);
// One unit of a stack, or the unit itself.
cargo.Remove(item, 1);
return true;
}

View file

@ -49,7 +49,13 @@ public class Thruster : Behavior, IPowerConsumer
// Thrust at a full grant, the same stat read without the power-supply term: what a column promises. Live, like Thrust.
public float NominalThrust => EvaluateNominalPower(_data.Thrust);
// GameplaySettings.ThrustScale scales the push alone: it tunes how hard ships fight gravity, and turning does not.
public float Torque { get; }
public float Torque => Item == null ? 0f : -dot(normalize(_hullCenter - _itemCenter), Item.Orient(float2(1, 0)));
// Placement, fixed at construction: the hull's centre of mass and the item's own centre, both in cell space. The
// lever (the direction from one to the other) and the facing it is dotted with are derived on every Torque read,
// so a later change to where the item sits or which way it faces moves the torque without a second owner.
private readonly float2 _hullCenter;
private readonly float2 _itemCenter;
// This thruster's effect per unit throttle at the given thrust, in the body frame: xy is the push (x starboard, y
// forward), z the clockwise yaw rate in rad/s. Zero when the item is absent or offline. The one geometry owner for
@ -57,7 +63,7 @@ public class Thruster : Behavior, IPowerConsumer
public float3 Column(float thrust)
{
if (Item == null || !Item.Active.Value) return default;
var push = -float2(0, 1).Rotate(Item.EquippableItem.Rotation) * thrust * ItemManager.GameplaySettings.ThrustScale / Entity.Mass;
var push = -Item.Orient(float2(0, 1)) * thrust * ItemManager.GameplaySettings.ThrustScale / Entity.Mass;
return float3(push.x, push.y, Torque * thrust * ItemManager.GameplaySettings.TorqueMultiplier / Entity.Mass);
}
@ -81,17 +87,14 @@ public class Thruster : Behavior, IPowerConsumer
{
_data = data;
var hullData = ItemManager.GetData(Entity.Hull) as HullData;
var hullCenter = hullData.Shape.CenterOfMass;
_hullCenter = hullData.Shape.CenterOfMass;
var itemData = ItemManager.GetData(item.EquippableItem);
var itemCenter = hullData.Shape.Inset(itemData.Shape, item.Position, item.EquippableItem.Rotation).CenterOfMass;
var toCenter = hullCenter - itemCenter;
Torque = -dot(normalize(toCenter), float2(1, 0).Rotate(item.EquippableItem.Rotation));
_itemCenter = hullData.Shape.Inset(itemData.Shape, item.Position, item.EquippableItem.Rotation).CenterOfMass;
}
public Thruster(ThrusterData data, ConsumableItemEffect item) : base(data, item)
{
_data = data;
Torque = 0;
}
// Cut 3 (docs/stats-and-power-cut.md): the resolved stat times the behaviour-supplied throttle scalar (§1.2),

View file

@ -23,7 +23,8 @@ public enum GiveEnd
public sealed class GiveOrder
{
public readonly Entity Receiver;
// A commodity order is for any stack of this item's design in the giver's bays; a crafted order is for this instance.
// A stack order is for any stack the item StacksWith in the giver's bays (the same design, and for a compound
// commodity the same lot); a unit order is for this instance.
public readonly ItemInstance Item;
// Units still to move.
public int Remaining { get; internal set; }
@ -99,27 +100,25 @@ public static class CargoTransfer
}
}
// Where the next unit comes from: the first stack of the order's design in the giver's bays, or the crafted instance.
// Where the next unit comes from: the first stack in the giver's bays the order's item StacksWith, or the unit itself.
private static (EquippedCargoBay Bay, ItemInstance Item) Source(Entity giver, GiveOrder order)
{
foreach (var bay in giver.CargoBays)
{
if (order.Item is CraftedItemInstance crafted)
if (order.Item is ICommodityStack wanted)
{
if (bay.Cargo.ContainsKey(crafted)) return (bay, crafted);
}
else if (bay.ItemsOfType.TryGetValue(order.Item.Data.Key, out var stacks))
{
var stack = stacks.OfType<SimpleCommodity>().FirstOrDefault();
if (stack != null) return (bay, stack);
if (bay.ItemsOfType.TryGetValue(order.Item.Data.Key, out var stacks))
{
var stack = stacks.FirstOrDefault(wanted.StacksWith);
if (stack != null) return (bay, stack);
}
}
else if (bay.Cargo.ContainsKey(order.Item)) return (bay, order.Item);
}
return (null, null);
}
// One unit of a commodity, or the crafted item, into the first receiver bay that takes it.
// One unit of a stack, or the unit itself, into the first receiver bay that takes it.
private static bool Move(EquippedCargoBay from, ItemInstance item, Entity receiver) =>
item is SimpleCommodity commodity
? receiver.CargoBays.Any(bay => from.TryTransferItem(bay, commodity, 1))
: receiver.CargoBays.Any(bay => from.TryTransferItem(bay, (CraftedItemInstance) item));
receiver.CargoBays.Any(bay => from.TryTransferItem(bay, item, 1));
}

View file

@ -49,7 +49,10 @@ public class Faction
// Keys 13 to 15 (overworldMusic, combatMusic, bossMusic) held Wwise ids; retired, never reuse them.
// Key 16 is reserved for Relations (operator ruling faction-relations-field).
// How this faction regards each other faction; absent is Neutral. Directed: this map says how this faction regards them, theirs
// says how they regard it. Read only through Entity.Regard (ruling faction-relations-field).
[Inspectable, CultReference(typeof(Faction), many: true), JsonProperty("relations"), Key(16)]
public Dictionary<CultRecordRef<Faction>, FactionRelationship> Relations = new Dictionary<CultRecordRef<Faction>, FactionRelationship>();
// The faction's rules of engagement; null fights as FactionDoctrine.Default.
[Inspectable, JsonProperty("doctrine"), Key(17)]
@ -58,7 +61,7 @@ public class Faction
// The maker's final assembly: the distribution every lot of theirs draws its own quality from, and the hard ceiling on each
// of its roles (quality-lean-assembly-hard-ceiling). Null is not authored: a lot of theirs assembles at AssemblyDistribution's
// defaults. assembly-from-maker derives it once at the part mean plus a tolerance margin (quality-min-tolerance-binned-assembly);
// tune it in Studio after that. Key 16 is reserved for Relations and 18 for Livery. Key 20 was assemblyDeviation (retired); never reuse it.
// tune it in Studio after that. Key 18 is reserved for Livery. Key 20 was assemblyDeviation (retired); never reuse it.
[Inspectable, JsonProperty("assembly"), Key(19)]
public AssemblyDistribution Assembly;

View file

@ -1,17 +1,33 @@
using System;
using System.Collections.Generic;
using System.Numerics;
using CultMath;
// The Delaunay triangulation of a galaxy's zone positions, as the edges Galaxy links zones along. Bowyer-Watson
// (Bowyer 1981, Watson 1981) in double precision: each point is inserted by removing every triangle whose
// circumcircle holds it and fanning the cavity's boundary to it. Every point lands in the triangulation, so for two or
// more distinct points the edge graph is connected.
// (Bowyer 1981, Watson 1981): each point is inserted by removing every triangle whose circumcircle strictly holds it and
// fanning the cavity's boundary to it. The orientation and in-circle predicates are exact: a double-precision
// determinant answers when it clears its rounding-error bound (Shewchuk 1997), otherwise the determinant is evaluated
// in BigInteger, since every double is a dyadic rational. For two or more distinct points the edge graph is connected:
// collinear points link each to its neighbour along the line; duplicate or non-finite points throw.
public static class Delaunay
{
// Each edge once, as (lower index, higher index), in ascending order.
public static List<(int a, int b)> Edges(IReadOnlyList<float2> points)
{
var n = points.Count;
var order = new int[n];
for (var i = 0; i < n; i++)
{
if (!float.IsFinite(points[i].x) || !float.IsFinite(points[i].y))
throw new ArgumentException($"Delaunay point {i} is not finite: ({points[i].x}, {points[i].y})");
order[i] = i;
}
// Lexicographic order runs along any line, and puts equal points side by side.
Array.Sort(order, (i, j) => points[i].x != points[j].x ? points[i].x.CompareTo(points[j].x) : points[i].y.CompareTo(points[j].y));
for (var i = 1; i < n; i++)
if (points[order[i - 1]].x == points[order[i]].x && points[order[i - 1]].y == points[order[i]].y)
throw new ArgumentException($"Delaunay points {Math.Min(order[i - 1], order[i])} and {Math.Max(order[i - 1], order[i])} are the same point ({points[order[i]].x}, {points[order[i]].y})");
var x = new double[n + 3];
var y = new double[n + 3];
double minX = double.MaxValue, minY = double.MaxValue, maxX = double.MinValue, maxY = double.MinValue;
@ -25,9 +41,22 @@ public static class Delaunay
maxY = Math.Max(maxY, y[i]);
}
// A super-triangle far outside the points, so its vertices bend no edge between them; its triangles are
// dropped at the end.
var size = Math.Max(Math.Max(maxX - minX, maxY - minY), 1e-6) * 1000;
var collinear = true;
for (var i = 2; i < n && collinear; i++)
collinear = Orientation(x, y, order[0], order[1], order[i]) == 0;
if (collinear)
{
var line = new List<(int a, int b)>();
for (var i = 1; i < n; i++) line.Add(Ordered(order[i - 1], order[i]));
line.Sort();
return line;
}
// A super-triangle so far outside the points that its vertices bend no edge between them: a float's coordinates
// are multiples of 2^-149, so a triple of distinct non-collinear points has circumradius under extent^3 * 2^300,
// which 2^700 * extent exceeds for any extent a float holds. Its triangles are dropped at the end. Its
// coordinates overflow the double determinants, which then fail every comparison and fall to the exact path.
var size = Math.Max(maxX - minX, maxY - minY) * Math.Pow(2, 700);
double midX = (minX + maxX) / 2, midY = (minY + maxY) / 2;
x[n] = midX - size; y[n] = midY - size;
x[n + 1] = midX + size; y[n + 1] = midY - size;
@ -41,9 +70,7 @@ public static class Delaunay
for (var t = triangles.Count - 1; t >= 0; t--)
{
var triangle = triangles[t];
var dx = x[p] - triangle.CenterX;
var dy = y[p] - triangle.CenterY;
if (dx * dx + dy * dy >= triangle.RadiusSquared) continue;
if (InCircle(x, y, triangle.A, triangle.B, triangle.C, p) * triangle.Orientation <= 0) continue;
Count(cavity, triangle.A, triangle.B);
Count(cavity, triangle.B, triangle.C);
Count(cavity, triangle.C, triangle.A);
@ -79,19 +106,90 @@ public static class Delaunay
private readonly struct Triangle
{
public readonly int A, B, C;
public readonly double CenterX, CenterY, RadiusSquared;
// +1 if A, B, C run counter-clockwise, -1 if clockwise; a triangle never has zero area.
public readonly int Orientation;
public Triangle(int a, int b, int c, double[] x, double[] y)
{
A = a;
B = b;
C = c;
double ax = x[a], ay = y[a], bx = x[b], by = y[b], cx = x[c], cy = y[c];
var d = 2 * (ax * (by - cy) + bx * (cy - ay) + cx * (ay - by));
double a2 = ax * ax + ay * ay, b2 = bx * bx + by * by, c2 = cx * cx + cy * cy;
CenterX = (a2 * (by - cy) + b2 * (cy - ay) + c2 * (ay - by)) / d;
CenterY = (a2 * (cx - bx) + b2 * (ax - cx) + c2 * (bx - ax)) / d;
RadiusSquared = (ax - CenterX) * (ax - CenterX) + (ay - CenterY) * (ay - CenterY);
Orientation = Delaunay.Orientation(x, y, a, b, c);
if (Orientation == 0) throw new InvalidOperationException($"Delaunay built a zero-area triangle on points {a}, {b}, {c}");
}
}
// Shewchuk's error bounds for the double-precision determinants: (3 + 16e)e and (10 + 96e)e, e = 2^-53.
private const double OrientationBound = 3.3306690738754716e-16;
private const double InCircleBound = 1.1102230246251577e-15;
// The sign of the area a, b, c span: +1 counter-clockwise, -1 clockwise, 0 collinear.
private static int Orientation(double[] x, double[] y, int a, int b, int c)
{
var left = (x[a] - x[c]) * (y[b] - y[c]);
var right = (y[a] - y[c]) * (x[b] - x[c]);
var det = left - right;
var bound = OrientationBound * (Math.Abs(left) + Math.Abs(right));
if (det > bound) return 1;
if (-det > bound) return -1;
var exact = Exact.Of(x, y, a, b, c);
return (exact[0] * exact[3] - exact[1] * exact[2]).Sign;
}
// The sign of the in-circle determinant: +1 when p is strictly inside the circle through a, b, c taken
// counter-clockwise, -1 strictly outside, 0 on it.
private static int InCircle(double[] x, double[] y, int a, int b, int c, int p)
{
double adx = x[a] - x[p], ady = y[a] - y[p], bdx = x[b] - x[p], bdy = y[b] - y[p], cdx = x[c] - x[p], cdy = y[c] - y[p];
double abL = adx * bdy, abR = bdx * ady, bcL = bdx * cdy, bcR = cdx * bdy, caL = cdx * ady, caR = adx * cdy;
double alift = adx * adx + ady * ady, blift = bdx * bdx + bdy * bdy, clift = cdx * cdx + cdy * cdy;
var det = alift * (bcL - bcR) + blift * (caL - caR) + clift * (abL - abR);
var permanent = (Math.Abs(bcL) + Math.Abs(bcR)) * alift + (Math.Abs(caL) + Math.Abs(caR)) * blift + (Math.Abs(abL) + Math.Abs(abR)) * clift;
var bound = InCircleBound * permanent;
if (det > bound) return 1;
if (-det > bound) return -1;
var e = Exact.Of(x, y, a, b, c, p);
BigInteger ax = e[0], ay = e[1], bx = e[2], by = e[3], cx = e[4], cy = e[5];
return (e[6] * (bx * cy - cx * by) + e[7] * (cx * ay - ax * cy) + e[8] * (ax * by - bx * ay)).Sign;
}
// Coordinates exactly, as integers in units of the smallest binary exponent among them.
private static class Exact
{
// Orientation: [a.x - c.x, a.y - c.y, b.x - c.x, b.y - c.y] with the cross product the caller takes.
public static BigInteger[] Of(double[] x, double[] y, int a, int b, int c)
{
var v = Scaled(new[] { x[a], y[a], x[b], y[b], x[c], y[c] });
return new[] { v[0] - v[4], v[1] - v[5], v[2] - v[4], v[3] - v[5] };
}
// In-circle: [a - p (x, y), b - p, c - p, then each one's squared length].
public static BigInteger[] Of(double[] x, double[] y, int a, int b, int c, int p)
{
var v = Scaled(new[] { x[a], y[a], x[b], y[b], x[c], y[c], x[p], y[p] });
BigInteger adx = v[0] - v[6], ady = v[1] - v[7], bdx = v[2] - v[6], bdy = v[3] - v[7], cdx = v[4] - v[6], cdy = v[5] - v[7];
return new[] { adx, ady, bdx, bdy, cdx, cdy, adx * adx + ady * ady, bdx * bdx + bdy * bdy, cdx * cdx + cdy * cdy };
}
private static BigInteger[] Scaled(double[] values)
{
var mantissa = new long[values.Length];
var exponent = new int[values.Length];
var lowest = int.MaxValue;
for (var i = 0; i < values.Length; i++)
{
var bits = BitConverter.DoubleToInt64Bits(values[i]);
var biased = (int) ((bits >> 52) & 0x7FF);
var fraction = bits & 0xFFFFFFFFFFFFFL;
mantissa[i] = biased == 0 ? fraction : fraction | (1L << 52);
exponent[i] = biased == 0 ? -1074 : biased - 1075;
if (bits < 0) mantissa[i] = -mantissa[i];
if (mantissa[i] != 0) lowest = Math.Min(lowest, exponent[i]);
}
var scaled = new BigInteger[values.Length];
for (var i = 0; i < values.Length; i++)
scaled[i] = mantissa[i] == 0 ? BigInteger.Zero : new BigInteger(mantissa[i]) << (exponent[i] - lowest);
return scaled;
}
}
}

View file

@ -0,0 +1,67 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
using System;
using System.Linq;
// The demo's pressure curve (aetheria-release, cut demo-pressure-curve): how many hostiles, of what hull tier, a zone of a
// galaxy with a gate antagonist (Galaxy.Antagonist) holds, as a function of its depth toward the gate. The single owner of these numbers;
// ZoneGenerator asks and draws. Pure: no Unity, no cache, no randomness, so the same persisted galaxy yields the same zone.
public static class DemoPressure
{
// Depth at or below which a zone carries no hostiles. Depth is e / (e + x), the share of the way from the entrance to the
// gate a zone sits at, so a quarter covers the entrance, its neighbours, and on a short galaxy the first jump out.
public const float GraceDepth = 0.25f;
// Hostiles at the gate (its ring, besides the boss), the most the curve ever asks for.
public const int MaxHostiles = 6;
// Tier is depth raised to this power: above 1 keeps heavy hulls rare until the last stretch.
public const float TierExponent = 2f;
public readonly struct Pressure
{
public readonly int Hostiles;
// 0..1: the antagonist's ship hulls up to this quantile of cost may be drawn.
public readonly float Tier;
public Pressure(int hostiles, float tier) { Hostiles = hostiles; Tier = tier; }
}
// e / (e + x) for e = jumps from the entrance and x = jumps to the exit: 0 only at the entrance, 1 only at the gate, from
// the persisted Entrance and Exit alone. On a shortest entrance-exit path it is the share of the way travelled; a zone
// behind the entrance rises slowly with its distance from it rather than sitting at 0.
public static float Depth(Galaxy galaxy, GalaxyZone zone)
{
float e = galaxy.Entrance.Distance[zone], x = galaxy.Exit.Distance[zone];
return e + x == 0 ? 0f : e / (e + x);
}
// The entrance and this many jumps around it are quiet whatever the galaxy's depth scale, so a short galaxy's first
// neighbours are no deeper than the grace.
public const int GraceJumps = 1;
// No antagonist ship, station or turret holds a zone in grace.
public static bool InGrace(Galaxy galaxy, GalaxyZone zone) =>
galaxy.Entrance.Distance[zone] <= GraceJumps || Depth(galaxy, zone) <= GraceDepth;
// What the zone holds: the curve at its depth, none in grace.
public static Pressure Of(Galaxy galaxy, GalaxyZone zone) =>
InGrace(galaxy, zone) ? new Pressure(0, At(Depth(galaxy, zone)).Tier) : At(Depth(galaxy, zone));
public static Pressure At(float depth)
{
depth = Math.Clamp(depth, 0f, 1f);
var ramp = Math.Clamp((depth - GraceDepth) / (1f - GraceDepth), 0f, 1f);
var smooth = ramp * ramp * (3f - 2f * ramp);
return new Pressure((int)MathF.Round(MaxHostiles * smooth), MathF.Pow(depth, TierExponent));
}
// The dearest hull price the tier admits: the price at that quantile of the hulls offered, cheapest first. Never below the
// cheapest hull offered, so the draw is never empty while any hull is offered.
public static int PriceCeiling(int[] offeredPrices, float tier)
{
var sorted = offeredPrices.OrderBy(price => price).ToArray();
return sorted[(int)MathF.Round(Math.Clamp(tier, 0f, 1f) * (sorted.Length - 1))];
}
}

View file

@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: 8ef7eeddb3a8c914193bbb946c482943
guid: 7c1e9a40d3b84f26a5e08b19f6d2c371
MonoImporter:
externalObjects: {}
serializedVersion: 2

View file

@ -0,0 +1,65 @@
using System;
using System.Collections.Generic;
using System.Linq;
using GameCult.Caching;
using MessagePack;
using Newtonsoft.Json;
// What a gas giant's atmosphere holds before its province weights it: a catalog record, keyed atmosphere:<id>. Its yields are
// read by Deposits through FieldKinds.Yield, as a field kind's are. Volatiles are not ore: FieldKinds.IsOre never reads this.
[CultDocument("aetheria.atmospheredata", "1"), MessagePackObject, JsonObject(MemberSerialization.OptIn)]
public class AtmosphereData
{
[CultName, JsonProperty("name"), Key(0)]
public string Name = "";
[JsonProperty("yields"), Key(1)]
public List<FieldYield> Yields = new List<FieldYield>();
public static CultRecordKey KeyOf(string id) => new CultRecordKey("atmosphere:" + id);
}
// The one owner of what a zone's ground holds (ruling auto-mining-is-off-screen-only): the goods an ore rig mines or a skimmer
// skims, in units, derived from the zone's bodies and never stored. Production.Advance picks its raw recipes by it off screen,
// and an ore rig on screen works the rocks of the ore Production.Pick names from it.
public static class Deposits
{
// The atmosphere every gas giant draws on, until a giant authors its own.
public const string GasGiantAtmosphere = "gas-giant";
// Each good's amount, in design-key order, zero dropped; empty for a null zone. A belt adds its kind's yields in this
// province (FieldKinds.Yield) as shares of one, times what its rocks pay a miner once fully worn (the sum of
// Settings.AsteroidYield over their sizes, the units FireControl.Extract splits by the same yields). A gas giant that is not
// a sun adds the atmosphere's yields the same way, as shares of one times one.
public static (CultRecordKey design, float amount)[] Of(Zone zone, CultCache catalog)
{
if (zone == null) return Array.Empty<(CultRecordKey, float)>();
var province = zone.GalaxyZone?.Province?.Type ?? default;
var held = new Dictionary<string, (CultRecordKey design, double amount)>(StringComparer.Ordinal);
void Add((CultRecordRef<SimpleCommodityData> Commodity, float Amount)[] yields, double scale)
{
var total = yields.Sum(yield => (double) yield.Amount);
if (!(total > 0) || !(scale > 0)) return;
foreach (var yield in yields)
{
var key = yield.Commodity.Key;
held.TryGetValue(key.Value, out var before);
held[key.Value] = (key, before.amount + yield.Amount / total * scale);
}
}
foreach (var belt in zone.AsteroidBelts.OrderBy(entry => entry.Value.Data.SiteOr(entry.Key), StringComparer.Ordinal))
{
var rocks = belt.Value.Data.Asteroids.Sum(rock => (double) zone.Settings.AsteroidYield.Evaluate(rock.Size));
Add(FieldKinds.Yield(belt.Value.Data.Kind, province, catalog), rocks);
}
var giants = zone.Planets.Values.Count(body => body is GasGiantData && !(body is SunData));
var atmosphere = catalog.Get<AtmosphereData>(AtmosphereData.KeyOf(GasGiantAtmosphere));
if (giants > 0 && atmosphere != null) Add(FieldKinds.Yield(atmosphere.Yields, province, catalog), giants);
return held.Values.Where(entry => entry.amount > 0).OrderBy(entry => entry.design.Value, StringComparer.Ordinal)
.Select(entry => (entry.design, (float) entry.amount)).ToArray();
}
}

View file

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 1fddcfe8170c46949a77a09bcbc69082
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View file

@ -106,7 +106,7 @@ public static class DrawAhead
}
public static BeltDraw<T> DrawListOf<T>(AsteroidBelt belt, PlanetSettings settings, IReadOnlyList<T> meshes, System.Func<T, float> radius, int keep, CultRecordKey beltKey) =>
new(Enumerable.Range(0, belt.Data.Asteroids.Length).Select(i => belt.UndamagedSize(i, settings)).ToArray(), meshes, radius, keep, beltKey.Value);
new(Enumerable.Range(0, belt.Data.Asteroids.Length).Select(i => belt.UndamagedSize(i, settings)).ToArray(), meshes, radius, keep, belt.Data.SiteOr(beltKey));
// A ship in a wormhole animation has its pose scripted by the step, not integrated from Velocity and TurnRate,
// so it is drawn where the step put it: extrapolating a scripted pose draws a streak that resets every step.

View file

@ -0,0 +1,193 @@
using System;
using System.Collections.Generic;
using System.Linq;
using GameCult.Caching;
// One recipe read as a chain link. Wage is the implied credits per worker-second at the authored prices; null when the link
// is unpriced (an input, any filler of a role, or the output at Price 0) or has no labour. Cost is the derived cost of one output unit.
public sealed class BalanceLink
{
public string Output, Name, StationKind;
public double Labour, Price, Cost;
public double? Wage;
public double? WageRatio;
// Why Wage is null: "output" (the output is at Price 0), "input" (an input, upkeep or role filler is at Price 0), "labour" (no labour);
// null when priced. The first that applies, in that order.
public string Unpriced;
}
// One ore a kind of belt holds: its share of the kind's abundance, its extraction link's wage over the median, its price and cost.
public sealed class BeltYield
{
public string Ore;
public double Share, Price, Cost;
public double? WageRatio;
}
public sealed class BeltRow
{
public string Kind;
public List<BeltYield> Yields = new List<BeltYield>();
public double Price, Cost;
}
public sealed class BalanceReport
{
public double WageReference;
public List<BalanceLink> Links;
public List<EconomyFault> Faults;
public List<BeltRow> Belts;
}
// The static economy balance: a steady-state input-output reading of the chain (Leontief 1936; Sraffa 1960 zero-profit prices under
// one wage; Samuelson 1951: with labour the only primary factor the cheapest filler of a role is demand-independent; Lewis 1954: the
// extraction sector sets the going wage). Pure: reads the catalog, writes nothing. ItemData.Price stays the one price the game charges;
// for a made good it is the price Prices derives, which economy author writes. Balance's faults are report-only.
public static class EconomyBalance
{
public const string HMargin = "H-margin", HWage = "H-wage", HConverge = "H-converge";
private const int SweepCap = 10000, SettleWindow = 100;
// The stored price a derived price becomes: whole credits, at least 1.
public static int Rounded(double derived) => (int) Math.Max(1, Math.Round(derived, MidpointRounding.AwayFromZero));
// The words for goods whose price does not settle.
public static string Unsettled(CultCache catalog, IEnumerable<string> keys) =>
$"No price settles within {SweepCap} sweeps: these goods sit on a cycle of recipes whose requirements do not shrink: " +
string.Join(", ", keys.Select(k => catalog.Get<ItemData>(new CultRecordKey(k))?.Name ?? k));
private static double Price(CultCache catalog, string key) => catalog.Get<ItemData>(new CultRecordKey(key))?.Price ?? 0;
// Authored-price wage per link; the cheapest filler fills a role, and a role with any filler at Price 0 leaves the link unpriced.
private static List<BalanceLink> Links(CultCache catalog, List<EconomyChecks.Column> columns)
{
double? CheapestPriced(string[] fillers) => fillers.Length == 0 || fillers.Any(f => Price(catalog, f) <= 0) ? (double?) null : fillers.Min(f => Price(catalog, f));
var links = new List<BalanceLink>();
foreach (var c in columns)
{
var link = new BalanceLink { Output = c.Output, Name = catalog.Get(c.Recipe.Output)?.Name ?? c.Output, Labour = c.Labour, Price = Price(catalog, c.Output), StationKind = catalog.Get(c.Recipe.StationKind)?.Name ?? "no kind" };
var cost = 0.0;
var inputsPriced = true;
foreach (var (commodity, count) in c.Inputs.Concat(c.Upkeep))
{
if (count <= 0) continue;
var p = Price(catalog, commodity);
if (p <= 0) inputsPriced = false;
cost += count * p;
}
foreach (var slot in c.Slots)
{
if (slot.Count <= 0) continue;
var p = CheapestPriced(slot.Fillers);
if (p == null) inputsPriced = false;
else cost += slot.Count * p.Value;
}
link.Unpriced = link.Price <= 0 ? "output" : !inputsPriced ? "input" : c.Labour <= 0 ? "labour" : null;
if (link.Unpriced == null) link.Wage = (c.OutputCount * link.Price - cost) / c.Labour;
links.Add(link);
}
return links;
}
// The going wage: the median implied wage of the priced raw links, 0 when none is priced.
private static double RawWage(CultCache catalog, List<EconomyChecks.Column> columns, List<BalanceLink> links)
{
var wages = links.Where((l, i) => l.Wage.HasValue && columns[i].IsCommodity && Recipes.IsRaw(catalog, columns[i].Recipe)).Select(l => l.Wage.Value).OrderBy(w => w).ToList();
return wages.Count == 0 ? 0 : wages.Count % 2 == 1 ? wages[wages.Count / 2] : (wages[wages.Count / 2 - 1] + wages[wages.Count / 2]) / 2;
}
public static double Wage(CultCache catalog)
{
var columns = EconomyChecks.Columns(catalog);
return RawWage(catalog, columns, Links(catalog, columns));
}
// Value iteration from zero over every recipe at one wage. A good in fixedOutputs, or with no recipe, holds its authored price.
// Two recipes for one output: the cheaper sets its price, as a role takes its cheapest filler.
private static Dictionary<string, double> Sweep(CultCache catalog, List<EconomyChecks.Column> columns, double wage, ISet<string> fixedOutputs, out List<string> unsettled)
{
var derived = new Dictionary<string, double>(StringComparer.Ordinal);
foreach (var c in columns) if (!fixedOutputs.Contains(c.Output)) derived[c.Output] = 0;
double Cost(string key) => derived.TryGetValue(key, out var v) ? v : Price(catalog, key);
var converged = false;
// The last sweep each good moved in: a cycle can move one good per sweep, so the last sweep alone would name half of it.
var lastMoved = new Dictionary<string, int>(StringComparer.Ordinal);
for (var sweep = 0; sweep < SweepCap && !converged; sweep++)
{
converged = true;
var best = new Dictionary<string, double>(StringComparer.Ordinal);
foreach (var c in columns.Where(c => !fixedOutputs.Contains(c.Output)))
{
var sum = wage * c.Labour;
foreach (var (commodity, count) in c.Inputs.Concat(c.Upkeep)) if (count > 0) sum += count * Cost(commodity);
foreach (var slot in c.Slots)
if (slot.Count > 0 && slot.Fillers.Length > 0) sum += slot.Count * slot.Fillers.Min(Cost);
var next = sum / c.OutputCount;
if (!best.TryGetValue(c.Output, out var held) || next < held) best[c.Output] = next;
}
foreach (var (output, next) in best)
{
// A price that is not a finite number is not settled, however little it moved.
if (!double.IsFinite(next) || Math.Abs(next - derived[output]) > 1e-12 * Math.Max(1, Math.Abs(next))) { converged = false; lastMoved[output] = sweep; }
derived[output] = next;
}
}
unsettled = converged ? new List<string>() : lastMoved.Where(p => p.Value >= SweepCap - SettleWindow).Select(p => p.Key).OrderBy(k => k, StringComparer.Ordinal).ToList();
return derived;
}
// The price of every made good (an output whose recipe is not raw) at the going wage: its inputs, upkeep and cheapest
// role fillers at their prices, plus the wage times its labour, over its output count. A design with a recipe is a made good
// priced like a commodity; raw goods and designs with no recipe keep their authored price. Unsettled names the goods still moving
// when the sweep gave up: a cycle of recipes whose requirements do not shrink has no price, so none of the values are a price.
public static Dictionary<string, double> Prices(CultCache catalog, out List<string> unsettled)
{
var columns = EconomyChecks.Columns(catalog);
var raw = new HashSet<string>(columns.Where(c => Recipes.IsRaw(catalog, c.Recipe)).Select(c => c.Output), StringComparer.Ordinal);
var derived = Sweep(catalog, columns, RawWage(catalog, columns, Links(catalog, columns)), raw, out unsettled);
return columns.Where(c => !raw.Contains(c.Output)).Select(c => c.Output).Distinct(StringComparer.Ordinal)
.ToDictionary(key => key, key => derived[key], StringComparer.Ordinal);
}
public static BalanceReport Balance(CultCache catalog, double wageSpread = 2)
{
var columns = EconomyChecks.Columns(catalog);
var links = Links(catalog, columns);
var reference = RawWage(catalog, columns, links);
foreach (var l in links) l.WageRatio = reference > 0 ? l.Wage / reference : null;
// Derived cost: nothing fixed, so an ore costs its labour; belt rows show price minus cost, the rent.
var derived = Sweep(catalog, columns, reference, new HashSet<string>(), out var unsettled);
var converged = unsettled.Count == 0;
double Cost(string key) => derived.TryGetValue(key, out var v) ? v : Price(catalog, key);
foreach (var l in links) l.Cost = derived[l.Output];
var faults = new List<EconomyFault>();
if (!converged) faults.Add(new EconomyFault(HConverge, "(chain)", $"Derived cost did not settle within {SweepCap} sweeps."));
foreach (var l in links.Where(l => l.Wage.HasValue))
{
if (l.Wage.Value <= 0)
faults.Add(new EconomyFault(HMargin, l.Output, $"{l.Name} sells at or below its inputs: implied wage {l.Wage.Value:0.#####} per worker-second."));
else if (reference > 0 && (l.Wage.Value < reference / wageSpread || l.Wage.Value > reference * wageSpread))
faults.Add(new EconomyFault(HWage, l.Output, $"{l.Name}: implied wage {l.Wage.Value:0.#####} is {l.WageRatio:0.##}x the median {reference:0.#####}, outside the spread of {wageSpread:0.##}."));
}
var belts = new List<BeltRow>();
foreach (var kind in catalog.GetAll<FieldKindData>().OrderBy(k => k.Name, StringComparer.Ordinal))
{
var row = new BeltRow { Kind = kind.Name };
var total = kind.Yields.Where(y => y.Abundance > 0).Sum(y => (double) y.Abundance);
foreach (var y in kind.Yields.Where(y => y.Abundance > 0 && total > 0))
{
var ore = y.Commodity.Key.Value;
var share = y.Abundance / total;
var yield = new BeltYield { Ore = ore, Share = share, Price = Price(catalog, ore), Cost = Cost(ore), WageRatio = links.FirstOrDefault(l => l.Output == ore)?.WageRatio };
row.Price += share * yield.Price;
row.Cost += share * yield.Cost;
row.Yields.Add(yield);
}
belts.Add(row);
}
return new BalanceReport { WageReference = reference, Links = links, Faults = faults, Belts = belts };
}
}

View file

@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: 8f6fa275e57694a48b223fb633e42c1e

View file

@ -56,13 +56,16 @@ public sealed class EconomyReport
// The one owner of the catalog's economy invariants. Pure: draws nothing, reads no clock, writes nothing. One method per rule.
public static class EconomyChecks
{
public const string LRecipe = "L-recipe", LOneKindList = "L-one-kind-list", LLore = "L-lore", LSource = "L-source-sink", LProductive = "L-productive", LDemand = "L-consumer-demand";
public const string LRecipe = "L-recipe", LOneKindList = "L-one-kind-list", LLore = "L-lore", LSource = "L-source-sink", LProductive = "L-productive", LDemand = "L-consumer-demand", LWeights = "L-weights", LShape = "L-shape", LPrice = "L-price", LFacility = "L-facility";
private const double Margin = 1e-9;
public static EconomyReport Check(CultCache catalog, EconomyLoad load = null)
{
var faults = new List<EconomyFault>();
faults.AddRange(Recipe(catalog));
faults.AddRange(Shapes(catalog));
faults.AddRange(PriceCheck(catalog));
faults.AddRange(Weights(catalog));
faults.AddRange(Lore(catalog));
faults.AddRange(SourceSink(catalog));
faults.AddRange(Productive(catalog, load));
@ -85,7 +88,7 @@ public static class EconomyChecks
: new RecipeData
{
Output = recipe.Output, OutputCount = recipe.OutputCount, Cycle = recipe.Cycle, Workforce = recipe.Workforce,
StationKind = recipe.StationKind, LoreHook = recipe.LoreHook,
StationKind = recipe.StationKind, Facility = recipe.Facility, LoreHook = recipe.LoreHook,
Inputs = (recipe.Inputs ?? new List<CommodityCount>()).Where(c => c != null).ToList(),
Upkeep = (recipe.Upkeep ?? new List<CommodityCount>()).Where(c => c != null).ToList(),
Fills = (recipe.Fills ?? new List<string>()).Where(f => f != null).ToList(),
@ -93,7 +96,7 @@ public static class EconomyChecks
};
// The designs some faction offers, but a Station or Turret hull, distinct and ordered by key: the designs that need a recipe.
private static List<ItemData> OfferedDesigns(CultCache catalog)
public static List<ItemData> OfferedDesigns(CultCache catalog)
{
var designs = new Dictionary<string, ItemData>(StringComparer.Ordinal);
foreach (var product in catalog.GetAll<FactionProductData>().Where(p => LoadoutGenerator.IsOffered(catalog, p)))
@ -113,6 +116,75 @@ public static class EconomyChecks
private static IEnumerable<ItemData> Commodities(CultCache catalog) =>
catalog.GetAll<ItemData>().Where(Recipes.IsCommodity).OrderBy(item => catalog.RefOf(item).Key.Value, StringComparer.Ordinal);
// Ore geography is weighted draws: a field kind's generation weight and abundances, a province's card count and its kind and ore
// weights are finite and not negative, and every yield, kind weight and province ore names a record this catalog holds. A weight of
// zero is legal (never drawn); a negative or NaN weight corrupts the weighted pick.
public static List<EconomyFault> Weights(CultCache catalog)
{
var faults = new List<EconomyFault>();
void Weight(string record, string field, double value)
{
if (!double.IsFinite(value) || value < 0) faults.Add(new EconomyFault(LWeights, record, $"{field} is {value}, not a finite number from zero up."));
}
void Names<T>(string record, string field, CultRecordRef<T> reference) where T : class
{
if (catalog.Get(reference) == null) faults.Add(new EconomyFault(LWeights, record, $"{field} names no record this catalog holds."));
}
foreach (var kind in catalog.GetAll<FieldKindData>().OrderBy(k => catalog.RefOf(k).Key.Value, StringComparer.Ordinal))
{
var key = catalog.RefOf(kind).Key.Value;
Weight(key, "GenerationWeight", kind.GenerationWeight);
for (var i = 0; i < (kind.Yields?.Count ?? 0); i++)
{
Weight(key, $"Yields[{i}].Abundance", kind.Yields[i].Abundance);
Names(key, $"Yields[{i}].Commodity", kind.Yields[i].Commodity);
}
}
foreach (var province in catalog.GetAll<ProvinceData>().OrderBy(p => catalog.RefOf(p).Key.Value, StringComparer.Ordinal))
{
var key = catalog.RefOf(province).Key.Value;
Weight(key, "GenerationWeight", province.GenerationWeight);
for (var i = 0; i < (province.Kinds?.Count ?? 0); i++)
{
Weight(key, $"Kinds[{i}].Weight", province.Kinds[i].Weight);
Names(key, $"Kinds[{i}].Kind", province.Kinds[i].Kind);
}
for (var i = 0; i < (province.Ores?.Count ?? 0); i++)
{
Weight(key, $"Ores[{i}].Weight", province.Ores[i].Weight);
Names(key, $"Ores[{i}].Commodity", province.Ores[i].Commodity);
}
}
return faults;
}
// Every commodity holds a Shape with at least one cell: a cargo bay reads it to store the good, and a commodity without one cannot be held.
public static List<EconomyFault> Shapes(CultCache catalog) =>
Commodities(catalog).Where(item => item.Shape?.Coordinates == null || item.Shape.Coordinates.Length == 0)
.Select(item => new EconomyFault(LShape, catalog.RefOf(item).Key.Value, $"Commodity '{item.Name}' has no Shape cell: a cargo bay cannot hold it.")).ToList();
// A made good's Price (a commodity, or a design with a recipe) is the price EconomyBalance derives from its chain, rounded to whole credits (at least 1); economy author
// writes it, and a stored price off it is drift (an inspector edit) that the next author run repairs.
public static List<EconomyFault> PriceCheck(CultCache catalog)
{
var faults = new List<EconomyFault>();
var prices = EconomyBalance.Prices(catalog, out var unsettled);
if (unsettled.Count > 0)
{
faults.Add(new EconomyFault(LPrice, unsettled[0], EconomyBalance.Unsettled(catalog, unsettled)));
return faults;
}
foreach (var (key, derived) in prices.OrderBy(p => p.Key, StringComparer.Ordinal))
{
var item = catalog.Get<ItemData>(new CultRecordKey(key));
if (item == null) continue;
var want = EconomyBalance.Rounded(derived);
if (item.Price != want)
faults.Add(new EconomyFault(LPrice, key, $"'{item.Name}' is priced {item.Price}; its chain derives {want}."));
}
return faults;
}
// Every commodity and every offered design (but a Station or Turret hull) has a recipe, and each recipe is well formed.
public static List<EconomyFault> Recipe(CultCache catalog)
{
@ -131,6 +203,9 @@ public static class EconomyChecks
else if (market.Rows.Contains(null)) Add(marketKey, "Rows holds a null entry.");
}
var kindsPlaced = new HashSet<string>(catalog.GetAll<Faction>().SelectMany(f => StationKinds.KindsOf(catalog, f)).Select(k => k.Key.Value), StringComparer.Ordinal);
var kindsInOrder = catalog.GetAll<StationKindData>().Select(kind => (Key: catalog.RefOf(kind).Key.Value, Kind: kind)).OrderBy(pair => pair.Key, StringComparer.Ordinal).ToList();
var facilitiesListed = new HashSet<string>(kindsInOrder.SelectMany(pair => pair.Kind.Facilities ?? new List<CultRecordRef<ItemData>>()).Select(f => f.Key.Value), StringComparer.Ordinal);
void NoFacility(string record, string message) => faults.Add(new EconomyFault(LFacility, record, message));
foreach (var (key, stored) in StoredRecipes(catalog))
{
var recipe = Sound(stored);
@ -158,6 +233,16 @@ public static class EconomyChecks
if (kind == null) Add(key, "StationKind names no station kind this catalog holds.");
else if (!kindsPlaced.Contains(recipe.StationKind.Key.Value))
faults.Add(new EconomyFault(LOneKindList, key, $"No faction places station kind '{kind.Name}', so nothing can run this recipe."));
var facility = catalog.Get(recipe.Facility);
if (!recipe.Facility.IsSet()) NoFacility(key, "Facility is unset; a recipe names the facility gear that runs it.");
else if (facility == null) NoFacility(key, $"Facility '{recipe.Facility.Key.Value}' names no item this catalog holds.");
else if (!StationKinds.IsRecipeFacility(facility)) NoFacility(key, $"Facility '{facility.Name}' is not a recipe facility (gear of hardpoint type Facility holding a FacilityData).");
else
{
if (!facilitiesListed.Contains(recipe.Facility.Key.Value)) NoFacility(key, $"No station kind lists facility '{facility.Name}' in its Facilities, so no station is fitted to run this recipe.");
if (kind != null && !(kind.Facilities ?? new List<CultRecordRef<ItemData>>()).Any(listed => listed.Key.Equals(recipe.Facility.Key)))
NoFacility(key, $"Station kind '{kind.Name}' does not list facility '{facility.Name}' in its Facilities; the recipe's kind and facility must agree.");
}
var roles = Recipes.RolesOf(output);
if (!Recipes.IsCommodity(output))
{
@ -173,6 +258,19 @@ public static class EconomyChecks
if (Recipes.Fillers(catalog, role.Name).Length == 0) Add(key, $"Role '{role.Name}' has no commodity whose recipe fills it.");
}
}
foreach (var (kindKey, kind) in kindsInOrder)
for (var i = 0; i < (kind.Facilities?.Count ?? 0); i++)
{
var listed = kind.Facilities[i];
var item = catalog.Get(listed);
if (!listed.IsSet()) NoFacility(kindKey, $"Station kind '{kind.Name}' Facilities[{i}] is unset.");
else if (item == null) NoFacility(kindKey, $"Station kind '{kind.Name}' Facilities[{i}] names no item this catalog holds.");
else if (!StationKinds.IsRecipeFacility(item) && !(item is SiloData)) NoFacility(kindKey, $"Station kind '{kind.Name}' Facilities[{i}] '{item.Name}' is not a recipe facility or a silo.");
}
foreach (var gear in catalog.GetAll<GearData>().Select(gear => (Key: catalog.RefOf(gear).Key.Value, Gear: gear)).OrderBy(pair => pair.Key, StringComparer.Ordinal))
if (gear.Gear.Behaviors != null && gear.Gear.Behaviors.Any(behavior => behavior is FacilityData) && gear.Gear.HardpointType != HardpointType.Facility)
NoFacility(gear.Key, $"'{gear.Gear.Name}' holds a FacilityData but is hardpoint type {gear.Gear.HardpointType}; a recipe facility mounts on a Facility row.");
foreach (var line in StationKinds.FacilityRoomFaults(catalog)) NoFacility("station-facilities", line);
return faults;
}
@ -196,8 +294,8 @@ public static class EconomyChecks
.Select(weapon => weapon.AmmoType.Key.Value), StringComparer.Ordinal);
// Every commodity has a source (a grounded chain, or a gate that sells it) and a sink (a recipe takes it or a role it fills, a role
// some design (offered, or made by a recipe) names, a weapon some offered design carries draws it, or a gate that buys it). A consumer good's sink is judged once needs
// tables exist.
// some design (offered, or made by a recipe) names, a weapon some offered design carries draws it, a habitation module of any
// design names it in its table, or a gate that buys it). A consumer good is judged as every good is: it has a sink only when a module table names it.
public static List<EconomyFault> SourceSink(CultCache catalog)
{
var faults = new List<EconomyFault>();
@ -206,6 +304,8 @@ public static class EconomyChecks
var grounded = Depths(catalog, sells);
var recipes = AllRecipes(catalog).ToList();
var used = new HashSet<string>(recipes.SelectMany(p => p.Recipe.Inputs.Concat(p.Recipe.Upkeep)).Select(c => c.Commodity.Key.Value), StringComparer.Ordinal);
used.UnionWith(catalog.GetAll<EquippableItemData>().Where(design => design.Behaviors != null).SelectMany(design => design.Behaviors.OfType<HabitationData>())
.SelectMany(habitation => habitation.Table).Where(row => row.Commodity.IsSet()).Select(row => row.Commodity.Key.Value));
var rolesNamed = DesignRoles(catalog);
rolesNamed.UnionWith(recipes.SelectMany(p => Recipes.RoleInputsOf(catalog, p.Recipe)).Select(r => r.Name));
foreach (var (key, recipe) in recipes)
@ -215,7 +315,6 @@ public static class EconomyChecks
var outputKey = recipe.Output.Key.Value;
if (!grounded.TryGetValue(outputKey, out var depth) || depth == null)
faults.Add(new EconomyFault(LSource, key, $"'{output.Name}' has no source: no chain of recipes reaches raw goods and no gate sells it."));
if (Recipes.IsConsumerGood(catalog, recipe)) continue;
if (!used.Contains(outputKey) && !recipe.Fills.Any(rolesNamed.Contains) && !drawn.Contains(outputKey) && !buys.Contains(outputKey))
faults.Add(new EconomyFault(LSource, key, $"'{output.Name}' has no sink: no recipe takes it or a role it fills, no design names a role it fills, no weapon draws it, no gate buys it."));
}
@ -272,6 +371,35 @@ public static class EconomyChecks
return deepest + 1;
}
// One recipe's consumption per cycle, unscaled: the one reader of what a recipe takes, for Productive's matrix and EconomyBalance.
// Labour is Workforce x Cycle worker-seconds; Slots are the role slots (a role recipe's design roles, or the recipe's RoleInputs)
// with every commodity that fills the role.
internal sealed class Column
{
public string Output;
public RecipeData Recipe;
public bool IsCommodity;
public int OutputCount;
public double Labour;
public List<(string Commodity, int Count)> Inputs;
public List<(string Commodity, int Count)> Upkeep;
public List<(string Role, int Count, string[] Fillers)> Slots;
}
// Every recipe whose output exists, produces something and has a finite cycle, ordered by output key.
internal static List<Column> Columns(CultCache catalog) =>
AllRecipes(catalog).Where(p => catalog.Get(p.Recipe.Output) != null && p.Recipe.OutputCount > 0 && float.IsFinite(p.Recipe.Cycle)).Select(p => new Column
{
Output = p.Recipe.Output.Key.Value,
Recipe = p.Recipe,
IsCommodity = Recipes.IsCommodity(catalog.Get(p.Recipe.Output)),
OutputCount = p.Recipe.OutputCount,
Labour = p.Recipe.Workforce * (double) p.Recipe.Cycle,
Inputs = p.Recipe.Inputs.Select(i => (i.Commodity.Key.Value, i.Count)).ToList(),
Upkeep = p.Recipe.Upkeep.Select(i => (i.Commodity.Key.Value, i.Count)).ToList(),
Slots = Recipes.RoleInputsOf(catalog, p.Recipe).Select(r => (r.Name, r.Count, Recipes.Fillers(catalog, r.Name).Select(k => k.Value).ToArray())).ToList()
}).ToList();
// Hawkins-Simon over commodities plus one labour good, at the worst single filler of every role slot (a recipe's role inputs): the spectral radius
// of the requirements matrix stays below one however the roles are filled. The worst fill is the spectral simplex
// (Nesterov and Protasov 2013) on the matrix nudged strictly positive, then the radius of the chosen matrix is taken exactly.
@ -280,8 +408,8 @@ public static class EconomyChecks
load = load ?? new EconomyLoad();
if (!(load.InputFactor >= 1) || !(load.WorkforceFactor >= 1) || !(load.UpkeepFactor >= 1))
throw new ArgumentException("Setting factors are at least 1.", nameof(load));
var columns = AllRecipes(catalog).Where(p => Recipes.IsCommodity(catalog.Get(p.Recipe.Output)) && p.Recipe.OutputCount > 0 && float.IsFinite(p.Recipe.Cycle)).ToList();
var names = columns.Select(p => p.Recipe.Output.Key.Value).ToList();
var columns = Columns(catalog).Where(c => c.IsCommodity).ToList();
var names = columns.Select(c => c.Output).ToList();
var index = new Dictionary<string, int>(StringComparer.Ordinal);
for (var i = 0; i < names.Count; i++) index[names[i]] = i;
var n = names.Count + 1;
@ -290,16 +418,16 @@ public static class EconomyChecks
var slots = new List<(int Column, double Amount, int[] Fillers)>();
for (var j = 0; j < columns.Count; j++)
{
var recipe = columns[j].Recipe;
foreach (var input in recipe.Inputs)
if (index.TryGetValue(input.Commodity.Key.Value, out var row) && input.Count > 0) fixedTerms[row, j] += input.Count * load.InputFactor / recipe.OutputCount;
foreach (var upkeep in recipe.Upkeep)
if (index.TryGetValue(upkeep.Commodity.Key.Value, out var row) && upkeep.Count > 0) fixedTerms[row, j] += upkeep.Count * load.UpkeepFactor / recipe.OutputCount;
fixedTerms[labour, j] = recipe.Workforce * (double) recipe.Cycle * load.WorkforceFactor / recipe.OutputCount;
foreach (var role in Recipes.RoleInputsOf(catalog, recipe))
var column = columns[j];
foreach (var input in column.Inputs)
if (index.TryGetValue(input.Commodity, out var row) && input.Count > 0) fixedTerms[row, j] += input.Count * load.InputFactor / column.OutputCount;
foreach (var upkeep in column.Upkeep)
if (index.TryGetValue(upkeep.Commodity, out var row) && upkeep.Count > 0) fixedTerms[row, j] += upkeep.Count * load.UpkeepFactor / column.OutputCount;
fixedTerms[labour, j] = column.Labour * load.WorkforceFactor / column.OutputCount;
foreach (var slot in column.Slots)
{
var fillers = Recipes.Fillers(catalog, role.Name).Where(k => index.ContainsKey(k.Value)).Select(k => index[k.Value]).ToArray();
if (fillers.Length > 0 && role.Count > 0) slots.Add((j, role.Count * load.InputFactor / recipe.OutputCount, fillers));
var fillers = slot.Fillers.Where(k => index.ContainsKey(k)).Select(k => index[k]).ToArray();
if (fillers.Length > 0 && slot.Count > 0) slots.Add((j, slot.Count * load.InputFactor / column.OutputCount, fillers));
}
}
foreach (var need in load.LabourNeeds)

Some files were not shown because too many files have changed in this diff Show more