Commit Graph
59 Commits
Author SHA1 Message Date
db9979andClaude Fable 5.1 1fe8f21182 Remote Crew: observer role, debrief timeline with export, voice on by default
Phase 12 of plan 1.3. The host makes up to two browsers read-only
observers (F9 roster key O, web-host admin): no lease, any station of
either unit viewable through activate with generation 0, every command
rejected, SimLog included, never persisted. The SimLog page shows
observers and the solo host a debrief timeline (snapshot ticks, marks for
own and hostile torpedo launches, own damage, new contacts and losses,
click to scrub) and a JSON export stripped of RNG, credential, token and
settings keys. Voice in the web-host room starts enabled. Docs, manual,
catalogs and tests updated.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-27 05:46:46 +02:00
db9979andClaude Fable 5.1 952c4a35d4 Web client: state push over WebSocket, generated schema allowlists, chart culling probe
Phase 11 of plan 1.3. /ws/v2/state pushes the active role's projection
(same bytes as GET /api/v2/state, at most 4 Hz, heartbeat 2 s, latest
state only) with the sonar stream's Origin/cookie/subprotocol rules; the
browser consumes pushed states in its poll loop, keeps polling presence,
chart and feeds on a slow cadence, falls back to full polling after two
missed heartbeats and retries every 10 s. src/commander/v2/schema.py is
the single allowlist rendered into schema.js by tools/gen_web_schema.py
(--check in CI). The browser chart culls tracks in world coordinates
before transforming and exposes a frame-time probe. OffscreenCanvas is
deferred (documented in docs/resume.md).

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-27 05:28:49 +02:00
db9979andClaude Fable 5.1 9351393a94 Graphics: anti-aliased chart lines option, chart light of the hour, weather hatch, shared horizon
Phase 10 of plan 1.3. Preferences.aa_lines (default off, options page 2)
routes chart and plot primitives through src/ui/lines.py, which uses
pygame.gfxdraw for one-pixel lines and polygon edges when enabled. The
chart water darkens in three stages from the game clock
(atmosphere.daylight_stage, theme.WATER_TINT) on the frigate, boat and
browser charts; rain and storms hatch the chart with dashed diagonals
(display only, both sides). src/ui/horizon.py is the shared horizon
renderer of the periscope and the new binoculars strip on the bridge
lookout page. Manual and catalogs updated; tests/test_graphics_1_3.py.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-27 05:14:17 +02:00
db9979andClaude Fable 5.1 07350d6ce8 Crewed submarine: periscope view, visual sightings, stadimeter, diesel snorkel noise
Phase 9 of plan 1.3. Third Command page and second Mast & ESM page show
the periscope (uboot_scope.py): eyepiece with day/night light, haze,
horizon motion from the wave slope, true-bearing scale and crosshair;
arrows train the scope, Enter reads the stadimeter. Sightings come from
the frigate lookout's contrast model at periscope eye height and live in
the crew block (save v15 crew.orders: scope_rel_deg, sightings,
sightings_seen). The stadimeter range becomes a VISUAL fix on the boat's
sonar contact, usable like a ping fix. Snorkelling diesels raise the
radiated level, lower the quiet factor and add 50/100 Hz lines. Web:
scope projection, canvas view, uboot_scope_bearing/uboot_scope_mark
commands and a Chromium contract. Manual, help and catalogs updated.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-27 04:53:20 +02:00
db9979andClaude Fable 5.1 eed52c4cbd Sonar: convergence zones from the measured profile, Ekelund and dot-stack TMA
The bathythermograph now derives its convergence-zone bands from the ray
trace of the measured profile over the charted seabed type (the five
sediment classes already carried Rayleigh bottom loss); the validator takes
bounded measured bands instead of the constant table. Shift+T on the TMA
page switches between the hypothesis method, the Ekelund range of two own
legs (Shift+K copies it) and a three-row dot stack; the method is a saved
station setting. The VDS stays unmodelled (deferred, see docs/resume.md).

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-27 03:33:02 +02:00
db9979andClaude Fable 5.1 60a84224fe Helicopter: sonobuoy patterns and the MAD run
A pattern (2x2 field, barrier across the waypoint bearing, circle; up to
four of the remaining buoys) is a queue of drop points the helicopter flies
one after the other with the ordinary single drop. The MAD run (30 m, 90 kn,
dome stowed) detects a submerged hull within 400 m slant range on a stateless
draw and publishes a MAD position fix without depth or course. Keys X and
Shift+M, browser controls and commands, helo save fields, manual updated.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-27 03:19:35 +02:00
db9979andClaude Fable 5.1 ff0cb8ed28 Ship and damage: counter-flooding, longitudinal trim, plant selection
Damage control can counter-flood the high hull side against a list of 5 deg
or more (0.5 %/s, cap 60 %, valve closes below 1 deg); fore/aft floodwater
trims the ship and costs 0.5 kn per degree plus bow-sonar noise bow down.
The engine room selects the plant: AUTO (as before), DIESEL (18 kn, -4 dB,
-10 % fuel) or TURBINE (+3 dB, +25 % fuel). Keys C and G, browser controls
and commands, damage.stability and propulsion.plant_mode projections,
save v15 fields compartments.counterflood and ship.plant_mode. Calibration
77/77 with the AUTO plant.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-27 03:02:40 +02:00
db9979andClaude Fable 5.1 d2509bf2b6 Enemy AI: fire-control convergence gate on its own TMA, manoeuvre reopen
A hostile boat fires on its own bearing-only solution only once the
solution's range sigma over range is at or below the new difficulty field
enemy_solution_threshold (0.25 patrol, 0.15 SSN, 0.20 custom default) and
the last bearing is younger than 90 s. A measured bearing the dead-reckoned
solution cannot explain restarts the plot and needs three new bearings.
Active and datalink fixes keep their old rules; sigma, time and reopen state
are part of the sub row's memory in save v15.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-27 02:36:07 +02:00
db9979andClaude Fable 5.1 13506278f5 Weapons: second lightweight torpedo, search patterns, enable point, salvo
frigate_torp_mk2 (55 kn, 8 NM) shares the tubes with Mk1 through a two-magazine
ownship loadout (2:1 split); selecting a type retasks a tube. Each torpedo
carries its terminal search pattern (snake, circle, helix) and seeker enable
point (0.6-3.0 NM); a salvo of two opens a +/-8 deg spread with rotated datums.
Keys W/X/,/./Y, browser settings card and command, weapon_settings save block,
manual and catalogs updated. Calibration 77/77 (defaults reproduce 1.0.0).

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-27 02:19:26 +02:00
db9979andClaude Fable 5.1 b1a16b1934 Core split: docs, layout re-export, source scans cover every game module
AGENTS.md describes the mixin composition; the i18n prose scans and the
manual key-binding scan read all game modules and the stations package
instead of the old monolith.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-27 02:00:17 +02:00
db9979andClaude Fable 5.1 565ad28a33 Tests: pytest-xdist by default, browser and slow markers, hardware checklist
The suite runs in parallel (-n auto, loadgroup) with Chromium-driving modules
spread over two groups; generation and calibration modules carry the slow
marker. docs/hardware-acceptance.md collects the uConsole checkpoints that CI
cannot answer.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-27 00:31:10 +02:00
db9979andClaude Fable 5.1 e85a9006d6 Save v15: the crewed boat's crew state survives a save and a load
The crew block keeps the boat's orders, modes, mast, wires, plot, feed and
its sonar station; sub rows carry the crew-facing orders and the uConsole's
local side is part of the ui block. A loaded boat keeps its crew binding for
UBOOT_RESTORE_HOLD_S until its crew returns, then the AI takes it back. The
frigate's sonar save/restore/validation is shared with the boat's station.
v14 documents are rejected without migration.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-26 23:52:24 +02:00
db9979andClaude Fable 5.1 959b5a8003 Docs: implementation plan 1.3
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-26 22:18:01 +02:00
db9979andClaude Fable 5.1 ef45a4f8f1 Sonar audio: gapless streams on the uConsole mixer and in Remote Crew browsers
Browsers went silent after any host key press: every input-owner change bumped
the world epoch, the server cleared the audio ring and restarted numbering at
1, and the AudioWorklet dropped every "old" block until the count passed its
last sequence. Numbering is now monotonic per role for the server lifetime; a
cleared ring and a retuned receiver skip one number so browsers crossfade,
reconnects resume with ?after=<sequence>, duplicates are counted, and the audio
socket tolerates a six-second send stall.

