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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-23 17:25:54 +02:00
db9979andClaude Opus 5.5 8f7970059c Phase 6: submarine and surface-ship physics
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>
2026-09-23 16:29:56 +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
db9979andClaude Opus 5.5 5c9199e569 Phase 4: ray-traced acoustic propagation
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>
2026-09-23 15:21:18 +02:00
db9979andClaude Opus 5.5 4cd903a58a Phase 3: passive and active sonar equations
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>
2026-09-23 14:56:57 +02:00
db9979andClaude Opus 5.5 236d23be0f Phase 2: force-based own-ship hydrodynamics
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>
2026-09-23 14:09:53 +02:00
db9979andClaude Opus 5.5 d666b1b46f Phase 1: time-varying ocean environment
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>
2026-09-23 13:41:37 +02:00
db9979andClaude Opus 5.5 bd9260ba09 Phase 0: save v12, persisted AI timers, strict damage block, simulated AIS
- 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>
2026-09-23 13:16:05 +02:00
db9979andClaude Opus 5.5 ca68c9b0c3 Add bilingual player manual with in-game reader and web page
- 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>
2026-09-23 12:52:16 +02:00
db9979 3b3753cf4e Initial Release v1.0.0 2026-09-23 12:10:58 +02:00