7 Commits
Author SHA1 Message Date
db9979andClaude Opus 5.5 c717a3d647 Docs for realism round 5: handbook, help, tutorials and briefing match the current rules
Stale facts fixed (rocket flight 11-65 s, mortar sinks 12 m/s, torpedo reach by speed and two-speed presets, battery charge taper, helicopter radius 50 km, convergence zones by sea area). New explanations: wire limits and channels, wake homer and its counters, under-keel hits, battery taper and snorkel time, hull damage depth limit, cavitation with depth, shadow zone / CZ / bottom bounce / shipping noise and the range prediction, Doppler on tonals, correlated bearing error, heavy weather, moon and bioluminescence, surfaced boat on radar, zigzag plans, helicopter flying course, dip cycles, buoy patterns, datalink latency and dual tracks, towed array depth, head-sea speed loss. Help gets a rules section, the briefing notes deep-water sound, shipping, heavy sea, wind for the helicopter and a glowing sea. Lessons: frigate telegraph Halbe is the sixth button, buoys via Hubschrauber > Bojenlinie hier, flying course and wire limits in the steps; e2e follows (second press on a guarded FEUER, Auto-TMA before the shot). English entries; orphaned stale ones removed; handbook regenerated.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 18:45:19 +01:00
db9979 e379bff307 Tutorial e2e for the new stations and 1x lessons: telegraph buttons instead of the old speed steps, the round compass clicked around its centre, panel tabs opened before their controls, single pings on the 16 km scale until an echo, simulation waits and the overall limit stretched by 3 / time scale 2026-11-25 20:25:20 +01:00
db9979 02c73175a8 Stations: submarine 4, frigate 5 (panel decision). Horchraum: waterfall at full height, signal analysis, tabs Kontakte / Bedrohung (threat, listening range) / Aktiv (single ping). Sehrohr: optic fills the column, mast block with the radar warner, grouped buttons. Feuerleitung: plot and contacts, TMA, torpedo with the tube bank, wires with fine steering and the decoys (old Torpedoraum). Zentrale: plot with the depth profile, tiles depth / trim / battery / snorkel, depth orders, commands, navigation with echo sounder, depth alarms, mines (old Tauchstand). Frigate OPZ: chart at 68 % under an ASW strip, tabs Kontakte / Verband (mountEscortOrders) / Hubschrauber (mountHeloPanel; placeholders carrying the old OPZ side panel and Flug station until those branches land). Sonar: hull and towed stacked, tabs Analyse / Aktiv / VDS-BT / Kontakte (old Ortung). Waffen: target, 2x2 weapon cards, target inset, contacts. Radar/ESM: ESM strobes on the PPI rim. Brücke: 3D with a 300 px lookout column. Hints, event log, torpedo banner and tutorials go to stations by id; tutorial steps are one line to do, a folded "Warum?", click-to-station and the target control pulsing twice in amber; help rows by station id with the emergency keys; merged station files removed 2026-11-25 19:21:21 +01:00
db9979 6f1aac77be Tutorial e2e: force the German UI (Chrome on Linux ignores --lang, the CI run came up in English) 2026-11-23 11:46:51 +01:00
db9979 7bf663913c Tutorial e2e: pin the found contact before classifying (the re-rendering list could hand the class to a merchant) 2026-11-23 11:39:28 +01:00
db9979 eae9a45126 Tutorial e2e robust on cold starts; Erste Feindfahrt handles a missed torpedo
- Cold start: the lobby's shader warm-up (software WebGL in headless Chrome) landed right
  when the lessons started and froze both tabs for ~32 s, so step 1 ticked after the test's
  deadline. The test now pre-warms Vite in a throwaway tab (until no dependency re-optimization)
  and waits for the lobby warm-up (prefetch.ts: warmUpDone()) before starting the lessons.
- Test: reloads are detected and logged, the hook is re-installed; main-thread stalls are
  reported per step; waitFor takes one last look after its deadline; failure dumps read the
  folded panel via textContent and include the torpedoes. CDP helpers moved to scripts/cdp-tab.mjs.
- Erste Feindfahrt: a shot misses when the solution's range is too long (the seeker switches on
  behind the target). Step 10 now ticks on the hit only and tells the player to fire again with
  the seeker on at half the distance; unit test for miss and second shot. The test re-fires
  missed torpedoes and rockets (Erste Geleitfahrt already said: ping again, another rocket).
2026-11-23 11:22:18 +01:00
db9979 3122d1b276 Erste Geleitfahrt: guided frigate tutorial; both tutorials as a browser test in CI
- New lesson "geleitfahrt" (apps/server/src/first-escort.ts): frigate ahead of a
  three-merchant convoy, one damaged diesel boat with no captain coming the other way
  deep at 10 kn; no layer, calm sea. Sim-verified: towed array hears it ~6 min in,
  LFM ping ranges it at 6-7 km, one ASW rocket sinks it.
- Ten sequential steps (tutorial-geleitfahrt.ts): speed, stream 900 m, settle, deep
  buoy, pick contact, classify U-Boot, divert convoy or radio, LFM ping range, rocket,
  hit. Lobby button, protocol/zod lesson ids, English texts, handbook paragraph (rebuilt).
- Vitest: scenario, result rule, lobby start and a sim playthrough over three seeds.
- scripts/tutorial-e2e.mjs (npm run e2e:tutorials, CI e2e job): plays "Erste
  Feindfahrt" and "Erste Geleitfahrt" side by side through the UI in headless Chrome,
  asserts every step ticks (none skipped), success, no page errors. About 4.5 min.
2026-11-23 09:59:23 +01:00