Commit Graph
133 Commits
Author SHA1 Message Date
Claude a989ac87c7 Mission editor: pick the reference sector from a list (1.3.2)
The World tab's Kind and Reference rows are now closed choices: Enter
opens a pick list (FieldRow.choices in the shared FieldList) instead of
free text. Reference lists the 128 packaged sectors with their countries;
picking one makes the world a 500 NM reference world. The preview draws
the chosen sector's coast from a once-per-process sector cache.

Closes the Phase 13 deviation "text field instead of sector selection".
App 1.3.2, saves stay v22. EN/DE catalog, manual and README updated.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AS36Eg72iLviiSVbCUVNAi
2026-09-28 06:03:19 +00:00
db9979 480bb97935 Merge pull request #24 from db9979/claude/project-thread-c5d1ya
Radio room for the crewed boat, helicopter and MPA radars in the boat ESM (1.3.1)
2026-09-28 06:55:05 +02:00
Claude 5c8c191aea Radio room for the crewed boat, aircraft radars in the boat ESM (1.3.1)
- New seventh boat station uboot_radio (uConsole key 7, browser role):
  HQ broadcast every 10 min with a contact report on the frigate, copied
  with the mast up at periscope depth; situation reports go out on HF for
  20 s and can be borne by the frigate's HF/DF; radio log saved.
- Catalog emitters for the helicopter and patrol-aircraft search radars;
  the boat's ESM hears them (helicopter airborne and not dipping, MPA with
  its radar on).
- Save format v22 (crew.radio), app version 1.3.1; help, manual EN/DE,
  web schema and plan updated.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019eZphdvoJiBgWqq2zSH4aJ
2026-09-28 04:54:42 +00:00
db9979 4fd1da4481 Merge pull request #23 from db9979/claude/project-thread-c5d1ya
Translate the double hunt's loss line in the scenario menu
2026-09-28 06:12:02 +02:00
Claude 5e91871707 Translate the double hunt's loss line in the scenario menu
The menu showed the raw key "scenario.double.lose" because the catalog
had no entry for it. Adds it in English and German and a test that every
scenario goal/loss line the menu draws is in both catalogs.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019eZphdvoJiBgWqq2zSH4aJ
2026-09-28 04:11:48 +00:00
db9979 60a64b2561 Merge pull request #22 from db9979/claude/project-thread-c5d1ya
U-boat: threat picture, evasion, boat debrief, speech and lessons
2026-09-27 23:05:28 +02:00
Claude dcae316dcb U-boat: threat picture, evasion, boat debrief, speech and lessons
- Counter-detection picture from the boat's own measurements: hull,
  dipping and buoy pings with received level, buoy splashes, torpedo
  alarms; Threat page (Command 4, Navigation 2), browser card, chart rays.
- Evasion order (key I, uboot_evade action): stern to the pinger or
  torpedo on the quarter, layer crossing, silent running or decoy.
- Boat debrief (own track, frigate truth, pings taken, spans the frigate
  held the boat), boat outcomes (won, escaped, survived, trained, lost).
- Spoken crew reports from the boat's log when the uConsole plays it.
- Two boat training lessons with a scripted pinging frigate.
- Fix stale browser session fixtures (callouts, mpa, crew).

Save stays exact v21; all new boat state is transient.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019eZphdvoJiBgWqq2zSH4aJ
2026-09-27 21:05:00 +00:00
db9979 503b9e1c4e Merge pull request #21 from db9979/claude/project-thread-c5d1ya
Debrief replay, guided training, campaign and spoken crew reports
2026-09-27 22:03:47 +02:00
Claude b7c5697112 Add spoken crew reports on the uConsole (espeak-ng) and in Remote Crew browsers
Important feed events (torpedo in the water, new contact, breaking-up
noises, torpedo away, hit, action stations, patrol aircraft on station,
mission result) become transient callouts with bearings spoken digit by
digit. The uConsole speaks through an installed espeak-ng behind a new
option (off by default, silent without espeak); browsers get the
callouts in the common audio block and speak them with SpeechSynthesis
in their own language behind a per-viewer switch. Frigate roles only.

