The anti-ship missile's active seeker is now a library emitter in the
contact catalog (emitter.air_defense.asm.seeker, role missile_seeker,
unattached to any platform); the air-defence loadout names it by key
instead of carrying its own frequency/PRF/modulation copy. ESM ranking
and the library lookup can therefore offer it, and ELOKA names it
"Anti-ship missile seeker". Saves whose catalog snapshot predates it keep
emitting the packaged signature.
The seeker's ESM emission and own-ship ECM against it now respect the
same mast-to-missile radar horizon as search radar and HOJ.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BLMCsaaxZ79US83P9daHiq
- 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>
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>
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>