pygame's endsound_callback reads the channel queue without the GIL; a
Channel.queue() landing in that window leaves the channel idle with a
sound queued forever, and the buffered sonar pump waited for that queue
slot for good (silence until audio was toggled off and on). The pump now
replays such a stranded sound after seeing it on two iterations, and
play_sonar restarts a dead sonar worker. audio_debug.log reports both.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JnHejbUDyia6RJESsBKnhm
Trim the LOFAR/DEMON rail hints that repeat the key row, bump the
version, changelog and README, and regenerate the manual PDFs, the
station shortcut sheet and the screenshots.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013avduxLno5MbDHZbRz1ggf
Sonar: drop the header status chips and legend lines, one row of four
main keys, TAS/VDS state only while it matters. Top bars show station
and clock only, the chart header only its scale. The submarine's threat
box shows only fresh threats (a triangle marks stale ones). Degrees as
°, whole-degree courses, turn radius only while turning. Fix the TMA
header overlap and the truncated submarine tab, tube and alarm lines.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013avduxLno5MbDHZbRz1ggf
The crewed submarine's ESM times each emitter's main-beam hits (level
peaks of its own waveform, over gaps up to 12 s without a washed scan)
and reads a rotating search radar with its period or a steady
tracking/fire-control beam. A steady live beam is always a mast warning
and is logged once. uConsole Mast & ESM detail shows the reading (two
columns so every row fits), the browser adds a scan-period row. Save
format v27 adds crew.esm emitter last_peak (crew.esm version 2).
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019eZphdvoJiBgWqq2zSH4aJ
Detonations, returning echoes and foreign active pings are placed left or
right of the frigate's or the crewed submarine's head from their measured
bearing, on the uConsole mixer and in the browser (StereoPannerNode). The
frigate also plays a submarine's ping, and the crewed submarine hears a
hunter's ping on its hull. Sound cue rows carry a quantized pan.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019eZphdvoJiBgWqq2zSH4aJ
The crew loads each empty tube from the racks (M / browser Load) and
floods a loaded tube before it fires (Shift+M / browser Flood, 20 s,
audible for 4 s). Submarines now carry as many reloads again as tubes
with 2-4 min reloads; AI submarines keep reloading by themselves.
Save format v26 adds crew.orders.tubes.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019eZphdvoJiBgWqq2zSH4aJ
Player-facing texts that called the submarine just "boat" (Boot) now say
"submarine" (U-Boot): uConsole screens, web clients, help, manual EN/DE,
README and co-op docs, e.g. "Submarine campaign" / "U-Boot-Kampagne".
Internal identifiers, JSON keys and the v25 save format are unchanged.
Regenerated manual export and PDFs and README screenshots.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01H3p6pUZfvAB3r6mhet2wQk
The OPZ marks bare mast blips; mast tracks, HF/DF cross-fixes and HQ datum
reports feed the hunt's datum, and a fresh own-sensor fix goes over the
datalink to a friendly AI warship with ASROC in range. Radar blips and marks
are saved (save v25, radar_marks).
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019eZphdvoJiBgWqq2zSH4aJ
A threaded TCP probe to github.com:443 (or the HTTPS proxy) decides within
2.5 s, even when name resolution hangs; offline, the launcher skips the
whole update check and starts the game at once. git network calls run with
a 60 s timeout, no credential prompt and a low-speed abort.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Usz3QPsVzhkfkA3GrLaH4i
Library candidates are graded good/fair/poor by how the measurement sits
in the published frequency and PRF ranges and whether the modulation
matches, listed best grade first and by key within a grade; uConsole and
browser show the grade.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019eZphdvoJiBgWqq2zSH4aJ
The crewed boat hears its hull creak deep down and crack when it fails,
hears detonations close aboard or far off (logged with a bearing), and
rigs its uConsole and browser screens for red light in silent running.
The boat's browsers get its own cues; the SAR alarm cue is now known to
the browser.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019eZphdvoJiBgWqq2zSH4aJ
Below test depth bolts shear, seals fail and the pressure hull cracks,
more often and worse the deeper the boat goes; crush depth collapses it.
Depth ladders mark the crush depth and a red alarm shows the overdepth.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019eZphdvoJiBgWqq2zSH4aJ
- Server: a reconnecting client supersedes its own idle audio or sonar
stream instead of getting 409 stream_exists while the old worker has not
yet noticed the dead socket (root cause of the flaky
test_audio_websocket_resumes_behind_the_browser_cursor). Regression tests
fail on the old code.
- Web client: a push-woken poll clears the pending poll timer, so a healthy
push no longer adds a /state request per pushed state.
- Browser tests for live audio and the state push run in real time
(RealTimeHost: wall-clock sim steps via Game._frame_dt, DevTools reads
off-thread) instead of fixed steps or --virtual-time-budget.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017XUBGQzKG1jnToU9vYPfwo
The launcher now opens a small start window at once that shows the current
step (checking/downloading/installing the update, starting) and closes when
the game presents its first frame (the game closes the inherited pipe via
src/core/launch_signal.py). The lock file names its holder, so a second
start while U-Jagd is starting or running shows "already running" instead
of opening the game twice, and a start during the background update waits.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Usz3QPsVzhkfkA3GrLaH4i
Every stadimeter reading becomes a mark; a straight-line fit through two
or more marks a minute apart gives the target's course and speed, the lead
angle and the running time. Ctrl+Enter on the periscope page (browser:
Fire on solution) fires on the intercept course, and a shot at a marked
sonar contact uses the solution too. The marks are saved in
crew.orders.tdc, so saves move to v24.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019eZphdvoJiBgWqq2zSH4aJ
Five linked boat missions in one sea area, chosen with Tab on the campaign
screen. The boat carries its torpedoes, hull damage and standing with
U-boat command between missions; at its base a full refit or a quick
turnaround. Kept in its own boat_campaign.json; saves stay v23.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019eZphdvoJiBgWqq2zSH4aJ
The frigate escorts four merchants; the crewed submarine wins by sinking
two. Only the crewed boat's torpedoes take a merchant, the AI frigate
keeps station ahead of the convoy and prosecutes contacts near it only.
The convoy is remembered in mission_units, so saves stay v23.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019eZphdvoJiBgWqq2zSH4aJ
Scenarios 5 and 6 give the submarine the objective. Breakthrough: reach a
goal area about 10 NM beyond the frigate's patrol position (derived from the
saved boat start, no new save state). Reconnaissance: radio a situation
report while the frigate is among the periscope sightings. The frigate wins
by sinking the boat or holding out to the time limit. The boat's orders show
over its chart (goal marked) and as the browser's boat mission line.
Manual EN/DE, changelog, README, shortcut sheet and manual PDFs updated.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019eZphdvoJiBgWqq2zSH4aJ
The uConsole captures ran six simulated seconds, so waterfalls, plots and
contact lists were nearly empty, and the Mission Editor showed an empty
library. Warm up for 180 s, save the packaged editor template into the
temporary user store, add the seeded-preview capture, and link the menu and
editor views from both READMEs.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HWJsfpgUP5DoVqBjzNbQoj
Regenerate the uConsole (1280x720, now including the seven submarine
stations) and Remote Crew browser screenshots, embed both in the EN/DE
READMEs (the German one now uses the German images), and move the release
history into CHANGELOG.md / CHANGELOG.de.md. tools/changelog_notes.py prints
a release's entry for the GitHub release text and checks the rule;
capture_commander's lobby check counts the nine visible frigate cards.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HWJsfpgUP5DoVqBjzNbQoj
An existing ~/games/u-jagd older than 1.3.9 has no u_jagd_updater.py, so
install.sh stopped with "can't open file". It now fast-forwards such a
checkout to main first (only on branch main, never over local changes).
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Usz3QPsVzhkfkA3GrLaH4i
U-Jagd-Windows.exe (PyInstaller) opens a starter window that launches the
game with Remote Crew already listening on the PC's private LAN address
(crew or solo mode, optionally as the submarine), shows URL, join code and
QR code, and offers newer GitHub releases (size and SHA-256 checked,
self-replacing). The game gains --remote-crew and --status-file, and finds
its LAN address without Linux ioctls through the routing table. A workflow
builds and self-tests the program on windows-latest for every push and PR
and publishes release v<APP_VERSION> on main.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017Nnvw4QEQCCWoLWoB9ba6h