Also moves the main-menu test indices past the new Training and
Campaign entries.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019eZphdvoJiBgWqq2zSH4aJ
2026-09-27 20:03:15 +00:00
Claude 0f6aac5c89 Add guided training lessons and a six-mission campaign
Training (main menu): four lessons run as authored missions with a hint
banner whose steps advance on the player's own actions; the coach needs no
saved state. Campaign (main menu): six linked missions in one sea area
carrying torpedoes, damage, a lost helicopter and HQ standing, with a port
call between missions, kept in its own campaign.json beside the slots.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019eZphdvoJiBgWqq2zSH4aJ
2026-09-27 19:43:55 +00:00
Claude 5fefbdd513 Add the post-mission debrief with a truth-versus-knowledge replay
After the mission ends, D on the end panel opens a debrief page: a
timeline of the recorded mission with the true tracks beside the crew's
contacts, headline numbers (first contact, fix, classification, fix
error, shots, sinkings) and automatic events including missed chances
(a hostile boat within 4 NM for 5 min without contact, above or below
the layer). The recording is bounded, read-only and never saved.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019eZphdvoJiBgWqq2zSH4aJ
2026-09-27 19:37:37 +00:00
db9979 aeab900b39 Merge pull request #20 from db9979/claude/project-thread-c5d1ya
Commandable maritime patrol aircraft on OPZ page 3 (save v21)
2026-09-27 21:20:52 +02:00
Claude 631a284f9e Add the on-call maritime patrol aircraft (OPZ page 3)
A patrol aircraft from the nearest friendly airfield: the OPZ requests it,
sets its search area (selected track or chart click), plans buoy patterns,
drops buoys, switches its surface-search radar and releases a torpedo on the
designated contact. It reports only by datalink: RADAR-MPA tracks and its
buoys while it relays them. Remote Crew OPZ gets the same orders; save v21
adds the aircraft and each buoy's owner.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019eZphdvoJiBgWqq2zSH4aJ
2026-09-27 19:20:17 +00:00
db9979 832179d0df Merge pull request #19 from db9979/claude/project-thread-c5d1ya
Add HQ radio tasking system and crew watch mechanics
2026-09-27 20:53:39 +02:00
Claude c1946eb75f Add crew watches, fatigue, action stations and morale
Frigate and crewed boat stand three watches relieved every hour of game
time. Action stations make the crew more alert but tire everybody;
morale moves with kills, damage and HQ tasks. The crew's performance
raises the sonar recognition threshold, needs more lookout/periscope
contrast and slows damage-control work. A fresh crew is exactly the
calibrated crew (77/77 metrics unchanged). Damage page 3, Bridge G,
boat keys B/M, Remote Crew cards and orders, save v21 "watch" and
crew.watch.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019eZphdvoJiBgWqq2zSH4aJ
2026-09-27 17:20:08 +00:00
Claude de0a9e7497 Add HQ radio tasks: distress calls, identification, datums, replenishment, EMCON
HQ offers up to six tasks per built-in mission over the teletype. The
radio room (and the Remote Crew radio station) accepts or declines them;
accepted positions are plotted on every chart. Tasks progress on the
slow simulation cadence with detrand draws, are scored at mission end
and are saved in the new save v21 root field "tasking".

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019eZphdvoJiBgWqq2zSH4aJ
2026-09-27 16:51:35 +00:00
db9979 5b70b716a1 Merge pull request #18 from db9979/claude/project-thread-00u23h
U-boat stage D: damage control with compartments and two teams
2026-09-27 16:59:04 +02:00
Claude 3d7df84681 Crewed boat: damage control with compartments and two teams (stage D)
Six compartments with depth-dependent leaks, spill through open
bulkheads, fire, chlorine gas from a flooded battery and power loss; two
damage-control teams seal, pump and fight fire; shut bulkheads contain
water, fire and gas. Floodwater feeds the trim model; flooded, burning or
gassed compartments take out the tubes, masts, diesels or half the speed.
Damage page on the uConsole engine room, damage-control card in the web
station. Save format v20.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BdXs5tkJ6kzdeubNWqPHtG
2026-09-27 14:58:44 +00:00
db9979 33e09ffeff Merge pull request #17 from db9979/claude/project-thread-00u23h
U-boat stage C: ballast tanks, trim and high-pressure air
2026-09-27 16:02:18 +02:00
Claude 020c7c95aa Crewed boat: ballast tanks, trim and high-pressure air (stage C)
Main ballast, regulating and trim tanks with fill levels; an HP air store
for several blows, refilled while snorkelling; torpedo launches and flooding
shift weight and trim, pumps are audible. Tanks page on the uConsole engine
room, cross-section card in the web station. Save format v19.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BdXs5tkJ6kzdeubNWqPHtG
2026-09-27 13:41:56 +00:00
db9979 c95fba8c1c Merge pull request #16 from db9979/claude/project-thread-00u23h
uConsole U-Boot: Eingabefeld zeigt Text statt input.uboot_*
2026-09-27 14:43:46 +02:00
Claude 86955542d4 uConsole boat: name every numeric entry in the input overlay
The overlay looked up "input.<mode>" and showed the raw key
(input.uboot_depth, input.uboot_course, ...) for all boat entries.
Adds the eight EN/DE labels and a regression test.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BdXs5tkJ6kzdeubNWqPHtG
2026-09-27 12:43:33 +00:00
db9979 ea48289161 Merge pull request #15 from db9979/claude/project-thread-00u23h
U-Boot Mast & ESM: Emitterliste, Kreuzpeilung, Mastwarnung (Stufe B)
2026-09-27 14:38:01 +02:00
Claude bbb3345e9a Boat Mast & ESM station: emitter list, cross-fix, mast warning (stage B)
The crewed boat's mast now intercepts real radar signals through
scan_for_signals with the boat as observer. The crew keeps an emitter
list (fingerprint association, agile hops merged), classifies emitters
against the library, sees the bearing history, a Gauss-Newton cross-fix
from own motion with a 95 % error ellipse, the level trend, a warning
when a radar can see the mast and a recommended mast time from the sea
state. Bearing lines and fixes appear on the boat chart and web map and
can be transferred to the boat plot. Save format v18 (crew.esm).

