Commit Graph
47 Commits
Author SHA1 Message Date
Claude 101da89fa0 Release 1.3.36: chart zoom down to 0.5 NM
Q/E step through fixed chart heights (500 ... 0.5 NM) on the bridge,
weapons, helicopter and submarine charts; the wheel zooms smoothly to
0.5 NM and the OPZ chart to a 0.25 NM radius. The grid gets finer with
zoom (down to 0.1 NM), the scale line shows fractions, land polygons are
clipped to the chart and invisible radar rings are skipped.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0177tEqz38BHhHgw53oMDN6r
2026-09-28 16:50:23 +00:00
Claude f9ba52028a Submarine ESM: measure each radar's scan period (1.3.33)
The crewed submarine's ESM times each emitter's main-beam hits (level
peaks of its own waveform, over gaps up to 12 s without a washed scan)
and reads a rotating search radar with its period or a steady
tracking/fire-control beam. A steady live beam is always a mast warning
and is logged once. uConsole Mast & ESM detail shows the reading (two
columns so every row fits), the browser adds a scan-period row. Save
format v27 adds crew.esm emitter last_peak (crew.esm version 2).

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019eZphdvoJiBgWqq2zSH4aJ
2026-09-28 15:43:22 +00:00
Claude e027d06ddd Crewed submarine: load tubes one by one, flood before firing (1.3.31)
The crew loads each empty tube from the racks (M / browser Load) and
floods a loaded tube before it fires (Shift+M / browser Flood, 20 s,
audible for 4 s). Submarines now carry as many reloads again as tubes
with 2-4 min reloads; AI submarines keep reloading by themselves.
Save format v26 adds crew.orders.tubes.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019eZphdvoJiBgWqq2zSH4aJ
2026-09-28 14:58:33 +00:00
Claude 480478dcb0 Merge main; AI mission submarine in the new wording
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019eZphdvoJiBgWqq2zSH4aJ
2026-09-28 14:08:12 +00:00
Claude 5e1195dacc AI mission boat pursues the boat missions' objectives
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019eZphdvoJiBgWqq2zSH4aJ
2026-09-28 14:07:36 +00:00
Claude 6149428b7c Call the submarine a submarine (U-Boot) in every visible text; release 1.3.29
Player-facing texts that called the submarine just "boat" (Boot) now say
"submarine" (U-Boot): uConsole screens, web clients, help, manual EN/DE,
README and co-op docs, e.g. "Submarine campaign" / "U-Boot-Kampagne".
Internal identifiers, JSON keys and the v25 save format are unchanged.
Regenerated manual export and PDFs and README screenshots.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01H3p6pUZfvAB3r6mhet2wQk
2026-09-28 13:59:15 +00:00
Claude 28cdbe6c03 Boat atmosphere: hull creaks, heard detonations, red light in silent running (1.3.22)
The crewed boat hears its hull creak deep down and crack when it fails,
hears detonations close aboard or far off (logged with a bearing), and
rigs its uConsole and browser screens for red light in silent running.
The boat's browsers get its own cues; the SAR alarm cue is now known to
the browser.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019eZphdvoJiBgWqq2zSH4aJ
2026-09-28 12:19:22 +00:00
Claude a683a2661f Crewed boat may dive below test depth at the risk of hull failures (1.3.21)
Below test depth bolts shear, seals fail and the pressure hull cracks,
more often and worse the deeper the boat goes; crush depth collapses it.
Depth ladders mark the crush depth and a red alarm shows the overdepth.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019eZphdvoJiBgWqq2zSH4aJ
2026-09-28 12:02:15 +00:00
Claude 67230c6035 Add the periscope attack computer (1.3.19, save v24)
Every stadimeter reading becomes a mark; a straight-line fit through two
or more marks a minute apart gives the target's course and speed, the lead
angle and the running time. Ctrl+Enter on the periscope page (browser:
Fire on solution) fires on the intercept course, and a shot at a marked
sonar contact uses the solution too. The marks are saved in
crew.orders.tdc, so saves move to v24.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019eZphdvoJiBgWqq2zSH4aJ
2026-09-28 11:33:56 +00:00
Claude 5456182ee8 Add boat mission 7: convoy attack (1.3.15)
The frigate escorts four merchants; the crewed submarine wins by sinking
two. Only the crewed boat's torpedoes take a merchant, the AI frigate
keeps station ahead of the convoy and prosecutes contacts near it only.
The convoy is remembered in mission_units, so saves stay v23.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019eZphdvoJiBgWqq2zSH4aJ
2026-09-28 10:29:52 +00:00
Claude c7ac6abb94 Boat missions: breakthrough and reconnaissance (1.3.14)
Scenarios 5 and 6 give the submarine the objective. Breakthrough: reach a
goal area about 10 NM beyond the frigate's patrol position (derived from the
saved boat start, no new save state). Reconnaissance: radio a situation
report while the frigate is among the periscope sightings. The frigate wins
by sinking the boat or holding out to the time limit. The boat's orders show
over its chart (goal marked) and as the browser's boat mission line.

