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>
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>
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>
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>
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>
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>
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>
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>
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>
- 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>
- 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>
- 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>
- Status bar stays one row at every desktop width: short clock labels (full
names as tooltips), mission remaining/elapsed as h:mm:ss, connection text
truncated with the full text as tooltip; badge, mission name and UTC give
way on narrower windows instead of overlapping.
- Guide, lookout and contact library overlays no longer inherit the panel's
100 % size, so they fit the viewport and the close button is visible.
- Regression tests for status-bar overlap and overlay bounds.
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>
- 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>
- 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>
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>
- 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>
- 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>
- 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>
- 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>
- OPZ: CIWS release projected and settable from the browser (opz_set_ciws).
- Navigation projection carries the turn radius; the web Bridge shows it,
systems down and threat track references.
- Web chart draws bearing rays from the measuring platform (buoy, dip,
logged HFDF), as the role map does; sonar rays now appear too.
- Web shows TAS payout/handling window, ESM ambiguity, TMA bearing rate.
- uConsole radio HFDF page lists logged bearings (with observer position)
and cross-fixes (1 sigma, age) like the Remote Crew radio.
- No "raid incoming" alert: it was derived from the hidden raider
namespace, i.e. it named an air contact hostile.
- Direct-fire browser test expects the effective radar range (weather),
matching the deliberate sweep length.
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>
- 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>
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>
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>
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>
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>
- 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>
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>
- The browser validator rejected the ELOKA intercept rows because the
1.1.0 projection added signal_db, range_estimate_nm and scan_period_s;
the whole picture froze ("Host sendet Daten, die dieser Browser nicht
lesen kann"). validateV2State now accepts and type-checks them.
- admin.js called crypto.randomUUID directly, which does not exist on the
plain-HTTP LAN host (non-secure context); it now falls back to a v4 UUID
from getRandomValues like app.js.
- Radar range rings on the native OPZ picture and the web OPZ chart show
their distances.
New regression tests run real bridge projections for all nine stations
through the extracted browser validator in headless Chromium, and the
request-ID generators with crypto.randomUUID removed.
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>
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>
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>
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>
- 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>
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>
- 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>
Add src/physics/submarine.py and apply it to hostile platforms:
- Ordered versus actual speed: the AI orders, the hull follows at its
acceleration limit (saved speed_order); external speed overrides still
set both.
- Hydroplane authority ~ v^2 (slow depth changes below ~4 kn).
- Emergency blow from a bounded HP-air store for a flooded boat; pressure
hull fatigue beyond 0.9 x test depth and crush at 1.5 x test depth.
- Cavitation onset rising with depth; radiated source level ~40 log v
(auxiliary-machinery floor), cavitation jump and launch/blow transients,
used by every passive sonar path.
- Lurking boats hold station against the current.
- Surface ships: Nomoto-linear turning and speed loss in heavy seas by hull
length; their radiated level follows speed.
Manual EN/DE and simulation-gaps updated.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- 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>
Add src/sonar/raytrace.py: a vectorized 48-ray Snell fan through the
Mackenzie sound-speed profile with turning points, rough-surface
(Beckmann-Spizzichino) and lossy Rayleigh bottom reflections (complex
sediment index), summed incoherently into TL(range, depth) tables for the
four bands. Tables are pure functions of a quantized environment key
(sensor depth, mixed layer, SST, water depth, sediment, wind) behind a
bounded LRU, so the cache never affects results or save/load continuation.
Surface duct, shadow zone, bottom bounce and deep-water convergence emerge
from the profile. Own, dipping and NPC passive sonars use the ray excess
(reciprocity: sensor is the source), anchored at a reference environment so
the 20 NM reference range holds. Cross-layer and cavitating-speed range
deviations are recorded with their physical reasons. Manual EN/DE updated.
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>
Add src/physics/ship_dynamics.py with hull/propeller data in
data/loadouts/ownship_hull.json, calibrated at load time against the
1.0.0 references (top speed, 92 s to 90 % of FULL, 92 s stop, 1.2 deg/s
at FULL, cavitation at 15 kn, cubic fuel law):
- Surge from propeller thrust (linear K_T(J)) against quadratic resistance
and added resistance in waves; three exactly integrable regimes
(load-up programme, governed, reverse-pitch braking) keep the result
independent of the step size.
- Cavitation from the cavitation number at the screw depth (earlier when
pitching lifts the stern); physical shaft rpm; fuel from shaft power.
- First-order Nomoto steering (turn circle ~0.4 NM at all speeds).
- 1-DOF roll/pitch driven by a Pierson-Moskowitz wave slope, turn heel,
list and speed-dependent fin stabilizers.
- Displacement from fuel and floodwater; hydrostatic draft plus Barrass
squat feed swept grounding.
- Jammed rudder when the aft steering-gear room is destroyed, stabilizers
lost with a destroyed hull compartment.
- Saved wake ring with bubble decay for later sensor/weapon phases.
Deviations (rpm display values, HALF turn rate) are recorded in
tests/calibration/deviations.json. Manual EN/DE updated.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Add src/world/ocean.py and wire it into World:
- Tides (M2 + S2, seeded amplitude/phase, spatial gradient, Green's-law
shoaling); depth_m/physical_depth_m are chart datum + tide, so grounding
and submarine safe depth follow the tide. charted_depth_m keeps the datum.
- Mixed-layer depth with diurnal heating (zero 24 h mean), wind-mixing
deepening (saved exact relaxation) and three internal-wave components.
- Seasonal/diurnal SST, thermocline temperature profile and the Mackenzie
sound-speed equation; the bathythermograph and ping echo latency use it.
- Wind-driven surface drift (3 %, 20 deg right) added to current_vec.
- Seeded sediment grid with Rayleigh bottom-loss parameters, and up to 64
wrecks/submerged rocks (rocks shoal depth, never above 15 m).
- Save v12 world block gains the ocean clock and wind-mixing state.
- HQ weather bulletin reports tide and water temperature; manual EN/DE.
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>