The uConsole boat contact list shows quality as a percentage instead of
the bare "q0.98".

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BdXs5tkJ6kzdeubNWqPHtG
2026-09-27 12:37:40 +00:00
db9979 9c5cbf35fe Merge pull request #14 from db9979/claude/project-thread-00u23h
Boat engine room: energy balance, diesel, charge rate and air stores (save v17)
2026-09-27 13:34:30 +02:00
Claude 1bee8ca91b Boat engine room: energy balance, diesel, charge rate and air stores (save v17)
Stage A of the boat-station plan. Conventional boats now carry diesel
(300 h of generator output, 65 % at start, burned only while the diesels
run), a crew-ordered snorkel charge rate (full / half / air only, with
matching noise and diesel lines) and a modelled atmosphere (O2 down, CO2 up
dived; absorber sets, oxygen candles, airing while snorkelling). Stale or
foul air slows the crew (reload); AI boats manage their air and come up
when it turns foul.

The web engine room gets an Energy & stores card (bars, energy balance,
endurance table by telegraph step, air, orders). The uConsole engine room
gets a second page Stores with R / A / O. Remote Crew actions
uboot_charge_rate, uboot_absorber and uboot_o2_candle (engine room only).
Battery phase and engine telegraph now display translated.

Save format v17 (endurance state version 2); v16 saves are rejected.
Calibration 77/77 unchanged.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BdXs5tkJ6kzdeubNWqPHtG
2026-09-27 11:23:30 +00:00
db9979 b83f9ed452 Merge pull request #13 from db9979/claude/project-thread-00u23h
Translate raw state names on the uConsole and in the web client
2026-09-27 13:00:58 +02:00
Claude 27b17839d9 Translate raw state names on the uConsole and in the web client
Engine telegraph orders, the boat's battery phase, sonar fusion states and
TMA geometry were drawn as internal names (HALF, SUBMERGED, NUR BOW, KEINE);
the web showed sonar array, tow state, ROE, tube and weapon states raw, and
the mission editor showed field.placement.* / field.reach.* keys. All now
come from EN/DE catalog entries, with regression tests.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BdXs5tkJ6kzdeubNWqPHtG
2026-09-27 11:00:17 +00:00
db9979 41096e2814 Merge pull request #12 from db9979/claude/project-thread-00u23h
Boat side: key 0 opens the weather panel on the uConsole
2026-09-27 12:43:20 +02:00
Claude 285bef3bd9 Boat side: key 0 opens the weather panel on the uConsole
The weather panel was frigate-only on the uConsole: aboard the crewed boat
key 0 did nothing. It now opens over the whole station area from the boat's
own instruments and BT, with the boat block (mast on radar, sighting range,
ambient noise, snorkel) instead of the helicopter flight weather.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BdXs5tkJ6kzdeubNWqPHtG
2026-09-27 10:28:01 +00:00
db9979 e5fbc4f8e0 Merge pull request #11 from db9979/claude/project-thread-00u23h
Küste im Ausguck, Fernglas und Sehrohr
2026-09-27 12:17:27 +02:00
Claude 0b35ce6b4a Charted coast on the lookout's and the periscope's horizon
The horizon of the bridge lookout strip, the new binoculars and the
submarine's periscope showed open sea even with a coast ahead. They now draw
the charted coast (known geography only) as far as the eye can see land:
rays cast against the coastline polygons (NumPy, cached per 0.1 NM of
position, bounded), hills an assumed 25-70 m since the chart has no
elevation, fading into the haze. The binoculars' panorama marks the coast
along its foot.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BdXs5tkJ6kzdeubNWqPHtG
2026-09-27 10:16:56 +00:00
db9979 1923437503 Merge pull request #10 from db9979/claude/project-thread-00u23h
Sehrohr bei der Führung, Sehrohrfenster im Rahmen, Fernglas der Brücke
2026-09-27 12:11:30 +02:00
db9979 1b6a2c6534 Merge pull request #7 from db9979/claude/project-thread-th8nou
Fix the two failing Remote Crew browser tests
2026-09-27 12:09:38 +02:00
Claude 315acc234f Command raises the mast; periscope fits its box; bridge binoculars over the chart
Command (station 1) may now raise the boat's mast so it can look through
the periscope it already shows (uConsole P and the web periscope card). The
uConsole eyepiece no longer spills over the bottom of its frame. On the
frigate's bridge lookout page, B raises the lookout's binoculars large over
the chart: a 16 degree trainable field (, / . or a click on the all-round
panorama) with the outlines and list of the lookout's own sightings
(display only, not saved).

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BdXs5tkJ6kzdeubNWqPHtG
2026-09-27 10:07:17 +00:00
db9979 987db8f5a4 Merge pull request #9 from db9979/claude/project-thread-00u23h
Ping-Peilfehler, flüssiges Web-Sehrohr und Plan für die Bootsstationen
2026-09-27 11:54:11 +02:00
Claude 3b66e912d4 docs: plan for extending the boat stations (engine, mast & ESM, ballast, damage control)
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BdXs5tkJ6kzdeubNWqPHtG
2026-09-27 09:52:15 +00:00
Claude 7fd272db0b Merge remote-tracking branch 'origin/main' into claude/project-thread-00u23h 2026-09-27 09:52:09 +00:00
Claude d94f878662 Frigate hears a foreign ping with a measured bearing; smooth web periscope
The frigate reported a submarine's active ping with its exact bearing to
0.1 degree while the crewed boat's ears are ~2 degrees off. It now uses the
same deterministic error (PING_INTERCEPT_SIGMA_DEG, keyed by the saved
arrival time) and whole degrees. The browser periscope drew only when a
state arrived (2-4 Hz), so horizon and bearing stepped; it now eases
bearing and horizon toward the latest state every animation frame
(display only).

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BdXs5tkJ6kzdeubNWqPHtG
2026-09-27 09:47:07 +00:00
db9979 4b2ad15134 Merge pull request #8 from db9979/claude/project-thread-00u23h
Web: Mast direkt in der Sehrohrkarte ausfahren
2026-09-27 11:45:28 +02:00
Claude dfe6ba6e77 web: raise the mast from the periscope card
The browser periscope card said only "Mast down" and had no control, so
the Mast & ESM operator had to find the mast buttons in the card above,
and Command (who sees the periscope but does not own the mast) got no
hint who does. The card now carries the mast pair for Mast & ESM and the
hint names that station.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BdXs5tkJ6kzdeubNWqPHtG
2026-09-27 09:29:46 +00:00
Claude bcc51e680d Merge remote-tracking branch 'origin/main' into claude/project-thread-th8nou 2026-09-27 09:29:02 +00:00
Claude 2c34d6da5b Fix the two failing Remote Crew browser tests
- Radio room: an empty DF scope now writes its "no signal" text
  equivalent instead of clearing it (ELOKA already did this).
