mirror of
https://github.com/db9979/uconsole_asw_game.git
synced 2026-12-06 12:54:18 +01:00
Main ballast, regulating and trim tanks with fill levels; an HP air store for several blows, refilled while snorkelling; torpedo launches and flooding shift weight and trim, pumps are audible. Tanks page on the uConsole engine room, cross-section card in the web station. Save format v19. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01BdXs5tkJ6kzdeubNWqPHtG
521 lines
27 KiB
Markdown
521 lines
27 KiB
Markdown
[Deutsche README](README.de.md)
|
|
|
|
# U-Jagd
|
|
|
|
An optional browser-only LAN room is available with `--web-host` behind a
|
|
separate HTTPS reverse proxy. See the [German web-host guide](docs/web-host.de.md).
|
|
|
|
U-Jagd is a real-time anti-submarine warfare tactics game for Linux, designed
|
|
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**
|
|
|
|
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
|
|
torpedo type with search patterns, enable point and salvo spread; hostile
|
|
submarines that fire only once their own target-motion analysis has
|
|
converged; counter-flooding, longitudinal trim and plant selection aboard;
|
|
helicopter sonobuoy patterns and a MAD run; convergence zones from the
|
|
measured sound-speed profile with Ekelund and dot-stack TMA; a periscope
|
|
with visual sightings, a stadimeter and diesel noise while snorkelling for
|
|
the crewed submarine; anti-aliased chart lines, the chart's light of the
|
|
hour, a weather hatch and a shared horizon renderer; a WebSocket state push
|
|
for Remote Crew with a generated schema allowlist; a read-only observer
|
|
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 v19 (the crewed boat's 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); v18 and older saves are rejected.**
|
|
|
|
Release 1.2.0 tightens the game flow and the hand-over between stations: the
|
|
`Esc` dialog and the mission-end screen return to the main menu (`M`), `R`
|
|
restarts an editor mission as itself, convoy missions announce the remaining
|
|
time as progress, and an Operations fusion built from one sonar contact can be
|
|
designated to Weapons, with its classification and affiliation applying to fire
|
|
control (FRIEND/NEUTRAL on a fusion blocks every torpedo shot). Saves stay v14.
|
|
|
|
Release 1.1.0 replaces the remaining kinematic shortcuts with physical models
|
|
while keeping the 1.0.0 gameplay balance (checked by a calibration harness):
|
|
force-based own-ship hydrodynamics and seakeeping; a time-varying ocean with
|
|
tides, mixed layer, sediments and wrecks; passive/active sonar equations with
|
|
ray-traced propagation; towed-array left/right ambiguity, Doppler and a
|
|
covariance TMA; submarine and torpedo physics (energy, fins, wire, proximity
|
|
fuze); decoy discrimination; compartment flooding, stability, fire and repair
|
|
logistics; the radar equation with a rotating antenna, ESM amplitude, HF
|
|
propagation and a moonlit lookout; and missile flight physics with chaff
|
|
clouds, CIWS ballistics, pop-up raiders, helicopter hover/deck limits and
|
|
drifting buoys. Hostile submarines now need their own TMA before they know
|
|
your range. The Remote Crew v2 protocol is unchanged apart from new ELOKA
|
|
intercept fields.
|
|
See [docs/simulation-gaps.md](docs/simulation-gaps.md) for the full record.
|
|
|
|
Release 1.0.0 splits every workstation into two tabbed sub-pages, adds manual
|
|
CIWS and FLAK release authorization alongside the existing automatic gates,
|
|
and gives the autocrew bridge ASM/torpedo evasion and grounding-avoidance
|
|
behavior. TMA re-solves now use hysteresis against near-tied bearing
|
|
solutions, and inbound anti-ship missiles carry a terminal-active radar
|
|
seeker that gives an ESM/RWR warning before search radar acquires them. A
|
|
consolidated theme system adds an optional high-contrast, colorblind-safe
|
|
palette. Save format v11 and the Remote Crew v2 protocol are unchanged.
|
|
|
|
This is a hobby project built by a single developer. It is a game, not a training or navigation
|
|
product. Its systems are simplified and do not claim to reproduce classified
|
|
capabilities, data, or doctrine.
|
|
|
|
## Screenshots
|
|
|
|

|
|
|
|

|
|
|
|

|
|
|
|

|
|
|
|
Full-resolution workstations: [Bridge](docs/screenshots/station-bridge.png),
|
|
[Sonar](docs/screenshots/station-sonar.png),
|
|
[Weapons](docs/screenshots/station-weapons.png),
|
|
[Damage Control](docs/screenshots/station-damage-control.png),
|
|
[OPZ/CIC](docs/screenshots/station-opz-cic.png),
|
|
[Radio](docs/screenshots/station-radio.png),
|
|
[Engineering](docs/screenshots/station-engineering.png),
|
|
[Helicopter](docs/screenshots/station-helicopter.png), and
|
|
[Electronic Warfare/ESM](docs/screenshots/station-eloka.png).
|
|
|
|
Damage-control example with authored flooding, fire, lost zones and repair teams:
|
|
[F-217 damage schematic](docs/screenshots/damage-control-alert.png).
|
|
|
|
Commander browser: [OPZ/CIC at 1920 x 1080](docs/screenshots/commander-overview.png),
|
|
[Sonar at 2560 x 1440](docs/screenshots/commander-wide.png), and the
|
|
[complete English/German desktop and mobile matrix](docs/screenshots/commander-captures.md).
|
|
[Local Commander options](docs/screenshots/commander-options.png).
|
|
|
|
## Highlights
|
|
|
|
- Nine stations: Bridge, Sonar, Weapons, Damage Control, OPZ/CIC, Radio,
|
|
Engineering, Helicopter Deck, and Electronic Warfare/ESM.
|
|
- Four built-in scenarios, fully configurable custom difficulty, and continuous real-time simulation (no pause, no time acceleration).
|
|
- Passive HMS and towed-array sonar, active sonar, broadband and LOFAR
|
|
displays, DEMON analysis, bathythermograph readings, and bearing-only TMA.
|
|
- Surface and air radar, AIS, ESM, HFDF, manual classification and affiliation,
|
|
and a common operational picture.
|
|
- Ship and helicopter torpedoes, sonobuoys, hostile missiles, ESSM, CIWS, and
|
|
chaff.
|
|
- Civilian shipping, hostile surface ships, aircraft, biological contacts, and
|
|
acoustic decoys.
|
|
- Flooding, fire, nine selectable zones in a procedural F-217 system schematic,
|
|
and three assignable repair teams. The schematic is fictional, not a real
|
|
F123 compartment plan.
|
|
- Five local save slots with deterministic world snapshots.
|
|
- English and German interface catalogs, system-language detection, and an
|
|
options screen.
|
|
- Context tooltips on all nine stations: hover for a temporary explanation,
|
|
or left-click a displayed item to pin its tooltip. `Esc` clears a pin before
|
|
opening the quit dialog.
|
|
- A native 1280 x 720 interface, aspect-correctly letterboxed when necessary.
|
|
Maps and symbols are drawn by Pygame; audio is synthesized at runtime.
|
|
- Optional trusted-LAN Remote Crew: multiple authenticated browser clients can
|
|
hold exclusive station roles, switch among their retained roles, operate the
|
|
same observation-led controls, and use separately granted direct fire.
|
|
The browser console is a one-viewport combat-information-centre layout for
|
|
large desktop monitors: status bar, central instrument and collapsible docks.
|
|
`python main.py --solo-crew` (or the F9 "Crew mode" row) lets one browser run
|
|
all nine stations plus save/load and new game while the
|
|
uConsole stays the simulation server; see [Remote Crew setup](docs/commander-coop.md).
|
|
- Conservative station Autocrew with local `F2` control and an `F3` overview.
|
|
Remote Crew temporarily suspends Autocrew only for the leased station.
|
|
- Deterministic marine weather with wind, rain, visibility and smooth sea-state
|
|
transitions. Weather affects radar, lookout, sonar and helicopter limits but
|
|
does not add hidden wind drift.
|
|
- Modeled fuel consumption, endurance, range and repair trends in Engineering.
|
|
|
|
## Requirements
|
|
|
|
- Linux
|
|
- Python 3.11 or newer
|
|
- Pygame 2.6 or newer
|
|
- NumPy 2.0 or newer
|
|
- A Pygame-supported display
|
|
- An audio device is optional; startup continues silently if audio is
|
|
unavailable
|
|
|
|
## Quick Start
|
|
|
|
```sh
|
|
git clone https://github.com/db9979/uconsole_asw_game.git
|
|
cd uconsole_asw_game
|
|
python3 -m venv .venv
|
|
. .venv/bin/activate
|
|
python -m pip install --upgrade pip
|
|
python -m pip install -r requirements.txt
|
|
python main.py
|
|
```
|
|
|
|
For ClockworkPi uConsole system packages, updates, and troubleshooting, see
|
|
[`docs/install-uconsole.en.md`](docs/install-uconsole.en.md).
|
|
|
|
## Command Line
|
|
|
|
The default launch uses fullscreen according to the saved preference and picks
|
|
a random mission seed:
|
|
|
|
```sh
|
|
python main.py
|
|
```
|
|
|
|
The supported arguments are:
|
|
|
|
```sh
|
|
python main.py 12345
|
|
python main.py 12345 --windowed
|
|
python main.py --no-audio
|
|
python main.py --version
|
|
```
|
|
|
|
`--windowed` and `--no-audio` override the corresponding saved options for that
|
|
launch. There is no `--fullscreen` or command-line language option. After a
|
|
package installation, the same entry point is available as `u-jagd`, for
|
|
example `u-jagd --windowed`.
|
|
|
|
## Starting a Game
|
|
|
|
The main menu provides new game, load, mission editor, unit editor, options,
|
|
and quit entries. A new game leads through scenario selection and, for the
|
|
random scenario, a custom difficulty screen (submarine stealth, repair rate,
|
|
torpedo count and hit tolerance, enemy aggression, starting sea state,
|
|
submarine/warship/traffic counts, air raid frequency, and time limit).
|
|
|
|
- `W` cycles through the seed-selected real sector, the fixed legacy reference
|
|
map, and a fixed selectable real sector.
|
|
- `Page Up`/`Page Down` select the coast in the fixed real-sector mode.
|
|
- `R` generates a new seed while retaining the selected fixed real sector.
|
|
- `F` toggles fullscreen from the menu.
|
|
- Arrow keys select an entry; `Enter` or `Space` confirms it.
|
|
|
|
A seed selects one of 128 real-data-derived 500 NM coastal sectors and produces
|
|
the same generated world for the same world mode. The fixed legacy map remains
|
|
available as a separate stylized option.
|
|
|
|
At mission start, Radio receives coarse, static intelligence about possible
|
|
underwater or hostile surface activity. Bearing and range are deliberately
|
|
rounded, the position is explicitly unconfirmed, and the report is not a sensor
|
|
fix. If no useful initial position exists, HQ directs the crew to develop the
|
|
picture with onboard sensors.
|
|
|
|
## Controls
|
|
|
|
Press `F1` (or `?`) in the game for context-sensitive help; its fourth category
|
|
is the full player manual (quickstart, one chapter per station with displays,
|
|
keys, standard procedure and tips, plus reference data). The same manual is
|
|
exported to [`docs/manual/manual.en.md`](docs/manual/manual.en.md) /
|
|
[`manual.de.md`](docs/manual/manual.de.md) and served by Remote Crew at
|
|
`/manual-en` and `/manual-de`. Printable PDFs are
|
|
[`docs/manual/manual.en.pdf`](docs/manual/manual.en.pdf) /
|
|
[`handbuch.de.pdf`](docs/manual/handbuch.de.pdf) (`python tools/build_manual_pdf.py`,
|
|
needs a local Chromium). A printable complete local
|
|
keyboard reference is available as
|
|
[`docs/station-shortcuts.de.pdf`](docs/station-shortcuts.de.pdf), with its text
|
|
source at [`docs/station-shortcuts.de.md`](docs/station-shortcuts.de.md). The
|
|
most important global controls are:
|
|
|
|
| Input | Action |
|
|
|---|---|
|
|
| `1` to `9` | Bridge, Sonar, Weapons, Damage, OPZ/CIC, Radio, Engineering, Helicopter, Electronic Warfare/ESM; press the active station number again to advance its page when available |
|
|
| `F` / `Shift+F` / `B` at ESM | Cycle signal-status, minimum-threat, and frequency-band filters |
|
|
| `Tab` / `Shift+Tab` | Next / previous station |
|
|
| `F1` / `?` | Context-sensitive help; category 4 is the full player manual |
|
|
| `0` | Weather and sonar analysis panel over any station |
|
|
| `F11` | Full event log and telemetry over the station (keeps running) |
|
|
| `N` | Nations and units (at Sonar: notch filter) |
|
|
| `P` | Plot mode on the Bridge/Weapons/Helicopter map and OPZ chart: marks, rulers, bearing lines, circles, DR lines (`M R B C D`, `Enter`/click, `Backspace`) |
|
|
| `F2` / `F3` | Toggle Autocrew for the current station / open the Autocrew overview |
|
|
| `F4` | Open SimLog when enabled |
|
|
| `F8` | Open the tactical unit analyzer; cycles a visible Commander proposal when applicable |
|
|
| `F10` | Options |
|
|
| `F9` | Local Commander LAN administration |
|
|
| `S` / `L` | Save / load using slots 1 to 5; at OPZ/CIC, `L` is the contextual fusion command |
|
|
| `+` / `-` | Engine telegraph |
|
|
| `Alt+Enter` | Toggle fullscreen |
|
|
| `Ctrl+Enter` | Primary weapon action at Weapons, OPZ/CIC, or Helicopter; normal readiness checks apply |
|
|
| `Q` / `E` or mouse wheel | Zoom maps on Bridge, Weapons, and Helicopter; the OPZ chart uses the mouse wheel |
|
|
| Mouse drag | Pan a visible map, including the OPZ chart, and disable its independent camera follow |
|
|
| `K` | Toggle camera follow on the current map or OPZ chart |
|
|
| `Esc` | Clear a pinned tooltip, cancel the current view/input, or open quit confirmation (back to game, save and exit, main menu, exit without saving) |
|
|
| `R` / `M` after the mission ends | Restart with the same seed / return to the main menu |
|
|
|
|
Station keys are deliberately contextual. For example, `Shift+A` sends an active
|
|
ping at Sonar, plain `A` selects Broadband listening there, and `A` changes
|
|
acoustic mode in Engineering. Use `F1` rather than
|
|
assuming that a key has the same meaning at every station.
|
|
|
|
In help, Left/Right switches category; Up/Down or Page Up/Page Down scrolls its
|
|
contents. Existing station weapon shortcuts remain available. Held course and
|
|
torpedo-depth adjustments use real time, not the selected simulation multiplier.
|
|
|
|
The bottom event feed is shared by all stations. It retains operational reports,
|
|
completed orders, and alerts—including mission outcome, weapon and defensive
|
|
events, damage, radio traffic, and navigation. Short-lived
|
|
input prompts, invalid-entry hints, selections, and display settings remain in
|
|
the transient status banner instead of displacing operational history.
|
|
|
|
At Damage Control, click a zone or its label to select it and attempt to assign
|
|
the currently selected team. With tooltips enabled, the click also pins its
|
|
details. Up/Down selects a team, Enter assigns it, and Backspace withdraws it.
|
|
Flood and fire trends show the
|
|
model's net rate, including difficulty and multi-team effectiveness.
|
|
|
|
## Sonar Notes
|
|
|
|
Passive sonar produces uncertain bearings, not ground-truth positions or
|
|
depths. TMA needs a bearing history and own-ship maneuvering before it can
|
|
produce a useful position and motion estimate. Active echoes provide measured
|
|
bearing, range, and depth with uncertainty after the modeled sound-travel delay;
|
|
they are retained on the `ACTIVE` page and fade with age. An active fix expires,
|
|
and transmitting can alert submarines at a greater distance than the frigate
|
|
can receive an echo. Coastline occlusion, sea state, thermocline geometry, own
|
|
noise, and array selection affect results.
|
|
|
|
TMA and sonobuoy fixes also expire independently of continued passive hearing.
|
|
Historical plot tooltips inspect the displayed sample. Active returns retain
|
|
frozen transmit-time geometry; the separate outbound wave and moving-receiver
|
|
intercept are not simulated, and submarine ping warnings remain immediate.
|
|
|
|
Sonar audition consumes the receiver's bounded block handoff in order and
|
|
retries an unaccepted block when the playback queue is full. An overrun restarts
|
|
the stream rather than joining discontinuous samples. Analysis remains independent of playback
|
|
availability and volume. DSP deliberately warms up again after loading a save;
|
|
saved tactical observations are retained.
|
|
|
|
Sonar controls include:
|
|
|
|
- `Shift+A`: transmit an active ping; the transmitter has a 30-second cooldown.
|
|
- `Shift+B`: select HMS or TAS as the receiving/transmitting array.
|
|
- `A` / `B` / `H`: select Broadband, Filtered or Heterodyne listening.
|
|
- `Y`: deploy or retrieve TAS.
|
|
- `U` / `V`: adjust TAS/VDS target depth after deployment.
|
|
- `Page Up` / `Page Down`: move through Broadband, LOFAR, DEMON, TMA,
|
|
Environment, and ACTIVE pages.
|
|
- `2` while already at Sonar: advance to the next sonar page.
|
|
|
|
TAS handling progresses only between 3 and 12 kn. Deployment takes six
|
|
simulation minutes, retrieval takes eight, and the fully streamed array needs
|
|
30 more seconds to settle before reaching full performance. Handling pauses
|
|
outside the 3-12 kn envelope. Exceeding 20 kn while the cable is out faults the
|
|
array for the rest of the current game. TAS depth is also constrained by ship
|
|
speed.
|
|
|
|
Selecting TAS does not make it available: a TAS ping can produce echoes only
|
|
after enough cable is streamed. Pressing `Shift+A` while TAS is unavailable is
|
|
rejected without transmitting or consuming the shared ping cooldown. TAS active
|
|
range is lower than HMS active range; its primary advantage is passive bearing
|
|
accuracy and performance against suitably layered contacts after it has
|
|
settled.
|
|
|
|
## Radar Notes
|
|
|
|
At OPZ/CIC, `Page Up` and `Page Down` select the ship-centred radar range of
|
|
**10, 20, 40, 80, or 120 NM**; they do not move or zoom the chart and do not
|
|
change pages or sensor power. The full-height, north-up OPZ chart has its own
|
|
camera: the mouse wheel zooms around the pointer down to a 5 NM radius, dragging
|
|
free chart space pans, and `K` toggles own-ship follow. Its initial view is about
|
|
a 40 NM radius. The event feed and telemetry continue collecting while hidden
|
|
on this station and reappear unchanged elsewhere. The modeled
|
|
clear-weather detection limits are 30 NM for surface radar and 100 NM for air
|
|
radar, with degradation from sea state 5 and rain clutter. Surface and air radar can be
|
|
controlled separately with `R` and `Shift+R`.
|
|
|
|
## Language and Options
|
|
|
|
On first launch, U-Jagd selects German for a German system locale and English
|
|
for English or unsupported locales. The options screen switches explicitly
|
|
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 v19 game saves for deterministic restoration of existing sessions.
|
|
|
|
## Commander LAN Co-op
|
|
|
|
Use **F10 > Commander LAN**, or **F9**, on the uConsole. Select an explicit
|
|
private IPv4 while the service is off, then enable it. Open the displayed URL on
|
|
each crew device. The default `127.0.0.1:8765` is local-only, not reachable from
|
|
another device. No router forwarding is needed or supported.
|
|
|
|
To reach the same crew or solo session through your own HTTPS reverse proxy as
|
|
well, start the game with `--public-origin https://asw.example.net` (optionally
|
|
with `--solo-crew`) and point the proxy at the LAN URL shown in F9. The LAN URL
|
|
keeps working; F9 then shows both addresses. Details and security notes:
|
|
[`docs/web-host.de.md`](docs/web-host.de.md).
|
|
|
|
Alternatively, the uConsole can create a temporary WPA2 Remote Crew hotspot.
|
|
Install its narrowly scoped privileged helper once with
|
|
`sudo ./packaging/uconsole/install-hotspot-helper.sh`, select the hotspot network
|
|
mode in F9, and enable the service. U-Jagd generates a fresh SSID and Wi-Fi
|
|
password each time, starts the listener only after the private hotspot address is
|
|
ready, and stores neither credential. Stopping Remote Crew removes the hotspot
|
|
and restores the previous Wi-Fi connection. The game itself must not run with
|
|
`sudo`.
|
|
|
|
Pair using the six-character code: **three digits followed by three uppercase
|
|
letters**, for example `482KMT`. Five wrong guesses in a rolling minute
|
|
temporarily block further attempts. The displayed code remains valid for
|
|
additional crew until the host revokes access or the fifth failure rotates it.
|
|
Lowercase browser input is normalized to uppercase. The example is not a
|
|
functioning credential.
|
|
|
|
After pairing, each browser requests one or more stations. The host grants each
|
|
station exclusively; ordinary station operation is enabled on approval, while
|
|
sonar audio and direct fire remain separate grants. A browser displays one active
|
|
station at a time, requests another through **Add station**, and retains its other
|
|
leases for quick switching through the station selector. An approved added station
|
|
opens automatically. Every
|
|
command is revalidated on the main
|
|
simulation thread against station damage, observation freshness, inventory,
|
|
readiness, ROE, and the current world generation. Communication still relies on
|
|
external voice; no microphone or chat is included.
|
|
|
|
Sonar crew may stage target proposals and Bridge crew may stage course and speed
|
|
proposals. These requests never act directly: the host reviews and accepts or
|
|
rejects them locally. Browser alerts remain role-scoped. The separately
|
|
host-granted, read-only SimLog is a diagnostic exception and exposes detached
|
|
full-truth snapshots, including hidden units; reconnecting establishes a silent
|
|
event baseline rather than replaying old alarms.
|
|
|
|
While a browser owns a station lease, matching station input on the uConsole is
|
|
read-only. Host administration and switching to another station remain
|
|
available; revoking the lease restores local operation immediately.
|
|
|
|
The service starts **off on every launch**. Access and grants are not saved.
|
|
World replacement revokes active authority on the next main-thread frame. The
|
|
mission always runs in real time: local menus and overlays (help, options, save/load,
|
|
quit confirmation, F8 analyzer, F9 administration) and focus loss never pause it,
|
|
so browser stations stay live behind them. Only the main menu and splash lock
|
|
browser changes.
|
|
Browser sonar sound requires an explicit host grant and a local user gesture;
|
|
reconnecting does not replay old audio. Its Broadband, Filtered, and Heterodyne
|
|
listening modes use the selected band, notch, and gain controls. Clicking or
|
|
tapping the Broadband waterfall sets Sonar's manual listening bearing; LOFAR
|
|
does not. The same local sound toggle also enables synthesized own-ship cavitation
|
|
noise on the Bridge; it uses only the projected cavitation warning and never
|
|
controls host audio.
|
|
Hover over an unavailable browser control to see its current localized reason,
|
|
such as a missing grant, damaged station, cooldown, empty inventory, pending
|
|
order, or the TAS handling-speed limit.
|
|
|
|
**Commander LAN security:** HTTP is unencrypted. Use only a trusted LAN. This
|
|
mode does not expose Internet hosting, wildcard binding, CDN, or remote crew
|
|
control of ROE/time/save. The separate web-host mode requires an HTTPS proxy
|
|
and a host login. See [Remote Crew setup](docs/commander-coop.md) and
|
|
[protocol/security](docs/commander-protocol.md).
|
|
|
|
## Editors and Current Limits
|
|
|
|
The main menu exposes a Mission Editor and Unit Editor. They provide read-only
|
|
built-in libraries, user-content browsing, validation, cloning, editable typed
|
|
fields, and a deterministic static mission preview. Mission authors can edit
|
|
exact placements, seeded random groups, objectives, and timed events. Unit
|
|
authors can create all six profile kinds and edit nested acoustic and list data
|
|
through safe structured input. `Ctrl+E` and `Ctrl+I` expose bundle export and
|
|
import. JSON templates under `data/editor_templates/` describe the accepted
|
|
schemas; user files are stored under `~/.u-jagd/missions/` and
|
|
`~/.u-jagd/units/`.
|
|
|
|
Validated does not mean runtime-effective. In release 1.0.0:
|
|
|
|
- A user mission can be started with `F5` from the Mission Editor browser only
|
|
when it uses the supported runtime subset.
|
|
- Effective mission values are the seed and name; 500 NM fixed-world placement
|
|
sectors; player position, course, and speed; sea state, start time, and
|
|
thermocline depth; exact built-in submarine and surface profiles with their
|
|
placement, course, speed, and submarine depth; and `sink` or `survive`
|
|
objectives with a time limit.
|
|
- A runtime mission must specify a 500 NM `fixed` world and `clear` weather.
|
|
Alternate world sizes and reference worlds are rejected. The editor's world
|
|
definition does not replace the game's coast dataset.
|
|
- Submarine placements must be hostile. For a `sink` objective, its target list
|
|
must exactly match all placed submarines.
|
|
- Random groups, timed events, `protect` and `reach` objectives, aircraft,
|
|
animals, torpedoes, decoys, and user-created unit profiles are rejected for
|
|
runtime play rather than silently ignored.
|
|
- Unit Editor output is validation/authoring data only. No user unit-profile
|
|
field currently changes the running simulation.
|
|
|
|
## Saves and User Data
|
|
|
|
This build writes and loads save format **v19** only. V19 requires the exact
|
|
`u-jagd-save-v19` schema, including 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
|
|
picture) when a crew holds the boat, every submarine's ballast, trim and high-pressure air, every conventional submarine's diesel, charge rate and air stores,
|
|
and foreign active pings whose sound is still travelling to the
|
|
frigate. Older (including every 1.0.0 v11 save),
|
|
newer, malformed, or incomplete saves are rejected without replacing the
|
|
running game; there is no migration.
|
|
|
|
The five slots are `~/.u-jagd/slot1.json` through `slot5.json`. Saves include a
|
|
snapshot of coastline geometry and synthetic bathymetry so an existing game is
|
|
not regenerated against a later world generator.
|
|
|
|
## World Data and Disclaimer
|
|
|
|
`data/coastlines/real_sectors.json.gz` contains exactly 128 prevalidated 500 NM
|
|
sectors derived from Natural Earth country geometry and a Wikidata airbase
|
|
coordinate snapshot. Real place, country, and military-base names and source
|
|
coordinates may therefore appear. Friendly, hostile, neutral, and civil roles
|
|
are assigned independently as fictional exercise roles and do not describe the
|
|
real states or facilities.
|
|
|
|
Bathymetry is synthetic and all tactical ranges, platform performance,
|
|
acoustics, affiliations, and exercise roles are game-model data. Nothing in the
|
|
repository is suitable for navigation, surveying, identification of real-world
|
|
capability, or operational planning. U-Jagd is not affiliated with or endorsed
|
|
by Natural Earth, Wikidata, their contributors, any platform manufacturer,
|
|
military organization, government, or source rights holder.
|
|
|
|
Exact provenance, versions, hashes, transformation notes, and licenses are in
|
|
[`THIRD_PARTY_NOTICES.md`](THIRD_PARTY_NOTICES.md). Private WaveOps/MNW material
|
|
is not a repository source. No text, images, layouts, data, imitation,
|
|
transcription, or derived material from it is used.
|
|
|
|
## Development and Tests
|
|
|
|
The workstation/model review, delivered corrections, remaining modeling limits,
|
|
and hardware acceptance checklist are documented in
|
|
[`docs/workstation-review.md`](docs/workstation-review.md).
|
|
Current work is tracked in [`docs/plan-0.1.8.md`](docs/plan-0.1.8.md) and
|
|
[`docs/resume.md`](docs/resume.md). The completed 0.1.6 stabilization plan remains
|
|
available in [`docs/plan-0.1.6.md`](docs/plan-0.1.6.md).
|
|
|
|
Install the project and development dependency, then run the test suite:
|
|
|
|
```sh
|
|
python -m pip install -e '.[dev]'
|
|
pytest
|
|
```
|
|
|
|
Validate the generated contact catalog with:
|
|
|
|
```sh
|
|
python tools/gen_contacts.py --check
|
|
```
|
|
|
|
Build a wheel with a PEP 517 frontend:
|
|
|
|
```sh
|
|
python -m pip install build
|
|
python -m build
|
|
```
|
|
|
|
## License and Credits
|
|
|
|
Project code and project-specific documentation are licensed under the MIT
|
|
License; see [`LICENSE`](LICENSE). Pygame, NumPy, geographic source data, and any
|
|
future assets retain their own licenses and attribution requirements. See
|
|
[`THIRD_PARTY_NOTICES.md`](THIRD_PARTY_NOTICES.md) and
|
|
[`assets/README.md`](assets/README.md).
|