mirror of
https://github.com/db9979/uconsole_asw_game.git
synced 2026-12-05 12:24:25 +01:00
Radio room for the crewed boat, aircraft radars in the boat ESM (1.3.1)
- New seventh boat station uboot_radio (uConsole key 7, browser role): HQ broadcast every 10 min with a contact report on the frigate, copied with the mast up at periscope depth; situation reports go out on HF for 20 s and can be borne by the frigate's HF/DF; radio log saved. - Catalog emitters for the helicopter and patrol-aircraft search radars; the boat's ESM hears them (helicopter airborne and not dipping, MPA with its radar on). - Save format v22 (crew.radio), app version 1.3.1; help, manual EN/DE, web schema and plan updated. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019eZphdvoJiBgWqq2zSH4aJ
This commit is contained in:
50 files changed
+1165
-105
No files matched your search
@@ -2,7 +2,7 @@
|
||||
|
||||
## Authority and scope
|
||||
|
||||
- This is U-Jagd 1.3.0 (`src/core/version.py`); current saves are v21-only. Treat these as compatibility contracts, not changelog entries.
|
||||
- This is U-Jagd 1.3.1 (`src/core/version.py`); current saves are v22-only. Treat these as compatibility contracts, not changelog entries.
|
||||
- Resolve conflicts in this order: executable code and focused tests; packaged JSON/runtime resources; `pyproject.toml` and provenance/license notices; `README.md`; design/history documents under `docs/`. A plan or old comment is not an implementation contract.
|
||||
- Preserve explicit compatibility tests and user data unless a task intentionally changes the contract. Add a regression test for behavior changes.
|
||||
- Older phase/milestone labels under `docs/GDD.md`, `docs/implementation-plan.md`, `docs/plan-0.1.6.md`, and `docs/plan-0.1.7.md` are historical. Current resumable work is tracked in `docs/plan-1.3.md` and `docs/resume.md`.
|
||||
@@ -16,7 +16,7 @@
|
||||
- `src/world/`: coastline/bathymetry, real-sector loading, projection, terrain queries, weather/time.
|
||||
- `src/sonar/` and `src/sensors/`: measurements, receiver/TMA, and persistent observation tracks.
|
||||
- `src/ship/`, `src/enemies/`, `src/air/`, `src/weapons/`: simulation entities and mechanics.
|
||||
- Crewed submarine: `src/core/opfor.py` (crew orders, sightings, periscope, stadimeter, wires), `src/core/uboot_local.py` (uConsole keys of the boat side), `src/ui/uboot_view.py` and `src/ui/uboot_scope.py` (boat stations and the periscope page).
|
||||
- Crewed submarine: `src/core/opfor.py` (crew orders, sightings, periscope, stadimeter, wires), `src/core/boat_radio.py` (radio room), `src/core/uboot_local.py` (uConsole keys of the boat side), `src/ui/uboot_view.py` and `src/ui/uboot_scope.py` (boat stations and the periscope page).
|
||||
- `src/ui/`: rendering, hit testing, viewport, tooltips, and editors. Station views live in `src/ui/stations/` (one module per station, `common.py` shared); `src/ui/stations_view.py` is the facade with the station-wide hit test and re-exports. Views should consume game-facing observations, not discover hidden entity state.
|
||||
- `src/audio/`: bounded NumPy synthesis/analysis and non-blocking Pygame playback.
|
||||
- `src/data/`: packaged catalog loading, validation, fingerprints, and secure user-content persistence. `data/` contains package resources; `tests/` is the behavioral contract; `tools/` contains validators/reproducible generators.
|
||||
@@ -63,8 +63,8 @@
|
||||
## Persistence and user content
|
||||
|
||||
- Runtime root is `~/.u-jagd/`: `settings.json`; `slot1.json` through `slot5.json`; editor files in `missions/` and `units/`. Tests replace save paths with temporary directories; never write real user paths from tests. `.u-jagd/`, build products, caches, and egg metadata stay untracked.
|
||||
- Preferences persist language/fullscreen/audio/large text/tooltips in `settings.json`; v21 saves also retain the mission's tooltip state and the uConsole's local side. CLI `--windowed` and `--no-audio` override saved values for one launch; no inverse fullscreen or CLI-language switch exists.
|
||||
- Write and load save v21 only. Require the exact `u-jagd-save-v21` schema (exact key sets live in `src/core/save_schema.py`) and the complete current catalog, platform, ESM, ASW, AIS, RNG and crewed-boat crew state (`crew` block: orders, wires, plot, ESM picture, feed, sonar station; a loaded boat keeps its binding for `UBOOT_RESTORE_HOLD_S` until its crew returns), plus foreign active pings still travelling to the frigate (`ping_intercepts`) and each conventional boat's diesel, charge rate and air stores (endurance state version 2) and every submarine's ballast, trim and high-pressure air (`ballast`) and its compartments, leaks, fires, gas and damage-control teams (`damage_control`), plus the HQ task board (`tasking`), the frigate's watch bill (`watch`; the boat's is `crew.watch`), the patrol aircraft (`mpa`) and each buoy's `owner`. Reject malformed, non-integer, older, newer, incomplete, or unknown schemas without migration.
|
||||
- Preferences persist language/fullscreen/audio/large text/tooltips in `settings.json`; v22 saves also retain the mission's tooltip state and the uConsole's local side. CLI `--windowed` and `--no-audio` override saved values for one launch; no inverse fullscreen or CLI-language switch exists.
|
||||
- Write and load save v22 only. Require the exact `u-jagd-save-v22` schema (exact key sets live in `src/core/save_schema.py`) and the complete current catalog, platform, ESM, ASW, AIS, RNG and crewed-boat crew state (`crew` block: orders, wires, plot, ESM picture, radio room, feed, sonar station; a loaded boat keeps its binding for `UBOOT_RESTORE_HOLD_S` until its crew returns), plus foreign active pings still travelling to the frigate (`ping_intercepts`) and each conventional boat's diesel, charge rate and air stores (endurance state version 2) and every submarine's ballast, trim and high-pressure air (`ballast`) and its compartments, leaks, fires, gas and damage-control teams (`damage_control`), plus the HQ task board (`tasking`), the frigate's watch bill (`watch`; the boat's is `crew.watch`), the patrol aircraft (`mpa`) and each buoy's `owner`. Reject malformed, non-integer, older, newer, incomplete, or unknown schemas without migration.
|
||||
- Writes must stage beside the destination, flush and `fsync`, then atomically `os.replace`; failure leaves the prior file intact and save-and-quit quits only after success. Load into a candidate state and commit only after complete validation/restoration; failure must leave the live game and global ID counters unchanged.
|
||||
- Treat imported/editor JSON as hostile. Require finite typed/bounded values, strict schemas, `user.<lowercase/digit/_/->` keys, confined destinations, and no symlinked root/file. Never interpret a logical reference as a filesystem path.
|
||||
- Bundle import validates every item and collision before the first visible write, stages all files, rechecks confinement/symlinks, and rolls back the whole commit on failure. Preserve backups if rollback itself fails. JSON output must reject NaN/Infinity.
|
||||
@@ -72,14 +72,14 @@
|
||||
## Remote Crew multiplayer
|
||||
|
||||
- Remote Crew is authoritative-host multiplayer for multiple authenticated browser clients. The uConsole process remains the sole simulation authority. Browsers never run simulation, advance time, resolve physics, read live entities, or mutate game state from transport threads.
|
||||
- Multiplayer protocol versions are independent of application and save versions. Remote Crew is protocol v2-only; every `/api/v1/*` route is retired and returns 404. Saves remain exact v21; credentials, clients, station leases, network queues, drafts, and unaccepted commands are transient and never enter saves or settings.
|
||||
- Multiplayer protocol versions are independent of application and save versions. Remote Crew is protocol v2-only; every `/api/v1/*` route is retired and returns 404. Saves remain exact v22; credentials, clients, station leases, network queues, drafts, and unaccepted commands are transient and never enter saves or settings.
|
||||
- Support a hard-bounded client count. Each client has an independent cryptographic session, expiry, request namespace, and revocation state. The host explicitly grants one exclusive station role per client and can revoke or take over any role. Reconnect never inherits another client's authority.
|
||||
- Role capabilities are allowlisted. A granted browser may directly operate its station, including weapons when the host separately enables direct fire, but every action must pass the same observation freshness, damage, inventory, ROE, envelope, and readiness checks as local input. Save/load, reset, editors, options, quit, network administration, and credentials remain host-only, with one explicit exception: solo mode (below).
|
||||
- The transport is `src/commander/server.py` (`CommanderServer`: sessions, leases, publications) with `src/commander/v2/` (`wire.py` constants and framing, `commands.py` the closed action registry and validators, `routes.py` HTTP and WebSocket handlers); `server.py` re-exports the v2 names. `/ws/v2/state` pushes the active role's projection (the same bytes as `GET /api/v2/state`, at most 4 Hz, heartbeat 2 s, latest state only) and the browser falls back to polling; both paths share one allowlist: `src/commander/v2/schema.py` is rendered into the generated block of `data/commander/js/state/schema.js` by `tools/gen_web_schema.py` (`--check` in CI). Transport handlers accept only strict, finite, size-bounded, versioned messages and enqueue detached envelopes. The main thread revalidates client, role, lease generation, world epoch, resource revision, freshness, and readiness immediately before applying each command. Never synthesize Pygame events or dispatch arbitrary method names from network data.
|
||||
- Apply accepted remote commands exactly once in deterministic station order and per-client FIFO order before `Game.update()`. Wall clock, packet scheduling, polling frequency, browser rendering, and hash iteration must not affect simulation results. Role loss, disconnect, load/new game, and world replacement reject unsafe queued commands and clear held remote controls; local overlays and focus loss do not.
|
||||
- Each normal role view receives only an allowlisted detached projection of own ship and commanded assets, published observations, annotations, and known geography. Never export simulation objects, hidden IDs, undiscovered positions, true hostile identity, RNG state, or save dumps through station state. The explicit host-granted SimLog capability is the sole diagnostic exception: its read-only history may include detached full-truth snapshots, but never simulation objects, RNG state, credentials, settings, or save dumps.
|
||||
- Observers are a host-granted, never-persisted read-only pseudo-role (at most `OBSERVER_MAX` = 2): no lease, any station viewable through `stations/activate` with generation 0, every command rejected, SimLog included; occupancy and `station_leased()` ignore observers. Voice starts enabled in the web-host room and the host switches it off.
|
||||
- Solo mode is a per-launch, never-persisted host decision (`--solo-crew` or the F9 "Crew mode" row; changing it revokes every session and rotates the code). One paired session then holds all nine stations and may use the closed host command surface: save/load slots 1-5, new game and the instructor environment, sent as pseudo-role `host` over the normal command pipeline (same CSRF/Origin, exactly-once, phase and world-session checks; rejected in crew mode). There is no pause or time-scale command. Editors, options, quit, network administration and credentials stay host-only, saves stay exact v21, and a world replacement keeps the solo session but re-leases every station and drops queued commands. The browser runs on a desktop PC, so the web UI targets large screens; `data/commander/` keeps the accessible single-column fallback for narrow windows only.
|
||||
- Solo mode is a per-launch, never-persisted host decision (`--solo-crew` or the F9 "Crew mode" row; changing it revokes every session and rotates the code). One paired session then holds all nine stations and may use the closed host command surface: save/load slots 1-5, new game and the instructor environment, sent as pseudo-role `host` over the normal command pipeline (same CSRF/Origin, exactly-once, phase and world-session checks; rejected in crew mode). There is no pause or time-scale command. Editors, options, quit, network administration and credentials stay host-only, saves stay exact v22, and a world replacement keeps the solo session but re-leases every station and drops queued commands. The browser runs on a desktop PC, so the web UI targets large screens; `data/commander/` keeps the accessible single-column fallback for narrow windows only.
|
||||
- Browser sessions may use host-only HttpOnly SameSite cookies for reload recovery. Credentials never enter JavaScript, URLs, DOM, logs, settings, or saves. State-changing requests also require exact Origin and a separate CSRF token. Plain HTTP remains trusted-LAN-only; Internet-capable deployment requires a separately reviewed encrypted endpoint or reverse proxy. The local F9 listener accepts only its exact LAN `Host`/`http://` origin unless launched with `--public-origin https://…`; then it also accepts exactly that proxy host (plus explicit `:443`) and origin, and marks cookies `Secure` only on the HTTPS path. The `--web-host` room accepts its public origin only.
|
||||
- Keep clients, histories, queues, projections, polling, and render work bounded for the uConsole. Cache immutable projections shared by clients with identical visibility, apply backpressure, and verify maximum-client CPU, memory, bandwidth, frame time, reconnect, and thermal behavior on real hardware.
|
||||
- New multiplayer prose uses exact EN/DE catalog parity and safe DOM insertion. Browser controls require keyboard and touch access, bounded responsive layouts, explicit stale/revoked states, and tests at desktop, mobile, large zoom, and pseudolocale where applicable.
|
||||
|
||||
@@ -10,7 +10,13 @@ around the ClockworkPi uConsole's 1280 x 720 workspace. You command a fictional
|
||||
frigate and move between nine workstations to navigate, search, classify,
|
||||
engage, and keep the ship operational.
|
||||
|
||||
Current release: **1.3.0**
|
||||
Current release: **1.3.1**
|
||||
|
||||
Release 1.3.1 gives the crewed submarine a radio room (a seventh boat
|
||||
station: HQ's broadcast with a contact report on the frigate, and situation
|
||||
reports the frigate's HF direction finder can bear) and lets the boat's ESM
|
||||
hear the frigate's helicopter and the patrol aircraft by their own catalogued
|
||||
search radars. Saves move to format v22 (the radio room's state).
|
||||
|
||||
Release 1.3.0 widens the simulation and the crew's tools without moving the
|
||||
1.0.0 balance (77 calibration metrics still match): a second lightweight
|
||||
@@ -27,7 +33,7 @@ role, a debrief timeline with JSON export and voice on by default; and a
|
||||
mission runtime that takes the editor's scope (reference sectors, protect
|
||||
and reach objectives, random groups, timed events, authored weather, placed
|
||||
aircraft, animals and decoys). The core is split into mixins and the test
|
||||
suite runs in parallel. **Saves are format v21 (HQ radio tasks, the crew's watch bill, fatigue and morale, the on-call patrol aircraft, the crewed boat's compartments and damage control, its tanks, trim and high-pressure air, its ESM picture,
|
||||
suite runs in parallel. **Saves are format v22 (the crewed boat's radio room, HQ radio tasks, the crew's watch bill, fatigue and morale, the on-call patrol aircraft, the crewed boat's compartments and damage control, its tanks, trim and high-pressure air, its ESM picture,
|
||||
submarine diesel, charge rate and air stores, crewed-boat crew state, periscope
|
||||
sightings, weapon settings, mission events, foreign pings still travelling to
|
||||
the frigate); v20 and older saves are rejected.**
|
||||
@@ -337,7 +343,7 @@ between `en` and `de` and controls fullscreen, audio, large text, and tooltips.
|
||||
|
||||
Language, fullscreen, audio, large-text, and tooltip preferences are written to
|
||||
`~/.u-jagd/settings.json`. Tooltip state is therefore global and is also stored
|
||||
in v21 game saves for deterministic restoration of existing sessions.
|
||||
in v22 game saves for deterministic restoration of existing sessions.
|
||||
|
||||
## Commander LAN Co-op
|
||||
|
||||
@@ -447,8 +453,8 @@ Validated does not mean runtime-effective. In release 1.0.0:
|
||||
|
||||
## Saves and User Data
|
||||
|
||||
This build writes and loads save format **v21** only. V21 requires the exact
|
||||
`u-jagd-save-v21` schema, including the HQ task board, both crews' watch bills,
|
||||
This build writes and loads save format **v22** only. V22 requires the exact
|
||||
`u-jagd-save-v22` schema, including the crewed boat's radio room, the HQ task board, both crews' watch bills,
|
||||
the patrol aircraft and each buoy's owner, the current runtime catalog snapshot, all
|
||||
deterministic continuation state, the crewed submarine's crew state (orders,
|
||||
modes, mast, wires, plot, alarm bearings, its sonar station and its ESM
|
||||
|
||||
@@ -198,7 +198,7 @@
|
||||
<section id="station-engine" class="station-section" data-station-role="engine" aria-labelledby="station-engine-title" hidden><div class="station-heading"><p class="eyebrow" data-i18n="station_dashboard"></p><h2 id="station-engine-title" data-i18n="station_engine"></h2></div><div class="station-grid"><article class="station-card-view card-readout"><h3 data-i18n="station_propulsion"></h3><dl id="engine-propulsion" class="detail-metrics"></dl></article><article class="station-card-view card-readout"><h3 data-i18n="station_machinery"></h3><dl id="engine-machinery" class="detail-metrics"></dl></article><article class="station-card-view card-readout"><h3 data-i18n="station_environment_effects"></h3><dl id="engine-environment" class="detail-metrics"></dl></article><article class="station-card-view station-controls station-wide card-controls"><h3 data-i18n="engine_controls"></h3><label for="engine-telegraph" data-i18n="telegraph"></label><select id="engine-telegraph"></select><button id="engine-telegraph-submit" type="button" data-i18n="engine_order_telegraph"></button><form id="engine-course-form" class="control-form"><label for="engine-course" data-i18n="engine_course"></label><input id="engine-course" type="number" min="0" max="359.99999999999994" step="any" inputmode="decimal" autocomplete="off" required><button id="engine-course-submit" type="submit" data-i18n="engine_order_course"></button></form><form id="engine-speed-form" class="control-form"><label for="engine-speed" data-i18n="engine_speed"></label><input id="engine-speed" type="number" min="0" max="25" step="any" inputmode="decimal" autocomplete="off" required><button id="engine-speed-submit" type="submit" data-i18n="engine_order_speed"></button></form><button id="engine-quiet" type="button"></button><div class="fire-grid"><label for="engine-plant" data-i18n="engine_plant"></label><select id="engine-plant"><option value="AUTO" data-i18n="plant_auto"></option><option value="DIESEL" data-i18n="plant_diesel"></option><option value="TURBINE" data-i18n="plant_turbine"></option></select><button id="engine-plant-apply" type="button" data-i18n="engine_apply_plant"></button></div></article></div></section>
|
||||
<section id="station-helicopter" class="station-section" data-station-role="helicopter" aria-labelledby="station-helicopter-title" hidden><div class="station-heading"><p class="eyebrow" data-i18n="station_dashboard"></p><h2 id="station-helicopter-title" data-i18n="station_helicopter"></h2></div><div class="station-grid"><article class="station-card-view"><h3 data-i18n="station_asset"></h3><dl id="helicopter-asset" class="detail-metrics"></dl></article><article class="station-card-view"><h3 data-i18n="station_readiness"></h3><dl id="helicopter-readiness" class="detail-metrics"></dl></article><article class="station-card-view"><h3 data-i18n="station_waypoint"></h3><dl id="helicopter-waypoint" class="detail-metrics"></dl><form id="helicopter-waypoint-form" class="control-form"><label for="helicopter-x" data-i18n="helicopter_x"></label><input id="helicopter-x" type="number" min="0" max="1000" step="any" inputmode="decimal" autocomplete="off" required><label for="helicopter-y" data-i18n="helicopter_y"></label><input id="helicopter-y" type="number" min="0" max="1000" step="any" inputmode="decimal" autocomplete="off" required><button id="helicopter-waypoint-submit" type="submit" data-i18n="helicopter_set_waypoint"></button></form></article><article class="station-card-view station-controls"><h3 data-i18n="helicopter_controls"></h3><button id="helicopter-launch" type="button" data-i18n="helicopter_launch"></button><button id="helicopter-return" type="button" data-i18n="helicopter_return"></button><button id="helicopter-buoy" type="button" data-i18n="helicopter_buoy"></button><div class="fire-grid"><label for="helicopter-pattern" data-i18n="helicopter_pattern"></label><select id="helicopter-pattern"><option value="single" data-i18n="buoy_pattern_single"></option><option value="field" data-i18n="buoy_pattern_field"></option><option value="barrier" data-i18n="buoy_pattern_barrier"></option><option value="circle" data-i18n="buoy_pattern_circle"></option></select><button id="helicopter-pattern-apply" type="button" data-i18n="helicopter_apply_pattern"></button><button id="helicopter-mad" type="button"></button></div></article><article class="station-card-view station-wide direct-fire-controls" aria-labelledby="helicopter-fire-title"><h3 id="helicopter-fire-title" data-i18n="helicopter_release_control"></h3><div class="fire-grid"><label for="helicopter-fire-target" data-i18n="fire_target"></label><select id="helicopter-fire-target"></select><label for="helicopter-fire-depth" data-i18n="fire_depth"></label><input id="helicopter-fire-depth" type="number" min="10" max="300" step="any" inputmode="decimal" autocomplete="off"><button id="helicopter-fire-torpedo" type="button" data-fire-action="helicopter_launch_torpedo" data-i18n="helicopter_launch_torpedo"></button></div><p id="helicopter-fire-status" class="fire-status" role="status" aria-live="polite"></p></article><article class="station-card-view station-wide"><h3 data-i18n="buoys"></h3><div id="helicopter-buoys" class="station-list"></div></article></div></section>
|
||||
<section id="station-eloka" class="station-section" data-station-role="eloka" aria-labelledby="station-eloka-title" hidden><div class="station-heading"><p class="eyebrow" data-i18n="station_dashboard"></p><h2 id="station-eloka-title" data-i18n="station_eloka"></h2></div><div class="station-grid"><article class="station-card-view"><h3 data-i18n="eloka_hardware"></h3><dl id="eloka-hardware" class="metrics"></dl></article><article class="station-card-view station-controls station-wide"><h3 data-i18n="eloka_filters"></h3><label for="eloka-status-filter" data-i18n="eloka_filter_status"></label><select id="eloka-status-filter"><option value="OPERATIONAL" data-i18n="eloka_filter_operational"></option><option value="LIVE" data-i18n="eloka_filter_live"></option><option value="MEMORY" data-i18n="eloka_filter_memory"></option><option value="ALL" data-i18n="eloka_filter_all"></option></select><label for="eloka-threat-filter" data-i18n="eloka_filter_threat"></label><select id="eloka-threat-filter"><option value="ALL" data-i18n="eloka_filter_all"></option><option value="LOW" data-i18n="eloka_threat_low"></option><option value="MEDIUM" data-i18n="eloka_threat_medium"></option><option value="HIGH" data-i18n="eloka_threat_high"></option><option value="CRITICAL" data-i18n="eloka_threat_critical"></option></select><label for="eloka-band-filter" data-i18n="eloka_filter_band"></label><select id="eloka-band-filter"><option value="ALL" data-i18n="eloka_filter_all"></option><option value="a_c">A/C</option><option value="d">D</option><option value="e_f">E/F</option><option value="g_h">G/H</option><option value="i_j">I/J</option><option value="k">K</option></select><output id="eloka-filter-count" aria-live="polite"></output></article><article class="station-card-view station-wide"><h3 data-i18n="station_intercepts"></h3><div id="eloka-intercepts" class="station-list"></div></article></div></section>
|
||||
<section id="station-uboot" class="station-section" data-station-role="uboot" aria-labelledby="station-uboot-title" hidden><div class="station-heading"><p class="eyebrow" data-i18n="uboot_side"></p><h2 id="station-uboot-title" data-i18n="station_uboot"></h2></div><div class="station-grid uboot-grid"><article class="station-card-view station-wide uboot-strip" data-uboot-stations="uboot uboot_weapons uboot_engine uboot_esm uboot_nav"><div id="uboot-readouts" class="uboot-readouts"></div><div id="uboot-chips" class="uboot-chips" aria-live="polite"></div><p id="uboot-battery-warning" class="station-alert" role="status" hidden></p><p id="uboot-nav-warning" class="station-alert" role="status" hidden></p></article><article class="station-card-view uboot-depth-card" data-uboot-stations="uboot uboot_nav uboot_engine"><h3 data-i18n="uboot_depth_title"></h3><canvas id="uboot-depth-canvas" class="uboot-canvas" data-i18n-aria="uboot_depth_title"></canvas><div class="uboot-presets" role="group" data-i18n-aria="uboot_depth_presets" data-uboot-stations="uboot uboot_nav"><button type="button" data-uboot-depth-preset="periscope" data-i18n="uboot_preset_periscope"></button><button type="button" data-uboot-depth-preset="snorkel" data-i18n="uboot_preset_snorkel"></button><button type="button" data-uboot-depth-preset="above_layer" data-i18n="uboot_preset_above_layer"></button><button type="button" data-uboot-depth-preset="below_layer" data-i18n="uboot_preset_below_layer"></button><button type="button" data-uboot-depth-preset="deep" data-i18n="uboot_preset_deep"></button></div><form id="uboot-depth-form" class="control-form" data-uboot-stations="uboot uboot_nav"><label for="uboot-depth" data-i18n="uboot_depth"></label><input id="uboot-depth" type="number" min="0" max="1000" step="any" inputmode="decimal" autocomplete="off" required><button id="uboot-depth-submit" type="submit" data-i18n="uboot_order_depth"></button></form><div class="uboot-pair" role="group" data-uboot-stations="uboot uboot_nav"><button type="button" data-uboot-mode="uboot_bottom" data-enabled="true" data-i18n="uboot_bottom_on"></button><button type="button" data-uboot-mode="uboot_bottom" data-enabled="false" data-i18n="uboot_bottom_off"></button></div></article><article class="station-card-view station-controls card-controls" data-uboot-stations="uboot uboot_nav"><h3 data-i18n="uboot_nav_title"></h3><form id="uboot-course-form" class="control-form"><label for="uboot-course" data-i18n="uboot_course"></label><input id="uboot-course" type="number" min="0" max="359.99999999999994" step="any" inputmode="decimal" autocomplete="off" required><button id="uboot-course-submit" type="submit" data-i18n="uboot_order_course"></button></form><dl id="uboot-navigation" class="detail-metrics compact-metrics"></dl><div class="uboot-pair" role="group" data-uboot-stations="uboot"><button id="uboot-ping" type="button" data-i18n="uboot_ping"></button><button id="uboot-bt" type="button" data-i18n="uboot_bt"></button></div></article><article class="station-card-view station-controls card-controls uboot-threat-card" data-uboot-stations="uboot uboot_nav" aria-labelledby="uboot-threat-title"><h3 id="uboot-threat-title" data-i18n="uboot_threat_title"></h3><p id="uboot-threat-warning" class="station-alert" role="status" hidden></p><dl id="uboot-threat" class="detail-metrics compact-metrics"></dl><h4 data-i18n="uboot_threat_advice"></h4><div id="uboot-threat-advice" class="station-list compact-list"></div><button id="uboot-evade" type="button" class="danger" data-i18n="uboot_evade"></button><p id="uboot-evade-plan" class="uboot-scope-status" role="status"></p><h4 data-i18n="uboot_threat_intercepts"></h4><div id="uboot-threat-intercepts" class="station-list compact-list"></div></article><article class="station-card-view station-controls card-controls" data-uboot-stations="uboot uboot_engine"><h3 data-i18n="uboot_plant"></h3><div class="uboot-telegraph" role="group" data-i18n-aria="uboot_telegraph"><button type="button" data-uboot-speed-step="0"></button><button type="button" data-uboot-speed-step="1"></button><button type="button" data-uboot-speed-step="2"></button><button type="button" data-uboot-speed-step="3"></button><button type="button" data-uboot-speed-step="4"></button><button type="button" data-uboot-speed-step="5"></button></div><form id="uboot-speed-form" class="control-form"><label for="uboot-speed" data-i18n="uboot_speed"></label><input id="uboot-speed" type="number" min="0" max="40" step="any" inputmode="decimal" autocomplete="off" required><button id="uboot-speed-submit" type="submit" data-i18n="uboot_order_speed"></button></form><div class="uboot-pair" role="group"><button type="button" data-uboot-mode="uboot_silent" data-enabled="true" data-i18n="uboot_silent_on"></button><button type="button" data-uboot-mode="uboot_silent" data-enabled="false" data-i18n="uboot_silent_off"></button></div><div class="uboot-pair" role="group" data-uboot-stations="uboot_engine"><button tLine truncated
|
||||
<section id="station-uboot" class="station-section" data-station-role="uboot" aria-labelledby="station-uboot-title" hidden><div class="station-heading"><p class="eyebrow" data-i18n="uboot_side"></p><h2 id="station-uboot-title" data-i18n="station_uboot"></h2></div><div class="station-grid uboot-grid"><article class="station-card-view station-wide uboot-strip" data-uboot-stations="uboot uboot_weapons uboot_engine uboot_esm uboot_nav uboot_radio"><div id="uboot-readouts" class="uboot-readouts"></div><div id="uboot-chips" class="uboot-chips" aria-live="polite"></div><p id="uboot-battery-warning" class="station-alert" role="status" hidden></p><p id="uboot-nav-warning" class="station-alert" role="status" hidden></p></article><article class="station-card-view uboot-depth-card" data-uboot-stations="uboot uboot_nav uboot_engine"><h3 data-i18n="uboot_depth_title"></h3><canvas id="uboot-depth-canvas" class="uboot-canvas" data-i18n-aria="uboot_depth_title"></canvas><div class="uboot-presets" role="group" data-i18n-aria="uboot_depth_presets" data-uboot-stations="uboot uboot_nav"><button type="button" data-uboot-depth-preset="periscope" data-i18n="uboot_preset_periscope"></button><button type="button" data-uboot-depth-preset="snorkel" data-i18n="uboot_preset_snorkel"></button><button type="button" data-uboot-depth-preset="above_layer" data-i18n="uboot_preset_above_layer"></button><button type="button" data-uboot-depth-preset="below_layer" data-i18n="uboot_preset_below_layer"></button><button type="button" data-uboot-depth-preset="deep" data-i18n="uboot_preset_deep"></button></div><form id="uboot-depth-form" class="control-form" data-uboot-stations="uboot uboot_nav"><label for="uboot-depth" data-i18n="uboot_depth"></label><input id="uboot-depth" type="number" min="0" max="1000" step="any" inputmode="decimal" autocomplete="off" required><button id="uboot-depth-submit" type="submit" data-i18n="uboot_order_depth"></button></form><div class="uboot-pair" role="group" data-uboot-stations="uboot uboot_nav"><button type="button" data-uboot-mode="uboot_bottom" data-enabled="true" data-i18n="uboot_bottom_on"></button><button type="button" data-uboot-mode="uboot_bottom" data-enabled="false" data-i18n="uboot_bottom_off"></button></div></article><article class="station-card-view station-controls card-controls" data-uboot-stations="uboot uboot_nav"><h3 data-i18n="uboot_nav_title"></h3><form id="uboot-course-form" class="control-form"><label for="uboot-course" data-i18n="uboot_course"></label><input id="uboot-course" type="number" min="0" max="359.99999999999994" step="any" inputmode="decimal" autocomplete="off" required><button id="uboot-course-submit" type="submit" data-i18n="uboot_order_course"></button></form><dl id="uboot-navigation" class="detail-metrics compact-metrics"></dl><div class="uboot-pair" role="group" data-uboot-stations="uboot"><button id="uboot-ping" type="button" data-i18n="uboot_ping"></button><button id="uboot-bt" type="button" data-i18n="uboot_bt"></button></div></article><article class="station-card-view station-controls card-controls uboot-threat-card" data-uboot-stations="uboot uboot_nav" aria-labelledby="uboot-threat-title"><h3 id="uboot-threat-title" data-i18n="uboot_threat_title"></h3><p id="uboot-threat-warning" class="station-alert" role="status" hidden></p><dl id="uboot-threat" class="detail-metrics compact-metrics"></dl><h4 data-i18n="uboot_threat_advice"></h4><div id="uboot-threat-advice" class="station-list compact-list"></div><button id="uboot-evade" type="button" class="danger" data-i18n="uboot_evade"></button><p id="uboot-evade-plan" class="uboot-scope-status" role="status"></p><h4 data-i18n="uboot_threat_intercepts"></h4><div id="uboot-threat-intercepts" class="station-list compact-list"></div></article><article class="station-card-view station-controls card-controls" data-uboot-stations="uboot uboot_engine"><h3 data-i18n="uboot_plant"></h3><div class="uboot-telegraph" role="group" data-i18n-aria="uboot_telegraph"><button type="button" data-uboot-speed-step="0"></button><button type="button" data-uboot-speed-step="1"></button><button type="button" data-uboot-speed-step="2"></button><button type="button" data-uboot-speed-step="3"></button><button type="button" data-uboot-speed-step="4"></button><button type="button" data-uboot-speed-step="5"></button></div><form id="uboot-speed-form" class="control-form"><label for="uboot-speed" data-i18n="uboot_speed"></label><input id="uboot-speed" type="number" min="0" max="40" step="any" inputmode="decimal" autocomplete="off" required><button id="uboot-speed-submit" type="submit" data-i18n="uboot_order_speed"></button></form><div class="uboot-pair" role="group"><button type="button" data-uboot-mode="uboot_silent" data-enabled="true" data-i18n="uboot_silent_on"></button><button type="button" data-uboot-mode="uboot_silent" data-enabled="false" data-i18n="uboot_silent_off"></button></div><div class="uboot-pair" role="group" data-uboot-stations="uboot_enginLine truncated
|
||||
</section>
|
||||
</div>
|
||||
</aside>
|
||||
|
||||
@@ -6,11 +6,12 @@ export const classes = { U_BOOT: "class_submarine", KAMPFSCHIFF: "class_warship"
|
||||
export const phases = { live: "phase_live", menu: "phase_menu", blocked: "phase_blocked", ended: "phase_ended" };
|
||||
export const damageStates = { OK: "damage_ok", FLUTEND: "damage_flooding", BESCHAEDIGT: "damage_damaged", ZERSTOERT: "damage_destroyed" };
|
||||
export const heloStates = { HANGAR: "helo_stowed", AUF: "helo_airborne", ZURUECK: "helo_returning", VERLOREN: "helo_lost" };
|
||||
// Nine frigate stations, then the crewed submarine's six (the opposing
|
||||
// Nine frigate stations, then the crewed submarine's seven (the opposing
|
||||
// side). A session only ever holds roles of one side.
|
||||
export const stationNames = ["bridge", "sonar", "weapons", "damage", "opz", "radio", "engine", "helicopter", "eloka",
|
||||
"uboot", "uboot_sonar", "uboot_weapons", "uboot_engine", "uboot_esm", "uboot_nav"];
|
||||
export const opforRoles = new Set(["uboot", "uboot_sonar", "uboot_weapons", "uboot_engine", "uboot_esm", "uboot_nav"]);
|
||||
"uboot", "uboot_sonar", "uboot_weapons", "uboot_engine", "uboot_esm", "uboot_nav", "uboot_radio"];
|
||||
export const opforRoles = new Set(["uboot", "uboot_sonar", "uboot_weapons", "uboot_engine", "uboot_esm", "uboot_nav",
|
||||
"uboot_radio"]);
|
||||
// The boat's stations besides its sonar room share one projection and panel.
|
||||
export const isBoatCommand = (role) => opforRoles.has(role) && role !== "uboot_sonar";
|
||||
// Both sonar rooms share one panel; the submarine's has no towed array.
|
||||
@@ -50,6 +51,7 @@ export const reasons = {
|
||||
uboot_no_absorbers: "reason_uboot_no_absorbers", uboot_no_candles: "reason_uboot_no_candles",
|
||||
uboot_candle_burning: "reason_uboot_candle_burning",
|
||||
uboot_no_air_stores: "reason_uboot_no_air_stores",
|
||||
uboot_no_antenna: "reason_uboot_no_antenna", uboot_transmitting: "reason_uboot_transmitting",
|
||||
ok: "reason_ok",
|
||||
};
|
||||
// Listening streams: frigate sonar, helicopter and the submarine's sonar room.
|
||||
|
||||
@@ -497,6 +497,7 @@ export function init() {
|
||||
});
|
||||
$("uboot-decoy").addEventListener("click", () => sendStationAction("uboot_decoy", {}));
|
||||
$("uboot-evade").addEventListener("click", () => sendStationAction("uboot_evade", {}));
|
||||
$("uboot-radio-send").addEventListener("click", () => sendStationAction("uboot_radio_send", {}));
|
||||
$("uboot-blow").addEventListener("click", () => sendStationAction("uboot_blow", {}));
|
||||
// Wire guidance of a running crew torpedo: new datum from the boat, or cut.
|
||||
$("uboot-wire-steer").addEventListener("click", () => {
|
||||
|
||||
@@ -136,12 +136,13 @@ export function validateV2State(state) {
|
||||
opz: ["observations", "fusions", "radar", "defense", "asm_observations", "source_classifications", "radar_blips", "designated_target_ref", "own_assets"],
|
||||
radio: ["observations", "logged_fixes", "logged_bearings", "messages", "station_down", "navigation", "tactical", "tasks"],
|
||||
sonar: ["observations", "settings", "visualization"],
|
||||
uboot: ["navigation", "status", "weapons", "alarms", "contacts", "own_weapons", "designated_target_ref", "feed", "scope", "plant", "esm", "ballast", "damage_control", "threat"],
|
||||
uboot_engine: ["navigation", "status", "weapons", "alarms", "contacts", "own_weapons", "designated_target_ref", "feed", "scope", "plant", "esm", "ballast", "damage_control", "threat"],
|
||||
uboot_esm: ["navigation", "status", "weapons", "alarms", "contacts", "own_weapons", "designated_target_ref", "feed", "scope", "plant", "esm", "ballast", "damage_control", "threat"],
|
||||
uboot_nav: ["navigation", "status", "weapons", "alarms", "contacts", "own_weapons", "designated_target_ref", "feed", "scope", "plant", "esm", "ballast", "damage_control", "threat"],
|
||||
uboot: ["navigation", "status", "weapons", "alarms", "contacts", "own_weapons", "designated_target_ref", "feed", "scope", "plant", "esm", "ballast", "damage_control", "threat", "radio"],
|
||||
uboot_engine: ["navigation", "status", "weapons", "alarms", "contacts", "own_weapons", "designated_target_ref", "feed", "scope", "plant", "esm", "ballast", "damage_control", "threat", "radio"],
|
||||
uboot_esm: ["navigation", "status", "weapons", "alarms", "contacts", "own_weapons", "designated_target_ref", "feed", "scope", "plant", "esm", "ballast", "damage_control", "threat", "radio"],
|
||||
uboot_nav: ["navigation", "status", "weapons", "alarms", "contacts", "own_weapons", "designated_target_ref", "feed", "scope", "plant", "esm", "ballast", "damage_control", "threat", "radio"],
|
||||
uboot_radio: ["navigation", "status", "weapons", "alarms", "contacts", "own_weapons", "designated_target_ref", "feed", "scope", "plant", "esm", "ballast", "damage_control", "threat", "radio"],
|
||||
uboot_sonar: ["observations", "settings", "visualization"],
|
||||
uboot_weapons: ["navigation", "status", "weapons", "alarms", "contacts", "own_weapons", "designated_target_ref", "feed", "scope", "plant", "esm", "ballast", "damage_control", "threat"],
|
||||
uboot_weapons: ["navigation", "status", "weapons", "alarms", "contacts", "own_weapons", "designated_target_ref", "feed", "scope", "plant", "esm", "ballast", "damage_control", "threat", "radio"],
|
||||
weapons: ["inventory", "readiness", "designated_target", "navigation", "tactical", "target_choices", "depth_m", "tubes", "settings", "own_weapons", "active_assets"],
|
||||
};
|
||||
const tacticalFields = ["ref", "label", "domain", "source", "affiliation", "bearing", "range_nm", "x", "y", "course", "speed_kn", "altitude_m", "observer_x", "observer_y", "quality", "age_s", "bearing_uncertainty_deg", "range_uncertainty_nm", "visual_class", "visual_type"];
|
||||
@@ -186,6 +187,10 @@ export function validateV2State(state) {
|
||||
interceptKinds: ["hull", "dipping", "buoy", "splash", "torpedo"],
|
||||
advice: ["uboot.advice.torpedo", "uboot.advice.mast_down", "uboot.advice.slow_down", "uboot.advice.measure_layer", "uboot.advice.go_below", "uboot.advice.evade"],
|
||||
evadePlan: ["kind", "bearing", "course", "speed_kn", "depth_m", "silent", "decoy"],
|
||||
radio: ["antenna", "broadcast", "copied", "next_s", "copy", "send", "transmitting", "sitreps", "ack_due", "report", "log"],
|
||||
radioLog: ["seq", "kind", "age_s", "number", "ack", "report"],
|
||||
radioLogKinds: ["broadcast", "sent", "aborted"],
|
||||
radioReport: ["x", "y", "radius_nm", "course", "speed_kn", "age_s"],
|
||||
};
|
||||
// END GENERATED
|
||||
if (!validWeatherStation(state.weather_station, opforRoles.has(state.role), weatherFields)) throw new Error("protocol");
|
||||
@@ -398,6 +403,17 @@ export function validateV2State(state) {
|
||||
(plan !== null && (!exactKeys(plan, boatFields.evadePlan) || !["torpedo", "ping"].includes(plan.kind) ||
|
||||
["bearing", "course", "speed_kn", "depth_m"].some((key) => !finite(plan[key])) ||
|
||||
typeof plan.silent !== "boolean" || typeof plan.decoy !== "boolean"))) throw new Error("protocol");
|
||||
// Radio room: schedule, own transmissions and HQ's (modelled) contact report.
|
||||
const radio = payload.radio;
|
||||
const radioReport = (report) => report === null || (exactKeys(report, boatFields.radioReport) &&
|
||||
["x", "y", "radius_nm", "course", "speed_kn"].every((key) => finite(report[key])) && nullableNumber(report.age_s));
|
||||
if (!exactKeys(radio, boatFields.radio) ||
|
||||
["antenna", "copied", "transmitting", "ack_due"].some((key) => typeof radio[key] !== "boolean") ||
|
||||
!Number.isInteger(radio.broadcast) || radio.broadcast < 0 || !Number.isInteger(radio.sitreps) || radio.sitreps < 0 ||
|
||||
!finite(radio.next_s) || !nullableNumber(radio.copy) || !nullableNumber(radio.send) || !radioReport(radio.report) ||
|
||||
!boundedArray(radio.log, 12) || radio.log.some((row) => !exactKeys(row, boatFields.radioLog) ||
|
||||
!Number.isInteger(row.seq) || !boatFields.radioLogKinds.includes(row.kind) || !nullableNumber(row.age_s) ||
|
||||
(row.number !== null && !Number.isInteger(row.number)) || typeof row.ack !== "boolean" || !radioReport(row.report))) throw new Error("protocol");
|
||||
} else if (state.role === "weapons") {
|
||||
if (!exactKeys(payload.settings, ["torpedo_type", "choices", "pattern", "enable_nm", "salvo"]) ||
|
||||
!boundedArray(payload.settings.choices, 8) ||
|
||||
|
||||
@@ -49,7 +49,8 @@ export const visualCanvasIds = ["role-map", "role-map-sweep", "sonar-broadband",
|
||||
"engine-instruments", "eloka-scope", "weapons-system", "helicopter-broadband-canvas",
|
||||
"helicopter-lofar-canvas", "helicopter-demon-canvas"];
|
||||
// The radio room has no chart: its instrument is the HF/DF scope.
|
||||
export const mapRoles = new Set(["bridge", "weapons", "opz", "helicopter", "uboot", "uboot_weapons", "uboot_nav", "uboot_esm"]);
|
||||
export const mapRoles = new Set(["bridge", "weapons", "opz", "helicopter", "uboot", "uboot_weapons", "uboot_nav", "uboot_esm",
|
||||
"uboot_radio"]);
|
||||
export const trackRoles = new Set(["bridge", "sonar", "weapons", "opz", "helicopter", "eloka", "uboot", "uboot_sonar",
|
||||
"uboot_weapons", "uboot_nav"]);
|
||||
export const roleMapViews = Object.fromEntries([...mapRoles].map((role) => [role, {x: 250, y: 250, zoom: 1}]));
|
||||
|
||||
@@ -339,6 +339,42 @@ function renderEsm(esm, status) {
|
||||
|
||||
// Counter-detection picture: the boat's own intercepts, layer and noise,
|
||||
// and the evasion order the button gives (own measurements only).
|
||||
// Radio room: HQ broadcast schedule, own situation reports and HQ's contact
|
||||
// report (modelled intelligence with its age and error circle).
|
||||
function radioReportText(report, nav) {
|
||||
const dx = report.x - nav.x, dy = report.y - nav.y;
|
||||
const bearing = (Math.atan2(dx, -dy) * 180 / Math.PI + 360) % 360;
|
||||
return t("uboot_radio_report_value", {bearing: number(bearing, 0), range: number(Math.hypot(dx, dy), 1),
|
||||
radius: number(report.radius_nm, 0), course: number(report.course, 0), speed: number(report.speed_kn, 0),
|
||||
age: number((report.age_s ?? 0) / 60, 0)});
|
||||
}
|
||||
|
||||
function radioLogText(row) {
|
||||
const age = duration(row.age_s);
|
||||
if (row.kind === "broadcast") {
|
||||
const text = t(row.report ? "uboot_radio_log_broadcast_report" : "uboot_radio_log_broadcast", {age, number: row.number});
|
||||
return row.ack ? t("uboot_radio_log_with_ack", {entry: text}) : text;
|
||||
}
|
||||
return row.kind === "sent" ? t("uboot_radio_log_sent", {age, number: row.number}) : t("uboot_radio_log_aborted", {age});
|
||||
}
|
||||
|
||||
function renderRadio(radio, nav) {
|
||||
const broadcast = radio.copied ? t("uboot_radio_copied", {number: radio.broadcast})
|
||||
: radio.copy !== null ? t("uboot_radio_copying", {number: radio.broadcast, percent: number(radio.copy * 100, 0)})
|
||||
: t("uboot_radio_missed", {number: radio.broadcast});
|
||||
metrics($("uboot-radio"), [
|
||||
["uboot_radio_antenna", t(radio.antenna ? "uboot_radio_antenna_up" : "uboot_radio_antenna_down")],
|
||||
["uboot_radio_broadcast", broadcast], ["uboot_radio_next", duration(radio.next_s)],
|
||||
["uboot_radio_sitreps", t(radio.ack_due ? "uboot_radio_sitreps_ack" : "uboot_radio_sitreps_value", {count: radio.sitreps})]]);
|
||||
$("uboot-radio-warning").hidden = !radio.transmitting;
|
||||
$("uboot-radio-warning").textContent = t("uboot_radio_on_air", {percent: number((radio.send ?? 0) * 100, 0)});
|
||||
$("uboot-radio-send").dataset.ready = String(radio.antenna && !radio.transmitting);
|
||||
$("uboot-radio-status").textContent = radio.antenna ? "" : t("uboot_radio_need_antenna");
|
||||
metrics($("uboot-radio-report"), [["uboot_radio_report", radio.report ? radioReportText(radio.report, nav) : t("uboot_radio_no_report")]]);
|
||||
$("uboot-radio-log").replaceChildren(...(radio.log.length ? radio.log.map((row) => node("p", radioLogText(row), "uboot-log-line"))
|
||||
: [node("p", t("uboot_radio_log_empty"), "uboot-log-line")]));
|
||||
}
|
||||
|
||||
function renderThreat(threat) {
|
||||
const counts = threat.counts;
|
||||
metrics($("uboot-threat"), [
|
||||
@@ -409,6 +445,7 @@ export function renderUbootStation(payload) {
|
||||
["uboot_torpedo_alarm", alarmText(alarms.torpedo_age_s, alarms.torpedo_bearing)]]);
|
||||
renderEsm(payload.esm, status);
|
||||
renderThreat(payload.threat);
|
||||
renderRadio(payload.radio, nav);
|
||||
document.body.classList.toggle("uboot-torpedo-alarm", alarms.torpedo_age_s !== null && alarms.torpedo_age_s < 60);
|
||||
if (!S.stationDrafts.has("uboot-depth")) $("uboot-depth").max = String(nav.max_depth_m);
|
||||
if (!S.stationDrafts.has("uboot-speed")) $("uboot-speed").max = String(nav.max_speed_kn);
|
||||
|
||||
@@ -31,7 +31,11 @@ export function mapPayload(role) {
|
||||
({observer_x: item.x, observer_y: item.y, bearing: item.bearing, age_s: item.age_s}))).slice(0, 64),
|
||||
fixes: payload.esm.emitters.filter((row) => row.fix).map((row) => ({ref: row.label, display: row.label,
|
||||
x: row.fix.x, y: row.fix.y, uncertainty_nm: row.fix.major_nm,
|
||||
ellipse: {major: row.fix.major_nm, minor: row.fix.minor_nm, axis: row.fix.axis_deg}}))};
|
||||
ellipse: {major: row.fix.major_nm, minor: row.fix.minor_nm, axis: row.fix.axis_deg}})).concat(
|
||||
// HQ's latest contact report from the radio room, with its error circle.
|
||||
payload.radio.report ? [{ref: "HQ", x: payload.radio.report.x, y: payload.radio.report.y,
|
||||
uncertainty_nm: payload.radio.report.radius_nm,
|
||||
display: t("uboot_radio_chart_label", {age: Math.round((payload.radio.report.age_s ?? 0) / 60)})}] : [])};
|
||||
}
|
||||
return {own: payload.navigation, observations: payload.tactical,
|
||||
assets: [payload.asset, ...payload.buoys.map((buoy) => ({...buoy, display: buoy.label})),
|
||||
|
||||
@@ -11,7 +11,8 @@ import { toggleWeatherStation } from "./weather.js";
|
||||
const stationTabText = {bridge: "tab_bridge", sonar: "tab_sonar", weapons: "tab_weapons", damage: "tab_damage",
|
||||
opz: "tab_opz", radio: "tab_radio", engine: "tab_engine", helicopter: "tab_helicopter", eloka: "tab_eloka",
|
||||
uboot: "tab_uboot", uboot_sonar: "tab_uboot_sonar", uboot_weapons: "tab_uboot_weapons",
|
||||
uboot_engine: "tab_uboot_engine", uboot_esm: "tab_uboot_esm", uboot_nav: "tab_uboot_nav"};
|
||||
uboot_engine: "tab_uboot_engine", uboot_esm: "tab_uboot_esm", uboot_nav: "tab_uboot_nav",
|
||||
uboot_radio: "tab_uboot_radio"};
|
||||
export function renderStationTabs(leased, shown) {
|
||||
const bar = $("station-tabs");
|
||||
const signature = leased.map((station) => `${station}:${t(stationTabText[station])}`).join("|");
|
||||
|
||||
@@ -402,6 +402,47 @@
|
||||
"power_class": "medium",
|
||||
"operating_period_s": 0.5,
|
||||
"on_duration_s": 0.5
|
||||
},
|
||||
{
|
||||
"key": "emitter.own_asset.helicopter.radar",
|
||||
"domain": "radar",
|
||||
"frequency_band_hz": [
|
||||
9200000000.0,
|
||||
9500000000.0
|
||||
],
|
||||
"prf_band_hz": [
|
||||
800.0,
|
||||
2000.0
|
||||
],
|
||||
"modulation_codes": [
|
||||
"pulse"
|
||||
],
|
||||
"radar_role": "surface_search",
|
||||
"operating_mode": "asw_surface_search",
|
||||
"power_class": "low",
|
||||
"operating_period_s": 5.0,
|
||||
"on_duration_s": 5.0
|
||||
},
|
||||
{
|
||||
"key": "emitter.own_asset.mpa.radar",
|
||||
"domain": "radar",
|
||||
"frequency_band_hz": [
|
||||
9000000000.0,
|
||||
10000000000.0
|
||||
],
|
||||
"prf_band_hz": [
|
||||
300.0,
|
||||
2500.0
|
||||
],
|
||||
"modulation_codes": [
|
||||
"pulse",
|
||||
"frequency_agile"
|
||||
],
|
||||
"radar_role": "surface_search",
|
||||
"operating_mode": "maritime_patrol_search",
|
||||
"power_class": "medium",
|
||||
"operating_period_s": 6.0,
|
||||
"on_duration_s": 6.0
|
||||
}
|
||||
],
|
||||
"weapons": [],
|
||||
|
||||
+74
-4
@@ -4090,7 +4090,7 @@
|
||||
"uboot.line.keel_obstacle": "Kiel {depth} m · Hind. {distance} sm",
|
||||
"uboot.mode.mast": "Mast",
|
||||
"uboot.value.auto_depth": "auto",
|
||||
"uboot.local.wrong_station": "Dieser Befehl gehört zu {station} (Tasten 1-6).",
|
||||
"uboot.local.wrong_station": "Dieser Befehl gehört zu {station} (Tasten 1-7).",
|
||||
"uboot.local.station_remote": "{station} wird von einem Browser besetzt.",
|
||||
"uboot.local.silent_on": "Schleichfahrt: höchstens 5 kn.",
|
||||
"uboot.local.mast_on": "Mast ausgefahren: ESM hört mit.",
|
||||
@@ -4284,7 +4284,7 @@
|
||||
"menu.side.uboot.note": "Sechs Bootsstationen am uConsole; Browser besetzen Fregatte oder Boot (F9).",
|
||||
"menu.side_hint": "Auf/Ab oder 1/2: wählen | Enter: weiter | Esc: zurück",
|
||||
"help.uboot.title": "U-Boot spielen (uConsole)",
|
||||
"help.uboot.views": "Stationen: 1 Führung, 2 Sonar, 3 Waffen, 4 Maschine, 5 Mast & ESM, 6 Navigation; Tab weiter (oder Reiter anklicken)",
|
||||
"help.uboot.views": "Stationen: 1 Führung, 2 Sonar, 3 Waffen, 4 Maschine, 5 Mast & ESM, 6 Navigation, 7 Funkraum; Tab weiter (oder Reiter anklicken)",
|
||||
"help.uboot.orders": "Kurs / Fahrt / Tiefe befehlen (Führung; Kurs und Tiefe auch Navigation, Fahrt auch Maschine)",
|
||||
"help.uboot.pages": "Führungsseiten: Navigation / Waffen & Kontakte / Sehrohr / Bedrohung (oder erneut 1); Seiten Navigation: Navigation / Bedrohung (oder erneut 6); Seiten Mast & ESM: ESM / Sehrohr (oder erneut 5)",
|
||||
"help.uboot.zoom": "Karte heraus- / hineinzoomen",
|
||||
@@ -4308,7 +4308,7 @@
|
||||
"help.uboot.silent": "Schleichfahrt ein/aus, höchstens 5 kn (Führung, Maschine)",
|
||||
"help.uboot.bottom": "Auf Grund legen / abheben (Führung, Navigation)",
|
||||
"help.uboot.snorkel": "Schnorchel aus-/einfahren, Diesel laden auf Schnorcheltiefe (Maschine)",
|
||||
"help.uboot.mast": "Mast aus-/einfahren auf Sehrohrtiefe: ESM hört Radare, das Sehrohr sieht (Führung, Mast & ESM)",
|
||||
"help.uboot.mast": "Mast aus-/einfahren auf Sehrohrtiefe: ESM hört Radare, das Sehrohr sieht, die Funkantenne ist klar (Führung, Mast & ESM, Funkraum)",
|
||||
"help.uboot.scope_turn": "Sehrohrseite: Rohr 2° schwenken (Umschalt: 10°) (Führung, Mast & ESM)",
|
||||
"help.uboot.stadimeter": "Sehrohrseite: Stadimeter-Entfernung der Sichtung unter dem Fadenkreuz (Führung, Mast & ESM)",
|
||||
"help.uboot.telegraph": "Fahrtstufe schneller / langsamer (Führung, Maschine)",
|
||||
@@ -5372,5 +5372,75 @@
|
||||
"training.step.boat_shaken": "Leise bleiben, bis zwei Minuten lang kein Ping mehr kommt",
|
||||
"uboot.end.trained": "LEKTION ABGESCHLOSSEN",
|
||||
"help.uboot.evade": "Führung, Navigation: dem frischesten Ping- oder Torpedoalarm ausweichen (Kurs, Fahrt, Schicht, Schleichfahrt oder Täuschkörper)",
|
||||
"scenario.double.lose": "Ziel entkommt / Zeitlimit / Fregatte gesunken / ziviler Verlust"
|
||||
"scenario.double.lose": "Ziel entkommt / Zeitlimit / Fregatte gesunken / ziviler Verlust",
|
||||
"eloka.emitter.helicopter_radar": "Suchradar U-Jagd-Hubschrauber",
|
||||
"eloka.emitter.mpa_radar": "Suchradar Seefernaufklärer",
|
||||
"station.uboot_radio": "U-Boot-Funkraum",
|
||||
"station.page.uboot_radio": "Funk",
|
||||
"uboot.tab.uboot_radio": "FUNK",
|
||||
"uboot.panel.station.uboot_radio": "U-Boot / Funkraum",
|
||||
"uboot.panel.radio": "FUNKRAUM",
|
||||
"uboot.panel.hq_report": "FEINDLAGE VON DER FÜHRUNG",
|
||||
"uboot.panel.radio_log": "FUNKTAGEBUCH",
|
||||
"uboot.radio.antenna_up": "Antenne klar: Empfang und Sendebereitschaft",
|
||||
"uboot.radio.antenna_down": "Antenne unten: auf Sehrohrtiefe Mast ausfahren (P)",
|
||||
"uboot.radio.broadcast_copied": "Rundspruch {number} aufgenommen",
|
||||
"uboot.radio.broadcast_copying": "Rundspruch {number} wird aufgenommen ({percent} %)",
|
||||
"uboot.radio.broadcast_missed": "Rundspruch {number} nicht aufgenommen",
|
||||
"uboot.radio.schedule": "{state}, nächster in {next}",
|
||||
"uboot.radio.sending": "Lagemeldung wird gesendet ({percent} %): KW-Peilung möglich!",
|
||||
"uboot.radio.sitreps": "Lagemeldungen gesendet: {count}",
|
||||
"uboot.radio.sitreps_ack": "Lagemeldungen gesendet: {count} (Antwort im nächsten Rundspruch)",
|
||||
"uboot.radio.no_report": "Noch keine Feindlagemeldung aufgenommen.",
|
||||
"uboot.radio.report_position": "Fregatte in {bearing}°, {range} sm (±{radius} sm)",
|
||||
"uboot.radio.report_motion": "Kurs {course}°, {speed} kn, Standort {age} min alt",
|
||||
"uboot.radio.log.broadcast": "-{age} Rundspruch {number}: nichts für uns",
|
||||
"uboot.radio.log.broadcast_report": "-{age} Rundspruch {number}: Feindlagemeldung",
|
||||
"uboot.radio.log.with_ack": "{entry}, Meldung bestätigt",
|
||||
"uboot.radio.log.sent": "-{age} Lagemeldung {number} abgesetzt",
|
||||
"uboot.radio.log.aborted": "-{age} Sendung abgebrochen (Antenne unten)",
|
||||
"uboot.radio.log.empty": "Noch kein Funkverkehr.",
|
||||
"uboot.radio.chart_label": "Feindlage {age} min",
|
||||
"uboot.footer.radio_send": "Lagemeldung",
|
||||
"uboot.local.radio_uboot_no_antenna": "Keine Antenne: erst auf Sehrohrtiefe den Mast ausfahren.",
|
||||
"uboot.local.radio_uboot_transmitting": "Es wird bereits gesendet.",
|
||||
"uboot.local.radio_not_ready": "Der Funkraum kann jetzt nicht senden.",
|
||||
"uboot.event.radio_sending": "Funkraum: Lagemeldung wird gesendet.",
|
||||
"uboot.event.radio_sent": "Funkraum: Lagemeldung {number} abgesetzt.",
|
||||
"uboot.event.radio_aborted": "Funkraum: Sendung abgebrochen, Antenne unter Wasser.",
|
||||
"uboot.event.radio_copied": "Funkraum: Rundspruch {number} aufgenommen, nichts für uns.",
|
||||
"uboot.event.radio_copied_report": "Funkraum: Rundspruch {number} aufgenommen, mit Feindlagemeldung zur Fregatte.",
|
||||
"uboot.reason.uboot_no_antenna": "Antenne unten",
|
||||
"uboot.reason.uboot_transmitting": "sendet bereits",
|
||||
"commander.web.station_uboot_radio": "U-Boot-Funkraum",
|
||||
"commander.web.tab_uboot_radio": "U-FUNK",
|
||||
"commander.web.uboot_radio_title": "Funkraum",
|
||||
"commander.web.uboot_radio_send": "Lagemeldung senden",
|
||||
"commander.web.uboot_radio_report": "Feindlage von der Führung",
|
||||
"commander.web.uboot_radio_log": "Funktagebuch",
|
||||
"commander.web.uboot_radio_antenna": "Antenne",
|
||||
"commander.web.uboot_radio_antenna_up": "klar (Empfang, sendebereit)",
|
||||
"commander.web.uboot_radio_antenna_down": "unten",
|
||||
"commander.web.uboot_radio_broadcast": "Rundspruch",
|
||||
"commander.web.uboot_radio_copied": "Nr. {number} aufgenommen",
|
||||
"commander.web.uboot_radio_copying": "Nr. {number} wird aufgenommen ({percent} %)",
|
||||
"commander.web.uboot_radio_missed": "Nr. {number} nicht aufgenommen",
|
||||
"commander.web.uboot_radio_next": "Nächster Rundspruch in",
|
||||
"commander.web.uboot_radio_sitreps": "Lagemeldungen",
|
||||
"commander.web.uboot_radio_sitreps_value": "{count} gesendet",
|
||||
"commander.web.uboot_radio_sitreps_ack": "{count} gesendet, Antwort im nächsten Rundspruch",
|
||||
"commander.web.uboot_radio_on_air": "Lagemeldung wird gesendet ({percent} %): die Fregatte kann die KW-Sendung peilen.",
|
||||
"commander.web.uboot_radio_need_antenna": "Für Empfang und Senden auf Sehrohrtiefe den Mast ausfahren.",
|
||||
"commander.web.uboot_radio_no_report": "noch keine aufgenommen",
|
||||
"commander.web.uboot_radio_report_value": "Fregatte {bearing}°, {range} sm (±{radius} sm), Kurs {course}°, {speed} kn, {age} min alt",
|
||||
"commander.web.uboot_radio_log_broadcast": "-{age} Rundspruch {number}: nichts für uns",
|
||||
"commander.web.uboot_radio_log_broadcast_report": "-{age} Rundspruch {number}: Feindlagemeldung",
|
||||
"commander.web.uboot_radio_log_with_ack": "{entry}, Meldung bestätigt",
|
||||
"commander.web.uboot_radio_log_sent": "-{age} Lagemeldung {number} abgesetzt",
|
||||
"commander.web.uboot_radio_log_aborted": "-{age} Sendung abgebrochen (Antenne unten)",
|
||||
"commander.web.uboot_radio_log_empty": "Noch kein Funkverkehr.",
|
||||
"commander.web.uboot_radio_chart_label": "Feindlage {age} min",
|
||||
"commander.web.reason_uboot_no_antenna": "Die Antenne ist unten: auf Sehrohrtiefe den Mast ausfahren.",
|
||||
"commander.web.reason_uboot_transmitting": "Es wird bereits eine Lagemeldung gesendet.",
|
||||
"help.uboot.radio_send": "Funkraum: Lagemeldung an die Führung senden (Mast auf Sehrohrtiefe ausgefahren; die Fregatte kann die KW-Sendung peilen)"
|
||||
}
|
||||
+74
-4
@@ -4090,7 +4090,7 @@
|
||||
"uboot.line.keel_obstacle": "Keel {depth} m · obst. {distance} NM",
|
||||
"uboot.mode.mast": "Mast",
|
||||
"uboot.value.auto_depth": "auto",
|
||||
"uboot.local.wrong_station": "That order belongs to {station} (keys 1-6).",
|
||||
"uboot.local.wrong_station": "That order belongs to {station} (keys 1-7).",
|
||||
"uboot.local.station_remote": "{station} is crewed from a browser.",
|
||||
"uboot.local.silent_on": "Silent running: speed at most 5 kn.",
|
||||
"uboot.local.mast_on": "Mast up: ESM listening.",
|
||||
@@ -4284,7 +4284,7 @@
|
||||
"menu.side.uboot.note": "Six boat stations on the uConsole; browsers crew the frigate or the boat (F9).",
|
||||
"menu.side_hint": "Up/Down or 1/2: choose | Enter: continue | Esc: back",
|
||||
"help.uboot.title": "Playing the submarine (uConsole)",
|
||||
"help.uboot.views": "Stations: 1 Command, 2 Sonar, 3 Weapons, 4 Engine room, 5 Mast & ESM, 6 Navigation; Tab next (click a tab too)",
|
||||
"help.uboot.views": "Stations: 1 Command, 2 Sonar, 3 Weapons, 4 Engine room, 5 Mast & ESM, 6 Navigation, 7 Radio room; Tab next (click a tab too)",
|
||||
"help.uboot.orders": "Order course / speed / depth (Command; course and depth also Navigation, speed also Engine room)",
|
||||
"help.uboot.pages": "Command pages: Navigation / Weapons & contacts / Periscope / Threat (or 1 again); Navigation pages: Navigation / Threat (or 6 again); Mast & ESM pages: ESM / Periscope (or 5 again)",
|
||||
"help.uboot.zoom": "Chart zoom out / in",
|
||||
@@ -4308,7 +4308,7 @@
|
||||
"help.uboot.silent": "Silent running on/off, at most 5 kn (Command, Engine room)",
|
||||
"help.uboot.bottom": "Lie on the bottom / lift off (Command, Navigation)",
|
||||
"help.uboot.snorkel": "Snorkel up/down, diesels charge at snorkel depth (Engine room)",
|
||||
"help.uboot.mast": "Raise/lower mast at periscope depth: ESM hears radars, the periscope sees (Command, Mast & ESM)",
|
||||
"help.uboot.mast": "Raise/lower mast at periscope depth: ESM hears radars, the periscope sees, the radio antenna is up (Command, Mast & ESM, Radio room)",
|
||||
"help.uboot.scope_turn": "Periscope page: train the scope 2° (Shift: 10°) (Command, Mast & ESM)",
|
||||
"help.uboot.stadimeter": "Periscope page: stadimeter range of the sighting under the crosshair (Command, Mast & ESM)",
|
||||
"help.uboot.telegraph": "Telegraph step faster / slower (Command, Engine room)",
|
||||
@@ -5372,5 +5372,75 @@
|
||||
"training.step.boat_shaken": "Stay quiet until no ping has come for two minutes",
|
||||
"uboot.end.trained": "LESSON COMPLETE",
|
||||
"help.uboot.evade": "Command, Navigation: evade the freshest ping or torpedo alarm (course, speed, layer, silent running or decoy)",
|
||||
"scenario.double.lose": "A target escapes / time limit / frigate sunk / civilian loss"
|
||||
"scenario.double.lose": "A target escapes / time limit / frigate sunk / civilian loss",
|
||||
"eloka.emitter.helicopter_radar": "ASW helicopter search radar",
|
||||
"eloka.emitter.mpa_radar": "Maritime patrol aircraft search radar",
|
||||
"station.uboot_radio": "Submarine radio room",
|
||||
"station.page.uboot_radio": "Radio",
|
||||
"uboot.tab.uboot_radio": "RADIO",
|
||||
"uboot.panel.station.uboot_radio": "Submarine / Radio room",
|
||||
"uboot.panel.radio": "RADIO ROOM",
|
||||
"uboot.panel.hq_report": "HQ CONTACT REPORT",
|
||||
"uboot.panel.radio_log": "RADIO LOG",
|
||||
"uboot.radio.antenna_up": "Antenna up: receiving and ready to send",
|
||||
"uboot.radio.antenna_down": "Antenna down: raise the mast at periscope depth (P)",
|
||||
"uboot.radio.broadcast_copied": "broadcast {number} copied",
|
||||
"uboot.radio.broadcast_copying": "copying broadcast {number} ({percent} %)",
|
||||
"uboot.radio.broadcast_missed": "broadcast {number} not copied",
|
||||
"uboot.radio.schedule": "{state}, next in {next}",
|
||||
"uboot.radio.sending": "Situation report on the air ({percent} %): HF bearing possible!",
|
||||
"uboot.radio.sitreps": "Situation reports sent: {count}",
|
||||
"uboot.radio.sitreps_ack": "Situation reports sent: {count} (HQ answers next broadcast)",
|
||||
"uboot.radio.no_report": "No contact report copied yet.",
|
||||
"uboot.radio.report_position": "Frigate bearing {bearing}°, {range} NM (±{radius} NM)",
|
||||
"uboot.radio.report_motion": "course {course}°, {speed} kn, fix {age} min old",
|
||||
"uboot.radio.log.broadcast": "-{age} broadcast {number}: nothing for us",
|
||||
"uboot.radio.log.broadcast_report": "-{age} broadcast {number}: contact report",
|
||||
"uboot.radio.log.with_ack": "{entry}, report acknowledged",
|
||||
"uboot.radio.log.sent": "-{age} situation report {number} sent",
|
||||
"uboot.radio.log.aborted": "-{age} transmission aborted (antenna down)",
|
||||
"uboot.radio.log.empty": "No traffic yet.",
|
||||
"uboot.radio.chart_label": "HQ report {age} min",
|
||||
"uboot.footer.radio_send": "send report",
|
||||
"uboot.local.radio_uboot_no_antenna": "No antenna: raise the mast at periscope depth first.",
|
||||
"uboot.local.radio_uboot_transmitting": "A report is already on the air.",
|
||||
"uboot.local.radio_not_ready": "The radio room cannot send now.",
|
||||
"uboot.event.radio_sending": "Radio room: sending situation report.",
|
||||
"uboot.event.radio_sent": "Radio room: situation report {number} sent.",
|
||||
"uboot.event.radio_aborted": "Radio room: transmission aborted, antenna under water.",
|
||||
"uboot.event.radio_copied": "Radio room: broadcast {number} copied, nothing for us.",
|
||||
"uboot.event.radio_copied_report": "Radio room: broadcast {number} copied with a contact report on the frigate.",
|
||||
"uboot.reason.uboot_no_antenna": "antenna down",
|
||||
"uboot.reason.uboot_transmitting": "already transmitting",
|
||||
"commander.web.station_uboot_radio": "Submarine radio room",
|
||||
"commander.web.tab_uboot_radio": "SUB RADIO",
|
||||
"commander.web.uboot_radio_title": "Radio room",
|
||||
"commander.web.uboot_radio_send": "Send situation report",
|
||||
"commander.web.uboot_radio_report": "HQ contact report",
|
||||
"commander.web.uboot_radio_log": "Radio log",
|
||||
"commander.web.uboot_radio_antenna": "Antenna",
|
||||
"commander.web.uboot_radio_antenna_up": "up (receiving, ready to send)",
|
||||
"commander.web.uboot_radio_antenna_down": "down",
|
||||
"commander.web.uboot_radio_broadcast": "HQ broadcast",
|
||||
"commander.web.uboot_radio_copied": "No. {number} copied",
|
||||
"commander.web.uboot_radio_copying": "No. {number} copying ({percent} %)",
|
||||
"commander.web.uboot_radio_missed": "No. {number} not copied",
|
||||
"commander.web.uboot_radio_next": "Next broadcast in",
|
||||
"commander.web.uboot_radio_sitreps": "Situation reports",
|
||||
"commander.web.uboot_radio_sitreps_value": "{count} sent",
|
||||
"commander.web.uboot_radio_sitreps_ack": "{count} sent, HQ answers next broadcast",
|
||||
"commander.web.uboot_radio_on_air": "Situation report on the air ({percent} %): the frigate can take an HF bearing.",
|
||||
"commander.web.uboot_radio_need_antenna": "Raise the mast at periscope depth to receive and send.",
|
||||
"commander.web.uboot_radio_no_report": "none copied yet",
|
||||
"commander.web.uboot_radio_report_value": "frigate {bearing}°, {range} NM (±{radius} NM), course {course}°, {speed} kn, {age} min old",
|
||||
"commander.web.uboot_radio_log_broadcast": "-{age} broadcast {number}: nothing for us",
|
||||
"commander.web.uboot_radio_log_broadcast_report": "-{age} broadcast {number}: contact report",
|
||||
"commander.web.uboot_radio_log_with_ack": "{entry}, report acknowledged",
|
||||
"commander.web.uboot_radio_log_sent": "-{age} situation report {number} sent",
|
||||
"commander.web.uboot_radio_log_aborted": "-{age} transmission aborted (antenna down)",
|
||||
"commander.web.uboot_radio_log_empty": "No traffic yet.",
|
||||
"commander.web.uboot_radio_chart_label": "HQ report {age} min",
|
||||
"commander.web.reason_uboot_no_antenna": "The antenna is down: raise the mast at periscope depth.",
|
||||
"commander.web.reason_uboot_transmitting": "A situation report is already on the air.",
|
||||
"help.uboot.radio_send": "Radio room: send a situation report to HQ (needs the mast up at periscope depth; the frigate can take an HF bearing)"
|
||||
}
|
||||
@@ -101,9 +101,9 @@ U-Boot-Physik: der Rumpf beschleunigt auf die befohlene Fahrt (kein Sofortsprint
|
||||
|
||||
## Besetztes Gegner-U-Boot (Remote Crew) {#ref-opfor}
|
||||
|
||||
Eine zweite Crew kann den Gegner spielen. Das Boot hat sechs Stationen: Führung, Sonar, Waffen, Maschine, Mast & ESM und Navigation; ein Browser übernimmt sie wie die der Fregatte (`F9`). Solange eine davon besetzt ist, folgt das lebende feindliche U-Boot mit der kleinsten Nummer nur den Befehlen dieser Crew; werden die Rollen abgegeben oder vom Host entzogen, übernimmt die KI das Boot wieder dort, wo es gerade ist. Ein Spielstand bewahrt Befehle, Betriebsarten, Mast, Drähte, Plot, Alarmpeilungen und ESM-Bild der Crew; nach dem Laden fährt das Boot seine letzten Befehle weiter und wartet bis zu zehn Minuten darauf, dass seine Crew die Stationen erneut übernimmt (jede Bootsstation wird neu vergeben), bevor die KI es zurücknimmt. Ein Browser hält nur Rollen einer Seite (Fregatte oder U-Boot), nie beide; die Lobby fragt zuerst, welche Einheit er spielt. Im Solo-Modus hält der eine Browser alle neun Stationen der Fregatte oder mit **U-Boot spielen** in der Host-Leiste alle sechs Stationen des Boots (zurück mit **Fregatte spielen**).
|
||||
Eine zweite Crew kann den Gegner spielen. Das Boot hat sieben Stationen: Führung, Sonar, Waffen, Maschine, Mast & ESM, Navigation und Funkraum; ein Browser übernimmt sie wie die der Fregatte (`F9`). Solange eine davon besetzt ist, folgt das lebende feindliche U-Boot mit der kleinsten Nummer nur den Befehlen dieser Crew; werden die Rollen abgegeben oder vom Host entzogen, übernimmt die KI das Boot wieder dort, wo es gerade ist. Ein Spielstand bewahrt Befehle, Betriebsarten, Mast, Drähte, Plot, Alarmpeilungen, ESM-Bild und Funktagebuch der Crew; nach dem Laden fährt das Boot seine letzten Befehle weiter und wartet bis zu zehn Minuten darauf, dass seine Crew die Stationen erneut übernimmt (jede Bootsstation wird neu vergeben), bevor die KI es zurücknimmt. Ein Browser hält nur Rollen einer Seite (Fregatte oder U-Boot), nie beide; die Lobby fragt zuerst, welche Einheit er spielt. Im Solo-Modus hält der eine Browser alle neun Stationen der Fregatte oder mit **U-Boot spielen** in der Host-Leiste alle sechs Stationen des Boots (zurück mit **Fregatte spielen**).
|
||||
|
||||
- **Stationen:** Die *Führung* befiehlt Kurs, Fahrt und Tiefe, legt das Boot auf Grund, pingt, nimmt eine BT-Messung und sieht das ganze Boot. Die *Navigation* befiehlt Kurs und Tiefe, führt den Plot des Boots und überwacht Kiel und Hindernisse. Die *Maschine* bedient Telegraf, Schnorchel, Schleichfahrt, Trimm und Notanblasen und überwacht Batterie und Lärm. *Mast & ESM* fährt den Mast aus und überwacht ESM und Alarme; auch die Führung darf ihn ausfahren, um durchs Sehrohr zu sehen. Die *Waffen* schießen, lenken die Drähte und stoßen Täuschkörper aus. Das *Sonar* ist der Sonarraum des Boots. Jeder Befehl wird nur von der Station angenommen, zu der er gehört.
|
||||
- **Stationen:** Die *Führung* befiehlt Kurs, Fahrt und Tiefe, legt das Boot auf Grund, pingt, nimmt eine BT-Messung und sieht das ganze Boot. Die *Navigation* befiehlt Kurs und Tiefe, führt den Plot des Boots und überwacht Kiel und Hindernisse. Die *Maschine* bedient Telegraf, Schnorchel, Schleichfahrt, Trimm und Notanblasen und überwacht Batterie und Lärm. *Mast & ESM* fährt den Mast aus und überwacht ESM und Alarme; auch die Führung darf ihn ausfahren, um durchs Sehrohr zu sehen. Die *Waffen* schießen, lenken die Drähte und stoßen Täuschkörper aus. Das *Sonar* ist der Sonarraum des Boots. Der *Funkraum* nimmt den Rundspruch der Führung auf und sendet Lagemeldungen; er darf für seine Antenne den Mast ausfahren. Jeder Befehl wird nur von der Station angenommen, zu der er gehört.
|
||||
- **Tiefenstufen und Anzeigen:** Führung und Navigation befehlen die Tiefe in einem Schritt: Sehrohrtiefe (15 m, der Mast bleibt nutzbar), Schnorcheltiefe (Boote mit Schnorchel), über oder unter dem Layer (15 m darüber / 30 m darunter; erst nach der eigenen BT-Messung, denn nur daraus kennt die Crew den Layer) und tief (die sichere Tiefe über dem kartierten Grund). Am uConsole sind das `U`, `Umschalt+U`, `J`, `Umschalt+J` und `H`. Der Browser zeigt die Wassersäule (Oberfläche, Sehrohrtiefe, gemessener Layer, Soll- und sichere Tiefe, Grund, das Boot und seine Tauchrichtung), große Anzeigen für Kurs, Fahrt, Tiefe und Batterie mit farbigen Betriebs- und Alarmchips sowie eine ESM-Rose mit der Peilung jedes Emitters und den Peilungen von Ping- und Torpedoalarm; die Seite Mast & ESM am uConsole hat dieselbe Rose. Mast, Schnorchel, Schleichfahrt und Auf-Grund-Legen haben getrennte Knöpfe zum Ein- und Ausschalten.
|
||||
- **Befehle und Waffen:** das Boot folgt Kurs-, Fahrt- und Tiefenbefehlen im Rahmen seiner Wende-, Tiefen- und Beschleunigungsgrenzen; Fahrtstufen (Stopp, 3, 6, 10, 15 kn, Maximum) setzen die Fahrt schnell. Schießt einen Torpedo auf die gemessene Peilung eines Sonarkontakts, mit Ping-Fix oder TMA-Lösung, solange aktuell, oder auf eine freie Peilung mit optionaler Entfernung; der Schuss braucht ein klares Rohr und das Ziel im Schussfeld der Rohre. Die Crew stellt die Lauftiefe ein (5-300 m, sonst eine flache Voreinstellung) und schießt einen Torpedo oder zwei im Fächer von ±4°, jeder mit eigenem Datum. Jeder Crew-Torpedo läuft am Draht: die Crew kann sein Datum versetzen (Peilung und Entfernung vom Boot), und der Draht dreht ihn darauf ein, bis sein Suchkopf erfasst; schneller als 10 kn oder stärker als 1,5°/s drehen für 5 s lässt den Draht reißen, ebenso eine abgelaufene Spule, und die Crew kann ihn kappen. Stößt einen Täuschkörper aus und bläst im Notfall die Hauptzellen an (mit voller Pressluft dreimal).
|
||||
- **Anlage und Bootsbetrieb:** ein besetztes Boot taucht nie von selbst auf, schnorchelt nicht und funkt nicht von selbst. Die Batterie entlädt sich mit Fahrt und Bordnetz; unter 20 % warnt das Bootslog, eine leere Batterie begrenzt die Fahrt auf das, was die Anlage noch liefert (eine AIP-Anlage übernimmt die Last weiterhin selbst). **Schnorcheln** betreibt die Diesel auf Schnorcheltiefe und lädt die Batterie, höchstens 6 kn; tieferes Tauchen schließt das Kopfventil. Die laufenden Diesel sind laut: +12 dB abgestrahlter Pegel, ein niedrigerer Stillefaktor und zwei Zündlinien bei 50 und 100 Hz in der LOFAR-Signatur des Boots (auch bei KI-Booten). **Schleichfahrt** begrenzt das Boot auf 5 kn und macht es so leise wie ein lauerndes KI-Boot. **Auf Grund legen** stoppt das Boot 3 m über dem Grund, wo das Wasser nicht tiefer als die Tauchtiefe ist: leise und ohne Drift; jeder Fahrt- oder Tiefenbefehl hebt ab. Vor Land oder einer Untiefe stoppt das Boot, statt auszuweichen, und das Log warnt bei wenig Wasser unter dem Kiel.
|
||||
@@ -112,7 +112,8 @@ Eine zweite Crew kann den Gegner spielen. Das Boot hat sechs Stationen: Führung
|
||||
- **Leckwehr:** die Maschine zeigt unter **Leckwehr** (Karte im Browser mit den Abteilungen und einer Tabelle, auf der uConsole Maschine Seite 4 **Leckwehr**) den Druckkörper in sechs Abteilungen: Bugraum, Zentrale, Wohnraum, Batterieraum, Maschinenraum und Heckraum. Ein Treffer auf das besetzte Boot schlägt ein Leck in die getroffene Abteilung (1,5 % Leck je % Trefferschaden, höchstens ein volles Leck; ab 50 % Schaden auch in die Nachbarabteilung mit halbem Leck) und kann dort einen Brand auslösen (Wahrscheinlichkeit = Schaden / 150); ein Ermüdungsriss unter der Testtiefe öffnet ein kleines Leck. Durch ein volles Leck dringen in 100 m Tiefe 40 kg/s ein, mit der Wurzel der Tiefe mehr; über halbvoll läuft das Wasser in offene Nachbarabteilungen über (20 kg/s) und erstickt einen Brand. Ein Brand wächst in 2 min zum Vollbrand und greift dann durch offene Schotten über; Seewasser im Batterieraum (ab 2 t) setzt Chlorgas frei, das durch offene Schotten zieht und erst langsam abzieht, wenn die Batterie trocken ist. Wasser im Batterieraum (ab 5 t) oder ein Brand dort legen den **Strom** lahm: der Motor steht (keine Fahrt, also halten die Tiefenruder ein schweres Boot nicht), Trimmpumpen, Kompressor und elektrische Lenzpumpen stehen still. **Schotten schließen** hält Wasser, Brand und Gas in der Abteilung und erstickt einen Brand dort in 3 min. Zwei **Leckwehrtrupps** gehen durchs Boot (8 s je Abteilung) und **dichten ein Leck ab** (ein volles in 60 s), **lenzen** (30 kg/s, ohne Strom ein Viertel von Hand) oder **löschen einen Brand** (einen Vollbrand in 60 s); im Gas arbeiten sie halb so schnell, und in einer zu 90 % vollen Abteilung können sie nur lenzen. Eine Abteilung, die zur Hälfte voll Wasser ist, halb brennt oder halb vergast ist, legt ihre Station lahm: der Bugraum die Torpedorohre, die Zentrale Mast und Sehrohr, der Maschinenraum die Diesel, der Heckraum die halbe Höchstfahrt. Das Wasser ist Gewicht und Moment für den Trimm (siehe oben); ein Boot, das unter die 1,5-fache Testtiefe sinkt, wird zerdrückt. Das Log meldet Lecks, Brände, abgedichtete Lecks, gelöschte Brände, vollgelaufene Abteilungen, Chlorgas und den Strom.
|
||||
- **Besatzung:** das Boot hat einen eigenen Wachplan mit den Regeln der Fregatte (siehe Schadensabwehr, Besatzung und Wachen): drei Wachen, Ermüdung, Gefechtsstationen und Moral. Maschine und Führung befehlen Gefechtsstationen (`B` auf der uConsole, eine Taste in der Leckwehr-Karte im Browser) und lösen die Wache ab (`M` auf der Seite Leckwehr oder die Taste). Die Moral steigt, wenn ein Schiff sinkt, und sinkt mit je 10 % Rumpfschaden. Eine müde Besatzung hört am Sonar später, sichtet durch das Sehrohr später und ihre Leckwehrtrupps dichten und löschen langsamer (die Pumpen sind Maschinen und behalten ihre Leistung).
|
||||
- **Lagebild:** ein gehörter Aktivping oder Torpedo wird mit der Peilung protokolliert, die das Boot selbst gemessen hat (einige Grad ungenau), und mit seinem Alter in den Alarmen angezeigt. Auf Sehrohrtiefe lässt sich der **Mast** ausfahren; sein ESM meldet dann die Radare, die das Boot überstreichen, mit Peilung (Log und ESM-Liste), und beim Tieferkommen fährt der Mast selbst ein. Mit ausgefahrenem Mast zeigt die Seite **Sehrohr** (Führung Seite 3, Mast & ESM Seite 2; `P` fährt an beiden den Mast aus) das Okular: Himmel und See im Licht der Stunde, den mit der See bewegten Horizont, eine Skala rechtweisender Peilungen und ein Fadenkreuz; das Rohr schwenkt in 2°-Schritten (`←`/`→`, `Umschalt`: 10°). Alles, was die Optik im Kontrastmodell des Fregattenausgucks bei 2,5 m Augenhöhe ausmacht (Tag/Nacht, Mond, Sicht, Seegang, Land im Weg), erscheint als Silhouette und als reine Peilungs-**Sichtung** mit grober Klasse (Kriegsschiff, Handelsschiff, Fahrzeug, Luftfahrzeug, Torpedolaufbahn) und scheinbarer Länge; das Log meldet jede neue Sichtung. `Enter` liest das **Stadimeter** an der Sichtung unter dem Fadenkreuz ab: die Entfernung folgt aus der scheinbaren Länge und der angenommenen Rumpflänge der Klasse (130 m für ein Kriegsschiff oder ein nicht erkanntes Fahrzeug, 150 m für ein Handelsschiff), ein nicht erkanntes oder bugwärts stehendes Ziel misst sich also zu weit; die Ablesung ist ±25 % und wird für 120 s zu einem VISUAL-Fix am Sonarkontakt des Boots auf dieses Ziel, für einen Schuss nutzbar wie ein Ping-Fix. Luftfahrzeuge und Laufbahnen lassen sich nicht messen. Die kartierte Küste steht auf dem Horizont des Sehrohrs, so weit seine niedrige Optik Land sieht (Hügel mit 25 bis 70 m angenommen). Die Führung kann auch ohne Sonarbediener pingen und eine BT-Messung nehmen. Die Karte zeigt das Schussfeld der Rohre, wo sie nicht rundum schießen, und das vom Sonar zugewiesene Ziel ist für den Schuss vorausgewählt.
|
||||
- **Mast & ESM:** mit ausgefahrenem Mast auf Sehrohrtiefe hört die ESM-Antenne des Boots (3 m über Wasser) einmal pro Sekunde die Radare ringsum: das der Fregatte, anderer Schiffe und von Flugzeugen innerhalb des Radarhorizonts, über Land nur, wo die Küste die Linie nicht verdeckt. Jede Erfassung trägt die gemessene Peilung (±4°), Band, Trägerfrequenz, PRF, Modulation und Empfangspegel, nie die Identität oder Position des Senders. Die Crew führt eine **Emitterliste** (`E1`, `E2` …) über mehrere Mastperioden: eine Erfassung gehört zu einem Emitter, wenn Peilung, Band und Signalform passen (ein frequenzagiles Radar nur nach Peilung und Band), und die Liste vergisst einen Emitter 30 Minuten nach seiner letzten Erfassung. Die **Einstufung** ist die Annotation der Crew aus der Bibliothek: die Emitter, deren veröffentlichte Frequenz- und PRF-Bereiche die Messung enthalten, ungewichtet, wie an der ELOKA der Fregatte ohne Assistenz; die Wahl legt die Leistungsklasse für die **Entfernungsschätzung** aus dem Pegel fest (ohne Einstufung die kürzeste Entfernung, die die Bibliothek zulässt). Alle 30 s behält jeder Emitter eine **Peilung** von der eigenen Position des Boots (20 Minuten); die Karte zeigt die letzten Peillinien, und sobald die eigene Fahrt die Peilung um mindestens 8° gedreht hat, ist die **Kreuzpeilung** ihr bester Schnittpunkt mit einer 95-%-Fehlerellipse, die einen seit jeder Linie bis zu 8 kn versetzten Sender einrechnet (eine schnelle Fregatte ergibt meist keine; eine Kreuzpeilung, deren Linien nicht zusammenpassen, wird markiert). Der **Stärketrend** zeigt steigend, gleichbleibend oder fallend über fünf Minuten. Die **Mastwarnung** („Radar kann Mast sehen“) kommt, wenn die geschätzte Entfernung eines erfassten Suchradars innerhalb der Entfernung liegt, auf der ein Seeraumradar bei diesem Seegang und Regen einen ausgefahrenen Mast sieht (der Wert der Wetterseite); die **empfohlene Mastzeit** ist 60 s bei ruhiger See, bis zu 300 s, wenn die Seegangsechos den Mast verbergen, und 20 s unter dieser Warnung, und das Log meldet, wenn sie überschritten ist. Ab Seegang 3 überspülen Wellen die Antenne, und manche Durchläufe hören nichts. Die Karte Mast & ESM im Browser hat die Rose, die Emittertabelle und die Auswertung des gewählten Emitters; **In den Plot übernehmen** trägt die Kreuzpeilung (Markierung und Fehlerkreis) oder sonst die letzte Peillinie in den Plot des Boots ein. Auf der Seite Mast & ESM der uConsole wählen `↑`/`↓` einen Emitter, `←`/`→` schalten seine Einstufung aus der Bibliothek weiter und `Enter` übernimmt ihn in den Plot.
|
||||
- **Mast & ESM:** mit ausgefahrenem Mast auf Sehrohrtiefe hört die ESM-Antenne des Boots (3 m über Wasser) einmal pro Sekunde die Radare ringsum: das der Fregatte, anderer Schiffe und von Flugzeugen innerhalb des Radarhorizonts, über Land nur, wo die Küste die Linie nicht verdeckt. Der Hubschrauber der Fregatte strahlt sein X-Band-Suchradar, solange er fliegt und nicht taucht (Antenne in 150 m), der Seefernaufklärer sein frequenzagiles Suchradar, solange die OPZ es eingeschaltet hat. Jede Erfassung trägt die gemessene Peilung (±4°), Band, Trägerfrequenz, PRF, Modulation und Empfangspegel, nie die Identität oder Position des Senders. Die Crew führt eine **Emitterliste** (`E1`, `E2` …) über mehrere Mastperioden: eine Erfassung gehört zu einem Emitter, wenn Peilung, Band und Signalform passen (ein frequenzagiles Radar nur nach Peilung und Band), und die Liste vergisst einen Emitter 30 Minuten nach seiner letzten Erfassung. Die **Einstufung** ist die Annotation der Crew aus der Bibliothek: die Emitter, deren veröffentlichte Frequenz- und PRF-Bereiche die Messung enthalten, ungewichtet, wie an der ELOKA der Fregatte ohne Assistenz; die Wahl legt die Leistungsklasse für die **Entfernungsschätzung** aus dem Pegel fest (ohne Einstufung die kürzeste Entfernung, die die Bibliothek zulässt). Alle 30 s behält jeder Emitter eine **Peilung** von der eigenen Position des Boots (20 Minuten); die Karte zeigt die letzten Peillinien, und sobald die eigene Fahrt die Peilung um mindestens 8° gedreht hat, ist die **Kreuzpeilung** ihr bester Schnittpunkt mit einer 95-%-Fehlerellipse, die einen seit jeder Linie bis zu 8 kn versetzten Sender einrechnet (eine schnelle Fregatte ergibt meist keine; eine Kreuzpeilung, deren Linien nicht zusammenpassen, wird markiert). Der **Stärketrend** zeigt steigend, gleichbleibend oder fallend über fünf Minuten. Die **Mastwarnung** („Radar kann Mast sehen“) kommt, wenn die geschätzte Entfernung eines erfassten Suchradars innerhalb der Entfernung liegt, auf der ein Seeraumradar bei diesem Seegang und Regen einen ausgefahrenen Mast sieht (der Wert der Wetterseite); die **empfohlene Mastzeit** ist 60 s bei ruhiger See, bis zu 300 s, wenn die Seegangsechos den Mast verbergen, und 20 s unter dieser Warnung, und das Log meldet, wenn sie überschritten ist. Ab Seegang 3 überspülen Wellen die Antenne, und manche Durchläufe hören nichts. Die Karte Mast & ESM im Browser hat die Rose, die Emittertabelle und die Auswertung des gewählten Emitters; **In den Plot übernehmen** trägt die Kreuzpeilung (Markierung und Fehlerkreis) oder sonst die letzte Peillinie in den Plot des Boots ein. Auf der Seite Mast & ESM der uConsole wählen `↑`/`↓` einen Emitter, `←`/`→` schalten seine Einstufung aus der Bibliothek weiter und `Enter` übernimmt ihn in den Plot.
|
||||
- **Funkraum:** die Flottenführung sendet alle 10 Minuten einen U-Boot-Rundspruch (Rundspruch 0 bei Missionsbeginn, dann 1, 2 …) und wiederholt ihn bis zum nächsten. Das Boot nimmt ihn nur mit klarer Antenne auf, das heißt mit ausgefahrenem Mast auf Sehrohrtiefe, und erst nach 20 s ununterbrochenem Empfang innerhalb der Sendezeit dieses Rundspruchs; ein Boot, das tief bleibt, verpasst Rundsprüche und bekommt nur den jeweils neuesten. In 60 % der Fälle enthält ein Rundspruch die **Feindlagemeldung** der Führung zur Fregatte: einen 5 bis 15 Minuten alten Standort mit 4 sm Fehlerkreis und gerundetem Kurs und Fahrt. Die Karte zeigt ihn als gelben Kreis mit seinem Alter, und die Funkseite nennt Peilung und Entfernung vom Boot. Eine **Lagemeldung** (`Enter` im Funkraum oder der Knopf im Browser) sind 20 s Kurzwellensendung mit klarer Antenne. Währenddessen kann der KW-Peiler der Fregatte das Boot peilen (Funkraum HF/DF), und Mast einfahren bricht sie ab. Die Führung bestätigt eine Meldung im nächsten Rundspruch und fügt dann immer eine schärfere Feindlagemeldung (2 sm) bei. Die Funkseite und die Karte Funkraum im Browser zeigen Antenne, Rundspruchnummer und Zeit bis zum nächsten, Fortschritt von Aufnahme und Sendung, gesendete Meldungen, die letzte Feindlage und das Funktagebuch (12 Einträge, wird gespeichert).
|
||||
- **Gegenortung und Ausweichen:** der Sonarraum des Boots unterscheidet einen aufgefangenen Aktivping an seiner Frequenz als Rumpfsonar der Fregatte, Tauchsonar eines Hubschraubers oder Sonoboje und protokolliert ihn mit gemessener Peilung und Empfangspegel (dB re 1 µPa, aus Quellpegel, Ausbreitung und Absorption); eine pingende Boje im Umkreis von 12 sm hört nur ein bemanntes Boot. Eine Boje, die im Umkreis von 4 sm ins Wasser fällt, wird mit grober Peilung (±6°) gehört, ein Torpedoalarm bleibt mit seiner Peilung stehen. Die Seite **Bedrohung** (Führung Seite 4 und Navigation Seite 2; im Browser die Karte Bedrohung an Führung und Navigation) zählt die Pings der letzten 5 Minuten nach Quelle, nennt den lautesten Pegel mit Bewertung (ab 150 dB hat der Pinger wahrscheinlich ein Echo) und den Trend der letzten beiden Pings (steigend: er kommt näher), Splashes, Torpedoalarme und ESM-Emitter, die eigene Signatur (Tiefe gegen die gemessene Schicht, Eigenlärm: kavitierend, schnorchelnd, laut, mäßig oder leise, der Mast) und die Empfehlungen der Crew. Die Karte zeichnet jede Auffassung der letzten 2 Minuten als gestrichelten Peilstrahl. **Ausweichen** (`I` an Führung oder Navigation, im Browser die Schaltfläche **Ausweichen**) gibt den Ausweichbefehl der Crew zum frischesten Alarm (unter 2 Minuten): gegen einen Torpedo die kleinere Wende, die ihn 150° achteraus legt, Höchstfahrt und ein Täuschkörper; gegen Aktivsonar das Heck zum Pinger, Schleichfahrt mit 3 kn. Beide wechseln durch die gemessene Schicht (nach unten, wenn das Boot darüber oder darin steht, nach oben, wenn es darunter steht), ohne BT gehen sie auf Tiefe; ein aufgesetztes Boot hebt zuerst ab. Der Befehl durchläuft dieselben Prüfungen wie die Einzeltasten, und die Seite zeigt ihn, bevor er gegeben wird. Das Bild ist nur Anzeige und wird nicht gespeichert.
|
||||
- **Navigation und Plot:** die Maschine hat Maschinentelegrafen-Knöpfe, und Führung und Navigation teilen den eigenen Fettstift-Plot des Boots (Markierungen, Lineale, Peillinien, Kreise, Koppellinien); die Fregatte sieht ihn nie, und der Plot des Boots wird nicht gespeichert. Die Navigation zeigt das Wasser unter dem Kiel und prüft die Seekarte entlang des Sollkurses bis 5 sm: Land oder ein Grund flacher als das Boot wird als Hindernis voraus gemeldet, im Log und als Warnung. Es zählt nur die kartierte Geografie; andere Fahrzeuge sind nicht Teil der Prüfung.
|
||||
- **U-Boot-Sonar:** derselbe Sonararbeitsplatz wie auf der Fregatte (Breitband, LOFAR, DEMON, TMA, Aktivechos, Klassifizierung, Horch-Audio), aber das Rumpfsonar horcht in der eigenen Tauchtiefe, die Sprungschicht wirkt also für und gegen die Crew. Es gibt keine Schleppantenne und keine Freigabe an eine OPZ. Ein Aktivping liefert Echos und wird von der Fregatte gehört.
|
||||
@@ -124,18 +125,18 @@ Eine zweite Crew kann den Gegner spielen. Das Boot hat sechs Stationen: Führung
|
||||
|
||||
Jedes neue Spiel fragt zuerst **Welche Einheit spielst du?**: *Fregatte F-217* oder *Feindliches U-Boot* (`Auf`/`Ab` oder `1`/`2`, `Enter`; die letzte Wahl ist vorausgewählt, `--play-sub` wählt das U-Boot vor). Außerhalb einer Mission ändert auch Optionen (`F10`) Seite 2 **uConsole spielt** die Wahl, etwa vor dem Laden eines Spielstands. Mit dem U-Boot führt der uConsole das feindliche Boot statt der Fregatte. Die Fregatte wird dann über Remote Crew (`F9`) aus den Browsern besetzt oder fährt mit Autocrew. Der uConsole zeigt nur das Lagebild des Boots; Banner, Ereignislog, Soundeffekte, Plot und Tooltips der Fregatte erscheinen nie, und Trackball- und Telegraphenbedienung der Fregatte sind gesperrt. Die Seite lässt sich nur außerhalb einer Mission wechseln; die Wahl gilt nur für diesen Programmstart und wird nie gespeichert, jeder Start beginnt also mit der Fregatte.
|
||||
|
||||
Die obere Leiste zeigt die sechs Stationen des Boots als Reiter: `1` Führung, `2` Sonar, `3` Waffen, `4` Maschine, `5` Mast & ESM, `6` Navigation (`Tab` oder ein Klick auf den Reiter wechselt). Jede Befehlstaste wirkt nur an der Station, zu der der Befehl gehört, wie im Browser; sonst nennt ein Banner die richtige Station. Browser können gleichzeitig die übrigen Stationen des Boots besetzen; eine Station, die ein Browser hält, ist in der oberen Leiste markiert und wird nicht vom uConsole bedient. Jede Station außer dem Sonarraum ist aufgebaut wie die Brücke: links die Seekarte (bekannte Geografie, der eigene Plot des Boots, die ESM-Peillinien und Kreuzpeilungen, das eigene Boot mit Sollkurs und Fahrtvektor, die Peilstriche der eigenen Sonarkontakte bzw. ihr Symbol bei aktuellem Ping- oder TMA-Fix, die eigenen Torpedos `T1`…, ein begrenztes Schussfeld der Rohre), rechts die Station mit Bedrohungsleiste (Torpedoalarm und gehörtes Aktivsonar mit gemessener Peilung, Rumpfschaden, Kavitation, schwache Batterie, ESM-Radarerfassung) und die Seite der Station. Die **Führung** hat vier Seiten, die **Maschine** vier, **Mast & ESM** zwei und **Navigation** zwei (die Taste der Station erneut oder `Bild auf`/`Bild ab`). Die zweite Seite der Maschine, **Vorräte**, zeigt Energie, Ausdauer und Luft; `R` wechselt die Laderate, `A` setzt einen Absorbersatz ein und `O` zündet eine O2-Kerze. Ihre dritte Seite **Zellen** zeigt das Schnittbild, Hauptzellen und Pressluft, die Zellen mit ihren Sollwerten, Gewicht, Trimmwinkel, Drift ohne Tiefenruder, Wassereinbruch und Pumpen; `↑`/`↓` lenzen oder fluten die Regelzelle, `←`/`→` pumpen Trimmwasser nach achtern oder vorn und `Z` schaltet die Trimmautomatik. Ihre vierte Seite **Leckwehr** zeigt die Abteilungen (Wasser, Leck, Brand, Gas, geschlossene Schotten, Trupps), die Tabelle der Abteilungen, den Strom und beide Trupps; `↑`/`↓` wählen eine Abteilung, `←`/`→` eine Aufgabe, `Enter` schickt Trupp 1 und `Umschalt+Enter` Trupp 2 mit dieser Aufgabe dorthin, und `I` schließt oder öffnet die Schotten der Abteilung. **Navigation** (Seite und Station) zeigt Kurs und Tiefe, das Wasser unter dem Kiel und ein kartiertes Hindernis voraus, Fahrt, Eigenlärm, Batterie und die aktiven Betriebsarten sowie die Wassersäule unter dem Boot: Bootstiefe, befohlene Tiefe, sichere Tiefe und Grund; die Sprungschicht erscheint dort erst nach einer eigenen BT-Messung (`E` am U-Boot-Sonar). **Waffen & Kontakte** (Seite und Station Waffen) zeigt Feuerbereitschaft, Torpedos, klare Rohre, Nachladen, Täuschkörper, Notanblasen und die eigenen Sonarkontakte (Peilung, Entfernung falls bekannt, und Güte in Prozent: der bessere Wert aus Signalgüte und Spurvertrauen, 100 % ist ein sicherer Kontakt). Die **Maschine** zeigt Fahrt, Eigenlärm, Batterie, die Betriebsarten und die Telegrafenstufen; **Mast & ESM** zeigt die Mastzeit, die Rose, die Emitterliste und den gewählten Emitter (Signal, Pegel und Trend, Kreuzpeilung, Einstufung); ihre zweite Seite und die dritte der Führung ist das **Sehrohr** (Okular, Sichtlinie, Licht und die Sichtungsliste; `←`/`→` schwenken, `Enter` Stadimeter). Unten stehen Bootslog und Telemetrie des Boots, als Leiste oder Statuszeile wie in den Optionen eingestellt; Befehle, Schüsse und Täuschkörper werden dort protokolliert.
|
||||
Die obere Leiste zeigt die sieben Stationen des Boots als Reiter: `1` Führung, `2` Sonar, `3` Waffen, `4` Maschine, `5` Mast & ESM, `6` Navigation, `7` Funkraum (`Tab` oder ein Klick auf den Reiter wechselt). Jede Befehlstaste wirkt nur an der Station, zu der der Befehl gehört, wie im Browser; sonst nennt ein Banner die richtige Station. Browser können gleichzeitig die übrigen Stationen des Boots besetzen; eine Station, die ein Browser hält, ist in der oberen Leiste markiert und wird nicht vom uConsole bedient. Jede Station außer dem Sonarraum ist aufgebaut wie die Brücke: links die Seekarte (bekannte Geografie, der eigene Plot des Boots, die ESM-Peillinien und Kreuzpeilungen, das eigene Boot mit Sollkurs und Fahrtvektor, die Peilstriche der eigenen Sonarkontakte bzw. ihr Symbol bei aktuellem Ping- oder TMA-Fix, die eigenen Torpedos `T1`…, ein begrenztes Schussfeld der Rohre), rechts die Station mit Bedrohungsleiste (Torpedoalarm und gehörtes Aktivsonar mit gemessener Peilung, Rumpfschaden, Kavitation, schwache Batterie, ESM-Radarerfassung) und die Seite der Station. Die **Führung** hat vier Seiten, die **Maschine** vier, **Mast & ESM** zwei und **Navigation** zwei (die Taste der Station erneut oder `Bild auf`/`Bild ab`). Die zweite Seite der Maschine, **Vorräte**, zeigt Energie, Ausdauer und Luft; `R` wechselt die Laderate, `A` setzt einen Absorbersatz ein und `O` zündet eine O2-Kerze. Ihre dritte Seite **Zellen** zeigt das Schnittbild, Hauptzellen und Pressluft, die Zellen mit ihren Sollwerten, Gewicht, Trimmwinkel, Drift ohne Tiefenruder, Wassereinbruch und Pumpen; `↑`/`↓` lenzen oder fluten die Regelzelle, `←`/`→` pumpen Trimmwasser nach achtern oder vorn und `Z` schaltet die Trimmautomatik. Ihre vierte Seite **Leckwehr** zeigt die Abteilungen (Wasser, Leck, Brand, Gas, geschlossene Schotten, Trupps), die Tabelle der Abteilungen, den Strom und beide Trupps; `↑`/`↓` wählen eine Abteilung, `←`/`→` eine Aufgabe, `Enter` schickt Trupp 1 und `Umschalt+Enter` Trupp 2 mit dieser Aufgabe dorthin, und `I` schließt oder öffnet die Schotten der Abteilung. **Navigation** (Seite und Station) zeigt Kurs und Tiefe, das Wasser unter dem Kiel und ein kartiertes Hindernis voraus, Fahrt, Eigenlärm, Batterie und die aktiven Betriebsarten sowie die Wassersäule unter dem Boot: Bootstiefe, befohlene Tiefe, sichere Tiefe und Grund; die Sprungschicht erscheint dort erst nach einer eigenen BT-Messung (`E` am U-Boot-Sonar). **Waffen & Kontakte** (Seite und Station Waffen) zeigt Feuerbereitschaft, Torpedos, klare Rohre, Nachladen, Täuschkörper, Notanblasen und die eigenen Sonarkontakte (Peilung, Entfernung falls bekannt, und Güte in Prozent: der bessere Wert aus Signalgüte und Spurvertrauen, 100 % ist ein sicherer Kontakt). Die **Maschine** zeigt Fahrt, Eigenlärm, Batterie, die Betriebsarten und die Telegrafenstufen; **Mast & ESM** zeigt die Mastzeit, die Rose, die Emitterliste und den gewählten Emitter (Signal, Pegel und Trend, Kreuzpeilung, Einstufung); ihre zweite Seite und die dritte der Führung ist das **Sehrohr** (Okular, Sichtlinie, Licht und die Sichtungsliste; `←`/`→` schwenken, `Enter` Stadimeter). Der **Funkraum** hat eine Seite: Antenne, Rundspruchplan, Fortschritt von Aufnahme und Sendung, die letzte Feindlage der Führung und das Funktagebuch; `Enter` sendet eine Lagemeldung und `P` fährt den Mast aus oder ein. Unten stehen Bootslog und Telemetrie des Boots, als Leiste oder Statuszeile wie in den Optionen eingestellt; Befehle, Schüsse und Täuschkörper werden dort protokolliert.
|
||||
|
||||
<!-- keys:uboot -->
|
||||
|
||||
### Nicht modelliert {#ref-opfor-limits}
|
||||
|
||||
- Das besetzte Boot funkt nicht und empfängt nichts; es gibt keine Kontaktmeldung von der Führung an Land.
|
||||
- Der Funkraum kennt nur den Rundspruchplan der Führung und Lagemeldungen: keine Befehle oder Nachrichten der Führung, kein Empfang in der Tiefe (kein VLF/ELF), keine Kurzsignale und keine anderen Einheiten im Netz; die Feindlage der Führung ist modellierte Aufklärung, kein eigener Sensor.
|
||||
- Die Leckwehr kennt sechs Abteilungen und zwei Trupps: keine getrennten Schäden an Druck- und Außenhülle, keine Verletzten, keine Ausbreitung von Rauch oder Hitze, kein Brand in den Luftvorräten und kein Sauerstoffverbrauch durch Feuer; der Gesamtschaden des Boots (Lärm, Höchstfahrt, Untergang bei 100 %) summiert sich weiter aus Treffern, und die KI-Boote haben nur diesen Wert.
|
||||
- Das Trimmmodell kennt ein Gewicht und ein Moment: keinen Effekt freier Oberflächen, keine Kompressibilität des Druckkörpers mit der Tiefe und keine eigene Schnelltauchzelle; das Boot taucht nicht ganz auf. Proviant und Frischwasser gehen nicht aus.
|
||||
- Ein ausgefahrener Mast oder Schnorchelkopf erscheint auf dem Fregattenradar nur als bloßer Punkt (siehe Kapitel OPZ).
|
||||
- Das ESM des Boots hört keine Radare anderer U-Boote und keine Flugkörpersucher; es hat keine gewichtete Bibliotheksanalyse, keine Messung der Umlaufzeit und keine Bewegungsanalyse eines Senders (die Kreuzpeilung nimmt einen langsamen Sender an).
|
||||
- Das ESM des Boots hört kein Radar am Hubschrauber der Fregatte oder am Seefernaufklärer (die Bibliothek hat keinen Emitter für sie).
|
||||
- Die Bibliothek des Boots zeigt nur die ersten Kandidaten in Katalogreihenfolge; bei einem X-Band-Suchradar mit vielen möglichen Treffern (dem des Hubschraubers) kann der richtige Eintrag außerhalb der Liste liegen.
|
||||
- Die Kampagne wird nur von der Fregatte aus gespielt; spielt die uConsole das Boot, hat die Fregatte keine selbständig jagende Crew (ihre Autocrew reagiert nur), daher wartet eine Solo-Kampagne für das Boot darauf.
|
||||
- Das Sehrohr hat eine Vergrößerung und keine Kamera; Sichtungen tragen keine Identifikation über die grobe Klasse hinaus, und das Stadimeter nimmt eine Klassenlänge statt einer Masthöhe an.
|
||||
|
||||
|
||||
@@ -101,9 +101,9 @@ Submarine physics: the hull accelerates toward an ordered speed (no instant spri
|
||||
|
||||
## Crewed opposing submarine (Remote Crew) {#ref-opfor}
|
||||
|
||||
A second crew can play the enemy. The boat has six stations: Command, Sonar, Weapons, Engine room, Mast & ESM and Navigation; a browser takes them like the frigate's (`F9`). As long as one of them is held, the living hostile submarine with the lowest number follows only that crew's orders; when the roles are released or the host revokes them, the AI takes the boat back from where it is. A save keeps the crew's orders, modes, mast, wires, plot, alarm bearings and ESM picture; after a load the boat runs its last orders and waits up to ten minutes for its crew to take the stations again (every boat station is re-leased) before the AI takes it back. A browser holds roles of one side only (frigate or submarine), never both; the lobby first asks which unit it plays. In solo mode the one browser holds all nine frigate stations, or with **Play the submarine** in the host bar all six boat stations (and back with **Play the frigate**).
|
||||
A second crew can play the enemy. The boat has seven stations: Command, Sonar, Weapons, Engine room, Mast & ESM, Navigation and Radio room; a browser takes them like the frigate's (`F9`). As long as one of them is held, the living hostile submarine with the lowest number follows only that crew's orders; when the roles are released or the host revokes them, the AI takes the boat back from where it is. A save keeps the crew's orders, modes, mast, wires, plot, alarm bearings, ESM picture and radio log; after a load the boat runs its last orders and waits up to ten minutes for its crew to take the stations again (every boat station is re-leased) before the AI takes it back. A browser holds roles of one side only (frigate or submarine), never both; the lobby first asks which unit it plays. In solo mode the one browser holds all nine frigate stations, or with **Play the submarine** in the host bar all six boat stations (and back with **Play the frigate**).
|
||||
|
||||
- **Stations:** *Command* orders course, speed and depth, lies on the bottom, pings and takes a BT, and sees the whole boat. *Navigation* orders course and depth, keeps the boat's plot and watches keel and obstacles. *Engine room* runs the telegraph, snorkel, silent running, the trim and the emergency blow and watches battery and noise. *Mast & ESM* raises the mast and watches ESM and alarms; Command may raise it too, to look through the periscope. *Weapons* fires, guides the wires and launches decoys. *Sonar* is the boat's sonar room. Each order is accepted only from the station that owns it.
|
||||
- **Stations:** *Command* orders course, speed and depth, lies on the bottom, pings and takes a BT, and sees the whole boat. *Navigation* orders course and depth, keeps the boat's plot and watches keel and obstacles. *Engine room* runs the telegraph, snorkel, silent running, the trim and the emergency blow and watches battery and noise. *Mast & ESM* raises the mast and watches ESM and alarms; Command may raise it too, to look through the periscope. *Weapons* fires, guides the wires and launches decoys. *Sonar* is the boat's sonar room. The *Radio room* copies HQ's broadcast and sends situation reports; it may raise the mast for its antenna. Each order is accepted only from the station that owns it.
|
||||
- **Depth steps and displays:** Command and Navigation order depth in one step: periscope depth (15 m, keeps the mast usable), snorkel depth (boats with a snorkel), above or below the layer (15 m above / 30 m below; only after the boat's own BT measurement, since the crew knows the layer only from it) and deep (the safe depth over the charted bottom). On the uConsole these are `U`, `Shift+U`, `J`, `Shift+J` and `H`. The browser shows the water column (surface, periscope depth, measured layer, ordered and safe depth, seabed, the boat and its dive direction), large readouts for course, speed, depth and battery with coloured mode and alarm chips, and an ESM rose with each emitter's strobe and the ping and torpedo alarm bearings; the uConsole's Mast & ESM page has the same rose. Mast, snorkel, silent running and lying on the bottom have separate on and off buttons.
|
||||
- **Orders and weapons:** the boat follows course, speed and depth orders within its turn, depth and acceleration limits; telegraph steps (stop, 3, 6, 10, 15 kn, maximum) set the speed quickly. Fires a torpedo down a sonar contact's measured bearing, with its ping fix or TMA solution while current, or down a free bearing with an optional range; firing needs a ready tube and the target inside the tube arc. The crew sets the run depth (5-300 m, otherwise a shallow default) and fires one torpedo or two in a ±4° spread, each with its own datum. Every crew torpedo runs on a wire: the crew can move its datum (bearing and distance from the boat) and the wire turns it onto the new datum until its seeker acquires; faster than 10 kn or turning harder than 1.5°/s for 5 s breaks the wire, as does running out of either spool, and the crew can cut it. Launches a decoy and blows main ballast in an emergency (three times on a full air store).
|
||||
- **Plant and boat modes:** a crewed boat never goes up, snorkels or calls home by itself. The battery drains with speed and hotel load; below 20 % the log warns, and an empty battery limits the speed to what the plant can serve (an AIP plant still takes over the load by itself). **Snorkel** runs the diesels at snorkel depth and charges the battery, at most 6 kn; diving deeper shuts the head valve. The running diesels are loud: +12 dB radiated level, a lower quiet factor and two firing lines at 50 and 100 Hz in the boat's LOFAR signature (AI boats too). **Silent running** limits the boat to 5 kn and makes it as quiet as a lurking AI boat. **Lie on bottom** stops the boat 3 m above the seabed where the water is no deeper than test depth: silent and no drift; any speed or depth order lifts off. The boat stops short of land or a seamount instead of turning away, and the log warns in shallow water.
|
||||
@@ -112,7 +112,8 @@ A second crew can play the enemy. The boat has six stations: Command, Sonar, Wea
|
||||
- **Damage control:** the engine room's **Damage control** (browser card with the compartments and a table, uConsole Engine room page 4 **Damage**) divides the pressure hull into six compartments: bow room, control room, quarters, battery room, engine room and stern room. A hit on the crewed boat holes the compartment it strikes (a leak of 1.5 % per % of hit damage, up to a full hole; from 50 % damage the neighbour too, with half the leak) and may start a fire there (chance = damage / 150); a fatigue crack below test depth opens a small leak. Water comes in at 40 kg/s through a full hole at 100 m, growing with the square root of depth; above half a compartment it spills into open neighbours (20 kg/s) and smothers a fire. A fire grows to full in 2 min and then spreads through open bulkheads; seawater in the battery room (from 2 t) gives off chlorine gas that drifts through open bulkheads and clears slowly once the battery is dry. Water in the battery room (from 5 t) or a fire there cuts the **power**: the motor stops (no way on, so the hydroplanes do not hold a heavy boat), and the trim pumps, compressor and electric bilge pumps stand still. **Shutting the bulkheads** of a compartment keeps water, fire and gas in it and starves a fire there in 3 min. Two **damage-control teams** walk the boat (8 s per compartment) and **seal a leak** (a full hole in 60 s), **pump out** (30 kg/s, a quarter by hand without power) or **fight a fire** (a full fire in 60 s); in gas they work at half rate, and in a compartment 90 % full they can only pump. A compartment half full of water, half on fire or half gassed takes its station out: the bow room the torpedo tubes, the control room the mast and periscope, the engine room the diesels, the stern room half the top speed. The floodwater is weight and moment for the trim (see above); a boat that sinks below 1.5 x test depth is crushed. The log reports leaks, fires, sealed leaks, fires out, flooded compartments, chlorine and power.
|
||||
- **Crew:** the boat has its own watch bill with the frigate's rules (see Damage control, Crew and watches): three watches, fatigue, action stations and morale. The Engine room and Command order action stations (`B` on the uConsole, a button in the browser's Damage control card) and relieve the watch (`M` on the Damage page, or the button). Morale rises when a ship sinks and falls with every 10 % of hull damage. A tired crew hears later on sonar, sights later through the periscope and its damage-control teams seal and fight fire more slowly (the pumps are machinery and keep their rate).
|
||||
- **Situation picture:** an intercepted active ping or torpedo is logged with the bearing the boat's own ears measured (a few degrees off) and shown with its age in the alarms. At periscope depth the **mast** can be raised; its ESM then reports the radars sweeping the boat with bearing (log and ESM list), and the mast lowers by itself when the boat goes deeper. With the mast up the **periscope** page (Command page 3, Mast & ESM page 2; `P` raises the mast at both) shows the eyepiece: sky and sea in the light of the hour, the horizon moving with the sea, a true-bearing scale and a crosshair; the scope trains in 2° steps (`←`/`→`, `Shift`: 10°). Everything the optics make out within the frigate lookout's contrast model at 2.5 m eye height (day/night, moon, visibility, sea state, land in the way) appears as a silhouette and as a bearing-only **sighting** with a coarse class (warship, merchant ship, vessel, aircraft, torpedo wake) and its apparent length; the log reports each new sighting. `Enter` reads the **stadimeter** on the sighting under the crosshair: the range follows from its apparent length and the assumed hull length of the class (130 m for a warship or an unrecognized vessel, 150 m for a merchant), so an unrecognized or bow-on target reads long; the reading is ±25 % and becomes a VISUAL fix on the boat's sonar contact of that target for 120 s, usable for a shot like a ping fix. Aircraft and wakes cannot be ranged. The charted coast stands on the periscope's horizon as far as its low optics see land (hills assumed 25 to 70 m). Command can also ping and take a BT without a sonar operator. The chart shows the tube firing arc where the tubes cannot fire all round, and the sonar room's assigned target is preselected for the shot.
|
||||
- **Mast & ESM:** with the mast up at periscope depth the boat's own ESM antenna (3 m above the water) hears the radars around it once a second: the frigate's, other ships' and aircraft radars inside the radar horizon, over land only where the coast does not block the line. Each intercept carries the measured bearing (±4°), band, carrier frequency, PRF, modulation and received level, never the emitter's identity or position. The crew keeps an **emitter list** (`E1`, `E2` …) across mast periods: an intercept joins an emitter when bearing, band and waveform agree (a frequency-agile radar by bearing and band only), and the list forgets an emitter 30 minutes after its last intercept. **Classification** is the crew's annotation from the library: the emitters whose published frequency and PRF ranges hold the measurement, unranked, as at the frigate's ELOKA without assistance; the choice sets the power class for the **range estimate** from the level (unclassified: the shortest range the library allows). Every 30 s each emitter keeps a **bearing** from the boat's own position (20 minutes); the chart shows the latest bearing lines, and once the boat's own motion has swung the bearing by at least 8°, the **cross-fix** is their best crossing with a 95 % error ellipse that allows for an emitter drifting up to 8 kn since each line (a fast frigate usually gives none; a fix whose lines disagree is marked). The **level trend** reads rising, steady or falling over five minutes. The **mast warning** ("radar can see the mast") comes when a live search radar's estimated range is inside the range at which a surface radar sees a raised mast in this sea and rain (the weather page's value); the **recommended mast time** is 60 s in a calm sea, up to 300 s when sea clutter hides the mast and 20 s under that warning, and the log reports when it is exceeded. From sea state 3 waves wash over the antenna and some scans hear nothing. The browser's Mast & ESM card has the rose, the emitter table and the selected emitter's evaluation; **Transfer to plot** puts the cross-fix (mark and error circle) or else the latest bearing line into the boat's plot. On the uConsole's Mast & ESM page `↑`/`↓` select an emitter, `←`/`→` step through its library classification and `Enter` transfers it to the plot.
|
||||
- **Mast & ESM:** with the mast up at periscope depth the boat's own ESM antenna (3 m above the water) hears the radars around it once a second: the frigate's, other ships' and aircraft radars inside the radar horizon, over land only where the coast does not block the line. The frigate's helicopter radiates its X-band search radar while it flies and is not dipping (antenna at 150 m), the patrol aircraft its frequency-agile search radar while the OPZ has it switched on. Each intercept carries the measured bearing (±4°), band, carrier frequency, PRF, modulation and received level, never the emitter's identity or position. The crew keeps an **emitter list** (`E1`, `E2` …) across mast periods: an intercept joins an emitter when bearing, band and waveform agree (a frequency-agile radar by bearing and band only), and the list forgets an emitter 30 minutes after its last intercept. **Classification** is the crew's annotation from the library: the emitters whose published frequency and PRF ranges hold the measurement, unranked, as at the frigate's ELOKA without assistance; the choice sets the power class for the **range estimate** from the level (unclassified: the shortest range the library allows). Every 30 s each emitter keeps a **bearing** from the boat's own position (20 minutes); the chart shows the latest bearing lines, and once the boat's own motion has swung the bearing by at least 8°, the **cross-fix** is their best crossing with a 95 % error ellipse that allows for an emitter drifting up to 8 kn since each line (a fast frigate usually gives none; a fix whose lines disagree is marked). The **level trend** reads rising, steady or falling over five minutes. The **mast warning** ("radar can see the mast") comes when a live search radar's estimated range is inside the range at which a surface radar sees a raised mast in this sea and rain (the weather page's value); the **recommended mast time** is 60 s in a calm sea, up to 300 s when sea clutter hides the mast and 20 s under that warning, and the log reports when it is exceeded. From sea state 3 waves wash over the antenna and some scans hear nothing. The browser's Mast & ESM card has the rose, the emitter table and the selected emitter's evaluation; **Transfer to plot** puts the cross-fix (mark and error circle) or else the latest bearing line into the boat's plot. On the uConsole's Mast & ESM page `↑`/`↓` select an emitter, `←`/`→` step through its library classification and `Enter` transfers it to the plot.
|
||||
- **Radio room:** fleet headquarters sends a submarine broadcast every 10 minutes (broadcast 0 at mission start, then 1, 2 …) and repeats it until the next one. The boat copies it only with its antenna up, which is the raised mast at periscope depth, and only after 20 s of unbroken reception inside that broadcast's time on the air; a boat that stays deep misses broadcasts and only ever gets the latest. A broadcast carries HQ's **contact report** on the frigate in 60 % of cases: a position 5 to 15 minutes old with an error circle of 4 NM, and its course and speed rounded. On the chart it is drawn as an amber circle with its age, and the radio page gives bearing and range from the boat. A **situation report** (`Enter` at the radio room, or the browser's button) is 20 s of HF transmission with the antenna up. During it the frigate's HF direction finder can take a bearing on the boat (radio room HF/DF), and lowering the mast aborts it. HQ acknowledges a report in its next broadcast and then always adds a sharper contact report (2 NM). The radio page and the browser's Radio room card show the antenna, the broadcast number and time to the next one, copy and transmit progress, the reports sent, the latest contact report and the radio log (12 entries, saved).
|
||||
- **Counter-detection and evasion:** the boat's sonar room tells an intercepted active ping by its frequency as the frigate's hull sonar, a helicopter's dipping sonar or a sonobuoy, and logs it with the measured bearing and the received level (dB re 1 µPa, from source level, spreading and absorption); a buoy pinging within 12 NM is heard only by a crewed boat. A buoy splashing into the water within 4 NM is heard with a rough bearing (±6°), and a torpedo alarm is kept with its bearing. The **Threat** page (Command page 4 and Navigation page 2; the browser's Threat card at Command and Navigation) counts the pings of the last 5 minutes by source, gives the loudest level with its assessment (from 150 dB the pinger probably holds an echo) and the trend of the last two pings (rising: closing in), splashes, torpedo alarms and ESM emitters, the boat's own signature (depth against the measured layer, own noise: cavitating, snorkelling, loud, moderate or quiet, the mast) and the crew's recommendations. The chart draws each intercept of the last 2 minutes as a dashed bearing ray. **Evade** (`I` at Command or Navigation, the browser's **Evade** button) gives the crew's evasion order for the freshest alarm (under 2 minutes): against a torpedo, the smaller turn that puts it 150° on the quarter, full speed and a decoy; against active sonar, the stern to the pinger, silent running at 3 kn. Both cross the measured layer (down when above or in it, up when below it), or go deep without a BT; the boat lifts off the bottom first. The order goes through the same checks as the single keys, and the page shows it before it is given. The picture is display only and not saved.
|
||||
- **Navigation and plot:** the engine room has telegraph buttons, and Command and Navigation share the boat's own grease-pencil plot (marks, rulers, bearing lines, circles, DR lines); the frigate never sees it, and the boat's plot is not saved. The navigation display shows the water under the keel and checks the chart along the ordered course up to 5 NM: land or a seabed shallower than the boat is reported as an obstacle ahead, in the log and as a warning. Only charted geography counts; other vessels are not in the check.
|
||||
- **Submarine sonar:** the same sonar workstation as on the frigate (broadband, LOFAR, DEMON, TMA, active echoes, classification, listening audio), but the hull array listens at the boat's own depth, so the layer works for and against the crew. There is no towed array and no release to an OPZ. An active ping gives echoes and is heard by the frigate.
|
||||
@@ -124,18 +125,18 @@ A second crew can play the enemy. The boat has six stations: Command, Sonar, Wea
|
||||
|
||||
Every new game first asks **Which unit do you play?**: *Frigate F-217* or *Hostile submarine* (`Up`/`Down` or `1`/`2`, `Enter`; the last choice is preselected, `--play-sub` preselects the submarine). Outside a mission, Options (`F10`) page 2 **uConsole plays** changes it as well, for example before loading a game. With the submarine the uConsole commands the hostile boat instead of the frigate. The frigate is then crewed from the browsers through Remote Crew (`F9`) or runs on autocrew. The uConsole shows only the boat's own picture; the frigate's banners, event log, sound cues, plot and tooltips never appear, and its trackball and telegraph controls are disabled. The side can only be changed outside a mission; it lasts for this launch and is never saved, so every launch starts with the frigate.
|
||||
|
||||
The top bar shows the boat's six stations as tabs: `1` Command, `2` Sonar, `3` Weapons, `4` Engine room, `5` Mast & ESM, `6` Navigation (`Tab` or a click on a tab switches). Each order key works only at the station that owns it, as in the browser; elsewhere a banner names the right station. Browsers can crew the boat's other stations at the same time; a station a browser holds is marked in the top bar and is not operated from the uConsole. Every station but the sonar room is laid out like the Bridge: the chart on the left (known geography, the boat's own plot, the ESM bearing lines and cross-fixes, the boat with its ordered course and motion vector, the bearing lines of its own sonar contacts or their symbol while a ping or TMA fix is current, its own torpedoes `T1`…, a limited tube firing arc), the station on the right with a threat bar (torpedo alarm and active sonar heard with measured bearing, hull damage, cavitation, low battery, ESM radar intercept) and the station's page. **Command** has four pages, the **Engine room** four, **Mast & ESM** two and **Navigation** two (the station's key again or `PgUp`/`PgDn`). The Engine room's second page **Stores** shows energy, endurance and air; `R` cycles the charge rate, `A` fits an absorber set and `O` lights an oxygen candle. Its third page **Tanks** shows the cross-section, main ballast and air, the tanks with their orders, weight, trim angle, drift without planes, flooding and pumps; `↑`/`↓` pump out or flood the regulating tank, `←`/`→` move trim water aft or forward and `Z` switches the automatic trim. Its fourth page **Damage** shows the compartments (water, leak, fire, gas, shut bulkheads, teams), the table of compartments, the power and both teams; `↑`/`↓` pick a compartment, `←`/`→` a task, `Enter` sends team 1 and `Shift+Enter` team 2 there with that task, and `I` shuts or opens the compartment's bulkheads. **Navigation** (page and station) shows course and depth, water under the keel and any charted obstacle ahead, speed, own noise, battery and the active modes, and the water column under the boat: boat depth, ordered depth, safe depth and seabed; the layer appears there only after the boat's own BT measurement (`E` at the submarine sonar). **Weapons & contacts** (page and Weapons station) shows fire readiness, torpedoes, tubes ready, reload, decoys, emergency blow and the boat's own sonar contacts (bearing, range where known, and quality in percent: the better of the signal quality and the track confidence, 100 % being a firm contact). The **Engine room** shows speed, own noise, battery, the modes and the telegraph steps; **Mast & ESM** shows the mast time, the rose, the emitter list and the selected emitter (signal, level and trend, cross-fix, classification); its second page and Command's third are the **Periscope** (eyepiece, line of sight, light and the sightings list; `←`/`→` train, `Enter` stadimeter). Below are the boat log and the boat's telemetry, as a band or a status ticker as set in the options; orders, shots and decoys are logged there.
|
||||
The top bar shows the boat's seven stations as tabs: `1` Command, `2` Sonar, `3` Weapons, `4` Engine room, `5` Mast & ESM, `6` Navigation, `7` Radio room (`Tab` or a click on a tab switches). Each order key works only at the station that owns it, as in the browser; elsewhere a banner names the right station. Browsers can crew the boat's other stations at the same time; a station a browser holds is marked in the top bar and is not operated from the uConsole. Every station but the sonar room is laid out like the Bridge: the chart on the left (known geography, the boat's own plot, the ESM bearing lines and cross-fixes, the boat with its ordered course and motion vector, the bearing lines of its own sonar contacts or their symbol while a ping or TMA fix is current, its own torpedoes `T1`…, a limited tube firing arc), the station on the right with a threat bar (torpedo alarm and active sonar heard with measured bearing, hull damage, cavitation, low battery, ESM radar intercept) and the station's page. **Command** has four pages, the **Engine room** four, **Mast & ESM** two and **Navigation** two (the station's key again or `PgUp`/`PgDn`). The Engine room's second page **Stores** shows energy, endurance and air; `R` cycles the charge rate, `A` fits an absorber set and `O` lights an oxygen candle. Its third page **Tanks** shows the cross-section, main ballast and air, the tanks with their orders, weight, trim angle, drift without planes, flooding and pumps; `↑`/`↓` pump out or flood the regulating tank, `←`/`→` move trim water aft or forward and `Z` switches the automatic trim. Its fourth page **Damage** shows the compartments (water, leak, fire, gas, shut bulkheads, teams), the table of compartments, the power and both teams; `↑`/`↓` pick a compartment, `←`/`→` a task, `Enter` sends team 1 and `Shift+Enter` team 2 there with that task, and `I` shuts or opens the compartment's bulkheads. **Navigation** (page and station) shows course and depth, water under the keel and any charted obstacle ahead, speed, own noise, battery and the active modes, and the water column under the boat: boat depth, ordered depth, safe depth and seabed; the layer appears there only after the boat's own BT measurement (`E` at the submarine sonar). **Weapons & contacts** (page and Weapons station) shows fire readiness, torpedoes, tubes ready, reload, decoys, emergency blow and the boat's own sonar contacts (bearing, range where known, and quality in percent: the better of the signal quality and the track confidence, 100 % being a firm contact). The **Engine room** shows speed, own noise, battery, the modes and the telegraph steps; **Mast & ESM** shows the mast time, the rose, the emitter list and the selected emitter (signal, level and trend, cross-fix, classification); its second page and Command's third are the **Periscope** (eyepiece, line of sight, light and the sightings list; `←`/`→` train, `Enter` stadimeter). The **Radio room** has one page: antenna, broadcast schedule, copy and transmit progress, HQ's latest contact report and the radio log; `Enter` sends a situation report and `P` raises or lowers the mast. Below are the boat log and the boat's telemetry, as a band or a status ticker as set in the options; orders, shots and decoys are logged there.
|
||||
|
||||
<!-- keys:uboot -->
|
||||
|
||||
### Not modelled {#ref-opfor-limits}
|
||||
|
||||
- The crewed boat sends no radio traffic and receives none; there is no contact report from home.
|
||||
- The radio room knows only HQ's broadcast schedule and situation reports: no orders or messages from HQ, no reception while deep (no VLF/ELF), no burst transmission and no other units on the net; HQ's contact report is modelled intelligence, not a sensor of its own.
|
||||
- Damage control is six compartments and two teams: no separate pressure-hull and outer-hull damage, no casualties, no smoke or heat spreading, no fire in the air stores and no fire consuming oxygen; the boat's overall damage (noise, top speed, sinking at 100 %) still adds up from hits, and the AI's boats keep only that value.
|
||||
- The trim model is one weight and one moment: no free-surface effect, no compressibility of the hull with depth and no separate negative tank; the boat does not surface fully. Food and fresh water do not run out.
|
||||
- A raised mast or snorkel head is seen by the frigate's radar only as a bare blip (see the OPZ chapter).
|
||||
- The boat's ESM hears no other submarine's radar and no missile seeker; it has no scored library analysis, no scan-period measurement and no target motion analysis of an emitter (the cross-fix assumes a slow emitter).
|
||||
- The boat's ESM hears no radar on the frigate's helicopter or on the patrol aircraft (the library has no emitter for them).
|
||||
- The boat's library shows only the first candidates in catalogue order; for an X-band search radar with many possible matches (the helicopter's) the right entry can fall outside the list.
|
||||
- The campaign is played from the frigate only; with the uConsole on the boat the frigate has no automatic hunting crew (its autocrew only reacts), so a solo boat campaign waits for one.
|
||||
- The periscope has one magnification and no camera; sightings carry no identification beyond the coarse class, and the stadimeter assumes a class length rather than a masthead height.
|
||||
|
||||
|
||||
@@ -1098,9 +1098,9 @@ U-Boot-Physik: der Rumpf beschleunigt auf die befohlene Fahrt (kein Sofortsprint
|
||||
|
||||
### Besetztes Gegner-U-Boot (Remote Crew)
|
||||
|
||||
Eine zweite Crew kann den Gegner spielen. Das Boot hat sechs Stationen: Führung, Sonar, Waffen, Maschine, Mast & ESM und Navigation; ein Browser übernimmt sie wie die der Fregatte (`F9`). Solange eine davon besetzt ist, folgt das lebende feindliche U-Boot mit der kleinsten Nummer nur den Befehlen dieser Crew; werden die Rollen abgegeben oder vom Host entzogen, übernimmt die KI das Boot wieder dort, wo es gerade ist. Ein Spielstand bewahrt Befehle, Betriebsarten, Mast, Drähte, Plot, Alarmpeilungen und ESM-Bild der Crew; nach dem Laden fährt das Boot seine letzten Befehle weiter und wartet bis zu zehn Minuten darauf, dass seine Crew die Stationen erneut übernimmt (jede Bootsstation wird neu vergeben), bevor die KI es zurücknimmt. Ein Browser hält nur Rollen einer Seite (Fregatte oder U-Boot), nie beide; die Lobby fragt zuerst, welche Einheit er spielt. Im Solo-Modus hält der eine Browser alle neun Stationen der Fregatte oder mit **U-Boot spielen** in der Host-Leiste alle sechs Stationen des Boots (zurück mit **Fregatte spielen**).
|
||||
Eine zweite Crew kann den Gegner spielen. Das Boot hat sieben Stationen: Führung, Sonar, Waffen, Maschine, Mast & ESM, Navigation und Funkraum; ein Browser übernimmt sie wie die der Fregatte (`F9`). Solange eine davon besetzt ist, folgt das lebende feindliche U-Boot mit der kleinsten Nummer nur den Befehlen dieser Crew; werden die Rollen abgegeben oder vom Host entzogen, übernimmt die KI das Boot wieder dort, wo es gerade ist. Ein Spielstand bewahrt Befehle, Betriebsarten, Mast, Drähte, Plot, Alarmpeilungen, ESM-Bild und Funktagebuch der Crew; nach dem Laden fährt das Boot seine letzten Befehle weiter und wartet bis zu zehn Minuten darauf, dass seine Crew die Stationen erneut übernimmt (jede Bootsstation wird neu vergeben), bevor die KI es zurücknimmt. Ein Browser hält nur Rollen einer Seite (Fregatte oder U-Boot), nie beide; die Lobby fragt zuerst, welche Einheit er spielt. Im Solo-Modus hält der eine Browser alle neun Stationen der Fregatte oder mit **U-Boot spielen** in der Host-Leiste alle sechs Stationen des Boots (zurück mit **Fregatte spielen**).
|
||||
|
||||
- **Stationen:** Die *Führung* befiehlt Kurs, Fahrt und Tiefe, legt das Boot auf Grund, pingt, nimmt eine BT-Messung und sieht das ganze Boot. Die *Navigation* befiehlt Kurs und Tiefe, führt den Plot des Boots und überwacht Kiel und Hindernisse. Die *Maschine* bedient Telegraf, Schnorchel, Schleichfahrt, Trimm und Notanblasen und überwacht Batterie und Lärm. *Mast & ESM* fährt den Mast aus und überwacht ESM und Alarme; auch die Führung darf ihn ausfahren, um durchs Sehrohr zu sehen. Die *Waffen* schießen, lenken die Drähte und stoßen Täuschkörper aus. Das *Sonar* ist der Sonarraum des Boots. Jeder Befehl wird nur von der Station angenommen, zu der er gehört.
|
||||
- **Stationen:** Die *Führung* befiehlt Kurs, Fahrt und Tiefe, legt das Boot auf Grund, pingt, nimmt eine BT-Messung und sieht das ganze Boot. Die *Navigation* befiehlt Kurs und Tiefe, führt den Plot des Boots und überwacht Kiel und Hindernisse. Die *Maschine* bedient Telegraf, Schnorchel, Schleichfahrt, Trimm und Notanblasen und überwacht Batterie und Lärm. *Mast & ESM* fährt den Mast aus und überwacht ESM und Alarme; auch die Führung darf ihn ausfahren, um durchs Sehrohr zu sehen. Die *Waffen* schießen, lenken die Drähte und stoßen Täuschkörper aus. Das *Sonar* ist der Sonarraum des Boots. Der *Funkraum* nimmt den Rundspruch der Führung auf und sendet Lagemeldungen; er darf für seine Antenne den Mast ausfahren. Jeder Befehl wird nur von der Station angenommen, zu der er gehört.
|
||||
- **Tiefenstufen und Anzeigen:** Führung und Navigation befehlen die Tiefe in einem Schritt: Sehrohrtiefe (15 m, der Mast bleibt nutzbar), Schnorcheltiefe (Boote mit Schnorchel), über oder unter dem Layer (15 m darüber / 30 m darunter; erst nach der eigenen BT-Messung, denn nur daraus kennt die Crew den Layer) und tief (die sichere Tiefe über dem kartierten Grund). Am uConsole sind das `U`, `Umschalt+U`, `J`, `Umschalt+J` und `H`. Der Browser zeigt die Wassersäule (Oberfläche, Sehrohrtiefe, gemessener Layer, Soll- und sichere Tiefe, Grund, das Boot und seine Tauchrichtung), große Anzeigen für Kurs, Fahrt, Tiefe und Batterie mit farbigen Betriebs- und Alarmchips sowie eine ESM-Rose mit der Peilung jedes Emitters und den Peilungen von Ping- und Torpedoalarm; die Seite Mast & ESM am uConsole hat dieselbe Rose. Mast, Schnorchel, Schleichfahrt und Auf-Grund-Legen haben getrennte Knöpfe zum Ein- und Ausschalten.
|
||||
- **Befehle und Waffen:** das Boot folgt Kurs-, Fahrt- und Tiefenbefehlen im Rahmen seiner Wende-, Tiefen- und Beschleunigungsgrenzen; Fahrtstufen (Stopp, 3, 6, 10, 15 kn, Maximum) setzen die Fahrt schnell. Schießt einen Torpedo auf die gemessene Peilung eines Sonarkontakts, mit Ping-Fix oder TMA-Lösung, solange aktuell, oder auf eine freie Peilung mit optionaler Entfernung; der Schuss braucht ein klares Rohr und das Ziel im Schussfeld der Rohre. Die Crew stellt die Lauftiefe ein (5-300 m, sonst eine flache Voreinstellung) und schießt einen Torpedo oder zwei im Fächer von ±4°, jeder mit eigenem Datum. Jeder Crew-Torpedo läuft am Draht: die Crew kann sein Datum versetzen (Peilung und Entfernung vom Boot), und der Draht dreht ihn darauf ein, bis sein Suchkopf erfasst; schneller als 10 kn oder stärker als 1,5°/s drehen für 5 s lässt den Draht reißen, ebenso eine abgelaufene Spule, und die Crew kann ihn kappen. Stößt einen Täuschkörper aus und bläst im Notfall die Hauptzellen an (mit voller Pressluft dreimal).
|
||||
- **Anlage und Bootsbetrieb:** ein besetztes Boot taucht nie von selbst auf, schnorchelt nicht und funkt nicht von selbst. Die Batterie entlädt sich mit Fahrt und Bordnetz; unter 20 % warnt das Bootslog, eine leere Batterie begrenzt die Fahrt auf das, was die Anlage noch liefert (eine AIP-Anlage übernimmt die Last weiterhin selbst). **Schnorcheln** betreibt die Diesel auf Schnorcheltiefe und lädt die Batterie, höchstens 6 kn; tieferes Tauchen schließt das Kopfventil. Die laufenden Diesel sind laut: +12 dB abgestrahlter Pegel, ein niedrigerer Stillefaktor und zwei Zündlinien bei 50 und 100 Hz in der LOFAR-Signatur des Boots (auch bei KI-Booten). **Schleichfahrt** begrenzt das Boot auf 5 kn und macht es so leise wie ein lauerndes KI-Boot. **Auf Grund legen** stoppt das Boot 3 m über dem Grund, wo das Wasser nicht tiefer als die Tauchtiefe ist: leise und ohne Drift; jeder Fahrt- oder Tiefenbefehl hebt ab. Vor Land oder einer Untiefe stoppt das Boot, statt auszuweichen, und das Log warnt bei wenig Wasser unter dem Kiel.
|
||||
@@ -1109,7 +1109,8 @@ Eine zweite Crew kann den Gegner spielen. Das Boot hat sechs Stationen: Führung
|
||||
- **Leckwehr:** die Maschine zeigt unter **Leckwehr** (Karte im Browser mit den Abteilungen und einer Tabelle, auf der uConsole Maschine Seite 4 **Leckwehr**) den Druckkörper in sechs Abteilungen: Bugraum, Zentrale, Wohnraum, Batterieraum, Maschinenraum und Heckraum. Ein Treffer auf das besetzte Boot schlägt ein Leck in die getroffene Abteilung (1,5 % Leck je % Trefferschaden, höchstens ein volles Leck; ab 50 % Schaden auch in die Nachbarabteilung mit halbem Leck) und kann dort einen Brand auslösen (Wahrscheinlichkeit = Schaden / 150); ein Ermüdungsriss unter der Testtiefe öffnet ein kleines Leck. Durch ein volles Leck dringen in 100 m Tiefe 40 kg/s ein, mit der Wurzel der Tiefe mehr; über halbvoll läuft das Wasser in offene Nachbarabteilungen über (20 kg/s) und erstickt einen Brand. Ein Brand wächst in 2 min zum Vollbrand und greift dann durch offene Schotten über; Seewasser im Batterieraum (ab 2 t) setzt Chlorgas frei, das durch offene Schotten zieht und erst langsam abzieht, wenn die Batterie trocken ist. Wasser im Batterieraum (ab 5 t) oder ein Brand dort legen den **Strom** lahm: der Motor steht (keine Fahrt, also halten die Tiefenruder ein schweres Boot nicht), Trimmpumpen, Kompressor und elektrische Lenzpumpen stehen still. **Schotten schließen** hält Wasser, Brand und Gas in der Abteilung und erstickt einen Brand dort in 3 min. Zwei **Leckwehrtrupps** gehen durchs Boot (8 s je Abteilung) und **dichten ein Leck ab** (ein volles in 60 s), **lenzen** (30 kg/s, ohne Strom ein Viertel von Hand) oder **löschen einen Brand** (einen Vollbrand in 60 s); im Gas arbeiten sie halb so schnell, und in einer zu 90 % vollen Abteilung können sie nur lenzen. Eine Abteilung, die zur Hälfte voll Wasser ist, halb brennt oder halb vergast ist, legt ihre Station lahm: der Bugraum die Torpedorohre, die Zentrale Mast und Sehrohr, der Maschinenraum die Diesel, der Heckraum die halbe Höchstfahrt. Das Wasser ist Gewicht und Moment für den Trimm (siehe oben); ein Boot, das unter die 1,5-fache Testtiefe sinkt, wird zerdrückt. Das Log meldet Lecks, Brände, abgedichtete Lecks, gelöschte Brände, vollgelaufene Abteilungen, Chlorgas und den Strom.
|
||||
- **Besatzung:** das Boot hat einen eigenen Wachplan mit den Regeln der Fregatte (siehe Schadensabwehr, Besatzung und Wachen): drei Wachen, Ermüdung, Gefechtsstationen und Moral. Maschine und Führung befehlen Gefechtsstationen (`B` auf der uConsole, eine Taste in der Leckwehr-Karte im Browser) und lösen die Wache ab (`M` auf der Seite Leckwehr oder die Taste). Die Moral steigt, wenn ein Schiff sinkt, und sinkt mit je 10 % Rumpfschaden. Eine müde Besatzung hört am Sonar später, sichtet durch das Sehrohr später und ihre Leckwehrtrupps dichten und löschen langsamer (die Pumpen sind Maschinen und behalten ihre Leistung).
|
||||
- **Lagebild:** ein gehörter Aktivping oder Torpedo wird mit der Peilung protokolliert, die das Boot selbst gemessen hat (einige Grad ungenau), und mit seinem Alter in den Alarmen angezeigt. Auf Sehrohrtiefe lässt sich der **Mast** ausfahren; sein ESM meldet dann die Radare, die das Boot überstreichen, mit Peilung (Log und ESM-Liste), und beim Tieferkommen fährt der Mast selbst ein. Mit ausgefahrenem Mast zeigt die Seite **Sehrohr** (Führung Seite 3, Mast & ESM Seite 2; `P` fährt an beiden den Mast aus) das Okular: Himmel und See im Licht der Stunde, den mit der See bewegten Horizont, eine Skala rechtweisender Peilungen und ein Fadenkreuz; das Rohr schwenkt in 2°-Schritten (`←`/`→`, `Umschalt`: 10°). Alles, was die Optik im Kontrastmodell des Fregattenausgucks bei 2,5 m Augenhöhe ausmacht (Tag/Nacht, Mond, Sicht, Seegang, Land im Weg), erscheint als Silhouette und als reine Peilungs-**Sichtung** mit grober Klasse (Kriegsschiff, Handelsschiff, Fahrzeug, Luftfahrzeug, Torpedolaufbahn) und scheinbarer Länge; das Log meldet jede neue Sichtung. `Enter` liest das **Stadimeter** an der Sichtung unter dem Fadenkreuz ab: die Entfernung folgt aus der scheinbaren Länge und der angenommenen Rumpflänge der Klasse (130 m für ein Kriegsschiff oder ein nicht erkanntes Fahrzeug, 150 m für ein Handelsschiff), ein nicht erkanntes oder bugwärts stehendes Ziel misst sich also zu weit; die Ablesung ist ±25 % und wird für 120 s zu einem VISUAL-Fix am Sonarkontakt des Boots auf dieses Ziel, für einen Schuss nutzbar wie ein Ping-Fix. Luftfahrzeuge und Laufbahnen lassen sich nicht messen. Die kartierte Küste steht auf dem Horizont des Sehrohrs, so weit seine niedrige Optik Land sieht (Hügel mit 25 bis 70 m angenommen). Die Führung kann auch ohne Sonarbediener pingen und eine BT-Messung nehmen. Die Karte zeigt das Schussfeld der Rohre, wo sie nicht rundum schießen, und das vom Sonar zugewiesene Ziel ist für den Schuss vorausgewählt.
|
||||
- **Mast & ESM:** mit ausgefahrenem Mast auf Sehrohrtiefe hört die ESM-Antenne des Boots (3 m über Wasser) einmal pro Sekunde die Radare ringsum: das der Fregatte, anderer Schiffe und von Flugzeugen innerhalb des Radarhorizonts, über Land nur, wo die Küste die Linie nicht verdeckt. Jede Erfassung trägt die gemessene Peilung (±4°), Band, Trägerfrequenz, PRF, Modulation und Empfangspegel, nie die Identität oder Position des Senders. Die Crew führt eine **Emitterliste** (`E1`, `E2` …) über mehrere Mastperioden: eine Erfassung gehört zu einem Emitter, wenn Peilung, Band und Signalform passen (ein frequenzagiles Radar nur nach Peilung und Band), und die Liste vergisst einen Emitter 30 Minuten nach seiner letzten Erfassung. Die **Einstufung** ist die Annotation der Crew aus der Bibliothek: die Emitter, deren veröffentlichte Frequenz- und PRF-Bereiche die Messung enthalten, ungewichtet, wie an der ELOKA der Fregatte ohne Assistenz; die Wahl legt die Leistungsklasse für die **Entfernungsschätzung** aus dem Pegel fest (ohne Einstufung die kürzeste Entfernung, die die Bibliothek zulässt). Alle 30 s behält jeder Emitter eine **Peilung** von der eigenen Position des Boots (20 Minuten); die Karte zeigt die letzten Peillinien, und sobald die eigene Fahrt die Peilung um mindestens 8° gedreht hat, ist die **Kreuzpeilung** ihr bester Schnittpunkt mit einer 95-%-Fehlerellipse, die einen seit jeder Linie bis zu 8 kn versetzten Sender einrechnet (eine schnelle Fregatte ergibt meist keine; eine Kreuzpeilung, deren Linien nicht zusammenpassen, wird markiert). Der **Stärketrend** zeigt steigend, gleichbleibend oder fallend über fünf Minuten. Die **Mastwarnung** („Radar kann Mast sehen“) kommt, wenn die geschätzte Entfernung eines erfassten Suchradars innerhalb der Entfernung liegt, auf der ein Seeraumradar bei diesem Seegang und Regen einen ausgefahrenen Mast sieht (der Wert der Wetterseite); die **empfohlene Mastzeit** ist 60 s bei ruhiger See, bis zu 300 s, wenn die Seegangsechos den Mast verbergen, und 20 s unter dieser Warnung, und das Log meldet, wenn sie überschritten ist. Ab Seegang 3 überspülen Wellen die Antenne, und manche Durchläufe hören nichts. Die Karte Mast & ESM im Browser hat die Rose, die Emittertabelle und die Auswertung des gewählten Emitters; **In den Plot übernehmen** trägt die Kreuzpeilung (Markierung und Fehlerkreis) oder sonst die letzte Peillinie in den Plot des Boots ein. Auf der Seite Mast & ESM der uConsole wählen `↑`/`↓` einen Emitter, `←`/`→` schalten seine Einstufung aus der Bibliothek weiter und `Enter` übernimmt ihn in den Plot.
|
||||
- **Mast & ESM:** mit ausgefahrenem Mast auf Sehrohrtiefe hört die ESM-Antenne des Boots (3 m über Wasser) einmal pro Sekunde die Radare ringsum: das der Fregatte, anderer Schiffe und von Flugzeugen innerhalb des Radarhorizonts, über Land nur, wo die Küste die Linie nicht verdeckt. Der Hubschrauber der Fregatte strahlt sein X-Band-Suchradar, solange er fliegt und nicht taucht (Antenne in 150 m), der Seefernaufklärer sein frequenzagiles Suchradar, solange die OPZ es eingeschaltet hat. Jede Erfassung trägt die gemessene Peilung (±4°), Band, Trägerfrequenz, PRF, Modulation und Empfangspegel, nie die Identität oder Position des Senders. Die Crew führt eine **Emitterliste** (`E1`, `E2` …) über mehrere Mastperioden: eine Erfassung gehört zu einem Emitter, wenn Peilung, Band und Signalform passen (ein frequenzagiles Radar nur nach Peilung und Band), und die Liste vergisst einen Emitter 30 Minuten nach seiner letzten Erfassung. Die **Einstufung** ist die Annotation der Crew aus der Bibliothek: die Emitter, deren veröffentlichte Frequenz- und PRF-Bereiche die Messung enthalten, ungewichtet, wie an der ELOKA der Fregatte ohne Assistenz; die Wahl legt die Leistungsklasse für die **Entfernungsschätzung** aus dem Pegel fest (ohne Einstufung die kürzeste Entfernung, die die Bibliothek zulässt). Alle 30 s behält jeder Emitter eine **Peilung** von der eigenen Position des Boots (20 Minuten); die Karte zeigt die letzten Peillinien, und sobald die eigene Fahrt die Peilung um mindestens 8° gedreht hat, ist die **Kreuzpeilung** ihr bester Schnittpunkt mit einer 95-%-Fehlerellipse, die einen seit jeder Linie bis zu 8 kn versetzten Sender einrechnet (eine schnelle Fregatte ergibt meist keine; eine Kreuzpeilung, deren Linien nicht zusammenpassen, wird markiert). Der **Stärketrend** zeigt steigend, gleichbleibend oder fallend über fünf Minuten. Die **Mastwarnung** („Radar kann Mast sehen“) kommt, wenn die geschätzte Entfernung eines erfassten Suchradars innerhalb der Entfernung liegt, auf der ein Seeraumradar bei diesem Seegang und Regen einen ausgefahrenen Mast sieht (der Wert der Wetterseite); die **empfohlene Mastzeit** ist 60 s bei ruhiger See, bis zu 300 s, wenn die Seegangsechos den Mast verbergen, und 20 s unter dieser Warnung, und das Log meldet, wenn sie überschritten ist. Ab Seegang 3 überspülen Wellen die Antenne, und manche Durchläufe hören nichts. Die Karte Mast & ESM im Browser hat die Rose, die Emittertabelle und die Auswertung des gewählten Emitters; **In den Plot übernehmen** trägt die Kreuzpeilung (Markierung und Fehlerkreis) oder sonst die letzte Peillinie in den Plot des Boots ein. Auf der Seite Mast & ESM der uConsole wählen `↑`/`↓` einen Emitter, `←`/`→` schalten seine Einstufung aus der Bibliothek weiter und `Enter` übernimmt ihn in den Plot.
|
||||
- **Funkraum:** die Flottenführung sendet alle 10 Minuten einen U-Boot-Rundspruch (Rundspruch 0 bei Missionsbeginn, dann 1, 2 …) und wiederholt ihn bis zum nächsten. Das Boot nimmt ihn nur mit klarer Antenne auf, das heißt mit ausgefahrenem Mast auf Sehrohrtiefe, und erst nach 20 s ununterbrochenem Empfang innerhalb der Sendezeit dieses Rundspruchs; ein Boot, das tief bleibt, verpasst Rundsprüche und bekommt nur den jeweils neuesten. In 60 % der Fälle enthält ein Rundspruch die **Feindlagemeldung** der Führung zur Fregatte: einen 5 bis 15 Minuten alten Standort mit 4 sm Fehlerkreis und gerundetem Kurs und Fahrt. Die Karte zeigt ihn als gelben Kreis mit seinem Alter, und die Funkseite nennt Peilung und Entfernung vom Boot. Eine **Lagemeldung** (`Enter` im Funkraum oder der Knopf im Browser) sind 20 s Kurzwellensendung mit klarer Antenne. Währenddessen kann der KW-Peiler der Fregatte das Boot peilen (Funkraum HF/DF), und Mast einfahren bricht sie ab. Die Führung bestätigt eine Meldung im nächsten Rundspruch und fügt dann immer eine schärfere Feindlagemeldung (2 sm) bei. Die Funkseite und die Karte Funkraum im Browser zeigen Antenne, Rundspruchnummer und Zeit bis zum nächsten, Fortschritt von Aufnahme und Sendung, gesendete Meldungen, die letzte Feindlage und das Funktagebuch (12 Einträge, wird gespeichert).
|
||||
- **Gegenortung und Ausweichen:** der Sonarraum des Boots unterscheidet einen aufgefangenen Aktivping an seiner Frequenz als Rumpfsonar der Fregatte, Tauchsonar eines Hubschraubers oder Sonoboje und protokolliert ihn mit gemessener Peilung und Empfangspegel (dB re 1 µPa, aus Quellpegel, Ausbreitung und Absorption); eine pingende Boje im Umkreis von 12 sm hört nur ein bemanntes Boot. Eine Boje, die im Umkreis von 4 sm ins Wasser fällt, wird mit grober Peilung (±6°) gehört, ein Torpedoalarm bleibt mit seiner Peilung stehen. Die Seite **Bedrohung** (Führung Seite 4 und Navigation Seite 2; im Browser die Karte Bedrohung an Führung und Navigation) zählt die Pings der letzten 5 Minuten nach Quelle, nennt den lautesten Pegel mit Bewertung (ab 150 dB hat der Pinger wahrscheinlich ein Echo) und den Trend der letzten beiden Pings (steigend: er kommt näher), Splashes, Torpedoalarme und ESM-Emitter, die eigene Signatur (Tiefe gegen die gemessene Schicht, Eigenlärm: kavitierend, schnorchelnd, laut, mäßig oder leise, der Mast) und die Empfehlungen der Crew. Die Karte zeichnet jede Auffassung der letzten 2 Minuten als gestrichelten Peilstrahl. **Ausweichen** (`I` an Führung oder Navigation, im Browser die Schaltfläche **Ausweichen**) gibt den Ausweichbefehl der Crew zum frischesten Alarm (unter 2 Minuten): gegen einen Torpedo die kleinere Wende, die ihn 150° achteraus legt, Höchstfahrt und ein Täuschkörper; gegen Aktivsonar das Heck zum Pinger, Schleichfahrt mit 3 kn. Beide wechseln durch die gemessene Schicht (nach unten, wenn das Boot darüber oder darin steht, nach oben, wenn es darunter steht), ohne BT gehen sie auf Tiefe; ein aufgesetztes Boot hebt zuerst ab. Der Befehl durchläuft dieselben Prüfungen wie die Einzeltasten, und die Seite zeigt ihn, bevor er gegeben wird. Das Bild ist nur Anzeige und wird nicht gespeichert.
|
||||
- **Navigation und Plot:** die Maschine hat Maschinentelegrafen-Knöpfe, und Führung und Navigation teilen den eigenen Fettstift-Plot des Boots (Markierungen, Lineale, Peillinien, Kreise, Koppellinien); die Fregatte sieht ihn nie, und der Plot des Boots wird nicht gespeichert. Die Navigation zeigt das Wasser unter dem Kiel und prüft die Seekarte entlang des Sollkurses bis 5 sm: Land oder ein Grund flacher als das Boot wird als Hindernis voraus gemeldet, im Log und als Warnung. Es zählt nur die kartierte Geografie; andere Fahrzeuge sind nicht Teil der Prüfung.
|
||||
- **U-Boot-Sonar:** derselbe Sonararbeitsplatz wie auf der Fregatte (Breitband, LOFAR, DEMON, TMA, Aktivechos, Klassifizierung, Horch-Audio), aber das Rumpfsonar horcht in der eigenen Tauchtiefe, die Sprungschicht wirkt also für und gegen die Crew. Es gibt keine Schleppantenne und keine Freigabe an eine OPZ. Ein Aktivping liefert Echos und wird von der Fregatte gehört.
|
||||
@@ -1121,11 +1122,11 @@ Eine zweite Crew kann den Gegner spielen. Das Boot hat sechs Stationen: Führung
|
||||
|
||||
Jedes neue Spiel fragt zuerst **Welche Einheit spielst du?**: *Fregatte F-217* oder *Feindliches U-Boot* (`Auf`/`Ab` oder `1`/`2`, `Enter`; die letzte Wahl ist vorausgewählt, `--play-sub` wählt das U-Boot vor). Außerhalb einer Mission ändert auch Optionen (`F10`) Seite 2 **uConsole spielt** die Wahl, etwa vor dem Laden eines Spielstands. Mit dem U-Boot führt der uConsole das feindliche Boot statt der Fregatte. Die Fregatte wird dann über Remote Crew (`F9`) aus den Browsern besetzt oder fährt mit Autocrew. Der uConsole zeigt nur das Lagebild des Boots; Banner, Ereignislog, Soundeffekte, Plot und Tooltips der Fregatte erscheinen nie, und Trackball- und Telegraphenbedienung der Fregatte sind gesperrt. Die Seite lässt sich nur außerhalb einer Mission wechseln; die Wahl gilt nur für diesen Programmstart und wird nie gespeichert, jeder Start beginnt also mit der Fregatte.
|
||||
|
||||
Die obere Leiste zeigt die sechs Stationen des Boots als Reiter: `1` Führung, `2` Sonar, `3` Waffen, `4` Maschine, `5` Mast & ESM, `6` Navigation (`Tab` oder ein Klick auf den Reiter wechselt). Jede Befehlstaste wirkt nur an der Station, zu der der Befehl gehört, wie im Browser; sonst nennt ein Banner die richtige Station. Browser können gleichzeitig die übrigen Stationen des Boots besetzen; eine Station, die ein Browser hält, ist in der oberen Leiste markiert und wird nicht vom uConsole bedient. Jede Station außer dem Sonarraum ist aufgebaut wie die Brücke: links die Seekarte (bekannte Geografie, der eigene Plot des Boots, die ESM-Peillinien und Kreuzpeilungen, das eigene Boot mit Sollkurs und Fahrtvektor, die Peilstriche der eigenen Sonarkontakte bzw. ihr Symbol bei aktuellem Ping- oder TMA-Fix, die eigenen Torpedos `T1`…, ein begrenztes Schussfeld der Rohre), rechts die Station mit Bedrohungsleiste (Torpedoalarm und gehörtes Aktivsonar mit gemessener Peilung, Rumpfschaden, Kavitation, schwache Batterie, ESM-Radarerfassung) und die Seite der Station. Die **Führung** hat vier Seiten, die **Maschine** vier, **Mast & ESM** zwei und **Navigation** zwei (die Taste der Station erneut oder `Bild auf`/`Bild ab`). Die zweite Seite der Maschine, **Vorräte**, zeigt Energie, Ausdauer und Luft; `R` wechselt die Laderate, `A` setzt einen Absorbersatz ein und `O` zündet eine O2-Kerze. Ihre dritte Seite **Zellen** zeigt das Schnittbild, Hauptzellen und Pressluft, die Zellen mit ihren Sollwerten, Gewicht, Trimmwinkel, Drift ohne Tiefenruder, Wassereinbruch und Pumpen; `↑`/`↓` lenzen oder fluten die Regelzelle, `←`/`→` pumpen Trimmwasser nach achtern oder vorn und `Z` schaltet die Trimmautomatik. Ihre vierte Seite **Leckwehr** zeigt die Abteilungen (Wasser, Leck, Brand, Gas, geschlossene Schotten, Trupps), die Tabelle der Abteilungen, den Strom und beide Trupps; `↑`/`↓` wählen eine Abteilung, `←`/`→` eine Aufgabe, `Enter` schickt Trupp 1 und `Umschalt+Enter` Trupp 2 mit dieser Aufgabe dorthin, und `I` schließt oder öffnet die Schotten der Abteilung. **Navigation** (Seite und Station) zeigt Kurs und Tiefe, das Wasser unter dem Kiel und ein kartiertes Hindernis voraus, Fahrt, Eigenlärm, Batterie und die aktiven Betriebsarten sowie die Wassersäule unter dem Boot: Bootstiefe, befohlene Tiefe, sichere Tiefe und Grund; die Sprungschicht erscheint dort erst nach einer eigenen BT-Messung (`E` am U-Boot-Sonar). **Waffen & Kontakte** (Seite und Station Waffen) zeigt Feuerbereitschaft, Torpedos, klare Rohre, Nachladen, Täuschkörper, Notanblasen und die eigenen Sonarkontakte (Peilung, Entfernung falls bekannt, und Güte in Prozent: der bessere Wert aus Signalgüte und Spurvertrauen, 100 % ist ein sicherer Kontakt). Die **Maschine** zeigt Fahrt, Eigenlärm, Batterie, die Betriebsarten und die Telegrafenstufen; **Mast & ESM** zeigt die Mastzeit, die Rose, die Emitterliste und den gewählten Emitter (Signal, Pegel und Trend, Kreuzpeilung, Einstufung); ihre zweite Seite und die dritte der Führung ist das **Sehrohr** (Okular, Sichtlinie, Licht und die Sichtungsliste; `←`/`→` schwenken, `Enter` Stadimeter). Unten stehen Bootslog und Telemetrie des Boots, als Leiste oder Statuszeile wie in den Optionen eingestellt; Befehle, Schüsse und Täuschkörper werden dort protokolliert.
|
||||
Die obere Leiste zeigt die sieben Stationen des Boots als Reiter: `1` Führung, `2` Sonar, `3` Waffen, `4` Maschine, `5` Mast & ESM, `6` Navigation, `7` Funkraum (`Tab` oder ein Klick auf den Reiter wechselt). Jede Befehlstaste wirkt nur an der Station, zu der der Befehl gehört, wie im Browser; sonst nennt ein Banner die richtige Station. Browser können gleichzeitig die übrigen Stationen des Boots besetzen; eine Station, die ein Browser hält, ist in der oberen Leiste markiert und wird nicht vom uConsole bedient. Jede Station außer dem Sonarraum ist aufgebaut wie die Brücke: links die Seekarte (bekannte Geografie, der eigene Plot des Boots, die ESM-Peillinien und Kreuzpeilungen, das eigene Boot mit Sollkurs und Fahrtvektor, die Peilstriche der eigenen Sonarkontakte bzw. ihr Symbol bei aktuellem Ping- oder TMA-Fix, die eigenen Torpedos `T1`…, ein begrenztes Schussfeld der Rohre), rechts die Station mit Bedrohungsleiste (Torpedoalarm und gehörtes Aktivsonar mit gemessener Peilung, Rumpfschaden, Kavitation, schwache Batterie, ESM-Radarerfassung) und die Seite der Station. Die **Führung** hat vier Seiten, die **Maschine** vier, **Mast & ESM** zwei und **Navigation** zwei (die Taste der Station erneut oder `Bild auf`/`Bild ab`). Die zweite Seite der Maschine, **Vorräte**, zeigt Energie, Ausdauer und Luft; `R` wechselt die Laderate, `A` setzt einen Absorbersatz ein und `O` zündet eine O2-Kerze. Ihre dritte Seite **Zellen** zeigt das Schnittbild, Hauptzellen und Pressluft, die Zellen mit ihren Sollwerten, Gewicht, Trimmwinkel, Drift ohne Tiefenruder, Wassereinbruch und Pumpen; `↑`/`↓` lenzen oder fluten die Regelzelle, `←`/`→` pumpen Trimmwasser nach achtern oder vorn und `Z` schaltet die Trimmautomatik. Ihre vierte Seite **Leckwehr** zeigt die Abteilungen (Wasser, Leck, Brand, Gas, geschlossene Schotten, Trupps), die Tabelle der Abteilungen, den Strom und beide Trupps; `↑`/`↓` wählen eine Abteilung, `←`/`→` eine Aufgabe, `Enter` schickt Trupp 1 und `Umschalt+Enter` Trupp 2 mit dieser Aufgabe dorthin, und `I` schließt oder öffnet die Schotten der Abteilung. **Navigation** (Seite und Station) zeigt Kurs und Tiefe, das Wasser unter dem Kiel und ein kartiertes Hindernis voraus, Fahrt, Eigenlärm, Batterie und die aktiven Betriebsarten sowie die Wassersäule unter dem Boot: Bootstiefe, befohlene Tiefe, sichere Tiefe und Grund; die Sprungschicht erscheint dort erst nach einer eigenen BT-Messung (`E` am U-Boot-Sonar). **Waffen & Kontakte** (Seite und Station Waffen) zeigt Feuerbereitschaft, Torpedos, klare Rohre, Nachladen, Täuschkörper, Notanblasen und die eigenen Sonarkontakte (Peilung, Entfernung falls bekannt, und Güte in Prozent: der bessere Wert aus Signalgüte und Spurvertrauen, 100 % ist ein sicherer Kontakt). Die **Maschine** zeigt Fahrt, Eigenlärm, Batterie, die Betriebsarten und die Telegrafenstufen; **Mast & ESM** zeigt die Mastzeit, die Rose, die Emitterliste und den gewählten Emitter (Signal, Pegel und Trend, Kreuzpeilung, Einstufung); ihre zweite Seite und die dritte der Führung ist das **Sehrohr** (Okular, Sichtlinie, Licht und die Sichtungsliste; `←`/`→` schwenken, `Enter` Stadimeter). Der **Funkraum** hat eine Seite: Antenne, Rundspruchplan, Fortschritt von Aufnahme und Sendung, die letzte Feindlage der Führung und das Funktagebuch; `Enter` sendet eine Lagemeldung und `P` fährt den Mast aus oder ein. Unten stehen Bootslog und Telemetrie des Boots, als Leiste oder Statuszeile wie in den Optionen eingestellt; Befehle, Schüsse und Täuschkörper werden dort protokolliert.
|
||||
|
||||
| Taste | Funktion |
|
||||
|---|---|
|
||||
| `1 … 6 / Tab` | Stationen: 1 Führung, 2 Sonar, 3 Waffen, 4 Maschine, 5 Mast & ESM, 6 Navigation; Tab weiter (oder Reiter anklicken) |
|
||||
| `1 … 7 / Tab` | Stationen: 1 Führung, 2 Sonar, 3 Waffen, 4 Maschine, 5 Mast & ESM, 6 Navigation, 7 Funkraum; Tab weiter (oder Reiter anklicken) |
|
||||
| `C / V / D` | Kurs / Fahrt / Tiefe befehlen (Führung; Kurs und Tiefe auch Navigation, Fahrt auch Maschine) |
|
||||
| `U / J / H` | Tiefenstufen: Sehrohr- / Schnorcheltiefe (Umschalt), unter / über dem gemessenen Layer (Umschalt), tief (Führung, Navigation) |
|
||||
| `Bild auf/ab` | Führungsseiten: Navigation / Waffen & Kontakte / Sehrohr / Bedrohung (oder erneut 1); Seiten Navigation: Navigation / Bedrohung (oder erneut 6); Seiten Mast & ESM: ESM / Sehrohr (oder erneut 5) |
|
||||
@@ -1144,7 +1145,7 @@ Die obere Leiste zeigt die sechs Stationen des Boots als Reiter: `1` Führung, `
|
||||
| `G` | Schleichfahrt ein/aus, höchstens 5 kn (Führung, Maschine) |
|
||||
| `Shift+G` | Auf Grund legen / abheben (Führung, Navigation) |
|
||||
| `N` | Schnorchel aus-/einfahren, Diesel laden auf Schnorcheltiefe (Maschine) |
|
||||
| `P` | Mast aus-/einfahren auf Sehrohrtiefe: ESM hört Radare, das Sehrohr sieht (Führung, Mast & ESM) |
|
||||
| `P` | Mast aus-/einfahren auf Sehrohrtiefe: ESM hört Radare, das Sehrohr sieht, die Funkantenne ist klar (Führung, Mast & ESM, Funkraum) |
|
||||
| `Pfeiltasten` | Seite Mast & ESM: Emitter wählen |
|
||||
| `← / →` | Seite Mast & ESM: Emitter aus der Bibliothek einstufen (Annotation, keine Wahrheit) |
|
||||
| `Eingabe` | Seite Mast & ESM: Kreuzpeilung (oder Peillinie) in den Plot des Boots |
|
||||
@@ -1162,6 +1163,7 @@ Die obere Leiste zeigt die sechs Stationen des Boots als Reiter: `1` Führung, `
|
||||
| `Eingabe` | Maschine, Seite Leckwehr: Trupp 1 (Umschalt: Trupp 2) mit der Aufgabe schicken |
|
||||
| `I` | Maschine, Seite Leckwehr: Schotten der Abteilung schließen oder öffnen |
|
||||
| `I` | Führung, Navigation: dem frischesten Ping- oder Torpedoalarm ausweichen (Kurs, Fahrt, Schicht, Schleichfahrt oder Täuschkörper) |
|
||||
| `Eingabe` | Funkraum: Lagemeldung an die Führung senden (Mast auf Sehrohrtiefe ausgefahren; die Fregatte kann die KW-Sendung peilen) |
|
||||
| `M` | Maschine, Seite Leckwehr: Wache jetzt ablösen |
|
||||
| `B` | Gefechtsstationen an/aus (alle Wachen im Dienst, aufmerksam, aber ermüdend) |
|
||||
| `0` | Wetterseite des Boots (0 oder Esc schließt) |
|
||||
@@ -1169,12 +1171,12 @@ Die obere Leiste zeigt die sechs Stationen des Boots als Reiter: `1` Führung, `
|
||||
|
||||
#### Nicht modelliert
|
||||
|
||||
- Das besetzte Boot funkt nicht und empfängt nichts; es gibt keine Kontaktmeldung von der Führung an Land.
|
||||
- Der Funkraum kennt nur den Rundspruchplan der Führung und Lagemeldungen: keine Befehle oder Nachrichten der Führung, kein Empfang in der Tiefe (kein VLF/ELF), keine Kurzsignale und keine anderen Einheiten im Netz; die Feindlage der Führung ist modellierte Aufklärung, kein eigener Sensor.
|
||||
- Die Leckwehr kennt sechs Abteilungen und zwei Trupps: keine getrennten Schäden an Druck- und Außenhülle, keine Verletzten, keine Ausbreitung von Rauch oder Hitze, kein Brand in den Luftvorräten und kein Sauerstoffverbrauch durch Feuer; der Gesamtschaden des Boots (Lärm, Höchstfahrt, Untergang bei 100 %) summiert sich weiter aus Treffern, und die KI-Boote haben nur diesen Wert.
|
||||
- Das Trimmmodell kennt ein Gewicht und ein Moment: keinen Effekt freier Oberflächen, keine Kompressibilität des Druckkörpers mit der Tiefe und keine eigene Schnelltauchzelle; das Boot taucht nicht ganz auf. Proviant und Frischwasser gehen nicht aus.
|
||||
- Ein ausgefahrener Mast oder Schnorchelkopf erscheint auf dem Fregattenradar nur als bloßer Punkt (siehe Kapitel OPZ).
|
||||
- Das ESM des Boots hört keine Radare anderer U-Boote und keine Flugkörpersucher; es hat keine gewichtete Bibliotheksanalyse, keine Messung der Umlaufzeit und keine Bewegungsanalyse eines Senders (die Kreuzpeilung nimmt einen langsamen Sender an).
|
||||
- Das ESM des Boots hört kein Radar am Hubschrauber der Fregatte oder am Seefernaufklärer (die Bibliothek hat keinen Emitter für sie).
|
||||
- Die Bibliothek des Boots zeigt nur die ersten Kandidaten in Katalogreihenfolge; bei einem X-Band-Suchradar mit vielen möglichen Treffern (dem des Hubschraubers) kann der richtige Eintrag außerhalb der Liste liegen.
|
||||
- Die Kampagne wird nur von der Fregatte aus gespielt; spielt die uConsole das Boot, hat die Fregatte keine selbständig jagende Crew (ihre Autocrew reagiert nur), daher wartet eine Solo-Kampagne für das Boot darauf.
|
||||
- Das Sehrohr hat eine Vergrößerung und keine Kamera; Sichtungen tragen keine Identifikation über die grobe Klasse hinaus, und das Stadimeter nimmt eine Klassenlänge statt einer Masthöhe an.
|
||||
|
||||
|
||||
@@ -1097,9 +1097,9 @@ Submarine physics: the hull accelerates toward an ordered speed (no instant spri
|
||||
|
||||
### Crewed opposing submarine (Remote Crew)
|
||||
|
||||
A second crew can play the enemy. The boat has six stations: Command, Sonar, Weapons, Engine room, Mast & ESM and Navigation; a browser takes them like the frigate's (`F9`). As long as one of them is held, the living hostile submarine with the lowest number follows only that crew's orders; when the roles are released or the host revokes them, the AI takes the boat back from where it is. A save keeps the crew's orders, modes, mast, wires, plot, alarm bearings and ESM picture; after a load the boat runs its last orders and waits up to ten minutes for its crew to take the stations again (every boat station is re-leased) before the AI takes it back. A browser holds roles of one side only (frigate or submarine), never both; the lobby first asks which unit it plays. In solo mode the one browser holds all nine frigate stations, or with **Play the submarine** in the host bar all six boat stations (and back with **Play the frigate**).
|
||||
A second crew can play the enemy. The boat has seven stations: Command, Sonar, Weapons, Engine room, Mast & ESM, Navigation and Radio room; a browser takes them like the frigate's (`F9`). As long as one of them is held, the living hostile submarine with the lowest number follows only that crew's orders; when the roles are released or the host revokes them, the AI takes the boat back from where it is. A save keeps the crew's orders, modes, mast, wires, plot, alarm bearings, ESM picture and radio log; after a load the boat runs its last orders and waits up to ten minutes for its crew to take the stations again (every boat station is re-leased) before the AI takes it back. A browser holds roles of one side only (frigate or submarine), never both; the lobby first asks which unit it plays. In solo mode the one browser holds all nine frigate stations, or with **Play the submarine** in the host bar all six boat stations (and back with **Play the frigate**).
|
||||
|
||||
- **Stations:** *Command* orders course, speed and depth, lies on the bottom, pings and takes a BT, and sees the whole boat. *Navigation* orders course and depth, keeps the boat's plot and watches keel and obstacles. *Engine room* runs the telegraph, snorkel, silent running, the trim and the emergency blow and watches battery and noise. *Mast & ESM* raises the mast and watches ESM and alarms; Command may raise it too, to look through the periscope. *Weapons* fires, guides the wires and launches decoys. *Sonar* is the boat's sonar room. Each order is accepted only from the station that owns it.
|
||||
- **Stations:** *Command* orders course, speed and depth, lies on the bottom, pings and takes a BT, and sees the whole boat. *Navigation* orders course and depth, keeps the boat's plot and watches keel and obstacles. *Engine room* runs the telegraph, snorkel, silent running, the trim and the emergency blow and watches battery and noise. *Mast & ESM* raises the mast and watches ESM and alarms; Command may raise it too, to look through the periscope. *Weapons* fires, guides the wires and launches decoys. *Sonar* is the boat's sonar room. The *Radio room* copies HQ's broadcast and sends situation reports; it may raise the mast for its antenna. Each order is accepted only from the station that owns it.
|
||||
- **Depth steps and displays:** Command and Navigation order depth in one step: periscope depth (15 m, keeps the mast usable), snorkel depth (boats with a snorkel), above or below the layer (15 m above / 30 m below; only after the boat's own BT measurement, since the crew knows the layer only from it) and deep (the safe depth over the charted bottom). On the uConsole these are `U`, `Shift+U`, `J`, `Shift+J` and `H`. The browser shows the water column (surface, periscope depth, measured layer, ordered and safe depth, seabed, the boat and its dive direction), large readouts for course, speed, depth and battery with coloured mode and alarm chips, and an ESM rose with each emitter's strobe and the ping and torpedo alarm bearings; the uConsole's Mast & ESM page has the same rose. Mast, snorkel, silent running and lying on the bottom have separate on and off buttons.
|
||||
- **Orders and weapons:** the boat follows course, speed and depth orders within its turn, depth and acceleration limits; telegraph steps (stop, 3, 6, 10, 15 kn, maximum) set the speed quickly. Fires a torpedo down a sonar contact's measured bearing, with its ping fix or TMA solution while current, or down a free bearing with an optional range; firing needs a ready tube and the target inside the tube arc. The crew sets the run depth (5-300 m, otherwise a shallow default) and fires one torpedo or two in a ±4° spread, each with its own datum. Every crew torpedo runs on a wire: the crew can move its datum (bearing and distance from the boat) and the wire turns it onto the new datum until its seeker acquires; faster than 10 kn or turning harder than 1.5°/s for 5 s breaks the wire, as does running out of either spool, and the crew can cut it. Launches a decoy and blows main ballast in an emergency (three times on a full air store).
|
||||
- **Plant and boat modes:** a crewed boat never goes up, snorkels or calls home by itself. The battery drains with speed and hotel load; below 20 % the log warns, and an empty battery limits the speed to what the plant can serve (an AIP plant still takes over the load by itself). **Snorkel** runs the diesels at snorkel depth and charges the battery, at most 6 kn; diving deeper shuts the head valve. The running diesels are loud: +12 dB radiated level, a lower quiet factor and two firing lines at 50 and 100 Hz in the boat's LOFAR signature (AI boats too). **Silent running** limits the boat to 5 kn and makes it as quiet as a lurking AI boat. **Lie on bottom** stops the boat 3 m above the seabed where the water is no deeper than test depth: silent and no drift; any speed or depth order lifts off. The boat stops short of land or a seamount instead of turning away, and the log warns in shallow water.
|
||||
@@ -1108,7 +1108,8 @@ A second crew can play the enemy. The boat has six stations: Command, Sonar, Wea
|
||||
- **Damage control:** the engine room's **Damage control** (browser card with the compartments and a table, uConsole Engine room page 4 **Damage**) divides the pressure hull into six compartments: bow room, control room, quarters, battery room, engine room and stern room. A hit on the crewed boat holes the compartment it strikes (a leak of 1.5 % per % of hit damage, up to a full hole; from 50 % damage the neighbour too, with half the leak) and may start a fire there (chance = damage / 150); a fatigue crack below test depth opens a small leak. Water comes in at 40 kg/s through a full hole at 100 m, growing with the square root of depth; above half a compartment it spills into open neighbours (20 kg/s) and smothers a fire. A fire grows to full in 2 min and then spreads through open bulkheads; seawater in the battery room (from 2 t) gives off chlorine gas that drifts through open bulkheads and clears slowly once the battery is dry. Water in the battery room (from 5 t) or a fire there cuts the **power**: the motor stops (no way on, so the hydroplanes do not hold a heavy boat), and the trim pumps, compressor and electric bilge pumps stand still. **Shutting the bulkheads** of a compartment keeps water, fire and gas in it and starves a fire there in 3 min. Two **damage-control teams** walk the boat (8 s per compartment) and **seal a leak** (a full hole in 60 s), **pump out** (30 kg/s, a quarter by hand without power) or **fight a fire** (a full fire in 60 s); in gas they work at half rate, and in a compartment 90 % full they can only pump. A compartment half full of water, half on fire or half gassed takes its station out: the bow room the torpedo tubes, the control room the mast and periscope, the engine room the diesels, the stern room half the top speed. The floodwater is weight and moment for the trim (see above); a boat that sinks below 1.5 x test depth is crushed. The log reports leaks, fires, sealed leaks, fires out, flooded compartments, chlorine and power.
|
||||
- **Crew:** the boat has its own watch bill with the frigate's rules (see Damage control, Crew and watches): three watches, fatigue, action stations and morale. The Engine room and Command order action stations (`B` on the uConsole, a button in the browser's Damage control card) and relieve the watch (`M` on the Damage page, or the button). Morale rises when a ship sinks and falls with every 10 % of hull damage. A tired crew hears later on sonar, sights later through the periscope and its damage-control teams seal and fight fire more slowly (the pumps are machinery and keep their rate).
|
||||
- **Situation picture:** an intercepted active ping or torpedo is logged with the bearing the boat's own ears measured (a few degrees off) and shown with its age in the alarms. At periscope depth the **mast** can be raised; its ESM then reports the radars sweeping the boat with bearing (log and ESM list), and the mast lowers by itself when the boat goes deeper. With the mast up the **periscope** page (Command page 3, Mast & ESM page 2; `P` raises the mast at both) shows the eyepiece: sky and sea in the light of the hour, the horizon moving with the sea, a true-bearing scale and a crosshair; the scope trains in 2° steps (`←`/`→`, `Shift`: 10°). Everything the optics make out within the frigate lookout's contrast model at 2.5 m eye height (day/night, moon, visibility, sea state, land in the way) appears as a silhouette and as a bearing-only **sighting** with a coarse class (warship, merchant ship, vessel, aircraft, torpedo wake) and its apparent length; the log reports each new sighting. `Enter` reads the **stadimeter** on the sighting under the crosshair: the range follows from its apparent length and the assumed hull length of the class (130 m for a warship or an unrecognized vessel, 150 m for a merchant), so an unrecognized or bow-on target reads long; the reading is ±25 % and becomes a VISUAL fix on the boat's sonar contact of that target for 120 s, usable for a shot like a ping fix. Aircraft and wakes cannot be ranged. The charted coast stands on the periscope's horizon as far as its low optics see land (hills assumed 25 to 70 m). Command can also ping and take a BT without a sonar operator. The chart shows the tube firing arc where the tubes cannot fire all round, and the sonar room's assigned target is preselected for the shot.
|
||||
- **Mast & ESM:** with the mast up at periscope depth the boat's own ESM antenna (3 m above the water) hears the radars around it once a second: the frigate's, other ships' and aircraft radars inside the radar horizon, over land only where the coast does not block the line. Each intercept carries the measured bearing (±4°), band, carrier frequency, PRF, modulation and received level, never the emitter's identity or position. The crew keeps an **emitter list** (`E1`, `E2` …) across mast periods: an intercept joins an emitter when bearing, band and waveform agree (a frequency-agile radar by bearing and band only), and the list forgets an emitter 30 minutes after its last intercept. **Classification** is the crew's annotation from the library: the emitters whose published frequency and PRF ranges hold the measurement, unranked, as at the frigate's ELOKA without assistance; the choice sets the power class for the **range estimate** from the level (unclassified: the shortest range the library allows). Every 30 s each emitter keeps a **bearing** from the boat's own position (20 minutes); the chart shows the latest bearing lines, and once the boat's own motion has swung the bearing by at least 8°, the **cross-fix** is their best crossing with a 95 % error ellipse that allows for an emitter drifting up to 8 kn since each line (a fast frigate usually gives none; a fix whose lines disagree is marked). The **level trend** reads rising, steady or falling over five minutes. The **mast warning** ("radar can see the mast") comes when a live search radar's estimated range is inside the range at which a surface radar sees a raised mast in this sea and rain (the weather page's value); the **recommended mast time** is 60 s in a calm sea, up to 300 s when sea clutter hides the mast and 20 s under that warning, and the log reports when it is exceeded. From sea state 3 waves wash over the antenna and some scans hear nothing. The browser's Mast & ESM card has the rose, the emitter table and the selected emitter's evaluation; **Transfer to plot** puts the cross-fix (mark and error circle) or else the latest bearing line into the boat's plot. On the uConsole's Mast & ESM page `↑`/`↓` select an emitter, `←`/`→` step through its library classification and `Enter` transfers it to the plot.
|
||||
- **Mast & ESM:** with the mast up at periscope depth the boat's own ESM antenna (3 m above the water) hears the radars around it once a second: the frigate's, other ships' and aircraft radars inside the radar horizon, over land only where the coast does not block the line. The frigate's helicopter radiates its X-band search radar while it flies and is not dipping (antenna at 150 m), the patrol aircraft its frequency-agile search radar while the OPZ has it switched on. Each intercept carries the measured bearing (±4°), band, carrier frequency, PRF, modulation and received level, never the emitter's identity or position. The crew keeps an **emitter list** (`E1`, `E2` …) across mast periods: an intercept joins an emitter when bearing, band and waveform agree (a frequency-agile radar by bearing and band only), and the list forgets an emitter 30 minutes after its last intercept. **Classification** is the crew's annotation from the library: the emitters whose published frequency and PRF ranges hold the measurement, unranked, as at the frigate's ELOKA without assistance; the choice sets the power class for the **range estimate** from the level (unclassified: the shortest range the library allows). Every 30 s each emitter keeps a **bearing** from the boat's own position (20 minutes); the chart shows the latest bearing lines, and once the boat's own motion has swung the bearing by at least 8°, the **cross-fix** is their best crossing with a 95 % error ellipse that allows for an emitter drifting up to 8 kn since each line (a fast frigate usually gives none; a fix whose lines disagree is marked). The **level trend** reads rising, steady or falling over five minutes. The **mast warning** ("radar can see the mast") comes when a live search radar's estimated range is inside the range at which a surface radar sees a raised mast in this sea and rain (the weather page's value); the **recommended mast time** is 60 s in a calm sea, up to 300 s when sea clutter hides the mast and 20 s under that warning, and the log reports when it is exceeded. From sea state 3 waves wash over the antenna and some scans hear nothing. The browser's Mast & ESM card has the rose, the emitter table and the selected emitter's evaluation; **Transfer to plot** puts the cross-fix (mark and error circle) or else the latest bearing line into the boat's plot. On the uConsole's Mast & ESM page `↑`/`↓` select an emitter, `←`/`→` step through its library classification and `Enter` transfers it to the plot.
|
||||
- **Radio room:** fleet headquarters sends a submarine broadcast every 10 minutes (broadcast 0 at mission start, then 1, 2 …) and repeats it until the next one. The boat copies it only with its antenna up, which is the raised mast at periscope depth, and only after 20 s of unbroken reception inside that broadcast's time on the air; a boat that stays deep misses broadcasts and only ever gets the latest. A broadcast carries HQ's **contact report** on the frigate in 60 % of cases: a position 5 to 15 minutes old with an error circle of 4 NM, and its course and speed rounded. On the chart it is drawn as an amber circle with its age, and the radio page gives bearing and range from the boat. A **situation report** (`Enter` at the radio room, or the browser's button) is 20 s of HF transmission with the antenna up. During it the frigate's HF direction finder can take a bearing on the boat (radio room HF/DF), and lowering the mast aborts it. HQ acknowledges a report in its next broadcast and then always adds a sharper contact report (2 NM). The radio page and the browser's Radio room card show the antenna, the broadcast number and time to the next one, copy and transmit progress, the reports sent, the latest contact report and the radio log (12 entries, saved).
|
||||
- **Counter-detection and evasion:** the boat's sonar room tells an intercepted active ping by its frequency as the frigate's hull sonar, a helicopter's dipping sonar or a sonobuoy, and logs it with the measured bearing and the received level (dB re 1 µPa, from source level, spreading and absorption); a buoy pinging within 12 NM is heard only by a crewed boat. A buoy splashing into the water within 4 NM is heard with a rough bearing (±6°), and a torpedo alarm is kept with its bearing. The **Threat** page (Command page 4 and Navigation page 2; the browser's Threat card at Command and Navigation) counts the pings of the last 5 minutes by source, gives the loudest level with its assessment (from 150 dB the pinger probably holds an echo) and the trend of the last two pings (rising: closing in), splashes, torpedo alarms and ESM emitters, the boat's own signature (depth against the measured layer, own noise: cavitating, snorkelling, loud, moderate or quiet, the mast) and the crew's recommendations. The chart draws each intercept of the last 2 minutes as a dashed bearing ray. **Evade** (`I` at Command or Navigation, the browser's **Evade** button) gives the crew's evasion order for the freshest alarm (under 2 minutes): against a torpedo, the smaller turn that puts it 150° on the quarter, full speed and a decoy; against active sonar, the stern to the pinger, silent running at 3 kn. Both cross the measured layer (down when above or in it, up when below it), or go deep without a BT; the boat lifts off the bottom first. The order goes through the same checks as the single keys, and the page shows it before it is given. The picture is display only and not saved.
|
||||
- **Navigation and plot:** the engine room has telegraph buttons, and Command and Navigation share the boat's own grease-pencil plot (marks, rulers, bearing lines, circles, DR lines); the frigate never sees it, and the boat's plot is not saved. The navigation display shows the water under the keel and checks the chart along the ordered course up to 5 NM: land or a seabed shallower than the boat is reported as an obstacle ahead, in the log and as a warning. Only charted geography counts; other vessels are not in the check.
|
||||
- **Submarine sonar:** the same sonar workstation as on the frigate (broadband, LOFAR, DEMON, TMA, active echoes, classification, listening audio), but the hull array listens at the boat's own depth, so the layer works for and against the crew. There is no towed array and no release to an OPZ. An active ping gives echoes and is heard by the frigate.
|
||||
@@ -1120,11 +1121,11 @@ A second crew can play the enemy. The boat has six stations: Command, Sonar, Wea
|
||||
|
||||
Every new game first asks **Which unit do you play?**: *Frigate F-217* or *Hostile submarine* (`Up`/`Down` or `1`/`2`, `Enter`; the last choice is preselected, `--play-sub` preselects the submarine). Outside a mission, Options (`F10`) page 2 **uConsole plays** changes it as well, for example before loading a game. With the submarine the uConsole commands the hostile boat instead of the frigate. The frigate is then crewed from the browsers through Remote Crew (`F9`) or runs on autocrew. The uConsole shows only the boat's own picture; the frigate's banners, event log, sound cues, plot and tooltips never appear, and its trackball and telegraph controls are disabled. The side can only be changed outside a mission; it lasts for this launch and is never saved, so every launch starts with the frigate.
|
||||
|
||||
The top bar shows the boat's six stations as tabs: `1` Command, `2` Sonar, `3` Weapons, `4` Engine room, `5` Mast & ESM, `6` Navigation (`Tab` or a click on a tab switches). Each order key works only at the station that owns it, as in the browser; elsewhere a banner names the right station. Browsers can crew the boat's other stations at the same time; a station a browser holds is marked in the top bar and is not operated from the uConsole. Every station but the sonar room is laid out like the Bridge: the chart on the left (known geography, the boat's own plot, the ESM bearing lines and cross-fixes, the boat with its ordered course and motion vector, the bearing lines of its own sonar contacts or their symbol while a ping or TMA fix is current, its own torpedoes `T1`…, a limited tube firing arc), the station on the right with a threat bar (torpedo alarm and active sonar heard with measured bearing, hull damage, cavitation, low battery, ESM radar intercept) and the station's page. **Command** has four pages, the **Engine room** four, **Mast & ESM** two and **Navigation** two (the station's key again or `PgUp`/`PgDn`). The Engine room's second page **Stores** shows energy, endurance and air; `R` cycles the charge rate, `A` fits an absorber set and `O` lights an oxygen candle. Its third page **Tanks** shows the cross-section, main ballast and air, the tanks with their orders, weight, trim angle, drift without planes, flooding and pumps; `↑`/`↓` pump out or flood the regulating tank, `←`/`→` move trim water aft or forward and `Z` switches the automatic trim. Its fourth page **Damage** shows the compartments (water, leak, fire, gas, shut bulkheads, teams), the table of compartments, the power and both teams; `↑`/`↓` pick a compartment, `←`/`→` a task, `Enter` sends team 1 and `Shift+Enter` team 2 there with that task, and `I` shuts or opens the compartment's bulkheads. **Navigation** (page and station) shows course and depth, water under the keel and any charted obstacle ahead, speed, own noise, battery and the active modes, and the water column under the boat: boat depth, ordered depth, safe depth and seabed; the layer appears there only after the boat's own BT measurement (`E` at the submarine sonar). **Weapons & contacts** (page and Weapons station) shows fire readiness, torpedoes, tubes ready, reload, decoys, emergency blow and the boat's own sonar contacts (bearing, range where known, and quality in percent: the better of the signal quality and the track confidence, 100 % being a firm contact). The **Engine room** shows speed, own noise, battery, the modes and the telegraph steps; **Mast & ESM** shows the mast time, the rose, the emitter list and the selected emitter (signal, level and trend, cross-fix, classification); its second page and Command's third are the **Periscope** (eyepiece, line of sight, light and the sightings list; `←`/`→` train, `Enter` stadimeter). Below are the boat log and the boat's telemetry, as a band or a status ticker as set in the options; orders, shots and decoys are logged there.
|
||||
The top bar shows the boat's seven stations as tabs: `1` Command, `2` Sonar, `3` Weapons, `4` Engine room, `5` Mast & ESM, `6` Navigation, `7` Radio room (`Tab` or a click on a tab switches). Each order key works only at the station that owns it, as in the browser; elsewhere a banner names the right station. Browsers can crew the boat's other stations at the same time; a station a browser holds is marked in the top bar and is not operated from the uConsole. Every station but the sonar room is laid out like the Bridge: the chart on the left (known geography, the boat's own plot, the ESM bearing lines and cross-fixes, the boat with its ordered course and motion vector, the bearing lines of its own sonar contacts or their symbol while a ping or TMA fix is current, its own torpedoes `T1`…, a limited tube firing arc), the station on the right with a threat bar (torpedo alarm and active sonar heard with measured bearing, hull damage, cavitation, low battery, ESM radar intercept) and the station's page. **Command** has four pages, the **Engine room** four, **Mast & ESM** two and **Navigation** two (the station's key again or `PgUp`/`PgDn`). The Engine room's second page **Stores** shows energy, endurance and air; `R` cycles the charge rate, `A` fits an absorber set and `O` lights an oxygen candle. Its third page **Tanks** shows the cross-section, main ballast and air, the tanks with their orders, weight, trim angle, drift without planes, flooding and pumps; `↑`/`↓` pump out or flood the regulating tank, `←`/`→` move trim water aft or forward and `Z` switches the automatic trim. Its fourth page **Damage** shows the compartments (water, leak, fire, gas, shut bulkheads, teams), the table of compartments, the power and both teams; `↑`/`↓` pick a compartment, `←`/`→` a task, `Enter` sends team 1 and `Shift+Enter` team 2 there with that task, and `I` shuts or opens the compartment's bulkheads. **Navigation** (page and station) shows course and depth, water under the keel and any charted obstacle ahead, speed, own noise, battery and the active modes, and the water column under the boat: boat depth, ordered depth, safe depth and seabed; the layer appears there only after the boat's own BT measurement (`E` at the submarine sonar). **Weapons & contacts** (page and Weapons station) shows fire readiness, torpedoes, tubes ready, reload, decoys, emergency blow and the boat's own sonar contacts (bearing, range where known, and quality in percent: the better of the signal quality and the track confidence, 100 % being a firm contact). The **Engine room** shows speed, own noise, battery, the modes and the telegraph steps; **Mast & ESM** shows the mast time, the rose, the emitter list and the selected emitter (signal, level and trend, cross-fix, classification); its second page and Command's third are the **Periscope** (eyepiece, line of sight, light and the sightings list; `←`/`→` train, `Enter` stadimeter). The **Radio room** has one page: antenna, broadcast schedule, copy and transmit progress, HQ's latest contact report and the radio log; `Enter` sends a situation report and `P` raises or lowers the mast. Below are the boat log and the boat's telemetry, as a band or a status ticker as set in the options; orders, shots and decoys are logged there.
|
||||
|
||||
| Key | Action |
|
||||
|---|---|
|
||||
| `1 … 6 / Tab` | Stations: 1 Command, 2 Sonar, 3 Weapons, 4 Engine room, 5 Mast & ESM, 6 Navigation; Tab next (click a tab too) |
|
||||
| `1 … 7 / Tab` | Stations: 1 Command, 2 Sonar, 3 Weapons, 4 Engine room, 5 Mast & ESM, 6 Navigation, 7 Radio room; Tab next (click a tab too) |
|
||||
| `C / V / D` | Order course / speed / depth (Command; course and depth also Navigation, speed also Engine room) |
|
||||
| `U / J / H` | Depth steps: periscope / snorkel depth (Shift), below / above the measured layer (Shift), deep (Command, Navigation) |
|
||||
| `Page Up/Down` | Command pages: Navigation / Weapons & contacts / Periscope / Threat (or 1 again); Navigation pages: Navigation / Threat (or 6 again); Mast & ESM pages: ESM / Periscope (or 5 again) |
|
||||
@@ -1143,7 +1144,7 @@ The top bar shows the boat's six stations as tabs: `1` Command, `2` Sonar, `3` W
|
||||
| `G` | Silent running on/off, at most 5 kn (Command, Engine room) |
|
||||
| `Shift+G` | Lie on the bottom / lift off (Command, Navigation) |
|
||||
| `N` | Snorkel up/down, diesels charge at snorkel depth (Engine room) |
|
||||
| `P` | Raise/lower mast at periscope depth: ESM hears radars, the periscope sees (Command, Mast & ESM) |
|
||||
| `P` | Raise/lower mast at periscope depth: ESM hears radars, the periscope sees, the radio antenna is up (Command, Mast & ESM, Radio room) |
|
||||
| `Arrow keys` | Mast & ESM page: select an emitter |
|
||||
| `← / →` | Mast & ESM page: classify the emitter from the library (annotation, never truth) |
|
||||
| `Enter` | Mast & ESM page: cross-fix (or the bearing line) into the boat's plot |
|
||||
@@ -1161,6 +1162,7 @@ The top bar shows the boat's six stations as tabs: `1` Command, `2` Sonar, `3` W
|
||||
| `Enter` | Engine room, damage page: send team 1 (Shift: team 2) with the task |
|
||||
| `I` | Engine room, damage page: shut or open the compartment's bulkheads |
|
||||
| `I` | Command, Navigation: evade the freshest ping or torpedo alarm (course, speed, layer, silent running or decoy) |
|
||||
| `Enter` | Radio room: send a situation report to HQ (needs the mast up at periscope depth; the frigate can take an HF bearing) |
|
||||
| `M` | Engine room, damage page: relieve the duty watch now |
|
||||
| `B` | Action stations on/off (all watches on duty, alert but tiring) |
|
||||
| `0` | Weather panel of the boat (0 or Esc closes) |
|
||||
@@ -1168,12 +1170,12 @@ The top bar shows the boat's six stations as tabs: `1` Command, `2` Sonar, `3` W
|
||||
|
||||
#### Not modelled
|
||||
|
||||
- The crewed boat sends no radio traffic and receives none; there is no contact report from home.
|
||||
- The radio room knows only HQ's broadcast schedule and situation reports: no orders or messages from HQ, no reception while deep (no VLF/ELF), no burst transmission and no other units on the net; HQ's contact report is modelled intelligence, not a sensor of its own.
|
||||
- Damage control is six compartments and two teams: no separate pressure-hull and outer-hull damage, no casualties, no smoke or heat spreading, no fire in the air stores and no fire consuming oxygen; the boat's overall damage (noise, top speed, sinking at 100 %) still adds up from hits, and the AI's boats keep only that value.
|
||||
- The trim model is one weight and one moment: no free-surface effect, no compressibility of the hull with depth and no separate negative tank; the boat does not surface fully. Food and fresh water do not run out.
|
||||
- A raised mast or snorkel head is seen by the frigate's radar only as a bare blip (see the OPZ chapter).
|
||||
- The boat's ESM hears no other submarine's radar and no missile seeker; it has no scored library analysis, no scan-period measurement and no target motion analysis of an emitter (the cross-fix assumes a slow emitter).
|
||||
- The boat's ESM hears no radar on the frigate's helicopter or on the patrol aircraft (the library has no emitter for them).
|
||||
- The boat's library shows only the first candidates in catalogue order; for an X-band search radar with many possible matches (the helicopter's) the right entry can fall outside the list.
|
||||
- The campaign is played from the frigate only; with the uConsole on the boat the frigate has no automatic hunting crew (its autocrew only reacts), so a solo boat campaign waits for one.
|
||||
- The periscope has one magnification and no camera; sightings carry no identification beyond the coarse class, and the stadimeter assumes a class length rather than a masthead height.
|
||||
|
||||
|
||||
@@ -111,3 +111,31 @@ sichtbaren Nutzen. C ist Voraussetzung für die Auftriebsfolgen in D.
|
||||
4. Leckwehr zunächst als Seite von Station 4 oder gleich als eigene
|
||||
Browserrolle?
|
||||
5. Reihenfolge A → B → C → D?
|
||||
|
||||
## Stufe E und weitere Punkte (Stand 2026-09-28, App 1.3.1)
|
||||
|
||||
Erledigt:
|
||||
|
||||
- **Funkraum (7. Bootsstation, Save v22):** Rundspruch der Führung alle
|
||||
10 Minuten mit Feindlagemeldung, Lagemeldung per KW (die Fregatte kann
|
||||
peilen), Funktagebuch; uConsole Taste 7, Browser-Rolle `uboot_radio`.
|
||||
- **Luftfahrzeugradare im Boots-ESM:** Katalog-Emitter
|
||||
`emitter.own_asset.helicopter.radar` und `emitter.own_asset.mpa.radar`;
|
||||
der Hubschrauber strahlt im Flug (nicht beim Tauchen), das MPA nur mit
|
||||
eingeschaltetem Radar.
|
||||
|
||||
Offen, in dieser Reihenfolge (Dominik, 2026-09-28: "ja nehme das in den
|
||||
plan mit auf und setzte das auch um"):
|
||||
|
||||
1. **KI-Jäger:** Fregatte, Hubschrauber und MPA jagen das Boot aktiv, wenn
|
||||
niemand die Fregatte spielt (Suchmuster, Bojenfelder, Datum aus
|
||||
HF-DF/ESM, Angriff). Voraussetzung für ein Solo-Spiel auf der Bootsseite.
|
||||
2. **Bootsmissionen und Bootskampagne:** Durchbruch, Angriff auf einen
|
||||
Geleitzug, Aufklärung; baut auf Punkt 1 auf.
|
||||
3. **Angriffsrechner am Sehrohr:** Lösung aus Peilung, Stadimeter und Lage,
|
||||
Vorhaltewinkel für den Torpedo.
|
||||
4. **Atmosphäre:** Bootsgeräusche, Wasserbomben/Detonationen,
|
||||
Druckkörperknacken in der Tiefe, gedämpftes Licht bei Schleichfahrt.
|
||||
5. **ESM-Bibliothek:** Kandidaten nach Passung (PRF, Modulation) statt
|
||||
Katalogreihenfolge sortieren, damit das Hubschrauberradar in der Liste
|
||||
bleibt.
|
||||
@@ -709,6 +709,10 @@ def _uboot_mast(game, boat, params, _bindings):
|
||||
return _uboot_result(boat.sub.command_mast(params["enabled"]))
|
||||
|
||||
|
||||
def _uboot_radio_send(game, boat, params, _bindings):
|
||||
return boat.radio.send_sitrep(game, boat)
|
||||
|
||||
|
||||
def _uboot_silent(game, boat, params, _bindings):
|
||||
return _uboot_result(boat.sub.command_silent(params["enabled"]))
|
||||
|
||||
@@ -761,6 +765,7 @@ _UBOOT_ACTION_HANDLERS = {
|
||||
"uboot_watch_change": _uboot_watch_change,
|
||||
"uboot_o2_candle": _uboot_o2_candle,
|
||||
"uboot_mast": _uboot_mast,
|
||||
"uboot_radio_send": _uboot_radio_send,
|
||||
"uboot_silent": _uboot_silent,
|
||||
"uboot_evade": _uboot_evade,
|
||||
"uboot_bottom": _uboot_bottom,
|
||||
|
||||
@@ -1466,6 +1466,35 @@ def _uboot_threat(game, boat):
|
||||
return view
|
||||
|
||||
|
||||
def _uboot_radio_report(game, report):
|
||||
if report is None:
|
||||
return None
|
||||
return dict(x=_number(report["x"]), y=_number(report["y"]),
|
||||
radius_nm=_number(report["radius_nm"]), course=_number(report["course"]),
|
||||
speed_kn=_number(report["speed_kn"]),
|
||||
age_s=_number(max(0.0, game.sim_t - report["as_of"])))
|
||||
|
||||
|
||||
def _uboot_radio(game, boat):
|
||||
"""The radio room: HQ broadcast schedule, the boat's own transmissions and
|
||||
the copied messages (HQ's contact report is modelled intelligence, see
|
||||
src/core/boat_radio.py)."""
|
||||
radio = boat.radio
|
||||
progress = radio.progress(game, boat)
|
||||
latest = radio.latest_report()
|
||||
return dict(
|
||||
antenna=bool(progress["antenna"]), broadcast=int(progress["broadcast"]),
|
||||
copied=bool(progress["copied"]), next_s=_number(progress["next_s"]),
|
||||
copy=_number(progress["copy"]), send=_number(progress["send"]),
|
||||
transmitting=bool(radio.transmitting), sitreps=int(progress["sitreps"]),
|
||||
ack_due=bool(progress["ack_due"]),
|
||||
report=_uboot_radio_report(game, None if latest is None else latest["report"]),
|
||||
log=[dict(seq=int(row["seq"]), kind=row["kind"], age_s=_age(game.sim_t, row["t"]),
|
||||
number=None if row["number"] is None else int(row["number"]),
|
||||
ack=bool(row["ack"]), report=_uboot_radio_report(game, row["report"]))
|
||||
for row in reversed(radio.log)])
|
||||
|
||||
|
||||
def _uboot(game, boat, rows, target_ref, asset_refs):
|
||||
"""The crewed submarine's commander: own boat (legitimate truth), its
|
||||
orders, weapons and the boat's own sonar contacts."""
|
||||
@@ -1543,6 +1572,7 @@ def _uboot(game, boat, rows, target_ref, asset_refs):
|
||||
ballast=_uboot_ballast(sub),
|
||||
damage_control=_uboot_damage(game, boat),
|
||||
threat=_uboot_threat(game, boat),
|
||||
radio=_uboot_radio(game, boat),
|
||||
feed=[dict(seq=int(row["seq"]), age_s=_age(game.sim_t, row["t"]),
|
||||
message=str(localize(row["text"], game.tr))[:256])
|
||||
for row in list(boat.feed)[-16:]])
|
||||
|
||||
@@ -133,7 +133,8 @@ UBOOT_REASONS = frozenset((
|
||||
"uboot_too_deep", "uboot_no_snorkel", "uboot_no_wire", "uboot_mast_depth",
|
||||
"uboot_mast_down", "uboot_no_sighting", "uboot_no_stadimeter",
|
||||
"uboot_no_absorbers", "uboot_no_candles", "uboot_candle_burning",
|
||||
"uboot_no_air_stores", "uboot_no_hp_air", "uboot_compartment_down"))
|
||||
"uboot_no_air_stores", "uboot_no_hp_air", "uboot_compartment_down",
|
||||
"uboot_no_antenna", "uboot_transmitting"))
|
||||
|
||||
|
||||
def _uboot_ballast_params(params):
|
||||
@@ -635,7 +636,10 @@ V2_ACTION_REGISTRY = {
|
||||
"uboot_action_stations": V2Action(frozenset({"uboot", "uboot_engine"}),
|
||||
_bool_params("enabled")),
|
||||
"uboot_watch_change": V2Action(frozenset({"uboot", "uboot_engine"}), _no_params),
|
||||
"uboot_mast": V2Action(frozenset({"uboot", "uboot_esm"}), _bool_params("enabled")),
|
||||
"uboot_mast": V2Action(frozenset({"uboot", "uboot_esm", "uboot_radio"}),
|
||||
_bool_params("enabled")),
|
||||
# The radio room sends the boat's situation report to HQ (HF, bearable).
|
||||
"uboot_radio_send": V2Action(frozenset({"uboot_radio"}), _no_params),
|
||||
"uboot_wire_steer": V2Action(frozenset({"uboot_weapons"}), _uboot_wire_params),
|
||||
"uboot_wire_cut": V2Action(frozenset({"uboot_weapons"}), _single_ref_params),
|
||||
"uboot_silent": V2Action(frozenset({"uboot", "uboot_engine"}), _bool_params("enabled")),
|
||||
|
||||
@@ -59,7 +59,7 @@ WEATHER_BOAT_FIELDS = (
|
||||
|
||||
_UBOOT_COMMAND_SHAPE = ("navigation", "status", "weapons", "alarms", "contacts",
|
||||
"own_weapons", "designated_target_ref", "feed", "scope", "plant",
|
||||
"esm", "ballast", "damage_control", "threat")
|
||||
"esm", "ballast", "damage_control", "threat", "radio")
|
||||
# The boat's plant and stores (``plant``): numbers, then the air block.
|
||||
UBOOT_PLANT_FIELDS = (
|
||||
"propulsion", "phase", "battery_kwh", "battery_capacity_kwh", "aip_kwh",
|
||||
@@ -105,6 +105,13 @@ UBOOT_THREAT_ADVICE = ("uboot.advice.torpedo", "uboot.advice.mast_down",
|
||||
"uboot.advice.go_below", "uboot.advice.evade")
|
||||
UBOOT_EVADE_PLAN_FIELDS = ("kind", "bearing", "course", "speed_kn", "depth_m", "silent",
|
||||
"decoy")
|
||||
# The boat's radio room (``radio``, src/core/boat_radio.py): schedule,
|
||||
# transmissions, HQ's latest contact report and the message log.
|
||||
UBOOT_RADIO_FIELDS = ("antenna", "broadcast", "copied", "next_s", "copy", "send",
|
||||
"transmitting", "sitreps", "ack_due", "report", "log")
|
||||
UBOOT_RADIO_LOG_FIELDS = ("seq", "kind", "age_s", "number", "ack", "report")
|
||||
UBOOT_RADIO_LOG_KINDS = ("broadcast", "sent", "aborted")
|
||||
UBOOT_RADIO_REPORT_FIELDS = ("x", "y", "radius_nm", "course", "speed_kn", "age_s")
|
||||
UBOOT_ESM_FIX_FIELDS = ("x", "y", "major_nm", "minor_nm", "axis_deg", "lines", "consistent")
|
||||
# Top-level keys of every role payload (exact sets on both sides).
|
||||
ROLE_SHAPES = {
|
||||
|
||||
@@ -27,11 +27,11 @@ _V2_STATION_LEASE_S = 15.0
|
||||
_V2_SESSION_LIMIT = 12
|
||||
STATIONS = ("bridge", "sonar", "weapons", "damage", "opz", "radio",
|
||||
"engine", "helicopter", "eloka")
|
||||
# The crewed hostile submarine's six stations (command, sonar, weapons,
|
||||
# engine, mast/ESM, navigation). They are leased like the frigate's but never
|
||||
# The crewed hostile submarine's seven stations (command, sonar, weapons,
|
||||
# engine, mast/ESM, navigation, radio room). They are leased like the frigate's but never
|
||||
# belong to the frigate crew: a session holds roles of one side only.
|
||||
OPFOR_ROLES = ("uboot", "uboot_sonar", "uboot_weapons", "uboot_engine", "uboot_esm",
|
||||
"uboot_nav")
|
||||
"uboot_nav", "uboot_radio")
|
||||
# Boat stations served by the command projection (everything but its sonar room).
|
||||
UBOOT_COMMAND_ROLES = tuple(role for role in OPFOR_ROLES if role != "uboot_sonar")
|
||||
ROLES = STATIONS + OPFOR_ROLES
|
||||
|
||||
+20
-1
@@ -21,7 +21,7 @@ from src.core import config, detrand
|
||||
from src.core import plot as plot_geometry
|
||||
from src.sensors import radar as radar_physics
|
||||
from src.sensors.esm import (ESM_ASSOCIATION_MAX_GAP_S, ESMMeasurement, ESMTrack,
|
||||
POWER_CLASS_RANGE_NM, SignalType,
|
||||
POWER_CLASS_RANGE_NM, RadarSuiteController, SignalType,
|
||||
_validate_track, estimated_range_nm, library_emitters,
|
||||
scan_for_signals, spectrum_band)
|
||||
from src.sensors.platform import MAST_DEPTH_M
|
||||
@@ -646,6 +646,25 @@ def emissions(game):
|
||||
for signal in game._radar_signals(raider, "su_25", enabled=not raider.despawned,
|
||||
fire_control=raider.fc_radar_on):
|
||||
yield signal, float(raider.altitude_m)
|
||||
yield from own_asset_emissions(game)
|
||||
|
||||
|
||||
def own_asset_emissions(game):
|
||||
"""The frigate's aircraft radars: the helicopter's search radar while it
|
||||
flies (not in the dip) and the patrol aircraft's while it is switched on."""
|
||||
emitters = game.runtime_catalog.emitters
|
||||
helo = game.helo
|
||||
key = config.HELO_RADAR_EMITTER
|
||||
if key in emitters and helo.airborne and helo.dip_state == "STOWED":
|
||||
controller = RadarSuiteController((emitters[key],), game.seed * 31 + 1)
|
||||
for signal in controller.active_signals(game.sim_t, helo.x, helo.y):
|
||||
yield signal, config.HELO_RADAR_ALTITUDE_M
|
||||
mpa = getattr(game, "mpa", None)
|
||||
key = config.MPA_RADAR_EMITTER
|
||||
if key in emitters and mpa is not None and mpa.airborne and mpa.radar_on:
|
||||
controller = RadarSuiteController((emitters[key],), game.seed * 31 + 2)
|
||||
for signal in controller.active_signals(game.sim_t, mpa.x, mpa.y):
|
||||
yield signal, config.MPA_ALTITUDE_M
|
||||
|
||||
|
||||
def band(frequency_hz: float) -> str:
|
||||
|
||||
@@ -0,0 +1,246 @@
|
||||
"""The crewed boat's radio room: HQ broadcast and situation reports
|
||||
(save ``crew.radio``).
|
||||
|
||||
Fleet headquarters sends its submarine broadcast on a fixed schedule: a new
|
||||
broadcast every ``UBOOT_RADIO_BROADCAST_S``, repeated until the next one.
|
||||
The boat copies the broadcast on the air once its antenna (the raised mast
|
||||
at periscope depth) has been up for ``UBOOT_RADIO_COPY_S`` without a break;
|
||||
a boat that stays deep misses broadcasts and only ever gets the latest.
|
||||
|
||||
A broadcast may carry HQ's contact report on the frigate: a position that is
|
||||
some minutes old (a reconnaissance fix, dead-reckoned back from the frigate's
|
||||
motion when it is copied), with an error circle, rounded course and speed.
|
||||
This is modelled intelligence with deterministic noise keyed by seed and
|
||||
broadcast number, never the frigate's live position.
|
||||
|
||||
A situation report goes out on HF: ``UBOOT_RADIO_TX_S`` of transmission with
|
||||
the antenna up, during which the frigate's HF direction finder can take a
|
||||
bearing on the boat (``Sub.transmitting``). Lowering the mast aborts it.
|
||||
HQ acknowledges a report in its next broadcast and then always adds a
|
||||
sharper contact report.
|
||||
"""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
import math
|
||||
|
||||
from src.core import config, detrand
|
||||
from src.sensors.platform import MAST_DEPTH_M
|
||||
|
||||
VERSION = 1
|
||||
LOG_KINDS = ("broadcast", "sent", "aborted")
|
||||
STATE_FIELDS = frozenset({"version", "seq", "copied", "copy_since", "tx_until",
|
||||
"tx_since", "sitreps", "ack_due", "log"})
|
||||
LOG_FIELDS = frozenset({"seq", "t", "kind", "number", "ack", "report"})
|
||||
REPORT_FIELDS = frozenset({"x", "y", "radius_nm", "course", "speed_kn", "as_of"})
|
||||
|
||||
|
||||
def _finite(value) -> bool:
|
||||
return type(value) in (int, float) and math.isfinite(value)
|
||||
|
||||
|
||||
def broadcast_number(sim_t: float) -> int:
|
||||
return int(math.floor(max(0.0, sim_t) / config.UBOOT_RADIO_BROADCAST_S))
|
||||
|
||||
|
||||
def antenna_up(boat) -> bool:
|
||||
"""The radio antenna is above the water: mast raised at periscope depth."""
|
||||
sub = boat.sub
|
||||
return bool(boat.orders.mast and not sub.sunk and sub.depth <= MAST_DEPTH_M + 1.0)
|
||||
|
||||
|
||||
class BoatRadio:
|
||||
"""The radio room's schedule, transmissions and message log."""
|
||||
|
||||
def __init__(self):
|
||||
self.seq = 0
|
||||
self.copied = -1 # number of the last broadcast copied
|
||||
self.copy_since = None # antenna up since (sim s), for copying
|
||||
self.tx_since = None # situation report on the air since
|
||||
self.tx_until = None # ... and until (sim s)
|
||||
self.sitreps = 0
|
||||
self.ack_due = False # HQ acknowledges in its next broadcast
|
||||
self.log: list[dict] = []
|
||||
|
||||
# -- state ---------------------------------------------------------------
|
||||
|
||||
@property
|
||||
def transmitting(self) -> bool:
|
||||
return self.tx_until is not None
|
||||
|
||||
def latest_report(self):
|
||||
return next((row for row in reversed(self.log) if row["report"] is not None), None)
|
||||
|
||||
def _add(self, sim_t: float, kind: str, number=None, ack=False, report=None) -> dict:
|
||||
self.seq += 1
|
||||
row = dict(seq=self.seq, t=float(sim_t), kind=kind, number=number, ack=bool(ack),
|
||||
report=report)
|
||||
self.log.append(row)
|
||||
del self.log[:-config.UBOOT_RADIO_LOG_MAX]
|
||||
return row
|
||||
|
||||
# -- orders ----------------------------------------------------------------
|
||||
|
||||
def send_sitrep(self, game, boat):
|
||||
"""Start a situation report; True or the reason it cannot go out."""
|
||||
if boat.sub.sunk or not boat.sub._crew_ready():
|
||||
return "not_ready"
|
||||
if not antenna_up(boat):
|
||||
return "uboot_no_antenna"
|
||||
if self.transmitting:
|
||||
return "uboot_transmitting"
|
||||
self.tx_since = float(game.sim_t)
|
||||
self.tx_until = float(game.sim_t) + config.UBOOT_RADIO_TX_S
|
||||
boat.orders.event("radio_sending")
|
||||
return True
|
||||
|
||||
# -- the schedule (crew cadence) -------------------------------------------
|
||||
|
||||
def update(self, game, boat) -> None:
|
||||
now = float(game.sim_t)
|
||||
up = antenna_up(boat)
|
||||
if self.transmitting:
|
||||
if not up:
|
||||
self.tx_since = self.tx_until = None
|
||||
self._add(now, "aborted")
|
||||
boat.orders.event("radio_aborted")
|
||||
elif now >= self.tx_until:
|
||||
self.tx_since = self.tx_until = None
|
||||
self.sitreps += 1
|
||||
self.ack_due = True
|
||||
self._add(now, "sent", number=self.sitreps)
|
||||
boat.orders.event("radio_sent", number=str(self.sitreps))
|
||||
if not up:
|
||||
self.copy_since = None
|
||||
return
|
||||
if self.copy_since is None:
|
||||
self.copy_since = now
|
||||
number = broadcast_number(now)
|
||||
if number <= self.copied or now - self.copy_since < config.UBOOT_RADIO_COPY_S:
|
||||
return
|
||||
# The whole copy must fall inside this broadcast's time on the air.
|
||||
if self.copy_since < number * config.UBOOT_RADIO_BROADCAST_S \
|
||||
and now - number * config.UBOOT_RADIO_BROADCAST_S < config.UBOOT_RADIO_COPY_S:
|
||||
return
|
||||
self.copied = number
|
||||
ack = self.ack_due
|
||||
self.ack_due = False
|
||||
report = hq_report(game, number, sharp=ack)
|
||||
self._add(now, "broadcast", number=number, ack=ack, report=report)
|
||||
boat.orders.event("radio_copied_report" if report is not None else "radio_copied",
|
||||
number=str(number))
|
||||
|
||||
def progress(self, game, boat) -> dict:
|
||||
"""Copy and transmission progress (0..1, or None) and the schedule."""
|
||||
now = float(game.sim_t)
|
||||
number = broadcast_number(now)
|
||||
copy = None
|
||||
if self.copy_since is not None and number > self.copied:
|
||||
start = max(self.copy_since, number * config.UBOOT_RADIO_BROADCAST_S)
|
||||
copy = min(1.0, max(0.0, (now - start) / config.UBOOT_RADIO_COPY_S))
|
||||
send = None
|
||||
if self.transmitting:
|
||||
send = min(1.0, max(0.0, (now - self.tx_since) / config.UBOOT_RADIO_TX_S))
|
||||
return dict(antenna=antenna_up(boat), broadcast=number,
|
||||
copied=self.copied == number,
|
||||
next_s=(number + 1) * config.UBOOT_RADIO_BROADCAST_S - now,
|
||||
copy=copy, send=send, sitreps=self.sitreps, ack_due=self.ack_due)
|
||||
|
||||
# -- saves -------------------------------------------------------------------
|
||||
|
||||
def to_save(self) -> dict:
|
||||
return dict(version=VERSION, seq=self.seq, copied=self.copied,
|
||||
copy_since=self.copy_since, tx_since=self.tx_since,
|
||||
tx_until=self.tx_until, sitreps=self.sitreps, ack_due=self.ack_due,
|
||||
log=[dict(row, report=None if row["report"] is None
|
||||
else dict(row["report"])) for row in self.log])
|
||||
|
||||
@staticmethod
|
||||
def valid_state(data) -> bool:
|
||||
if not isinstance(data, dict) or set(data) != STATE_FIELDS:
|
||||
return False
|
||||
if data["version"] != VERSION or type(data["version"]) is not int:
|
||||
return False
|
||||
for key, low in (("seq", 0), ("copied", -1), ("sitreps", 0)):
|
||||
if type(data[key]) is not int or not low <= data[key] <= 2**31:
|
||||
return False
|
||||
if type(data["ack_due"]) is not bool:
|
||||
return False
|
||||
for key in ("copy_since", "tx_since", "tx_until"):
|
||||
if data[key] is not None and (not _finite(data[key]) or data[key] < 0.0):
|
||||
return False
|
||||
if (data["tx_since"] is None) != (data["tx_until"] is None):
|
||||
return False
|
||||
if data["tx_until"] is not None and data["tx_until"] < data["tx_since"]:
|
||||
return False
|
||||
log = data["log"]
|
||||
if not isinstance(log, list) or len(log) > config.UBOOT_RADIO_LOG_MAX:
|
||||
return False
|
||||
previous = 0
|
||||
for row in log:
|
||||
if not isinstance(row, dict) or set(row) != LOG_FIELDS:
|
||||
return False
|
||||
if (type(row["seq"]) is not int or not previous < row["seq"] <= data["seq"]
|
||||
or not _finite(row["t"]) or row["t"] < 0.0
|
||||
or row["kind"] not in LOG_KINDS or type(row["ack"]) is not bool):
|
||||
return False
|
||||
previous = row["seq"]
|
||||
if row["number"] is not None and (type(row["number"]) is not int
|
||||
or not 0 <= row["number"] <= 2**31):
|
||||
return False
|
||||
report = row["report"]
|
||||
if report is not None and (
|
||||
row["kind"] != "broadcast" or not isinstance(report, dict)
|
||||
or set(report) != REPORT_FIELDS
|
||||
or not all(_finite(report[key]) for key in REPORT_FIELDS)
|
||||
or report["radius_nm"] <= 0.0 or not 0.0 <= report["course"] < 360.0
|
||||
or report["speed_kn"] < 0.0):
|
||||
return False
|
||||
return True
|
||||
|
||||
@classmethod
|
||||
def from_save(cls, data) -> "BoatRadio":
|
||||
if not cls.valid_state(data):
|
||||
raise ValueError("invalid radio state")
|
||||
radio = cls()
|
||||
radio.seq = data["seq"]
|
||||
radio.copied = data["copied"]
|
||||
radio.copy_since = data["copy_since"]
|
||||
radio.tx_since = data["tx_since"]
|
||||
radio.tx_until = data["tx_until"]
|
||||
radio.sitreps = data["sitreps"]
|
||||
radio.ack_due = data["ack_due"]
|
||||
radio.log = [dict(row, report=None if row["report"] is None else
|
||||
{key: float(value) for key, value in row["report"].items()})
|
||||
for row in data["log"]]
|
||||
return radio
|
||||
|
||||
|
||||
def hq_report(game, number: int, *, sharp: bool = False):
|
||||
"""HQ's contact report on the frigate for broadcast ``number``, or None.
|
||||
|
||||
Not every broadcast has one; after a situation report it always does,
|
||||
with a smaller error. The position is ``age`` old: the frigate's
|
||||
position then, dead-reckoned back from its present course and speed,
|
||||
plus a deterministic error inside the stated circle.
|
||||
"""
|
||||
if game.damage.ship_sunk:
|
||||
return None
|
||||
seed = int(game.seed)
|
||||
if not sharp and detrand.u01(seed, "hq-intel", number) >= config.UBOOT_RADIO_INTEL_P:
|
||||
return None
|
||||
ship = game.ship
|
||||
low, high = config.UBOOT_RADIO_REPORT_AGE_S
|
||||
age = low + (high - low) * detrand.u01(seed, "hq-age", number)
|
||||
speed_nm_s = max(0.0, float(ship.speed)) / 3600.0
|
||||
rad = math.radians(ship.course)
|
||||
x = ship.x - age * speed_nm_s * math.sin(rad)
|
||||
y = ship.y + age * speed_nm_s * math.cos(rad)
|
||||
radius = (config.UBOOT_RADIO_REPORT_SHARP_NM if sharp
|
||||
else config.UBOOT_RADIO_REPORT_RADIUS_NM)
|
||||
x += 0.4 * radius * detrand.normal(seed, "hq-x", number)
|
||||
y += 0.4 * radius * detrand.normal(seed, "hq-y", number)
|
||||
return dict(x=round(x, 2), y=round(y, 2), radius_nm=float(radius),
|
||||
course=float(round(ship.course / 10.0) * 10 % 360),
|
||||
speed_kn=float(round(max(0.0, ship.speed))),
|
||||
as_of=round(float(game.sim_t) - age, 1))
|
||||
@@ -277,6 +277,20 @@ UBOOT_CHARGE_POWER = {"full": 1.0, "half": 0.5, "vent": 0.0}
|
||||
UBOOT_CHARGE_NOISE_DB = {"full": 12.0, "half": 9.0, "vent": 4.0}
|
||||
UBOOT_CHARGE_QUIET_LOSS = {"full": 0.25, "half": 0.18, "vent": 0.06}
|
||||
UBOOT_CHARGE_LINE_SCALE = {"full": 1.0, "half": 0.7, "vent": 0.0}
|
||||
# Radio room of the crewed boat (fictional schedule). HQ sends a new
|
||||
# submarine broadcast every BROADCAST_S; copying needs the antenna (raised
|
||||
# mast at periscope depth) up for COPY_S. A situation report is TX_S of HF
|
||||
# transmission (HF-DF can bear it). A broadcast carries a contact report on
|
||||
# the frigate with probability INTEL_P (always after a situation report,
|
||||
# then with the sharper radius); the report is AGE_S old.
|
||||
UBOOT_RADIO_BROADCAST_S = 600.0
|
||||
UBOOT_RADIO_COPY_S = 20.0
|
||||
UBOOT_RADIO_TX_S = 20.0
|
||||
UBOOT_RADIO_LOG_MAX = 12
|
||||
UBOOT_RADIO_INTEL_P = 0.6
|
||||
UBOOT_RADIO_REPORT_AGE_S = (300.0, 900.0)
|
||||
UBOOT_RADIO_REPORT_RADIUS_NM = 4.0
|
||||
UBOOT_RADIO_REPORT_SHARP_NM = 2.0
|
||||
# Diesel fuel of conventional boats (fictional): the bunkers hold this many
|
||||
# hours of full generator power; a mission starts mid-patrol at this fill.
|
||||
# Displayed as litres of diesel per kWh of generator output.
|
||||
@@ -880,6 +894,11 @@ MPA_ORBIT_NM = 3.0
|
||||
MPA_BUOYS = 16
|
||||
MPA_TORPS = 2
|
||||
MPA_ALTITUDE_M = 300.0 # search altitude (radar horizon)
|
||||
# The own aircraft's search radars in the emitter library (heard by the
|
||||
# crewed boat's ESM; data/contacts/aircraft.json).
|
||||
MPA_RADAR_EMITTER = "emitter.own_asset.mpa.radar"
|
||||
HELO_RADAR_EMITTER = "emitter.own_asset.helicopter.radar"
|
||||
HELO_RADAR_ALTITUDE_M = 150.0 # transit altitude for the radar horizon
|
||||
MPA_RADAR_RANGE_NM = 60.0 # nominal surface-search range, large ship
|
||||
MPA_RADAR_LOOK_S = 2.0 # one look per target per scan
|
||||
MPA_RADAR_BEARING_ERR_DEG = 1.0
|
||||
|
||||
@@ -984,6 +984,10 @@ class PicturesMixin:
|
||||
emitter = self.runtime_catalog.emitters.get(emitter_key)
|
||||
if getattr(emitter, "radar_role", None) == "missile_seeker":
|
||||
name = self.tr("eloka.emitter.asm_seeker")
|
||||
elif emitter_key == config.HELO_RADAR_EMITTER:
|
||||
name = self.tr("eloka.emitter.helicopter_radar")
|
||||
elif emitter_key == config.MPA_RADAR_EMITTER:
|
||||
name = self.tr("eloka.emitter.mpa_radar")
|
||||
return name
|
||||
|
||||
def eloka_annotation_name(self, track_key: str) -> str | None:
|
||||
|
||||
+2
-1
@@ -227,7 +227,7 @@ _WEB_HELP = (
|
||||
_UBOOT_HELP = (
|
||||
"help.uboot.title",
|
||||
[
|
||||
("1 … 6 / Tab", "help.uboot.views"),
|
||||
("1 … 7 / Tab", "help.uboot.views"),
|
||||
("C / V / D", "help.uboot.orders"),
|
||||
("U / J / H", "help.uboot.presets"),
|
||||
("help.key.page", "help.uboot.pages"),
|
||||
@@ -264,6 +264,7 @@ _UBOOT_HELP = (
|
||||
("help.key.enter", "help.uboot.dc_team"),
|
||||
("I", "help.uboot.dc_bulkhead"),
|
||||
("I", "help.uboot.evade"),
|
||||
("help.key.enter", "help.uboot.radio_send"),
|
||||
("M", "help.uboot.watch_change"),
|
||||
("B", "help.uboot.action_stations"),
|
||||
("0", "help.uboot.weather"),
|
||||
|
||||
@@ -139,6 +139,7 @@ DISPLAY_KEYS = {
|
||||
"UBOOT_ESM": "station.page.uboot_esm",
|
||||
"UBOOT_SCOPE": "station.page.uboot_scope",
|
||||
"UBOOT_THREAT": "station.page.uboot_threat",
|
||||
"UBOOT_RADIO": "station.page.uboot_radio",
|
||||
"WEAPONS_TARGET": "station.page.weapons_target",
|
||||
"WEAPONS_AMMO": "station.page.weapons_ammo",
|
||||
"DAMAGE_PLAN": "station.page.damage_plan",
|
||||
|
||||
+13
-2
@@ -16,6 +16,7 @@ import math
|
||||
from src.core.callouts import CalloutLog
|
||||
from src.core import config, detrand
|
||||
from src.core.boat_esm import BoatESM
|
||||
from src.core.boat_radio import BoatRadio
|
||||
from src.core.crew import CrewState
|
||||
from src.core.i18n import message
|
||||
from src.core.plot import PlotLayer
|
||||
@@ -81,7 +82,9 @@ class CrewOrders:
|
||||
"hp_air_low": "navigation", "dc_leak": "schaden", "dc_fire": "schaden",
|
||||
"dc_fire_out": "schaden", "dc_leak_sealed": "schaden",
|
||||
"dc_flooded": "schaden", "dc_chlorine": "schaden",
|
||||
"dc_power_lost": "schaden", "dc_power_restored": "schaden"}
|
||||
"dc_power_lost": "schaden", "dc_power_restored": "schaden",
|
||||
"radio_sending": "funk", "radio_sent": "funk", "radio_aborted": "funk",
|
||||
"radio_copied": "funk", "radio_copied_report": "funk"}
|
||||
|
||||
def __init__(self):
|
||||
self.silent = False
|
||||
@@ -114,6 +117,9 @@ class CrewOrders:
|
||||
# Intercepts not yet stamped by the crew update (never saved; see
|
||||
# CrewedBoat.intercepts).
|
||||
self._pending_intercepts = []
|
||||
# The boat's radio room (``CrewedBoat.radio``); the Sub reads its
|
||||
# transmissions for HF-DF. Never saved here (``crew.radio``).
|
||||
self.radio = None
|
||||
|
||||
def event(self, key: str, **values) -> None:
|
||||
if key in self.EVENTS and (values or all(k != key for k, _ in self._events)):
|
||||
@@ -226,6 +232,8 @@ class CrewedBoat:
|
||||
# Watches, fatigue and morale of the boat's crew (saved; the game
|
||||
# replaces it with one that knows the current sim time on claim).
|
||||
self.watch = CrewState()
|
||||
# Radio room: HQ broadcast and situation reports (saved).
|
||||
self.radio = self.orders.radio = BoatRadio()
|
||||
platform = SubSonarPlatform(sub)
|
||||
sonar = SonarSystem(seed=(int(sub.sensor_seed) ^ _SONAR_SEED_SALT) & 0x7FFFFFFF,
|
||||
acoustic_profiles=runtime_catalog.acoustic_profiles)
|
||||
@@ -278,7 +286,8 @@ class CrewedBoat:
|
||||
esm=self.esm.to_save(),
|
||||
feed=[dict(row) for row in self.feed],
|
||||
feed_seq=int(self.feed_seq),
|
||||
watch=self.watch.serialize())
|
||||
watch=self.watch.serialize(),
|
||||
radio=self.radio.to_save())
|
||||
|
||||
def restore(self, data: dict) -> None:
|
||||
self.orders.restore(data["orders"])
|
||||
@@ -289,6 +298,7 @@ class CrewedBoat:
|
||||
self.feed = deque((dict(row) for row in data["feed"]), maxlen=OPFOR_FEED_MAX)
|
||||
self.feed_seq = data["feed_seq"]
|
||||
self.watch = CrewState.restore(data["watch"])
|
||||
self.radio = self.orders.radio = BoatRadio.from_save(data["radio"])
|
||||
|
||||
def sonar_targets(self, game) -> list:
|
||||
"""Everything this boat's sonar can hear (never the boat itself)."""
|
||||
@@ -533,6 +543,7 @@ def update_crew(game, boat: CrewedBoat) -> None:
|
||||
boat.esm.update(game, boat)
|
||||
orders.esm = boat.esm.bearings(game.sim_t) if orders.mast else []
|
||||
update_sightings(game, boat)
|
||||
boat.radio.update(game, boat)
|
||||
for key, values in orders.drain_events():
|
||||
if "compartment" in values:
|
||||
values = dict(values, compartment=message(
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
"""Declarative exact key sets for the ``u-jagd-save-v21`` document.
|
||||
"""Declarative exact key sets for the ``u-jagd-save-v22`` document.
|
||||
|
||||
Every persisted block whose shape is validated exactly is declared here, so a
|
||||
new saved field is added in exactly three places: this module,
|
||||
@@ -37,7 +37,7 @@ WEAPON_SETTINGS_FIELDS = frozenset({"torpedo_type", "pattern", "enable_nm", "sal
|
||||
# Save v15: the crewed submarine binding (``Game._opfor``), or None.
|
||||
CREW_FIELDS = frozenset({
|
||||
"sub_id", "orders", "command_page", "chart_follow", "plot", "esm", "feed",
|
||||
"feed_seq", "hold_s", "station", "watch",
|
||||
"feed_seq", "hold_s", "station", "watch", "radio",
|
||||
})
|
||||
CREW_ORDERS_FIELDS = frozenset({
|
||||
"silent", "bottomed", "mast", "alarm_seq", "ping_bearing",
|
||||
|
||||
@@ -14,6 +14,7 @@ from src.core import config
|
||||
from src.core.plot import PlotLayer
|
||||
from src.core.autocrew import AutocrewController
|
||||
from src.core.boat_esm import BoatESM
|
||||
from src.core.boat_radio import BoatRadio
|
||||
from src.core import opfor
|
||||
from src.core.version import SAVE_SCHEMA, SAVE_VERSION
|
||||
from src.sensors.ais import AISReceiver
|
||||
@@ -114,6 +115,8 @@ def _valid_crew_block(data, *, valid_sonar, valid_sonar_controls, entity_ids,
|
||||
if (not CrewState.valid_state(crew["watch"])
|
||||
or crew["watch"]["watch_t"] > data.get("sim_t", 0.0)):
|
||||
return False
|
||||
if not BoatRadio.valid_state(crew["radio"]):
|
||||
return False
|
||||
torpedo_ids = {row.get("id") for row in data.get("enemy_torpedoes", ())
|
||||
if isinstance(row, dict)}
|
||||
|
||||
|
||||
+12
-4
@@ -2,8 +2,8 @@
|
||||
|
||||
The frigate then belongs to the Remote Crew browsers (or to its autocrew);
|
||||
the local screen, keys and sound serve only the crewed boat. The boat has the
|
||||
six stations of its Remote Crew roles (keys 1-6 or Tab): command, sonar,
|
||||
weapons, engine room, mast & ESM and navigation. The sonar room uses the
|
||||
seven stations of its Remote Crew roles (keys 1-7 or Tab): command, sonar,
|
||||
weapons, engine room, mast & ESM, navigation and the radio room. The sonar room uses the
|
||||
``Station.SONAR`` slot (the ordinary sonar workstation drawn and operated
|
||||
inside ``Game.sonar_perspective``), every other station the ``Station.BRIDGE``
|
||||
slot. Each order key works only at the station that owns the order, exactly
|
||||
@@ -348,7 +348,7 @@ def handle_key(game, event) -> None:
|
||||
if key in (pygame.K_s, pygame.K_l) and game.station is not Station.SONAR:
|
||||
game._open_administration("save" if key == pygame.K_s else "load")
|
||||
return
|
||||
if pygame.K_1 <= key <= pygame.K_6 or key == pygame.K_TAB:
|
||||
if pygame.K_1 <= key <= pygame.K_7 or key == pygame.K_TAB:
|
||||
shown = local_station(game)
|
||||
if key == pygame.K_TAB:
|
||||
step = -1 if mods & pygame.KMOD_SHIFT else 1
|
||||
@@ -376,7 +376,7 @@ def handle_key(game, event) -> None:
|
||||
finally:
|
||||
game._uboot_dispatch = False
|
||||
return
|
||||
if current is None or pygame.K_7 <= key <= pygame.K_9:
|
||||
if current is None or pygame.K_8 <= key <= pygame.K_9:
|
||||
return
|
||||
if station_remote(game):
|
||||
game.flash(message("uboot.local.station_remote",
|
||||
@@ -540,6 +540,14 @@ def _command_key(game, current, key, mods) -> None:
|
||||
if order_allowed(game, "uboot_esm_plot"):
|
||||
_esm_notice(game, current, current.esm.to_plot(game, current, _esm_number(current)),
|
||||
"plotted")
|
||||
elif page == "UBOOT_RADIO" and key in (pygame.K_RETURN, pygame.K_KP_ENTER) \
|
||||
and not mods & pygame.KMOD_CTRL:
|
||||
if order_allowed(game, "uboot_radio_send"):
|
||||
result = current.radio.send_sitrep(game, current)
|
||||
if result is not True:
|
||||
game.flash(message("uboot.local.radio_" + (
|
||||
result if result in ("uboot_no_antenna", "uboot_transmitting")
|
||||
else "not_ready")), 2.0)
|
||||
elif page == "UBOOT_BALLAST" and key in (pygame.K_UP, pygame.K_DOWN,
|
||||
pygame.K_LEFT, pygame.K_RIGHT):
|
||||
if order_allowed(game, "uboot_ballast"):
|
||||
|
||||
+3
-3
@@ -4,9 +4,9 @@ This module is deliberately dependency-free because setuptools imports the
|
||||
version while building the project.
|
||||
"""
|
||||
|
||||
APP_VERSION = "1.3.0"
|
||||
SAVE_VERSION = 21
|
||||
SAVE_SCHEMA = "u-jagd-save-v21"
|
||||
APP_VERSION = "1.3.1"
|
||||
SAVE_VERSION = 22
|
||||
SAVE_SCHEMA = "u-jagd-save-v22"
|
||||
SPLASH_TEXT = (
|
||||
"Anti Sub Marine Warfare on uConsole by Dominik Bornhäußer "
|
||||
f"Version {APP_VERSION}"
|
||||
|
||||
@@ -642,6 +642,10 @@ MODULATION_CODES = {"continuous_wave", "frequency_agile", "pulse", "pulse_dopple
|
||||
RADAR_ROLES = {"navigation", "surface_search", "air_search", "multi_function",
|
||||
"fire_control", "missile_seeker"}
|
||||
RADAR_POWER_CLASSES = {"low", "medium", "high"}
|
||||
# Radars of the frigate's own aircraft (helicopter, patrol aircraft): a
|
||||
# library like the missile seekers, radiated by those assets, never by a
|
||||
# catalog platform.
|
||||
OWN_ASSET_EMITTER_PREFIX = "emitter.own_asset."
|
||||
WEAPON_TYPES = {"asm", "asroc", "ciws", "sam", "torpedo"}
|
||||
TARGET_DOMAINS = {"air", "subsurface", "surface"}
|
||||
SEEKER_TYPES = {"acoustic_active", "acoustic_passive", "command", "infrared", "none", "radar_active"}
|
||||
@@ -1744,6 +1748,10 @@ def _collect_v2(documents, profile_keys_by_resource, runtime_weapon_keys, decoy_
|
||||
if emitter.key in referenced["emitters"]:
|
||||
raise ValueError(f"emitter {emitter.key!r}: missile seeker attached to a platform")
|
||||
referenced["emitters"].add(emitter.key)
|
||||
elif emitter.key.startswith(OWN_ASSET_EMITTER_PREFIX):
|
||||
if emitter.key in referenced["emitters"]:
|
||||
raise ValueError(f"emitter {emitter.key!r}: own-asset radar attached to a platform")
|
||||
referenced["emitters"].add(emitter.key)
|
||||
|
||||
for field, values in registries.items():
|
||||
orphaned = values.keys() - referenced[field]
|
||||
|
||||
+5
-1
@@ -523,7 +523,11 @@ class Sub:
|
||||
|
||||
@property
|
||||
def transmitting(self) -> bool:
|
||||
"""Only the explicit radio phase is detectable by HFDF."""
|
||||
"""Only the explicit radio phase (or a crew's situation report on
|
||||
the air) is detectable by HFDF."""
|
||||
crew_radio = getattr(self.crew, "radio", None) if self.crew is not None else None
|
||||
if crew_radio is not None and crew_radio.transmitting:
|
||||
return True
|
||||
return self.endurance is not None and self.endurance.transmitting
|
||||
|
||||
# --- Physik/KI ---
|
||||
|
||||
@@ -0,0 +1,133 @@
|
||||
"""The crewed boat's radio room page and HQ's contact report on the chart.
|
||||
|
||||
Draws ``boat_radio`` state: the broadcast schedule, the copy and transmit
|
||||
progress, HQ's latest contact report (modelled intelligence with its age and
|
||||
error circle, never the frigate's live position) and the message log.
|
||||
"""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
import math
|
||||
|
||||
import pygame
|
||||
|
||||
from src.core import config
|
||||
from src.core.boat_radio import antenna_up
|
||||
from src.core.i18n import message
|
||||
from src.ui import layout, lines
|
||||
|
||||
REPORT_COLOR = config.COLOR_WARN
|
||||
# A contact report is drawn on the chart until it is this old (s).
|
||||
CHART_REPORT_S = 3600.0
|
||||
|
||||
|
||||
def _clock(seconds) -> str:
|
||||
seconds = max(0, int(seconds))
|
||||
return f"{seconds // 60:d}:{seconds % 60:02d}"
|
||||
|
||||
|
||||
def _bar(s, rect, fraction, color) -> None:
|
||||
rect = pygame.Rect(rect)
|
||||
pygame.draw.rect(s, config.COLOR_BG, rect)
|
||||
if fraction is not None:
|
||||
fill = rect.copy()
|
||||
fill.w = max(0, int(rect.w * max(0.0, min(1.0, fraction))))
|
||||
pygame.draw.rect(s, color, fill)
|
||||
pygame.draw.rect(s, config.COLOR_SONAR_RING, rect, 1)
|
||||
|
||||
|
||||
def report_lines(game, boat, report) -> list:
|
||||
"""Text lines of one HQ contact report, seen from the boat's position now."""
|
||||
sub = boat.sub
|
||||
dx, dy = report["x"] - sub.x, report["y"] - sub.y
|
||||
bearing = math.degrees(math.atan2(dx, -dy)) % 360.0
|
||||
age_min = max(0.0, game.sim_t - report["as_of"]) / 60.0
|
||||
return [message("uboot.radio.report_position", bearing=f"{bearing:03.0f}",
|
||||
range=f"{math.hypot(dx, dy):.1f}", radius=f"{report['radius_nm']:.0f}"),
|
||||
message("uboot.radio.report_motion", course=f"{report['course']:03.0f}",
|
||||
speed=f"{report['speed_kn']:.0f}", age=f"{age_min:.0f}")]
|
||||
|
||||
|
||||
def log_text(game, row):
|
||||
age = _clock(game.sim_t - row["t"])
|
||||
if row["kind"] == "broadcast":
|
||||
key = ("uboot.radio.log.broadcast_report" if row["report"] is not None
|
||||
else "uboot.radio.log.broadcast")
|
||||
text = message(key, age=age, number=str(row["number"]))
|
||||
return message("uboot.radio.log.with_ack", entry=text) if row["ack"] else text
|
||||
if row["kind"] == "sent":
|
||||
return message("uboot.radio.log.sent", age=age, number=str(row["number"]))
|
||||
return message("uboot.radio.log.aborted", age=age)
|
||||
|
||||
|
||||
def draw_radio_page(s, game, boat, x, y, w, h) -> None:
|
||||
radio = boat.radio
|
||||
progress = radio.progress(game, boat)
|
||||
up = antenna_up(boat)
|
||||
box = layout.box(s, (x, y, w, 132), "uboot.panel.radio",
|
||||
border=config.COLOR_WARN if radio.transmitting else config.COLOR_TEXT)
|
||||
bx, by, bw, _ = box
|
||||
layout.blit_line(s, "uboot.radio.antenna_up" if up else "uboot.radio.antenna_down",
|
||||
(bx, by, bw, 22), config.COLOR_OK if up else config.COLOR_TEXT_DIM, size=16)
|
||||
number = str(progress["broadcast"])
|
||||
if progress["copied"]:
|
||||
state = message("uboot.radio.broadcast_copied", number=number)
|
||||
elif progress["copy"] is not None:
|
||||
state = message("uboot.radio.broadcast_copying", number=number,
|
||||
percent=f"{progress['copy'] * 100:.0f}")
|
||||
else:
|
||||
state = message("uboot.radio.broadcast_missed", number=number)
|
||||
layout.blit_line(s, message("uboot.radio.schedule", state=state,
|
||||
next=_clock(progress["next_s"])),
|
||||
(bx, by + 22, bw, 22), config.COLOR_TEXT, size=16)
|
||||
_bar(s, (bx, by + 48, bw, 8), progress["copy"] if not progress["copied"] else 1.0,
|
||||
config.COLOR_OK)
|
||||
if progress["send"] is not None:
|
||||
send = message("uboot.radio.sending", percent=f"{progress['send'] * 100:.0f}")
|
||||
color = config.COLOR_WARN
|
||||
else:
|
||||
send = message("uboot.radio.sitreps_ack" if progress["ack_due"]
|
||||
else "uboot.radio.sitreps", count=str(progress["sitreps"]))
|
||||
color = config.COLOR_TEXT
|
||||
layout.blit_line(s, send, (bx, by + 62, bw, 22), color, size=16)
|
||||
_bar(s, (bx, by + 88, bw, 8), progress["send"], config.COLOR_WARN)
|
||||
top = y + 140
|
||||
latest = radio.latest_report()
|
||||
report = layout.box(s, (x, top, w, 74), "uboot.panel.hq_report")
|
||||
rx, ry, rw, _ = report
|
||||
if latest is None:
|
||||
layout.blit_line(s, "uboot.radio.no_report", (rx, ry, rw, 22),
|
||||
config.COLOR_TEXT_DIM, size=16)
|
||||
else:
|
||||
for index, text in enumerate(report_lines(game, boat, latest["report"])):
|
||||
layout.blit_line(s, text, (rx, ry + index * 22, rw, 22), REPORT_COLOR, size=16)
|
||||
top += 82
|
||||
listing = layout.box(s, (x, top, w, max(40, h - (top - y))), "uboot.panel.radio_log")
|
||||
lx, ly, lw, lh = listing
|
||||
if not radio.log:
|
||||
layout.blit_line(s, "uboot.radio.log.empty", (lx, ly, lw, 20),
|
||||
config.COLOR_TEXT_DIM, size=15)
|
||||
for index, row in enumerate(list(reversed(radio.log))[:max(0, lh // 19)]):
|
||||
layout.blit_line(s, log_text(game, row), (lx, ly + index * 19, lw, 19),
|
||||
config.COLOR_WARN if row["kind"] != "broadcast" else config.COLOR_TEXT,
|
||||
size=14)
|
||||
|
||||
|
||||
def draw_report_chart(game, boat, view) -> None:
|
||||
"""HQ's latest contact report: error circle, reported course and its age."""
|
||||
latest = boat.radio.latest_report()
|
||||
if latest is None:
|
||||
return
|
||||
report = latest["report"]
|
||||
age = game.sim_t - report["as_of"]
|
||||
if not 0.0 <= age <= CHART_REPORT_S:
|
||||
return
|
||||
s = game.screen
|
||||
px, py = view.world_to_screen(report["x"], report["y"])
|
||||
radius = max(6, int(report["radius_nm"] * view.scale))
|
||||
pygame.draw.circle(s, REPORT_COLOR, (int(px), int(py)), radius, 1)
|
||||
rad = math.radians(report["course"])
|
||||
lines.line(s, REPORT_COLOR, (int(px), int(py)),
|
||||
(int(px + 24 * math.sin(rad)), int(py - 24 * math.cos(rad))), 2)
|
||||
layout.blit_line(s, message("uboot.radio.chart_label", age=f"{age / 60.0:.0f}"),
|
||||
(int(px) + 8, int(py) - radius - 20, 200, 18), REPORT_COLOR, size=12)
|
||||
+10
-4
@@ -27,6 +27,7 @@ from src.ui.stations_view import (_panel, _station_content_top,
|
||||
draw_station_page_tabs, station_page_tab_at)
|
||||
from src.ui.uboot_ballast import draw_ballast_page
|
||||
from src.ui.uboot_damage import draw_damage_page
|
||||
from src.ui.uboot_radio import draw_radio_page, draw_report_chart
|
||||
from src.ui.uboot_threat import draw_intercept_lines, draw_threat_page
|
||||
from src.enemies.damage_control import COMPARTMENTS
|
||||
from src.ui.uboot_scope import draw_scope_page
|
||||
@@ -39,7 +40,8 @@ STATION_PAGES = {"uboot": UBOOT_PAGES, "uboot_weapons": ("UBOOT_WEAPONS",),
|
||||
"uboot_engine": ("UBOOT_ENGINE", "UBOOT_SUPPLY", "UBOOT_BALLAST",
|
||||
"UBOOT_DAMAGE"),
|
||||
"uboot_esm": ("UBOOT_ESM", "UBOOT_SCOPE"),
|
||||
"uboot_nav": ("UBOOT_NAV", "UBOOT_THREAT")}
|
||||
"uboot_nav": ("UBOOT_NAV", "UBOOT_THREAT"),
|
||||
"uboot_radio": ("UBOOT_RADIO",)}
|
||||
|
||||
|
||||
def station_pages(station: str) -> tuple:
|
||||
@@ -54,7 +56,7 @@ def page_name(game, boat) -> str | None:
|
||||
pages = station_pages(uboot_local.local_station(game))
|
||||
return pages[boat.command_page % len(pages)]
|
||||
# Station tabs in the top bar: (x, width) of each, in station key order.
|
||||
STATION_TAB_W = 104
|
||||
STATION_TAB_W = 100
|
||||
CONTACT_ROWS = 10
|
||||
# Alarms stay on the threat bar this long after the event (s).
|
||||
ALARM_WINDOW_S = 120.0
|
||||
@@ -130,7 +132,7 @@ def draw_top_bar(game, boat) -> None:
|
||||
lines.line(s, config.COLOR_SONAR_RING, (0, config.TOP_BAR_H - 1),
|
||||
(config.SCREEN_W, config.TOP_BAR_H - 1), 1)
|
||||
sub = boat.sub if boat is not None else None
|
||||
# The boat's six stations as tabs (key number and short name); a station a
|
||||
# The boat's seven stations as tabs (key number and short name); a station a
|
||||
# browser crews is marked and not operated from here.
|
||||
shown = uboot_local.local_station(game)
|
||||
leased = getattr(getattr(game.commander, "server", None), "station_leased", None)
|
||||
@@ -271,6 +273,7 @@ def _draw_chart_overlays(game, boat, view, r) -> None:
|
||||
_label(s, game, label, (int(lx) + 6, int(ly) - 8), color, r)
|
||||
draw_esm_chart(game, boat, view, r)
|
||||
draw_intercept_lines(game, boat, view, bx, by)
|
||||
draw_report_chart(game, boat, view)
|
||||
# Own torpedoes in the water (commanded own weapons).
|
||||
for index, torpedo in enumerate(_own_torpedoes(game, sub), start=1):
|
||||
px, py = view.world_to_screen(torpedo.x, torpedo.y)
|
||||
@@ -643,6 +646,8 @@ _FOOTERS = {
|
||||
("help.key.uboot_fire", "uboot.footer.fire"),
|
||||
("F", "uboot.footer.fire_bearing"),
|
||||
("W", "uboot.footer.wire"), ("X", "uboot.footer.decoy")),
|
||||
("uboot_radio", "UBOOT_RADIO"): (("help.key.enter", "uboot.footer.radio_send"),
|
||||
("P", "uboot.footer.mast"), ("Q/E", "uboot.footer.chart")),
|
||||
("uboot_engine", "UBOOT_ENGINE"): (("+/-", "uboot.footer.telegraph"),
|
||||
("G", "uboot.footer.silent"),
|
||||
("N", "uboot.footer.snorkel"),
|
||||
@@ -692,7 +697,8 @@ def draw_command_panel(game, boat) -> None:
|
||||
"UBOOT_ENGINE": _draw_engine_page, "UBOOT_SUPPLY": _draw_supply_page,
|
||||
"UBOOT_ESM": _draw_esm_page, "UBOOT_BALLAST": draw_ballast_page,
|
||||
"UBOOT_DAMAGE": draw_damage_page,
|
||||
"UBOOT_SCOPE": draw_scope_page, "UBOOT_THREAT": draw_threat_page}[name]
|
||||
"UBOOT_SCOPE": draw_scope_page, "UBOOT_THREAT": draw_threat_page,
|
||||
"UBOOT_RADIO": draw_radio_page}[name]
|
||||
drawer(s, game, boat, x, content_y, w, content_h)
|
||||
specs = tuple(
|
||||
(key, "uboot.footer.mast_down" if text == "uboot.footer.mast" and boat.orders.mast
|
||||
|
||||
@@ -245,3 +245,46 @@ def test_uconsole_esm_page_keys_and_chart():
|
||||
_key(game, pygame.K_RETURN)
|
||||
assert len(boat.plot.objects) > objects
|
||||
game.draw()
|
||||
|
||||
|
||||
def _heard(game, boat, seconds=30.0):
|
||||
"""Bearings (deg) of the emitters in the boat's list after ``seconds``."""
|
||||
game.surface_radar_on = game.air_radar_on = False
|
||||
for _ in range(int(seconds / 0.25)):
|
||||
game._update_sim(0.25)
|
||||
return [emitter.track.bearing for emitter in boat.esm.emitters.values()]
|
||||
|
||||
|
||||
def test_boat_esm_hears_the_helicopter_and_patrol_aircraft_radars():
|
||||
game, _server, _bridge = _crewed(seed=61)
|
||||
boat = game.opfor
|
||||
_mast_up_near_frigate(game, boat, distance_nm=25.0)
|
||||
assert _heard(game, boat, 12.0) == []
|
||||
helo = game.helo
|
||||
helo.launch(game.ship)
|
||||
helo.x, helo.y = boat.sub.x + 6.0, boat.sub.y
|
||||
bearings = _heard(game, boat)
|
||||
assert len(bearings) == 1 and abs(config.angle_diff_deg(bearings[0], 90.0)) < 10.0
|
||||
emitter = next(iter(boat.esm.emitters.values()))
|
||||
helo_radar = game.runtime_catalog.emitters[config.HELO_RADAR_EMITTER]
|
||||
low, high = helo_radar.frequency_band_hz
|
||||
assert low <= emitter.track.frequency_hz <= high
|
||||
assert game.eloka_emitter_name(config.HELO_RADAR_EMITTER) == "ASW helicopter search radar"
|
||||
# In the dip the helicopter hovers with its radar off.
|
||||
helo.dip_state = "DEPLOYED"
|
||||
assert list(boat_esm.own_asset_emissions(game)) == []
|
||||
|
||||
|
||||
def test_patrol_aircraft_radar_follows_its_switch():
|
||||
game, _server, _bridge = _crewed(seed=61)
|
||||
boat = game.opfor
|
||||
_mast_up_near_frigate(game, boat, distance_nm=25.0)
|
||||
mpa = game.mpa
|
||||
mpa.state = "STATION"
|
||||
mpa.x, mpa.y = boat.sub.x, boat.sub.y - 20.0
|
||||
mpa.radar_on = False
|
||||
signals = list(boat_esm.own_asset_emissions(game))
|
||||
assert not signals
|
||||
mpa.radar_on = True
|
||||
signals = [signal for signal, _height in boat_esm.own_asset_emissions(game)]
|
||||
assert signals and all(signal.x == mpa.x for signal in signals)
|
||||
@@ -0,0 +1,215 @@
|
||||
"""The crewed boat's radio room: HQ broadcast, situation reports, HF-DF, saves."""
|
||||
|
||||
import copy
|
||||
import json
|
||||
import math
|
||||
import sys
|
||||
from pathlib import Path
|
||||
|
||||
import pygame
|
||||
|
||||
from src.commander import projections
|
||||
from src.commander.server import OPFOR_ROLES, V2_ACTION_REGISTRY
|
||||
from src.commander.v2.commands import UBOOT_REASONS
|
||||
from src.core import boat_radio, config, opfor, uboot_local
|
||||
from src.core.boat_radio import BoatRadio, broadcast_number, hq_report
|
||||
from src.sensors.platform import MAST_DEPTH_M
|
||||
from src.ui import layout, uboot_view
|
||||
|
||||
ROOT = Path(__file__).resolve().parents[1]
|
||||
sys.path.insert(0, str(ROOT / "tests"))
|
||||
from test_opfor_sub import _crewed, _feed_texts # noqa: E402
|
||||
from test_uboot_scope import _key, _local_boat # noqa: E402
|
||||
|
||||
BROADCAST = config.UBOOT_RADIO_BROADCAST_S
|
||||
|
||||
|
||||
def _antenna_up(game, boat, distance_nm=20.0, bearing=90.0):
|
||||
sub = boat.sub
|
||||
rad = math.radians(bearing)
|
||||
sub.x = game.ship.x - distance_nm * math.sin(rad)
|
||||
sub.y = game.ship.y + distance_nm * math.cos(rad)
|
||||
sub.depth = sub.target_depth = sub.order_depth = MAST_DEPTH_M - 3.0
|
||||
assert sub.command_mast(True) is True
|
||||
|
||||
|
||||
def _step(game, boat, until, dt=1.0):
|
||||
"""Advance the radio room's clock (crew cadence) to ``until``."""
|
||||
while game.sim_t < until:
|
||||
game.sim_t = min(until, game.sim_t + dt)
|
||||
opfor.update_crew(game, boat)
|
||||
|
||||
|
||||
def test_the_radio_room_is_the_seventh_boat_station():
|
||||
assert OPFOR_ROLES[-1] == "uboot_radio" and len(OPFOR_ROLES) == 7
|
||||
assert V2_ACTION_REGISTRY["uboot_radio_send"].stations == frozenset({"uboot_radio"})
|
||||
assert "uboot_radio" in V2_ACTION_REGISTRY["uboot_mast"].stations
|
||||
assert {"uboot_no_antenna", "uboot_transmitting"} <= UBOOT_REASONS
|
||||
assert uboot_view.station_pages("uboot_radio") == ("UBOOT_RADIO",)
|
||||
|
||||
|
||||
def test_a_deep_boat_copies_nothing_and_cannot_send():
|
||||
game, _server, bridge = _crewed(seed=61)
|
||||
boat = game.opfor
|
||||
boat.sub.depth = 80.0
|
||||
game.sim_t = BROADCAST + 1.0
|
||||
_step(game, boat, game.sim_t + 120.0)
|
||||
assert boat.radio.copied == -1 and boat.radio.log == []
|
||||
assert bridge._apply_opfor_action(game, "uboot_radio_send", {}, "uboot_radio") \
|
||||
== "uboot_no_antenna"
|
||||
assert not boat.radio.transmitting and not boat.sub.transmitting
|
||||
|
||||
|
||||
def test_the_antenna_copies_each_broadcast_once_after_the_copy_time():
|
||||
game, _server, _bridge = _crewed(seed=61)
|
||||
boat = game.opfor
|
||||
_antenna_up(game, boat)
|
||||
game.sim_t = BROADCAST + 5.0
|
||||
_step(game, boat, game.sim_t + config.UBOOT_RADIO_COPY_S - 2.0)
|
||||
assert boat.radio.copied == -1
|
||||
assert boat.radio.progress(game, boat)["copy"] > 0.8
|
||||
_step(game, boat, game.sim_t + 3.0)
|
||||
assert boat.radio.copied == broadcast_number(game.sim_t) == 1
|
||||
rows = [row for row in boat.radio.log if row["kind"] == "broadcast"]
|
||||
assert len(rows) == 1 and rows[0]["number"] == 1
|
||||
assert any("broadcast 1 copied" in text for text in _feed_texts(game))
|
||||
assert boat.feed[-1]["category"] == "funk"
|
||||
_step(game, boat, game.sim_t + 200.0)
|
||||
assert len(boat.radio.log) == 1 # the same broadcast only once
|
||||
# A copy begun inside the previous broadcast does not count for the next.
|
||||
boat.orders.mast = False
|
||||
_step(game, boat, 2 * BROADCAST - 5.0)
|
||||
boat.orders.mast = True
|
||||
_step(game, boat, 2 * BROADCAST + config.UBOOT_RADIO_COPY_S - 1.0)
|
||||
assert boat.radio.copied == 1
|
||||
_step(game, boat, 2 * BROADCAST + config.UBOOT_RADIO_COPY_S + 1.0)
|
||||
assert boat.radio.copied == 2
|
||||
|
||||
|
||||
def test_a_situation_report_is_bearable_and_answered_with_a_sharp_report():
|
||||
game, _server, bridge = _crewed(seed=61)
|
||||
boat = game.opfor
|
||||
_antenna_up(game, boat)
|
||||
game.world.land_blocks_line = lambda *args: False
|
||||
game.sim_t = 50.0
|
||||
_step(game, boat, 50.0 + config.UBOOT_RADIO_COPY_S + 1.0) # broadcast 0 copied
|
||||
assert boat.radio.copied == 0
|
||||
assert bridge._apply_opfor_action(game, "uboot_radio_send", {}, "uboot_radio") is True
|
||||
assert boat.radio.transmitting and boat.sub.transmitting
|
||||
assert bridge._apply_opfor_action(game, "uboot_radio_send", {}, "uboot_radio") \
|
||||
== "uboot_transmitting"
|
||||
# The frigate's HF direction finder bears the transmission.
|
||||
game.radio_picture._tracks.clear()
|
||||
game._update_radio_picture()
|
||||
assert f"H-{boat.sub.id}" in game.radio_picture._tracks
|
||||
_step(game, boat, game.sim_t + config.UBOOT_RADIO_TX_S + 1.0)
|
||||
assert not boat.sub.transmitting and boat.radio.sitreps == 1 and boat.radio.ack_due
|
||||
assert boat.radio.log[-1]["kind"] == "sent"
|
||||
game.radio_picture._tracks.clear()
|
||||
game._update_radio_picture()
|
||||
assert f"H-{boat.sub.id}" not in game.radio_picture._tracks
|
||||
_step(game, boat, BROADCAST + config.UBOOT_RADIO_COPY_S + 1.0)
|
||||
row = boat.radio.log[-1]
|
||||
assert row["kind"] == "broadcast" and row["ack"] and not boat.radio.ack_due
|
||||
assert row["report"]["radius_nm"] == config.UBOOT_RADIO_REPORT_SHARP_NM
|
||||
|
||||
|
||||
def test_lowering_the_mast_aborts_the_transmission():
|
||||
game, _server, bridge = _crewed(seed=61)
|
||||
boat = game.opfor
|
||||
_antenna_up(game, boat)
|
||||
game.sim_t = 50.0
|
||||
assert boat.radio.send_sitrep(game, boat) is True
|
||||
_step(game, boat, 55.0)
|
||||
assert boat.sub.command_mast(False) is True
|
||||
_step(game, boat, 57.0)
|
||||
assert not boat.radio.transmitting and boat.radio.sitreps == 0
|
||||
assert boat.radio.log[-1]["kind"] == "aborted"
|
||||
assert any("aborted" in text for text in _feed_texts(game))
|
||||
|
||||
|
||||
def test_hq_report_is_old_noisy_and_deterministic():
|
||||
game, _server, _bridge = _crewed(seed=61)
|
||||
ship = game.ship
|
||||
game.sim_t = 5000.0
|
||||
reports = [hq_report(game, number, sharp=True) for number in range(1, 30)]
|
||||
assert reports == [hq_report(game, number, sharp=True) for number in range(1, 30)]
|
||||
low, high = config.UBOOT_RADIO_REPORT_AGE_S
|
||||
for report in reports:
|
||||
assert low - 0.1 <= game.sim_t - report["as_of"] <= high + 0.1
|
||||
assert report["radius_nm"] == config.UBOOT_RADIO_REPORT_SHARP_NM
|
||||
assert report["course"] % 10.0 == 0.0
|
||||
assert len({(row["x"], row["y"]) for row in reports}) > 20
|
||||
assert all((row["x"], row["y"]) != (ship.x, ship.y) for row in reports)
|
||||
plain = [hq_report(game, number) for number in range(1, 200)]
|
||||
share = sum(row is not None for row in plain) / len(plain)
|
||||
assert abs(share - config.UBOOT_RADIO_INTEL_P) < 0.15
|
||||
game.damage.ship_sunk = True
|
||||
assert hq_report(game, 3, sharp=True) is None
|
||||
|
||||
|
||||
def test_radio_state_saves_and_rejects_malformed_blocks(tmp_path):
|
||||
game, _server, _bridge = _crewed(seed=61)
|
||||
boat = game.opfor
|
||||
_antenna_up(game, boat)
|
||||
game.sim_t = BROADCAST + 1.0
|
||||
boat.radio.ack_due = True # this broadcast has a report
|
||||
_step(game, boat, game.sim_t + config.UBOOT_RADIO_COPY_S + 1.0)
|
||||
assert boat.radio.send_sitrep(game, boat) is True
|
||||
data = game.save_state()
|
||||
assert data["crew"]["radio"] == json.loads(json.dumps(data["crew"]["radio"]))
|
||||
assert data["crew"]["radio"]["tx_until"] is not None
|
||||
path = tmp_path / "slot.json"
|
||||
path.write_text(json.dumps(data), encoding="utf-8")
|
||||
assert game.load_game(str(path))
|
||||
assert game.opfor.radio.to_save() == data["crew"]["radio"]
|
||||
assert game.opfor.sub.transmitting # still on the air after loading
|
||||
assert game.opfor.orders.radio is game.opfor.radio
|
||||
before = game.save_state()
|
||||
for mutate in (lambda radio: radio.update(version=2),
|
||||
lambda radio: radio.pop("log"),
|
||||
lambda radio: radio.update(tx_since=None),
|
||||
lambda radio: radio.update(sitreps=-1),
|
||||
lambda radio: radio["log"][0].update(kind="telegram"),
|
||||
lambda radio: radio["log"][0]["report"].update(x=float("nan")),
|
||||
lambda radio: radio.update(log=[radio["log"][0]] * 2)):
|
||||
broken = copy.deepcopy(data)
|
||||
mutate(broken["crew"]["radio"])
|
||||
assert not BoatRadio.valid_state(broken["crew"]["radio"])
|
||||
assert not game._load_save_data(broken)
|
||||
assert game.save_state() == before
|
||||
|
||||
|
||||
def test_the_projection_shows_the_radio_room_without_frigate_truth():
|
||||
game, _server, _bridge = _crewed(seed=61)
|
||||
boat = game.opfor
|
||||
_antenna_up(game, boat)
|
||||
game.sim_t = BROADCAST + 1.0
|
||||
boat.radio.ack_due = True # the next broadcast reports
|
||||
_step(game, boat, game.sim_t + config.UBOOT_RADIO_COPY_S + 1.0)
|
||||
view = projections._uboot_radio(game, boat)
|
||||
assert view["antenna"] and view["copied"] and view["broadcast"] == 1
|
||||
report = view["report"]
|
||||
assert report is not None and report["age_s"] >= config.UBOOT_RADIO_REPORT_AGE_S[0]
|
||||
assert (report["x"], report["y"]) != (game.ship.x, game.ship.y)
|
||||
assert [row["kind"] for row in view["log"]] == ["broadcast"]
|
||||
assert json.loads(json.dumps(view)) == view
|
||||
|
||||
|
||||
def test_key_seven_opens_the_radio_room_and_enter_sends(monkeypatch):
|
||||
game, boat = _local_boat(seed=61)
|
||||
_key(game, pygame.K_7)
|
||||
assert uboot_local.local_station(game) == "uboot_radio"
|
||||
assert uboot_view.page_name(game, boat) == "UBOOT_RADIO"
|
||||
_key(game, pygame.K_RETURN)
|
||||
assert not boat.radio.transmitting # antenna down
|
||||
_antenna_up(game, boat)
|
||||
_key(game, pygame.K_RETURN)
|
||||
assert boat.radio.transmitting
|
||||
# The page draws in both languages inside the station panel.
|
||||
for language in ("en", "de"):
|
||||
game.set_language(language) if hasattr(game, "set_language") else None
|
||||
layout.configure_for(game)
|
||||
uboot_view.draw_command_panel(game, boat)
|
||||
uboot_view.draw_chart(game, boat)
|
||||
assert boat_radio.antenna_up(boat)
|
||||
@@ -195,7 +195,7 @@ def test_packaged_migration_versions_counts_and_provenance():
|
||||
| set(ALL_TORPEDO_KEYS) | set(ALL_DECOY_KEYS)
|
||||
assert len(catalog.CATALOG.references) == len(catalog.CATALOG.machines) == 117
|
||||
assert len(catalog.CATALOG.sensors) == 217
|
||||
assert len(catalog.CATALOG.emitters) == 195 # incl. the ASM seeker library emitter
|
||||
assert len(catalog.CATALOG.emitters) == 197 # incl. the ASM seeker and own-asset radars
|
||||
# Weapon/launcher/magazine/countermeasure counts are unchanged: demoted
|
||||
# ex-warships moved to civilians.json keep their v2 combat components
|
||||
# (profile_systems/launchers/etc. are global registries, not file-scoped;
|
||||
|
||||
@@ -38,7 +38,7 @@ def _projected_crew():
|
||||
|
||||
STATIONS = ("bridge", "sonar", "weapons", "damage", "opz", "radio",
|
||||
"engine", "helicopter", "eloka", "uboot", "uboot_sonar",
|
||||
"uboot_weapons", "uboot_engine", "uboot_esm", "uboot_nav")
|
||||
"uboot_weapons", "uboot_engine", "uboot_esm", "uboot_nav", "uboot_radio")
|
||||
|
||||
|
||||
def _station_record(status="available", *, requested=False, request_generation=0,
|
||||
@@ -112,7 +112,7 @@ async function run() {
|
||||
await until(() => $test("pairing").hidden && !$test("simlog-view").hidden,
|
||||
"pair preserves the initial unassigned SimLog route");
|
||||
const cards = [...$test("station-cards").children];
|
||||
assert(cards.length === 15, "lobby has nine frigate and six submarine station cards");
|
||||
assert(cards.length === 16, "lobby has nine frigate and seven submarine station cards");
|
||||
assert(cards.map((card) => card.dataset.station).join(",") === __STATIONS__, "canonical station order");
|
||||
assert(cards[1].classList.contains("station-occupied") && cards[0].classList.contains("station-available"), "occupancy is rendered");
|
||||
assert(operational().length === 0, "unassigned client fetches no operational state");
|
||||
|
||||
@@ -311,7 +311,7 @@ def test_v2_lobby_layout_is_bounded(tmp_path, width, height, zoom, language):
|
||||
html = inject_probe(index_html(), "lobby-layout.js")
|
||||
stations = ("bridge", "sonar", "weapons", "damage", "opz", "radio",
|
||||
"engine", "helicopter", "eloka", "uboot", "uboot_sonar",
|
||||
"uboot_weapons", "uboot_engine", "uboot_esm", "uboot_nav")
|
||||
"uboot_weapons", "uboot_engine", "uboot_esm", "uboot_nav", "uboot_radio")
|
||||
empty_grants = {"command": False, "direct_fire": False, "sonar_audio": False}
|
||||
session = {"protocol": 2, "client_id": "layout-client", "name": "Layout Lobby",
|
||||
"csrf": "layout-csrf", "ordinal": 0, "presence": 1.0,
|
||||
@@ -394,7 +394,7 @@ def test_v2_lobby_layout_is_bounded(tmp_path, width, height, zoom, language):
|
||||
root = next(attrs for tag, attrs in Document(result.stdout).elements if tag == "html")
|
||||
report = json.loads(root["data-lobby-layout"])
|
||||
assert "error" not in report, report
|
||||
assert report["cards"] == 15 and report["order"] == list(stations)
|
||||
assert report["cards"] == 16 and report["order"] == list(stations)
|
||||
assert report["viewport"] == [css_width, css_height]
|
||||
assert report["pageWidth"] <= css_width + 1 and report["pageHeight"] <= css_height + 1, report
|
||||
assert report["controls"]
|
||||
@@ -411,7 +411,8 @@ def test_v2_lobby_layout_is_bounded(tmp_path, width, height, zoom, language):
|
||||
# The submarine sonar room shares the sonar section, the boat's other
|
||||
# stations share the submarine panel.
|
||||
assert set(report["workstations"]) == set(stations) - {
|
||||
"uboot_sonar", "uboot_weapons", "uboot_engine", "uboot_esm", "uboot_nav"}
|
||||
"uboot_sonar", "uboot_weapons", "uboot_engine", "uboot_esm", "uboot_nav",
|
||||
"uboot_radio"}
|
||||
for role, dashboard in report["workstations"].items():
|
||||
assert not dashboard["intersects"], (role, dashboard)
|
||||
assert dashboard["childIntersections"] == 0, (role, dashboard)
|
||||
|
||||
@@ -178,7 +178,8 @@ def test_published_role_states_pass_the_browser_validator(tmp_path):
|
||||
roles = {role for sample in states for role in sample if role not in ("None", "null")}
|
||||
assert roles == {"bridge", "sonar", "weapons", "damage", "opz", "radio",
|
||||
"engine", "helicopter", "eloka", "uboot", "uboot_sonar",
|
||||
"uboot_weapons", "uboot_engine", "uboot_esm", "uboot_nav"}
|
||||
"uboot_weapons", "uboot_engine", "uboot_esm", "uboot_nav",
|
||||
"uboot_radio"}
|
||||
page = tmp_path / "validate.html"
|
||||
page.write_text(_validator_page(states), encoding="utf-8")
|
||||
result = subprocess.run(
|
||||
|
||||
@@ -9,7 +9,7 @@ import pytest
|
||||
from src.air.flights import Flight
|
||||
from src.core.game import Game
|
||||
from src.core.station import Station
|
||||
from src.data.catalog import CATALOG
|
||||
from src.data.catalog import CATALOG, OWN_ASSET_EMITTER_PREFIX
|
||||
from src.enemies.sub import Sub
|
||||
from src.enemies.surface import SurfaceShip
|
||||
from src.sensors.esm import (
|
||||
@@ -445,11 +445,14 @@ def test_catalog_emitter_names_resolve_to_owning_platforms():
|
||||
assert CATALOG.emitter_name(None) is None
|
||||
assert CATALOG.emitter_name(42) is None
|
||||
for key, emitter in CATALOG.emitters.items():
|
||||
# Missile seekers are platform-less library emitters, named by
|
||||
# Game.eloka_emitter_name (tests/test_asm_seeker_catalog.py).
|
||||
if emitter.domain == "radar" and emitter.radar_role != "missile_seeker":
|
||||
# Missile seekers and the frigate's own air assets' radars are
|
||||
# platform-less library emitters, named by Game.eloka_emitter_name
|
||||
# (tests/test_asm_seeker_catalog.py, tests/test_boat_esm.py).
|
||||
own_asset = key.startswith(OWN_ASSET_EMITTER_PREFIX)
|
||||
if emitter.domain == "radar" and emitter.radar_role != "missile_seeker" \
|
||||
and not own_asset:
|
||||
assert CATALOG.emitter_name(key)
|
||||
elif emitter.radar_role == "missile_seeker":
|
||||
elif emitter.radar_role == "missile_seeker" or own_asset:
|
||||
assert CATALOG.emitter_name(key) is None
|
||||
|
||||
|
||||
|
||||
@@ -839,7 +839,7 @@ def test_each_boat_station_owns_its_own_orders():
|
||||
owners = {action: spec.stations for action, spec in V2_ACTION_REGISTRY.items()
|
||||
if action.startswith("uboot_")}
|
||||
assert owners["uboot_fire"] == {"uboot_weapons"} and "uboot_weapons" in DIRECT_FIRE_ROLES
|
||||
assert owners["uboot_mast"] == {"uboot", "uboot_esm"}
|
||||
assert owners["uboot_mast"] == {"uboot", "uboot_esm", "uboot_radio"}
|
||||
assert owners["uboot_snorkel"] == {"uboot_engine"}
|
||||
assert "uboot_nav" in owners["uboot_set_course"]
|
||||
# The commander no longer fires; the weapons station does.
|
||||
@@ -869,7 +869,7 @@ def test_new_game_asks_which_unit_the_uconsole_plays():
|
||||
|
||||
|
||||
@pytest.mark.parametrize("language", ["en", "de"])
|
||||
def test_local_boat_has_six_stations_and_orders_stay_at_their_station(language):
|
||||
def test_local_boat_has_seven_stations_and_orders_stay_at_their_station(language):
|
||||
from src.ui import uboot_view
|
||||
game = Game(seed=83, start_menu=False, audio_enabled=False, language=language)
|
||||
game.local_side = "uboot"
|
||||
@@ -881,7 +881,7 @@ def test_local_boat_has_six_stations_and_orders_stay_at_their_station(language):
|
||||
game.handle_event(pygame.event.Event(pygame.KEYDOWN, key=value, mod=mod, unicode=""))
|
||||
|
||||
for number, role in enumerate(("uboot", "uboot_sonar", "uboot_weapons", "uboot_engine",
|
||||
"uboot_esm", "uboot_nav"), start=1):
|
||||
"uboot_esm", "uboot_nav", "uboot_radio"), start=1):
|
||||
key(pygame.K_0 + number)
|
||||
assert uboot_local.local_station(game) == role
|
||||
assert (game.station is Station.SONAR) == (role == "uboot_sonar")
|
||||
@@ -889,6 +889,7 @@ def test_local_boat_has_six_stations_and_orders_stay_at_their_station(language):
|
||||
# Navigation may not raise the mast; the ESM station may.
|
||||
sub.depth = sub.target_depth = sub.order_depth = 12.0
|
||||
game.msg = ""
|
||||
key(pygame.K_6)
|
||||
key(pygame.K_p)
|
||||
assert not boat.orders.mast
|
||||
key(pygame.K_5)
|
||||
|
||||
@@ -85,7 +85,7 @@ def test_source_and_wheel_contain_editor_templates(tmp_path):
|
||||
(ROOT / "data/contact_analysis" / name).read_bytes()
|
||||
assert any(name.endswith(".dist-info/licenses/THIRD_PARTY_NOTICES.md")
|
||||
for name in wheel_names)
|
||||
assert any(name.endswith("-1.3.0.dist-info/METADATA") for name in wheel_names)
|
||||
assert any(name.endswith("-1.3.1.dist-info/METADATA") for name in wheel_names)
|
||||
|
||||
source = next(tmp_path.glob("u_jagd-*.tar.gz"))
|
||||
with tarfile.open(source) as archive:
|
||||
@@ -136,7 +136,7 @@ def test_source_and_wheel_contain_editor_templates(tmp_path):
|
||||
[sys.executable, "-c",
|
||||
"from importlib import resources; "
|
||||
"assert resources.files('data.editor_templates').joinpath('mission.json').is_file(); "
|
||||
"from src.core.version import APP_VERSION; assert APP_VERSION == '1.3.0'; "
|
||||
"from src.core.version import APP_VERSION; assert APP_VERSION == '1.3.1'; "
|
||||
"from src.commander.server import CommanderServer; "
|
||||
"server=CommanderServer(); server.start('127.0.0.1',0); server.stop(); "
|
||||
"from src.core import manual; page=manual.html_page('de'); assert 'station-sonar' in page; "
|
||||
|
||||
@@ -19,11 +19,11 @@ def _game(seed=1201):
|
||||
return Game(seed=seed, start_menu=False, audio_enabled=False)
|
||||
|
||||
|
||||
def test_save_is_v21_and_older_documents_are_rejected():
|
||||
def test_save_is_v22_and_older_documents_are_rejected():
|
||||
game = _game()
|
||||
state = json.loads(json.dumps(game.save_state()))
|
||||
assert (state["version"], state["save_schema"]) == (21, "u-jagd-save-v21")
|
||||
assert (SAVE_VERSION, SAVE_SCHEMA) == (21, "u-jagd-save-v21")
|
||||
assert (state["version"], state["save_schema"]) == (22, "u-jagd-save-v22")
|
||||
assert (SAVE_VERSION, SAVE_SCHEMA) == (22, "u-jagd-save-v22")
|
||||
assert set(state) == SAVE_ROOT_FIELDS
|
||||
before = game.save_state()
|
||||
legacy = copy.deepcopy(state)
|
||||
|
||||
@@ -12,9 +12,9 @@ from src.world.real_coast import sector_for_seed
|
||||
|
||||
|
||||
def test_release_version_and_exact_splash_text():
|
||||
assert APP_VERSION == "1.3.0"
|
||||
assert APP_VERSION == "1.3.1"
|
||||
assert SPLASH_TEXT == (
|
||||
"Anti Sub Marine Warfare on uConsole by Dominik Bornhäußer Version 1.3.0"
|
||||
"Anti Sub Marine Warfare on uConsole by Dominik Bornhäußer Version 1.3.1"
|
||||
)
|
||||
|
||||
|
||||
|
||||
@@ -78,6 +78,10 @@ def render_block() -> str:
|
||||
lines.append(f" interceptKinds: {_array(schema.UBOOT_INTERCEPT_KINDS)},\n")
|
||||
lines.append(f" advice: {_array(schema.UBOOT_THREAT_ADVICE)},\n")
|
||||
lines.append(f" evadePlan: {_array(schema.UBOOT_EVADE_PLAN_FIELDS)},\n")
|
||||
lines.append(f" radio: {_array(schema.UBOOT_RADIO_FIELDS)},\n")
|
||||
lines.append(f" radioLog: {_array(schema.UBOOT_RADIO_LOG_FIELDS)},\n")
|
||||
lines.append(f" radioLogKinds: {_array(schema.UBOOT_RADIO_LOG_KINDS)},\n")
|
||||
lines.append(f" radioReport: {_array(schema.UBOOT_RADIO_REPORT_FIELDS)},\n")
|
||||
lines.append(" };\n")
|
||||
lines.append(END)
|
||||
return "".join(lines)
|
||||
|
||||
Reference in new issue
Block a user