Buffers sized for the 16 GB device: local lead 1.5 s with a 5 s queue, browser
lead 2 s with a 6 s maximum, refill 1 s, stale 3 s, SIM_CATCHUP_MAX_S 2.5 s
(queue >= lead + catch-up + block, pinned by a test), SDL mixer buffer 2048
samples. Remote Crew publication no longer spikes the main thread: sonar history
rows are cached per station with identical results, role states are shallow
copies, the compact sonar state is built from the dict, the roster is read at
4 Hz. New counters (mixer channel idle, late pump iterations, input gaps,
per-phase frame times, server stream stats) and tools/audio_soak.py, which runs
the game headless with simulated browsers or as a Wi-Fi client and reports
stream continuity. Docs, manual and install guide updated.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-26 22:17:33 +02:00
db9979andClaude Opus 5.5 4e04c899d0 Submarine stations: depth steps, water column, ESM rose, denser panels
Command and Navigation order periscope, snorkel, above/below the
measured layer (only after the boat's own BT) and deep in one step
(browser buttons, uConsole U/J/H). The browser boat stations get a wide
dock with large readouts, coloured mode and alarm chips, a water-column
graphic, an ESM/alarm bearing rose, explicit raise/lower buttons for
mast and snorkel and a compact two-column layout; the uConsole's Mast &
ESM page gets the rose and the engine room the water column.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-26 20:41:29 +02:00
db9979andClaude Opus 5.5 9e5d32d0c1 Radar: a raised mast or snorkel is a bare blip the OPZ must mark
A submarine at periscope depth with its mast or snorkel up (crew mast,
snorkelling or at radio depth) returns a tiny, clutter-limited echo to
the surface radar. It shows only as a glowing dot without symbol or
track; clicking it (uConsole or browser OPZ) or pressing B marks it
into a radar track that later echoes update. Blips and marks are
transient; the AI and calibration are unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-26 20:13:17 +02:00
db9979andClaude Opus 5.5 d09a8fe20c uConsole: the boat's six stations with a station bar
Playing the submarine, keys 1-6 (or Tab, or a click on the top-bar
tabs) select command, sonar, weapons, engine room, mast & ESM and
navigation. Each order key works only at the station that owns it, as
the browser allowlist; the engine room and mast & ESM get their own
pages. Browsers may crew the boat's other stations beside the uConsole;
a browser-held station is marked and not operated locally.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-26 19:12:53 +02:00
db9979andClaude Opus 5.5 4d2500fceb Side choice: a new game asks which unit to play; solo can play the boat
The uConsole asks "Which unit do you play?" before every new game
(frigate or hostile submarine, last choice preselected). The browser
lobby first shows the unit, then its stations. A solo browser switches
all its stations to the boat's six (and back) from the host bar.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-26 18:52:15 +02:00
db9979andClaude Opus 5.5 064a2fb063 Crewed submarine: six stations (command, sonar, weapons, engine, ESM, nav)
The boat gets weapons, engine room, mast & ESM and navigation stations
beside command and sonar. Each boat order is accepted only from the
station that owns it (fire, wire and decoys from weapons; snorkel from
the engine room; the mast from ESM; plot and course from navigation).
The browser shows each station's cards on the shared boat panel.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-26 18:27:23 +02:00
db9979andClaude Opus 5.5 ee17eba495 Remote Crew: free stations are taken at once with all their rights
A browser that asks for a free station gets it immediately, with every
right the station can have (command, direct fire, sonar audio). A
station a crewmate holds becomes a request the host can hand over; a
released station goes to the oldest waiting request. The host still
revokes stations or single rights. Also fixes direct-fire validation
for the submarine in the browser and helicopter audio in the admin room.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-26 18:03:17 +02:00
db9979andClaude Opus 5.5 66c18071c1 Crewed submarine: own plot, telegraph buttons, keel and obstacle warnings
The submarine commander draws on the boat's own transient plot (never
the frigate's; the boat's sonar room has none). The web station gets
telegraph buttons. A chart check along the ordered course reports land
or a seabed shallower than the boat within 5 NM, and the water under
the keel is shown on web and uConsole. The manual gains the "Not
modelled" list for the crewed boat.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-26 16:42:50 +02:00
db9979andClaude Opus 5.5 3d9816951f Crewed submarine: alarm bearings, mast with ESM, fire-control picture
Ping and torpedo alarms carry the boat's own measured (noisy,
deterministic) bearing. At periscope depth the crew can raise a mast
whose ESM reports sweeping radars; it lowers itself when diving. The
commander can ping and take a BT without a sonar operator. The tube
arc is drawn on the web and uConsole charts, the sonar's designated
target is preselected and fire readiness shows boat reasons.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-26 16:26:56 +02:00
db9979andClaude Opus 5.5 044b4b768a Crewed submarine: run depth, two-torpedo spread and wire guidance
- Crew shots take a run depth (5-300 m) and one torpedo or a +/-4 degree
  spread, each with its own datum.
