The ship detects shoals with its dynamic draft (load and squat), the saved
hull is static. Before, the tide-adjusted depth hid this by chance; with the
raw bathymetry a campaign-leg save was rejected. Allow the largest dynamic
draft increase (6 m).
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CW6FkwLLc6KvPHvCs5KTRo
The shallow-contact check of a loaded save used the tide-adjusted depth
while detection uses the raw bathymetry, so a save made on a shoal was
rejected once the tide had risen. Restore exceptions now reach the crash
log instead of looking like an invalid save.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CW6FkwLLc6KvPHvCs5KTRo
- Remote Crew: observer admin action allowed, direct fire for U-boat weapons,
U-boat station help texts and manual links, select controls not rebuilt
- Keys: Shift+A / Ctrl+R at Weapons never fire, Shift+A on the U-boat never
toggles silent running
- Simulation: lurking submarine steers into the current, decoy speed units
in the sonar Doppler term
- Remove dead functions, constants and imports found by the audit
- Help and catalog wording (Submarine/U-Boot, German grammar), shortcut sheets
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CW6FkwLLc6KvPHvCs5KTRo
The app's built-in Python looked for root certificates in the build
machine's Python folder, so every update check failed verification and no
notice appeared. Windows and macOS programs now bundle certifi and add it
(and macOS /etc/ssl/cert.pem) to the default store for the update check,
the language model and live traffic. A failed check now shows its reason
on the start screen and main menu; U checks again. CI runs --tls-self-test
on both programs, on macOS with OpenSSL's default paths pointed nowhere.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CTvq68YWzbEc9Yj9uKXSsM
The SDL capture was opened with devicename=None, which pygame 2.6 refuses,
so the microphone never opened. It now opens the default input, names the
cause when it cannot (status message, Options page 2), the macOS app asks
for microphone access and the builds self-test the capture. The crew page
on plain HTTP shows why the browser refuses the microphone and offers the
host's HTTPS page.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B6UodrzZBT8W5pCsacEDpH
The Remote Crew "Einsatzprotokoll" only ever carried a few browser alerts
(damage, threat, mission end, proposals) and so looked empty. Every station
now gets its side's F11 log: the frigate's event feed for the frigate's
stations, the crewed boat's log for the submarine's, numbered once by the
bridge, with time stamp and category tag, up to 200 entries like F11.
Unchanged logs are not re-encoded; the browser keeps rows already shown.
The open log drawer has a fixed height, so a long log scrolls inside it
instead of pushing the chart away. On the uConsole, F11 now opens the
boat log on the submarine side too (with wheel scrolling).
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018n9X2Pm9CMpZA5WVJik2Es
No hull_slam sound any more: removed the trigger, its synthesis, config
and the browser cue; the regression test checks a heavy head sea stays
silent. Manual, changelog and README updated.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KpQbYfnun2SpQfTdk2uweV
Page 5 (Display) sets track trails, vector length, labels, a bearing
scale with the own course, range rings, bearing lines, furthest-on
circles, depths and grid, radar afterglow and the selected track's CPA.
Arrow keys or clicks set them, chips under the chart switch layers on
every page, and settings.json keeps them. The browser OPZ gets the same
buttons and drawing (trails from the chart history in the projection).
Display only.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01TjEy6GJs4wG9N9DMGGNA9X
The lookout's binoculars, horizon strip, periscope, hit picture, Remote
Crew cards and phone lookout drew every ship with its waterline on the
horizon line, however close, and in list order, so a far ship could hide
a near one. Each eyepiece row now carries the observer's own range
estimate (lookout's measured range, stadimeter range); a ranged ship floats
as far below the horizon as the eye sees the water at that range, and the
rows are drawn back to front. Bearing and angle on the bow were checked
and were already right (new tests pin both).
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HaYcGzqfx98ZAgZ28YYCaa
The frigate's bow slammed on nearly every wave in a heavy head sea (every
5 to 18 s at every station); after a slam the next now waits 30 to 90 s.
The submarine's hull creaked every 4 s at test depth; it now rests 12 to
28 s after each creak. Stateless detrand draws, sound cues only.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KpQbYfnun2SpQfTdk2uweV
Fairness with every submarine habit known: the faster ping cycle let the
frigate win scenario 17 five of six times (0.9 still five). Against a boat
above the layer the hunter now sprints and drifts, as against periscope
depth; the submarine wins again (4 of 24 against 6 of 24 without habits).
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KBWAva5Bhs5KJy75vSJDRT
The release workflow (windows.yml) now also builds U-Jagd.app with
PyInstaller (packaging/macos) natively for arm64 (macos-latest) and
x86_64 (macos-15-intel), since pygame and NumPy publish no universal2
wheels, self-tests it (mission + Remote Crew, the bundle swap, and the
zip as the in-game updater unpacks it) and zips it with ditto as
U-Jagd-macOS-<arch>.zip. A single final publish job creates the release
and uploads the Windows exe and both zips, then prunes older releases,
so the builds never race.
The frozen macOS app updates itself: it downloads the zip for its
processor (size and SHA-256 checked), unpacks it safely beside the
bundle (confined paths and links, bounded size, modes 755/644) into
<app>.update, and a detached sh script swaps the bundle after the game
quits (old bundle renamed aside, restored on failure, deleted only once
the new one is in place) and reopens it. Translocated or unwritable
bundles open the release page. ~/.u-jagd is never touched.
Remote Crew on macOS: SIOCGIFADDR is Linux-only, so the LAN address now
comes from the routing table there (and whenever no private interface
address was found).
README (EN/DE) gains a macOS app section with the first-start step;
the quickstart manual chapter mentions the macOS update.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KBWAva5Bhs5KJy75vSJDRT
- Browser tests that drive a live host (uboot nav, console, observer
timeline, bridge glasses, map hover) ran under Chromium virtual time, which
races ahead of the Python host and hits the wall cap under load. They now
run in real time and read the probe result over DevTools (RealTimeHost).
- Direct-fire sweep check: a pending ResizeObserver redraw could land after
the "settled" sample; the probe now waits until the canvas backing store
matches its layout size and stays put.
- Remote Crew host form: after a side switch the new-game / own-mission
command was dropped silently or sent with a stale host view; it is now
sent once the console's host view matches its new world session.
- raytrace: convergence-zone and ray-picture caches computed their result
from the unrounded arguments of the first caller, so results depended on
call order. They now compute from the quantized key alone (regression test
added; calibrate 77/77 in tolerance).
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KBWAva5Bhs5KJy75vSJDRT
Overlay keys, pointer mapping and station key helpers leave
game_events.py as mixins; weapon orders leave game_operator.py; the
sonar view's data helpers and geometry/hit testing leave sonar_view.py.
Names stay importable from the old modules. _handle_owned_event (parsed
by the manual test), the live-traffic test (patched connection probes),
the menu keys (patched CATALOG), and every sonar function using the
theme-swapped palette or the patched _text stay where they were.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KBWAva5Bhs5KJy75vSJDRT
save_validate.py, config.py, sonar/sonar.py, data/catalog.py and
commander/server.py each move a self-contained responsibility into a new
module; every name stays importable from its old module, and names that
tests patch on the old module stay where they are looked up.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KBWAva5Bhs5KJy75vSJDRT
Status lamps, key hints in station text, page tabs, list rows and the
bottom status line readings now act on a mouse click on both sides, by
sending the same key event as the keyboard (fire stays clickable only at
the weapons station). The submarine's sonar takes clicks, the element
under the mouse gets a thin frame, and Remote Crew sonar, helicopter and
engine lamps press their buttons. Manual, help, shortcut sheet,
changelog and README updated.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017N4wRun1ibqyXWHJDrTqVv
Free AI submarines and the AI hunter choose from the experimental opponent's
plan lists by rules over their own picture and commander character, so the
offline game gets varied tactics. The logbook now files coarse habits of
each mission; from the last five missions of a side the enemy knows a habit
and adapts its plans a little. The decision is saved (save v50, root field
habits, migration from v49 with a frozen v49 sample); off in the daily
mission, lessons and two-crew play, switchable with L on the logbook page,
named in the debrief.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KBWAva5Bhs5KJy75vSJDRT
The validator bounded a submarine's remembered contact noise by the frigate's
own noise figure (1.17), but the remembered value is the received sonar
signal, clamped to 2.0. Found by the soak's new load diagnosis (s3_abfang).
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KBWAva5Bhs5KJy75vSJDRT
The bridge's binoculars, horizon strip, Remote Crew binoculars card, phone
lookout and hit picture now draw the own helicopter (display only, own
asset truth) with the helicopter model whenever the bridge can see it:
lifting off the flight deck astern, in transit, low over its dipping sonar
and with position lights at night. The lookout scope, the panorama and the
list under the binoculars mark it. Aircraft below 1 degree elevation are
drawn in front of the sea on the moving horizon.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JDM4RwxjGVU4xyFcM2zHjb
The weapons station's target is labelled once (with the ping hint), the
scale line keeps grid numbers out of its corner band, speed labels stay in
the chart and step aside, the submarine's orders line sits below the scale,
and the CIC scope, radio cross-fix chart and browser maps place their
labels through the same label field. New overlap test for every chart.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PaU3BvHaXNC1ZxrH8zLKeL
Entity ids are process-global, so the destroyer's active-ping detection
depended on how many boats earlier games had made (test_consort failed
for some id offsets). The sensor seed is part of the world.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VQkTBZ6nNCXjyAJvYjDofk
The advisor button sat inside the clipped mission column of the status
bar and was squeezed into a column of single letters. It now sits in the
toolbar next to the language and sound switches and never wraps; the
browser test checks its size.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AS3so1jLSc2A8usgnDEEeY