- Sonar room: the client remembers the focus it last sent, so a quick
  reselection (A, B, A) is no longer dropped against the lagging
  published focus.
- Role-states browser test: instrument the radio scope, log pushed
  states like polled ones, wait one more presence poll per role, guard
  the sonar overview check against a role switch, and read the result
  over DevTools so the run ends when the probe does (about 10 s).
- Submarine sonar audio test: run Chromium in real time and read the
  result over DevTools; virtual time starved the live audio socket.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011qbgcvPr4s2ohpf2qA1zNW
2026-09-27 09:28:02 +00:00
db9979 447ebaac94 Merge pull request #6 from db9979/claude/project-thread-she9nf
Catalogue the ASM seeker and gate it by the radar horizon
2026-09-27 11:15:39 +02:00
db9979 8e38a9c2bb Merge pull request #5 from db9979/claude/project-thread-00u23h
Hardware-Abnahme: SimLog-Performance, Ping-Laufzeit (Save v16), Boots-Wetterseite
2026-09-27 11:15:33 +02:00
Claude 97964411d7 Weather page: boat block instead of flight weather for the submarine roles
The crewed boat's Remote Crew roles no longer get the frigate's helicopter
flight weather, cloud ceiling or icing. Their weather_station block carries
"boat" instead: mast radar detection range (reference surface radar, mast
RCS, sea clutter, rain, radar horizon) beside the calm-sea value, the range
a ship's lookout sights the surfaced boat in the current light/visibility/sea,
wind and rain ambient noise above the calm reference per sonar band, and the
snorkel limits (6 kn, +12 dB, 50/100 Hz diesel lines). Only environment and
own-boat data are read. The frigate block is unchanged.