- Every crew torpedo runs on a wire (transient, cut by a load): the crew
  moves its datum and the wire turns it on until the seeker acquires; the
  frigate's spool/tension rules apply with the boat's limits (10 kn,
  1.5 deg/s); broken wires are logged; the crew can cut a wire.
- Remote Crew: uboot_fire gains depth_m/salvo, new uboot_wire_steer and
  uboot_wire_cut; own_weapons publish wire state and datum; web fire
  controls and wire panel. Local: T depth, Y spread, F bearing then
  range, W steer, Shift+W cut. Help, manual (EN/DE) and tests.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-26 15:57:30 +02:00
db9979andClaude Opus 5.5 379163b0ff Crewed submarine: plant under crew control, silent running, bottoming
- A crewed boat never ascends, snorkels or radios by itself: the endurance
  model runs in crew mode (AIP still takes the load), and the crew snorkels
  at snorkel depth to charge (max 6 kn; diving deeper stops the diesels).
- Silent running (max 5 kn) and lying on the bottom (3 m keel clearance,
  no drift, lifts off with any way/depth order) give the lurker's quiet.
- Crewed boats stop before land instead of veering; telegraph steps; boat
  log warnings for low/empty battery, shallow water and obstacles.
- Transient CrewOrders (never saved); AI behaviour unchanged (calibration
  77/77). Own rejection reasons for the submarine instead of frigate words;
  local BT notices go to the boat log, not the frigate feed.
- Remote Crew actions uboot_snorkel/silent/bottom, projection and browser
  validator fields, web mode buttons and battery warning; local keys
  G, Shift+G, N, +/-; help, manual (EN/DE) and tests.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-26 15:37:03 +02:00
db9979andClaude Opus 5.5 95c4b7fd39 uConsole bridge page 3: lookout scope
- New bridge page "Lookout": north-up scope of the lookout's own sightings
  (measured bearing and range, coloured by kind, labelled with what he made
  out), visibility, sea state, day/night and the latest lookout reports;
  `,` / `.` step the scope radius (2-30 NM). Same picture as the Remote Crew
  bridge lookout view; nothing from hidden world entities.
- Help, manual (EN/DE), catalogs and tests (page metadata, keys, tooltip,
  text fit).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-26 15:14:35 +02:00