Manual EN/DE, changelog, README, shortcut sheet and manual PDFs updated.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019eZphdvoJiBgWqq2zSH4aJ
2026-09-28 10:19:44 +00:00
Claude 8c7fb95f4b F-217 at 31 kn, web admin "End game now" (1.3.7)
The frigate's top speed (FLANK) is its real 31 kn. The brake power is
scaled so drag, acceleration and turning up to 25 kn are unchanged; own
noise and wake keep their 1.0.0 scale below 25 kn and only grow further
up to 31 kn. The Nixie's cable still parts above 25 kn.

The web-host admin page gets an "End game now" card: after a confirmation
the main thread ends the game process after a short grace period, so a
web-hosted game does not keep running in the background.

Manual, station shortcuts and manual PDFs regenerated. Saves stay v23.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AS36Eg72iLviiSVbCUVNAi
2026-09-28 08:47:34 +00:00
Claude 747feff0fd Sonar: variable-depth sonar (VDS) as a third array (1.3.4, save v23)
The frigate gets a towed body that is lowered and recovered with Shift+Y
(3-15 kn, sea state up to 5, lost above 24 kn) and set to 20-300 m with
U/V while it is the selected array. It listens and pings from its own
depth, so below the layer it gains the deep bonus the hull array lacks,
and fusion takes the better of hull and VDS as the unambiguous reference
for the towed array's side. Remote Crew sonar gets the deploy button, the
depth form and the VDS array option. Saves move to v23 for the VDS state;
calibration stays 77/77.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AS36Eg72iLviiSVbCUVNAi
2026-09-28 07:15:23 +00: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
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
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
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
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
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
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
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
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
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
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
db9979andClaude Fable 5.1 d6e2200bf7 Mission runtime: placed aircraft, animals and decoys
Phase 13 step 4 of plan 1.3. Exact units may now be built-in aircraft
(a Flight of the nearest charted airbase patrolling a 10 NM box around
its spot at profile speed), animals (Animal with the authored depth and
speed) and decoys (a static Decoy at its spot; the save validator accepts
mission-placed decoys without a launching unit). Torpedoes and user unit
profiles stay rejected.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-27 08:13:54 +02:00
db9979andClaude Fable 5.1 448a8d3db6 Mission runtime: random groups, authored events and weather
Phase 13 step 3 of plan 1.3. Seeded random groups are placed from the
static preview (a spawn event defers its group); events run in order of
their time from _update_damage_and_mission: message (verbatim feed
text), spawn, weather and objective (complete/fail). The world holds an
authored weather kind (world.weather_override, saved) for the mission
environment and weather events; pending event ids persist as the save
root field mission_events and are validated against the definition.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-27 08:09:28 +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 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 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 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 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 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 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 89bf5be59c Visual consistency: theme tokens for UI chrome, web colour and type scale
- pygame: panel, overlay, selection, alarm and active-tab colours are theme
  tokens (standard and high contrast); weather status colours follow the
  theme at draw time.
- Web: every one-off hex colour is a named token; NATO affiliation colours
  are shared tokens read by app.js; one heading scale for panel, card and
  instrument titles; near-duplicate font sizes on the xs/sm/md scale.
- Regression test keeps the stylesheet token-only.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-25 11:14:02 +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 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 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 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 7abc45f9f8 Phase 5: array physics, Doppler, LM TMA with covariance, multistatic
- Doppler: tonal lines in LOFAR/audio shift with the closing speed; the
  strongest tonal is measured per bearing point (SNR-dependent error) and
  saved with the observer speed.
- TMA: grid seed plus Levenberg-Marquardt refinement (position, velocity,
  f0 with Doppler), accepted only where manoeuvre or Doppler makes range
  observable; 1-sigma covariance ellipse on the contact (saved, shown in
  the sonar view); range sigma never more optimistic than the heuristic.
- Towed line array: endfire broadening and left/right ambiguity (mirror
  bearing, kept out of TMA until a 20 deg own turn or the hull array
  resolves it).
- Receiver beam is a sinc aperture pattern with -13 dB side lobes.
- Sonobuoys use the passive sonar equation and feed the contact bearing
  track with the buoy as observer (multistatic TMA).
Manual EN/DE, i18n and simulation-gaps updated.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-23 15:59:06 +02:00
db9979 3b3753cf4e Initial Release v1.0.0 2026-09-23 12:10:58 +02:00