The weather allowlists now live in src/commander/v2/schema.py and are
rendered into the browser validator; the browser shows the boat block for
the boat roles. EN/DE catalog keys and the reference manual are updated.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BdXs5tkJ6kzdeubNWqPHtG
2026-09-27 09:05:26 +00:00
Claude 07871e59e4 Save v16: a foreign active ping reaches the frigate after its travel time
The frigate sounded its low warning tone, flashed and logged a submarine's
active ping in the very frame the boat transmitted, however far away it
was, so the alarm came seconds before anything could have been heard. The
intercept now waits for the one-way travel time (about 1.2 s per nautical
mile, modelled sound speed on the path). Pings still travelling are part
of the save (root field ping_intercepts), so the schema is now
u-jagd-save-v16; v15 documents are rejected without migration.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BdXs5tkJ6kzdeubNWqPHtG
2026-09-27 08:48:12 +00:00
Claude f2c91c073a commander: publish SimLog from per-entry bytes and share one truth copy
Each new SimLog row made the server re-encode every role's whole history
(up to 9 x 2 MB), a stall every 10 s that grew to 1.4 s on the uConsole
after seven minutes. The server now caches each entry's compact JSON and
joins the published document from it (byte-identical), and the bridge
deep-copies a row's truth once instead of once per role.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BdXs5tkJ6kzdeubNWqPHtG
2026-09-27 08:39:22 +00:00
Claude 39f8747f33 commander: bound SimLog history without re-encoding it every frame
With SimLog on and a browser connected, the bridge encoded every role's
whole SimLog history as JSON on every frame just to check its size, and
once the history reached SIMLOG_MAX_BYTES it re-encoded it once per
trimmed row. On the uConsole this took the main thread to 6-12 fps after
about six minutes. Each entry is now encoded once and its size cached;
the trimmed history and the byte bound are unchanged.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BdXs5tkJ6kzdeubNWqPHtG
2026-09-27 08:25:32 +00:00
Claude 27ce2c4917 Catalogue the ASM seeker and gate it by the radar horizon
The anti-ship missile's active seeker is now a library emitter in the
contact catalog (emitter.air_defense.asm.seeker, role missile_seeker,
unattached to any platform); the air-defence loadout names it by key
instead of carrying its own frequency/PRF/modulation copy. ESM ranking
and the library lookup can therefore offer it, and ELOKA names it
"Anti-ship missile seeker". Saves whose catalog snapshot predates it keep
emitting the packaged signature.

The seeker's ESM emission and own-ship ECM against it now respect the
same mast-to-missile radar horizon as search radar and HOJ.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BLMCsaaxZ79US83P9daHiq
2026-09-27 08:08:18 +00:00