db9979andClaude Opus 5.5 f6b1223c8e Web radio room, admin room and manual pages in the CIC design
- Radio station without the chart: HF/DF bearing scope (strobe fan per
  intercept, logged bearings dashed, own course), HF receiver channels with
  digital frequency, ground/sky-wave badge, S-meter and log button, and a
  message teletype. No contact dock; the contact detail opens under the
  station panel when a channel is selected.
- Radio projection publishes the measured HF carrier (frequency_khz) and
  propagation mode, as the uConsole tooltip already shows; browser validator,
  projection test and schema test updated.
- /admin (setup, login, room, crew, options) and /manual-en|de restyled on the
  shared tokens and fonts; the PDF build keeps its own print stylesheet.
- Fix: the CIC grid now always fills the viewport height (the operations grid
  row no longer collapses to content when the tab list is hidden).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-26 13:13:54 +02:00
db9979andClaude Opus 5.5 4dd23bc242 Web client: CIC redesign with ES modules and bundled fonts
- Remote Crew browser client rebuilt as a dark combat-information-centre layout
  for large desktop monitors: slim status bar (stations, mission, clocks, UTC,
  link state), pulsing alert band, the instrument as centrepiece and
  collapsible docks (contacts, station, contact detail, log drawer; keys , . L).
  Four columns from 2400 px, fluid type up to 4K; guide, lookout and contact
  library open as overlays (Esc closes).
