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
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
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
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
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
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
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
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>
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>
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>
- 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>
- 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>
- 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>
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>
- 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>
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>
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>
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>
Add src/sonar/equation.py and route own-ship, dipping and NPC sonars
through it, calibrated so the 1.0.0 detection ranges hold:
- Passive SE = SL - TL - NL + DI - DT per band: source level from target
quietness, spherical spreading plus path excess and Francois-Garrison
absorption, Wenz/Knudsen wind, shipping (nearby merchants) and rain
noise power-summed with a hull self-noise floor and the speed/cavitation
self noise; own wake astern masks the hull array.
- Active SE with aspect/length target strength, bottom (sediment Lambert),
surface and volume reverberation, CW Doppler rejection growing with
radial speed, LFM processing gain, Cramer-Rao range accuracy.
- Selectable CW/LFM pulse (W, saved); charted wrecks return unassociated
echoes (saved pending clutter).
- NPC passive sonars hear louder targets farther and use their catalog
receiver sensitivity.
Sea-state deviations at cavitating own speed are recorded with reasons.
Manual EN/DE and help updated.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Bump the save format to v12 (u-jagd-save-v12); every v11 save is rejected
without migration. Remove the same-version v10/v11 upgrader chain, the
legacy ESM v1/v2 and two-channel ECM restore paths.
- Declare exact save key sets in src/core/save_schema.py.
- Persist Sub._active_ping_cd and SurfaceShip torpedo-evasion state, which
were silently reset on load and broke deterministic continuation.
- Validate the damage block exactly (keys, teams, bounded flood/fire).
- Add a simulated own-ship AIS receiver (ITU-R M.1371 class-A cadence,
VHF line of sight). Radar observations of civilians no longer carry the
true name and course (observation-boundary leak).
- Add src/core/detrand.py for stateless deterministic draws.
- Add tools/calibrate.py with golden 1.0.0 gameplay metrics and a test that
keeps later physics phases within tolerance.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- data/manual: EN/DE chapters (quickstart, nine stations, reference)
- src/core/manual.py: Markdown subset -> text lines, HTML, export;
key tables and SOPs expand from src/core/help.py
- F1 overlay: station SOP, fourth "Manual" category, ? opens help
- Remote Crew serves /manual-en|de; guide and station help link to it
- tools/build_manual.py exports docs/manual (--check for CI)
- tests/test_manual.py guards EN/DE parity, key coverage, numbers
- AGENTS.md/README: documentation sync rule and links
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>