Commit graph Aetheria/Assets/Scripts/Gameplay/ActionGameManager.cs
Author SHA1 Message Date
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
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
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
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
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
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
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
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
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
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
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
Nibu
796a7af9ef ActionGameManager.RunLive gates the renderer's Update paths too
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-13 13:56:16 +00:00
Nibu
f7d5a7d2a8 A failed start is decided in RunStart.Launch; the scene steps nothing without a live run
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-13 13:32:34 +00:00
Nibu
c131045e7d Mining 6 C5: Event Log shows each take (CargoGained), Sell Ore foldout entry; dormant log activated, placeholder text removed
Option event-log of question mining-6-feedback-surface (recommended; no ruling).
Unity files are not compiled here.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-13 05:32:18 +00:00
Nibu
2b0fb3c22d fly <hull> reaches unoffered hulls through their Loadout; authoring doc no longer says console-only
A hull no maker offers is drawn by no generator, so fly now falls back to a catalog
Loadout of the named ship hull (Loadouts.Materialize with the game's chooser). The
authoring doc claimed a product-less package is console-only; it is unreachable
unless a Loadout fits it.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-06 00:15:56 +00:00
soul
36d9d94e81 fly: unbind the ship you leave, so its death is no longer yours
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-29 10:29:13 +01:00
soul
26daac398a Console command "fly <hull>": a fitted ship beside the current one, and you in it
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-29 10:20:44 +01:00
soul
7a3c0c8fb8 Aim at infinity along the view's pitch; delete the terrain intersection
The horizon fault was the level XZ projection, not the distance (operator, 2026-10-29). The untargeted look point is 10000 along the aim again, so the camera no longer jumps where the view ray crosses a terrain discontinuity; group aim points and crosshairs lift each planar firing bearing by the aim's pitch. Reverts the surface march of aba02182b and the field-height crosshair of a9bbea509.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-29 08:45:37 +01:00
soul
c6f7e0c8a4 Player turn input is banded by thruster: each band of equal yaw-to-translation ratio fills an equal share of the turn axis
The allocator already serves a turn by the best-ratio thrusters first; the axis was a fraction of total yaw, so a hull whose best-ratio pair holds little of it (the Longinus's front pair) saturated them in the first tenth of input and lurched on its drives. Ship.BandedTurn maps the player's axis so each band joins over an equal share of travel; full input is still full yaw. AI and the allocator are unchanged (operator request, 2026-10-29).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-29 08:22:04 +01:00
soul
633ae3353a Keyboard turning ramps down on release at the same rate it ramps up, so tapping at a rate holds a gentle turn; reversal still cuts to zero
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-29 08:09:29 +01:00
soul
5e2a9efc8a Keyboard turning ramps to full over KeyboardTurnRampTime (0.4 s) so a tap feathers the turn; analog turn passes straight through
Release or reversal starts the ramp again from zero (operator request, 2026-10-29: the Longinus lurches).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-29 08:07:30 +01:00
soul
562ba5c8eb Default weapon-group binding runs once per ship, on its first use; after that the action bar is the player's
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-29 08:01:29 +01:00
soul
c4911a4c96 Action bar binds weapon groups by default: mouse left/right/middle fire groups 1-3, number key N fires group N
Only slots the input settings define, only groups with weapons, and never over gear or consumables the player placed. Runs on binding to a ship and after a save's bindings restore. Replaces a lazy Zip that never ran (operator request, 2026-10-29).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-29 07:57:42 +01:00
soul
a9bbea5091 Weapon crosshairs ride the gravity field: the aim point takes its own field height, not the ship's level plane
On a slope the level projection floated over downhill aim and sank into uphill aim (operator report, 2026-10-29).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-29 07:33:28 +01:00
soul
e2f0fc9dc4 SimClock owns the game tick: TickRate, GameStep, ForGame(); the 60 default and ActionGameManager's literal step are gone
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-23 06:09:12 +02:00
soul
8692cf8600 Command seam: the stance press resolves its target at the step, after the step's target verbs
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-22 08:39:46 +02:00
soul
bc05417450 Command seam fixes: the player's switches, ping and stance flips are PilotCommand presses; triggers, switches and ping are internal
ActivatedBehavior replaces IActivatedBehavior so Activate/Deactivate can be internal under Unity's C# 9.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-22 04:33:20 +02:00
soul
394c13a099 Command seam, player: ActionGameManager and ActionBarSlot write only Entity.Command (the 18 direct writers)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-22 02:27:29 +02:00
soul
cc0c164574 determinism-ledger: every ItemManager states its seed; scatter on the zone's dice
- ItemManager(uint seed, ...) refuses seed 0 and seeds Random from it.
- RunStart.ItemSeed(galaxy, step) is public (formula unchanged), refuses a
  zero result; named steps ArenaStep, StageStep, ContinueStep and NoRunSeed.
- Continue seeds the item stream from the saved run's seed (ContinueStep);
  a scene with no galaxy uses NoRunSeed.
- Zone's unpack scatter draws SimulationDice.For(CombatSeed, ScatterStream,
  1-based pack ordinal), never the item stream.
- Loadout's scratch manager and AetherDb's catalog command take fixed seeds;
  every test and Editor construction gains 1u (mechanical rewrite).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-21 19:01:41 +02:00
352e221453 Faction.BossLoadout (key 22): the boss is its faction's Loadout, resolved by Loadouts.BossOf and built by Materialize
BossOf refuses typed (BossRefusal Unset or Missing, Describe names the field and echoes no input).
ZoneGenerator builds the boss from the Loadout with ChooseProduct as the chooser; a refused or
unbuildable boss logs and spawns none. Galaxy picks boss factions through BossOf; AetherDb factions
prints the boss Loadout. Loadout vocabulary: no preset, no variant. Production builds; the tests
project does not until the next commit (RunGoalTests still sets BossHull).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-18 21:14:09 +02:00
Meta Vens
71fa9411c6 Belt rocks and their reticle are drawn on the floater layer over the field by DrawAhead
DrawAhead.Chunk/ChunkHeight (ruling asteroids-on-floater-layer); ZoneRenderer and the
chunk reticle both read it; ChunkWorldPosition and the renderer's global are gone.
Fixes the reticle sitting off the rock by |field|. Test: AChunkIsDrawnOnTheFloaterLayerOverTheField.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-17 13:48:34 +02:00
Meta Vens
6fe7f7cecb Merge eureka/aetheria-gravity-children-within-reach (children-within-reach, head cf242106)
Merged into master f937662d. No textual conflicts (auto-merged: ActionGameManager.cs,
Belt.cs, LockOn.cs, RunStartTests.cs, ScenarioTests.cs, AetherDb/Program.cs).
GameData/Aetheria.cc untouched by the merge.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-17 11:52:44 +02:00
Meta Vens
84337de569 ZoneGenerator.Place owns every generated distance, fold and belt width
PlanetSafetyRadius, ChildDistanceMinimum/Maximum, ExpandSolar's distance series
and the window filters are deleted. Place (ported from replace.py, root window
from rootReach per root-window-floor) lays children inside-out, folds the
lightest family while the outermost overflows, stretches to the window, merges
rings that cannot keep their heavy member outside its Roche margin and sets
belt half widths. Stations pick well-bearing, sibling-clear off-ring bodies;
the tutorial entrance falls back to an orbit round a root node; turrets stop a
side when within the base body's extent. GenerateZone/GenerateArena take
PlanetSettings. Not yet built.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-17 04:55:57 +02:00
Meta Vens
b70372963a Delete the minimap asteroids setting; minimap belts always draw
Ruling minimap-asteroids-setting-deleted. PlayerGraphicsSettings key 1 stays
retired so old saves load; OldPlayerSettingsLoad now writes the old 3-element
array by hand. MapPresenterSmoke asserts a belt draws with the map screen
closed. Not built or tested yet.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-17 04:36:13 +02:00
Meta Vens
8f20cd3664 Merge map-presenter (aetheria-release cut map-presenter r1; closing verdicts s1 and s2) 2026-10-17 01:17:41 +02:00
Meta Vens
39c7508e38 Merge boss-gate (aetheria-release cut boss-gate r2; closing verdict s3) 2026-10-17 01:17:38 +02:00
Meta Vens
4694366d98 Map presenter: ShowAsteroidsInMinimap stays (head's belt cost misses 0.1 ms); belt upload via SubUpdates; settings key restored
The setting gates belts on the minimap again, through MapPresenter.BeltsOnMinimap; the map screen always draws them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-16 23:54:45 +02:00
Meta Vens
281745394b Map presenter: one owner places every map icon in 2D, belts become one instanced draw (not yet compiled)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-16 23:26:26 +02:00
Meta Vens
65a6ce8705 MainMenu: a surfaced broken mod gets a Remove button that moves it aside
RefuseMods names every faulted or excluded package with one Remove button per
package, all through ShipModCatalog.RemovePackage; the catalog stays as this
boot opened it and the dialog says to restart. ModsPath becomes public.
Unity-only code; not built until the Starfire smoke at the end of the cut.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-16 21:48:57 +02:00
Meta Vens
dca660e448 Boss gate: TryWin is the one way to win; equal-gap tie-break and two exit pins tested
Win() becomes TryWin(), which checks RunGoal.ExitOpen itself; the call site no longer reads it.
Pins: first-of-equal-gaps, exit-zone-only, no ship hull on offer. Not yet built or run.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-16 21:18:52 +02:00
Meta Vens
e5eb87050e Drawn pose: ship indicators and map centre read DrawAhead; Round takes one time; RailAt logs a missing parent
- ActionGameManager: the visible hostile/friendly indicators and MenuMap.Position read DrawAhead.Position at Clock.Lead.
- DrawAhead.Round drops its lead parameter: the target's lead is the drawn time less its zone's step time, derived inside,
  so a caller cannot pass two times that disagree. Projectile and BallisticFlightTests updated; the hit tests derive their
  lead from the drawn time; two assertions that only varied the now-absent lead are removed.
- Zone.RailAt logs "Requested orbit is not part of this zone!" for a missing parent again (DrawnPoseTests.AMissingParentOrbitIsLoggedAtADrawnTime).

Builds: not yet compiled at this commit (verified by the run that follows).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-16 00:50:29 +02:00
Meta Vens
2cb1e83353 Presenters read the drawn pose: HUD markers, wells, rounds, ping, shield hit, compass, loot view, guided aim
HUD target, lock, incoming-lock, bearing and sweep markers anchor on DrawAhead.Position / AtBearing at Clock.Lead.
GravityLowering's record fill is DrawAhead.Well (pure, pinned at non-zero lead). Rounds take DrawAhead.Time
instead of float Zone.Time + lead. Sensor ping, shield hit, compass icons, wormhole bearing, loot ViewOrigin and
the guided-projectile aim read the drawn pose. Not built in Unity yet.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-15 23:41:49 +02:00