- app.js split into native ES modules under data/commander/js; the transport
  (net/*) no longer touches the DOM and talks to the views through synchronous
  topics (core/events.js, app/bindings.js); redraws share one frame scheduler.
- style.css replaced by a token-based design system in data/commander/css.
- Inter 4.1 and JetBrains Mono 2.304 bundled unmodified (OFL-1.1) with
  provenance in THIRD_PARTY_NOTICES.md; CSP allows font-src 'self'.
- Server serves the css/js/fonts trees from one asset manifest
  (src/commander/assets.py); packaging, capture tool, help, manual and docs
  updated; tests share tests/commander_web.py and import modules directly.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-26 12:02:01 +02:00
db9979andClaude Opus 5.5 71c6a7e461 Crewed hostile submarine: Remote Crew roles and local U-boat side
- Remote Crew roles "uboot" (command) and "uboot_sonar" bind the living
  hostile submarine with the smallest id; the binding is transient (never
  saved) and hands the boat back to the AI on release, load or reset.
- Manual Sub mode: course/speed/depth orders within the physics limits,
  checked fire (arc, tubes, stores), decoy, active ping, emergency blow.
- SonarStation extracts the operator state; the boat gets its own full
  sonar workstation (observer adapter, frigate acoustic source), audio
  stream and projections with the frigate's shape, without towed array.
- Options page 2 chooses the uConsole side (frigate default, never saved;
  only outside a mission); --play-sub for one launch.
- uConsole U-boat command station in the Bridge layout: shared chart
  geography with the boat, its contacts and own torpedoes, threat bar,
  Navigation (water column) and Weapons & contacts pages, boat log and
  telemetry in the configured bottom band; chart zoom/follow/drag.
- Web: the boat's own torpedoes on the U-boat chart (own_weapons).
- Sonar view reads the active workstation's observer, never the frigate
  truth, while the boat's sonar is shown.
- Tests: determinism with equal entity-id starts, truth guard while
  drawing, chart/page controls, schema with own_weapons, web-host rooms
  hold the nine frigate stations only. Manual EN/DE and help updated.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-26 09:16:36 +02:00
db9979andClaude Opus 5.5 e57f5708a4 Web active-sonar fit; depth/range pointer readout on BT and weather profiles
- Web ACTIVE page: the PPI canvas sat in a grid row without a definite
  height, so height:auto took the bitmap height (CSS size x device pixel
  ratio) and grew past its cell on every redraw, clipping the circle at the
  bottom. The canvas now fills a minmax(0, 1fr) row; the stacked narrow
  layout keeps its fixed height.
- BT environment page (web and uConsole): the pointer shows a depth guide
  with depth, interpolated sound speed and above/below the layer; the web
  plot also labels the layer, the seabed and the sound-speed minimum.
- Weather/sonar analysis (key 0, web and uConsole): over the profile the
  pointer reads depth and sound speed, over the sound-path section range,
  depth and sound speed plus shadow zone / convergence zone.
- Display only, from the operator's own BT measurement; shared native
  helper src/ui/profile_cursor.py. Manual EN/DE updated.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-25 21:28:05 +02:00
db9979andClaude Opus 5.5 42bc571c61 Audible sonar echoes, exact HQ threat intel, Remote Crew behind a proxy
Sonar echo:
- Every active return is audible when it arrives, after the two-way travel
  time the simulation already models (ship sonar, dipping sonar, wrecks).
  CW returns are a smeared carrier tone, LFM returns a short 100 Hz sweep;
  the pulse is the one the ping was sent with (audio-only memory, never
  saved), loudness follows the measured echo SNR and faint returns sit in
  reverberation hiss. The ping bus queues an echo behind a busy sound.
- Browser cues sonar_echo_cw/_lfm (+ _faint) with matching synthesis.

HQ intelligence:
- New start-report setting: coarse (bearing/range, as before) or exact
  (every hostile unit type with count and expected air-raid waves, analyser
  names). Patrol is exact, Double hunt and Nuclear intercept coarse, the
  free hunt chooses on its difficulty screen. Kept out of the saved
  difficulty set, so saves stay exact v14.

Remote Crew behind an HTTPS proxy:
- The local game accepts --public-origin https://... (crew and solo): the
  F9 listener then answers on its LAN URL and on exactly that proxy host
  (passed through, rewritten to the upstream, or with :443) and origin;
  cookies are Secure only on the HTTPS path. Without the option nothing
  changes; a proxy with its own host name still gets 403. F9 and the solo
  screen show both addresses. Header values may contain HTAB.
- Checked end to end with Chromium through a TLS proxy: crew and solo,
  direct and proxied, pair and reach the live station view.
- docs/web-host.de.md: local proxy section; no pause and saves v14 (the
  page still claimed a host-absence pause and v10).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-25 20:15:18 +02:00
db9979andClaude Opus 5.5 5bcb880e6f German umlauts, banner language, own weapons on the OPZ chart
- German catalog: 648 entries move from ae/oe/ue/ss transliteration to
  real umlauts and sharp s (Brücke, zurück, Größe, außerhalb); genuine
  sequences (Feuer, neue, Quelle, Frequenz, aktuell), English words and
  {placeholders} stay. The translator also resolves the old ASCII
  spellings of code literals, in both languages.
- The whole draw pass runs in the game's translation scope: the flash
  banner in the top bar was rendered by the process-wide English
  translator while the game ran in German.
- OPZ shows own commanded weapons: torpedoes from ship, helicopter or
  ASROC (T<n>), ASROC and ESSM on the native chart, and the same torpedo/
  ASROC/Nixie rows in the web OPZ own_assets (strict client schema).
- Commander capture accepts the unpainted sonar and helicopter
  waterfalls (headless virtual time does not run their animation clock);
  web and native screenshots, manual (MD/PDF) and shortcut sheet are
  regenerated.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-25 18:22:55 +02:00
db9979andClaude Opus 5.5 910c7f3755 Release 1.2.0: game flow and station hand-over; regenerated documents
Game flow:
- Esc dialog in a mission offers "Main menu (without saving)"; M at the
  mission end returns to the main menu; Esc in the scenario list goes back
  to the main menu instead of opening the quit dialog.
- R after an editor mission restarts that mission instead of a random one.
- The end panel shows the remaining time after any early defeat, and
  "time expired" only when the clock ran out.
- Survive (convoy) missions announce the last minutes as progress instead
  of a deadline.

Stations -> OPZ -> weapons:
- An affiliation set on an OPZ fusion applies to the sonar contact inside
  it (FRIEND/NEUTRAL block every torpedo shot, HOSTILE counts for the
  autocrew), as the manual already promised.
- A fusion built from exactly one sonar contact can be designated to
  Weapons; its classification counts for fire control unless Sonar has
  classified the contact itself. The lookup never prunes the register.
- The OPZ domain filter sorts sonar reports by the operator's
  classification, so SUBSURFACE shows classified submarines.

Documents:
- The station shortcut sheet is now generated from src/core/help.py (the
  F1/manual source), so it lists P/plot, 0, F11, the full sonar and
  helicopter acoustic keys and the browser keys; dialog keys stay local.
- New tools/build_manual_pdf.py prints docs/manual/handbuch.de.pdf and
  manual.en.pdf with a local Chromium; both ship in the sdist.
- Manual, READMEs and help cover the new keys; native screenshots
  regenerated. Saves stay exact v14.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-25 17:16:37 +02:00
db9979andClaude Opus 5.5 7a5f94a3c2 Save v14: shared chart plot tools (marks, ruler, bearing lines, circles, DR/CPA)
- src/core/plot.py: strict, bounded plot layer (64 objects, 24-char labels),
  chart geometry (bearing/distance, DR position, CPA to own ship)
- uConsole: P toggles plot mode on the Bridge/Weapons/Helo map and OPZ chart;
  M/R/B/C/D tools, arrows/click + Enter, Backspace (Shift: clear), Esc
- Remote Crew: common "plot" projection (field "shape"), plot_add/remove/
  relabel/clear for every station, collapsible plot panel on the map
- Saved as the new root field "plot" (save v14 only; v13 rejected)
- Help, manual (reference chapter) and EN/DE catalogs updated

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-25 14:43:41 +02:00
db9979andClaude Opus 5.5 8bbd60aa7b Save v13: operator catalog assignment; manual TAS side; DEMON band, heterodyne, crew overview
- Save format v13 (u-jagd-save-v13): sonar contacts carry the operator's
  catalog assignment (player_profile) and the chosen towed-array side;
  v12 and older documents are rejected without migration.
- F8 contact analyser: Enter assigns the browsed profile to the selected
  sonar contact, Shift+Enter clears it; shown in the contact list and on
  the web (Contacts tab assign button, sonar row field).
- Towed-array left/right is the operator's decision: X shows the other
  side, Shift+X confirms (broadband/fusion pages); an own turn no longer
  resolves it silently, a wrong confirmation stays mirrored.
- Shift+F selects the DEMON carrier band, Ctrl+F the heterodyne shift
  (uConsole and web).
- Web: crew automation overview for all stations (as uConsole F3).
- AGENTS.md/READMEs, manual EN/DE, help keys updated.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-25 13:07:40 +02:00
db9979andClaude Opus 5.5 6b227afc9b Operator TMA: hypothesis, residuals and explicit acceptance
- The automatic solver only proposes (training aid); no contact receives a
  TMA fix until the operator accepts one.
- TMA page: Z/X course, Ctrl+Z/X speed, Q/Shift+Q range on the newest
  bearing; amber predicted-bearing curve, residual strip, RMS/trend/fit/
  observability; K accepts, Shift+K copies the solver proposal (training).
- Fit test on systematic residuals (segment means against autocorrelated
  noise); acceptance requires an own-ship manoeuvre and no residual trend;
  noisy bearings give a larger range uncertainty.
- Accepted fixes are dead-reckoned on course/speed until they age out.
- Remote Crew: hypothesis/evaluation/residuals/proposal in the sonar
  projection, TMA form and commands (set, accept, copy proposal).
- Manual EN/DE, help keys, smoke test acts as the operator.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-25 09:56:47 +02:00
db9979andClaude Opus 5.5 634e26bcb3 Operator assistance setting and manual acoustic analysis tools
- New preference operator_assist (off by default / training), display and
  projection only; a test proves it never changes the simulation.
- LOFAR/DEMON: free frequency cursor (Z/X), K marks the fundamental or the
  DEMON shaft/blade lines (blade count and RPM from the operator's marks),
  Q integration 2 (FFT)/8/16/64 s, Shift+Q 20 Hz vernier at native 0.5 Hz,
  Ctrl+Z/X free band-pass edges, Shift+N notch at the cursor.
- Off: no automatic peak labels, received-line lists, DEMON blade-rate/RPM
  proposals, catalog ranking or "low evidence" verdicts (uConsole and web).
- ESM off: unranked library range lookup instead of scored platform
  candidates; radar type, threat and range estimate left to the operator;
  C cycles the library in name order.
- Remote Crew: tool state, integrated spectra and vernier in the sonar
  projection; new sonar commands; EloKa candidates may be unscored.
- Manual (EN/DE), help keys and abbreviations updated.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-25 08:50:31 +02:00
db9979andClaude Opus 5.5 8fc3fe86cf NATO symbols: no frame for unknown affiliation (uConsole and web)
The hexagonal unknown frame cluttered the picture; unknown contacts now
show only the domain glyph in the unknown colour.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-25 06:56:09 +02:00
db9979andClaude Opus 5.5 1a13d5ce5e Real-time only, measured threat cues, status ticker, text fitting, web NATO symbols
Previously uncommitted work: the game always runs in real time (no pause
or time acceleration), web client fixes (plot smoothing, spectrum peak
labels shared with the uConsole), regenerated contact-analysis images,
docs and manual updates.

UI/realism review, phase 1 (no truth leaks):
- Sonar CIC domain follows only the operator classification; new TORPEDO class.
- Torpedo alarm from intercepts only (launch transient, HF seeker pulses),
  used by Bridge, Autocrew and the web Bridge threat block.
- ASM cue from measured speed/altitude or a jamming strobe; CIWS/ESSM/ECM
  resolve missiles through their own M- tracks.
- HFDF fixes publish no domain; lookout domain needs recognition.
- No "hostile ping"/"submarine sunk" reports: breaking-up noises on a
  bearing; score only in the debrief.
- Helicopter layer shown only after the dome passed it; web Bridge gets
  published rows only.

Phase 2 (uConsole screen and text):
- Status ticker (default) frees 158 px; F11 event log/telemetry overlay
  (display only); docked band selectable in the options.
- Layout helpers fall back to catalog abbreviations (<key>.short) before
  any ellipsis; feed wraps, ticker scrolls; zero truncations EN/DE.
- Localised telemetry and OPZ affiliation/domain codes, bounded map labels.

Web: role map and chart draw NATO affiliation frames with domain glyphs.
Tests: truth boundary, text fit, session-wide preferences isolation.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-25 06:52:32 +02:00
db9979andClaude Opus 5.5 b0398d052f Bridge lookout: visual classification and "Bridge lookout" reports
The lookout now reports sightings in up to three steps (Johnson criteria
with binocular gain, scaled by silhouette size): sighted, class (merchant,
warship, carrier, fishing vessel, speedboat, surfaced sub, airliner,
military aircraft) and type (cargo, tanker, passenger, tug, frigate,
destroyer, corvette; warship/military aircraft class name). Classes are
derived from existing catalog keys/categories, so v12 saves and the
catalog snapshot stay valid; the class rides on the saved lookout track
label and is validated on load.

Reports appear as AUSG feed lines ("Brücke/Ausguck: Fregatte ... in 040°"),
torpedo wakes and surfaced subs with a banner, "land in sight" per
landmass. OPZ and chart tooltips show "Lookout: ..."; the web bridge gets
visual_class/visual_type on tactical rows and a bounded sightings list.
Observations only: no operator classification or affiliation, no merchant
names, live traffic indistinguishable. Manual EN/DE, i18n, protocol docs
and tests updated.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-24 14:19:32 +02:00
db9979andClaude Opus 5.5 99ccf9b7c7 Web maps: mouse-over tooltips; wrecks on the web OPZ chart
The Remote Crew role map and the large chart now describe what is under
the cursor, like the native stations: tracks (label, source,
classification and affiliation, bearing/range, course/speed, altitude,
age/quality), sonar fixes, own ship, assets and waypoints, charted wrecks
and rocks, airbases, or else the chart position with charted depth and
bearing/range from own ship. The tooltip is filled with textContent,
ignores touch and drags, and hides on leaving the map. The large chart
also draws the charted hazards. Web help lists map mouse-over and key 0.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-24 13:19:55 +02:00
db9979andClaude Opus 5.5 e5b075dcb3 Charted wrecks: chart symbols, seabed obstacle, submarine hiding
- Wrecks and underwater rocks are drawn on every chart (native map view,
  OPZ basemap, web role map) as chart symbols with the depth of their top
  when zoomed in and a chart tooltip; they are published as public chart
  geography to Remote Crew.
- Wrecks now raise the seabed within half their length, like rocks, so
  they are obstacles for grounding, submarines and weapons.
- An evading submarine near the frigate may creep to a charted wreck
  within 8 NM and lie still on the bottom beside it (new WRACK state,
  silent, no current drift, derived from saved fields so save v12 is
  unchanged). A zero-Doppler echo in the same range cell and beam merges
  with the wreck echo: hidden from CW (750 m cell), separable with LFM
  (about 8 m).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-24 12:58:50 +02:00
db9979andClaude Opus 5.5 a3b72e9475 Weather & sonar analysis station; frame-rate option, elastic sonar audio, presentation
Weather & sonar analysis (key 0, uConsole full screen and every Remote
Crew station): own-ship atmosphere derived from the weather system
(barometer leading the sea with WMO tendency and storm warning, air
temperature with cold outbreaks, snow and icing, gusts, Beaufort, cloud
ceiling, twilight from sun elevation, moon phase), weather effects, and a
helicopter flight decision (CLEAR/LIMITED/NO-GO; gusts, ceiling and icing
now limit launch and dipping, light icing costs fuel). The ocean profile
(layer, sound-speed curve, SOFAR axis, rays and shadow zone) appears only
after a sonar bathythermograph measurement and is always that
measurement. Rain freshens a surface lens in the Mackenzie sound speed;
ray profiles and the BT continue to the seabed (to 1500 m) so a deep
sound channel can form. New common v2 block `weather_station`, browser
validator and dialog, protocol docs, manual EN/DE.

Also included from the parallel session: selectable 30/60 FPS frame-rate
preference with bounded catch-up of slow frames, elastic sonar audio
buffering (local mixer and AudioWorklet), and a German presentation of
the simulation under docs/presentation.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-24 09:24:14 +02:00
db9979andClaude Opus 5.5 e5b3b6e919 Merge sim-gaps-v12: physics upgrade to 1.1.0 (save v12)
Closes every gap in docs/simulation-gaps.md in phases 0-13. Conflict in
AGENTS.md resolved by keeping both build_manual and calibrate checks; the
HFDF reference row names the 120 NM ground-wave anchor again, and the
manual export is regenerated.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-23 23:53:09 +02:00
db9979andClaude Opus 5.5 1fc5bedbd1 Phase 13: performance pass, closure record, release 1.1.0
Memoize the ELOKA emitter ranking per measured fingerprint (bounded, tied
to the runtime catalog): it was the largest single cost of a simulation
step. A 0.1 s substep now costs the same as in 1.0.0 on the ARM
development host (6.7 ms mean over three seeds).

docs/simulation-gaps.md becomes the closure record: every gap with the
model that closes it and the phase/commit, the calibration and anchoring
policy, and the few items kept out of scope with their reason.

Release 1.1.0: version bump, README EN/DE release notes (save v12, 1.0.0
v11 saves rejected), AGENTS.md (detrand, pure physics modules, calibrate
--check), resume notes for uConsole hardware acceptance and the merge.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-23 23:19:18 +02:00
db9979andClaude Opus 5.5 97319f313e Phase 12: missile flight physics, chaff clouds, CIWS, raiders, helo, buoys
Anti-ship missiles are 3-DOF point masses: boost from the launcher's speed,
sustainer cruise, 20 m sea-skim (5 m terminal) with their own radar horizon
for radar detection and HOJ, inertial mid-course to the launch datum, an
active seeker with a +/-30 deg cone and 1.5 s lock, then proportional
navigation limited to 15 g. ESSM flies PN on its seeker line of sight. The
saved missile age is bounded by the powered flight time.

Chaff lays up to 8 saved clouds off the threat axis that bloom, drift with
the wind and fall out; seduction is the Swerling-1 contest of cloud and
ship echo, reduced when the cloud has not bloomed by the missile's arrival.
CIWS slews its mount (115 deg/s), uses its own latest measurement, and
kills by dispersion and prediction error over the rounds' time of flight;
calibrated to the 1.0.0 leak rate.

Raiders fly coordinated turns at a bank limit and pop up to lock their
fire-control radar (ESM emission) before each salvo. The helicopter burns
more fuel in the hover, drifts against its position hold, and launches and
lands only in a deck-motion window. Sonobuoys drift with current and
windage. Air-to-air combat is documented as out of scope.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-23 22:45:18 +02:00
db9979andClaude Opus 5.5 2f3b0f21b2 Phase 11: radar equation, antenna scan, ESM amplitude, HFDF, lookout
Radar: SNR ~ sigma/R^4 anchored so the nominal range is the Pd = 0.5 point
for a broadside target; Swerling-1 behind a 16-cell CA-CFAR; GIT-type sea
clutter (+3 dB per sea state, CNR ~ R^-3); two-way rain attenuation; aspect
as RCS. The antenna turns in simulation time (phase and pending sweep are
saved) and a contact gets one deterministic look only when the beam swept
it. Missile noise jammers are solved from their burn-through range (JNR ~
R^-2). The CIWS search/track radar holds missiles inside 3 NM. Hostile
platform radars use the same Pd = 0.5 range.

ESM: one-way level vs power class, main beam once per revolution and side
lobes at -25 dB, peak level, measured scan period (drives the LIVE window)
and a range estimate from the best candidate's power class (ELOKA page and
Remote Crew projection).

HFDF: boats pick OWF = 0.85 MUF for their shore path; ground-wave range
falls with frequency, sky wave beyond the skip distance with doubled
bearing error; frequency and mode are published on the observation.

Lookout: Koschmieder contrast, Blackwell threshold vs angular size, optical
horizon, whitecap clutter for sea-level targets and a moon-phase night.

Calibration gains an air-defence section (impact time, CIWS and chaff leak)
recorded on the 1.0.0 tree; all 77 metrics are within tolerance.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-23 20:57:07 +02:00
db9979andClaude Opus 5.5 9d8e15c8c7 Phase 10: damage, stability and repair physics
Compartments get volume, centroid, floor height, fuel and electrical load.
Flooding follows the orifice law against the outside waterline (dynamic
draft plus heel), so it slows as levels equalize and high rooms stay dry.
Floodwater mass, free-surface GM loss and transverse moment give draft and
list; the ship sinks beyond reserve buoyancy and capsizes when GM is lost
or the heel passes 35 degrees (replaces the 540-point rule).

Torpedo impact point selects the compartment and the hole area scales with
warhead stand-off; missiles hit above the waterline and mainly start fires.
Fire grows with fuel load and oxygen, is smothered by flooding, spreads
through hot bulkheads, starts from shorted switchboards and can cook off
the magazine. Repair teams walk the compartment graph (20 s per hop) and
patch holes with a limited stock of 8 kits before pumping. Station
capability degrades continuously (sonar/radar range). Hostile hulls flood
progressively and lose radar/missile launch with damage.

Save v12 carries team positions/ETAs, patch kits, holes, heat timers,
shorts, cook-off and capsize state with strict validation.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-23 19:02:56 +02:00
db9979andClaude Opus 5.5 f75d177e48 Phase 9: decoys, seeker discrimination and countermeasures
- Homing seekers score candidates by received level (source level,
  spreading, depth mismatch) with a Doppler gate against stationary echoes
  and a 6 dB lock hysteresis; a torpedo that overruns a decoy remembers it
  (bounded, saved) and re-attacks with its remaining energy.
- Hostile submarine decoys fade with their battery and carry slowly swept
  replica tonals.
- Nixie on a physical cable: depth and layback from the drag/weight
  equilibrium (deeper when slow), lagging tow bearing (saved), cable parts
  above 25 kn; designed emission 12 dB above a quiet hull.
- Hostile combatants stream acoustic decoys (saved store of 2) when they hear
  a torpedo launch.
Manual EN/DE and simulation-gaps updated.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-23 18:24:05 +02:00
db9979andClaude Opus 5.5 ae3991bece Phase 8: torpedo physics
Add src/physics/torpedo_dyn.py and apply it to both torpedo classes:
- Energy store in cruise seconds with power ~ v^3 (range emerges, longer
  when throttled); an empty battery stops the motor, the weapon coasts
  against quadratic drag and is lost below 30 % speed.
- Constant turning radius (turn rate ~ speed); fin-limited depth control
  with a saved vertical rate (hostile torpedoes gain depth control and rise
  to keel depth when homing).
- Wire: torpedo and ship spools, tension breaks from ship overspeed or hard
  turns held for 5 s; the old timers stay as datalink latency.
- Proximity fuze with shock-factor damage for submarines and ships.
- Speed-dependent propulsor lines and 60 log v source level; boats hear a
  running torpedo through the passive sonar equation (re-anchored at its
  6 NM reference range).
- Shallow hostile torpedoes leave a lookout-visible wake by day; hostile
  torpedoes can home on the own-ship wake; ASROC payloads fly a helix
  search at the splash point.
Manual EN/DE and simulation-gaps updated.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-23 17:55:31 +02:00
db9979andClaude Opus 5.5 8e6b1d3227 Phase 7: hostile sensing, own TMA, crew reaction, mast-limited ESM/datalink
- Submarines no longer use the legacy snapshot gate: every boat senses
  through its PlatformSensorSuite. Bearing-only sonar contacts feed an own
  passive TMA (saved track, 30 s re-solve) and the boat opens TMA legs when
  range is unobservable; a range comes only from its own solution.
- ESM works only with the mast up (<= 18 m); the hostile datalink is
  exchanged only by boats at mast depth or snorkelling/transmitting.
- Torpedo alarms take a per-boat crew recognition time (lognormal 2-15 s,
  saved countdown) unless the boat is already evading.
Manual EN/DE and simulation-gaps updated; tests adjusted to the delayed
alarm.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-23 17:25:54 +02:00