mirror of
https://github.com/db9979/uconsole_asw_game.git
synced 2026-12-05 12:24:25 +01:00
Show the frigate's own helicopter in the lookout's eyepieces (1.3.162)
The bridge's binoculars, horizon strip, Remote Crew binoculars card, phone lookout and hit picture now draw the own helicopter (display only, own asset truth) with the helicopter model whenever the bridge can see it: lifting off the flight deck astern, in transit, low over its dipping sonar and with position lights at night. The lookout scope, the panorama and the list under the binoculars mark it. Aircraft below 1 degree elevation are drawn in front of the sea on the moving horizon. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JDM4RwxjGVU4xyFcM2zHjb
This commit is contained in:
27 files changed
+375
-55
No files matched your search
@@ -2,7 +2,7 @@
|
||||
|
||||
## Authority and scope
|
||||
|
||||
- This is U-Jagd 1.3.160 (`src/core/version.py`); saves are written as v49 and older saves from v38 on are lifted to v49 on load (`src/core/save_migrate.py`). Treat these as compatibility contracts, not changelog entries.
|
||||
- This is U-Jagd 1.3.162 (`src/core/version.py`); saves are written as v49 and older saves from v38 on are lifted to v49 on load (`src/core/save_migrate.py`). 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`.
|
||||
|
||||
@@ -4,6 +4,20 @@
|
||||
|
||||
Alle Versionen von U-Jagd, die neueste zuerst. Die [README](README.de.md) zeigt nur die neueste.
|
||||
|
||||
## 1.3.162
|
||||
|
||||
Version 1.3.162 zeigt der Brücke den eigenen Hubschrauber der Fregatte.
|
||||
Sobald die Brücke ihn sehen kann, fliegt das Hubschraubermodell im Fernglas
|
||||
des Ausgucks, im Horizontstreifen, in der Fernglas-Karte der Remote Crew, im
|
||||
Handy-Ausguck und im Trefferbild an seiner wahren Position und mit seinem
|
||||
Kurs: Er hebt vom Flugdeck achteraus ab, steigt weg, schwebt tief über
|
||||
seinem Tauchsonar und zeigt nachts seine Positionslichter. Das Ausguck-
|
||||
Sichtgerät markiert ihn als „eigener Hubschrauber“, das Panorama mit einem
|
||||
grünen Strich, und die Liste unter dem Fernglas nennt ihn zuerst. Tief
|
||||
fliegende Luftfahrzeuge stehen jetzt vor der See statt hinter den Wellen.
|
||||
An den Meldungen des Ausgucks ändert sich nichts. Spielstände bleiben v49;
|
||||
v38 bis v48 lassen sich weiter laden.
|
||||
|
||||
## 1.3.160
|
||||
|
||||
Version 1.3.160 zeichnet die Leckwehr wie eine echte Leckwehrtafel. Die
|
||||
|
||||
@@ -4,6 +4,19 @@
|
||||
|
||||
Every U-Jagd release, newest first. The [README](README.md) shows only the latest one.
|
||||
|
||||
## 1.3.162
|
||||
|
||||
Release 1.3.162 shows the frigate's own helicopter to the bridge. Whenever
|
||||
the bridge can see it, the helicopter model flies in the lookout's binoculars,
|
||||
the horizon strip, the Remote Crew binoculars card, the phone lookout and the
|
||||
hit picture at its true position and heading: it lifts off the flight deck
|
||||
astern, climbs away, hovers low over its dipping sonar and shows its position
|
||||
lights at night. The lookout scope marks it as "own helicopter", the
|
||||
panorama with a green tick and the list under the binoculars names it first.
|
||||
Low aircraft now stand in front of the sea instead of behind the waves.
|
||||
Nothing changes in what the lookout reports. Saves stay v49; v38 to v48
|
||||
saves still load.
|
||||
|
||||
## 1.3.160
|
||||
|
||||
Release 1.3.160 redraws the damage-control pictures like a real damage-
|
||||
|
||||
+12
-12
@@ -14,19 +14,19 @@ Sie führen eine fiktive Fregatte und wechseln zwischen neun Arbeitsplätzen, um
|
||||
zu navigieren, zu suchen, Kontakte zu klassifizieren, Ziele zu bekämpfen und das
|
||||
Schiff einsatzfähig zu halten.
|
||||
|
||||
Aktuelle Version: **1.3.160**
|
||||
Aktuelle Version: **1.3.162**
|
||||
|
||||
Version 1.3.160 zeichnet die Leckwehr wie eine echte Leckwehrtafel. Die
|
||||
Fregatte ist ein Seitenriss mit Decks, Aufbauten und Masten, jede Abteilung
|
||||
auf ihrer wirklichen Höhe, außen See und Wasserlinie mit Tiefgangsmarken,
|
||||
Leckwasser, das sich mit dem Trimm neigt, offene Lecks mit einströmendem
|
||||
Wasser, gesetzte Leckpflaster und Pumpen, die über Bord lenzen, und ein
|
||||
Querschnitt, der mit dem Schiff krängt. Das U-Boot ist ein Schnittbild des
|
||||
Druckkörpers mit Turm, Einbauten, Wasser, Brand, Chlorgas, Lecks und runden
|
||||
Schotttüren, auf der uConsole und im Browser. Übernehmen-Knöpfe im Browser
|
||||
(Suchkopf, Torpedoeinstellung, Antrieb, Hubschraubermuster) springen nicht
|
||||
mehr kurz zurück. Spielstände bleiben v49; v38 bis v48 lassen sich weiter
|
||||
laden.
|
||||
Version 1.3.162 zeigt der Brücke den eigenen Hubschrauber der Fregatte.
|
||||
Sobald die Brücke ihn sehen kann, fliegt das Hubschraubermodell im Fernglas
|
||||
des Ausgucks, im Horizontstreifen, in der Fernglas-Karte der Remote Crew, im
|
||||
Handy-Ausguck und im Trefferbild an seiner wahren Position und mit seinem
|
||||
Kurs: Er hebt vom Flugdeck achteraus ab, steigt weg, schwebt tief über
|
||||
seinem Tauchsonar und zeigt nachts seine Positionslichter. Das Ausguck-
|
||||
Sichtgerät markiert ihn als „eigener Hubschrauber“, das Panorama mit einem
|
||||
grünen Strich, und die Liste unter dem Fernglas nennt ihn zuerst. Tief
|
||||
fliegende Luftfahrzeuge stehen jetzt vor der See statt hinter den Wellen.
|
||||
An den Meldungen des Ausgucks ändert sich nichts. Spielstände bleiben v49;
|
||||
v38 bis v48 lassen sich weiter laden.
|
||||
|
||||
Frühere Versionen: [CHANGELOG.de.md](CHANGELOG.de.md).
|
||||
|
||||
|
||||
@@ -12,18 +12,18 @@ 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.160**
|
||||
Current release: **1.3.162**
|
||||
|
||||
Release 1.3.160 redraws the damage-control pictures like a real damage-
|
||||
control board. The frigate is a side profile with decks, superstructure and
|
||||
masts, every compartment at its real height, the sea and waterline outside
|
||||
with draft marks, floodwater tilted by the trim, open holes with water
|
||||
rushing in, fitted patches and pumps discharging over the side, and a cross-
|
||||
section that lists with the ship. The submarine is a cutaway of its pressure
|
||||
hull with sail, fittings, water, fire, chlorine, leaks and round bulkhead
|
||||
doors, on the uConsole and in the browser. Apply buttons in the browser
|
||||
(seeker, torpedo settings, plant, helicopter pattern) no longer jump back
|
||||
for a moment. Saves stay v49; v38 to v48 saves still load.
|
||||
Release 1.3.162 shows the frigate's own helicopter to the bridge. Whenever
|
||||
the bridge can see it, the helicopter model flies in the lookout's binoculars,
|
||||
the horizon strip, the Remote Crew binoculars card, the phone lookout and the
|
||||
hit picture at its true position and heading: it lifts off the flight deck
|
||||
astern, climbs away, hovers low over its dipping sonar and shows its position
|
||||
lights at night. The lookout scope marks it as "own helicopter", the
|
||||
panorama with a green tick and the list under the binoculars names it first.
|
||||
Low aircraft now stand in front of the sea instead of behind the waves.
|
||||
Nothing changes in what the lookout reports. Saves stay v49; v38 to v48
|
||||
saves still load.
|
||||
|
||||
Earlier releases: [CHANGELOG.md](CHANGELOG.md).
|
||||
|
||||
|
||||
@@ -282,7 +282,8 @@ export function validateV2State(state) {
|
||||
sightFields.sky.every((key) => ["precipitation", "moon_waxing"].includes(key) || finite(sky[key])) &&
|
||||
[sky.light, sky.dusk, sky.cloud, sky.intensity, sky.moon_illumination].every((value) => value >= 0 && value <= 1);
|
||||
const navLightsOk = (code) => code === null || (typeof code === "string" && /^[LR][012][r-][g-][s-](GW|WR|RWR|GGG|AC)?$/.test(code));
|
||||
const elevationOk = (value) => value === null || (finite(value) && value >= -5 && value <= 90);
|
||||
// Down to -30°: the own helicopter on the flight deck below the bridge (src/ui/own_helo.py).
|
||||
const elevationOk = (value) => value === null || (finite(value) && value >= -30 && value <= 90);
|
||||
const aobOk = (value) => value === null || (finite(value) && value >= -180 && value <= 180);
|
||||
const modelOk = (value) => value === null || (typeof value === "string" && /^[a-z0-9_]{1,32}$/.test(value));
|
||||
const wayOk = (value) => value === null || (finite(value) && value >= 0 && value <= 1);
|
||||
|
||||
@@ -17,6 +17,8 @@ const STEEL_NIGHT = [19, 36, 46], STEEL_DAY = [44, 56, 64], RIM_NIGHT = [84, 150
|
||||
const WINDOW_LIGHT = [250, 205, 120], FRAME = [40, 96, 90], WIND_ARROW = [120, 214, 180];
|
||||
const SCALE = "rgb(170, 232, 208)", CROSSHAIR = "rgb(120, 214, 180)";
|
||||
const STABILIZED_RESIDUAL = .12; // src/ui/horizon.py
|
||||
// Below this elevation an aircraft stands on the moving sea horizon in front of the sea (LOW_AIR_DEG).
|
||||
const LOW_AIR_DEG = 1;
|
||||
const VISIBILITY_MAX_NM = 30, BODY_MAX_ALT_DEG = 45, SCALE_LABEL_MIN_PX = 36;
|
||||
|
||||
const clamp = (value, low = 0, high = 1) => Math.max(low, Math.min(high, value));
|
||||
@@ -668,7 +670,8 @@ export function drawSightView(g, width, height, v, t, labelFont = "11px ui-monos
|
||||
if (!w.visible(row.bearing, row.span_deg / 2)) continue;
|
||||
const cx = w.x(row.bearing), fade = row.stale ? .55 : haze * .6;
|
||||
// Aircraft hang in the still sky at their elevation, behind the clouds.
|
||||
const base = aloft(row) ? w.skyY - row.elevation_deg * w.pxPerDeg : w.base(cx);
|
||||
const base = !aloft(row) ? w.base(cx) : row.elevation_deg < LOW_AIR_DEG ? w.base(cx) - row.elevation_deg * w.pxPerDeg
|
||||
: w.skyY - row.elevation_deg * w.pxPerDeg;
|
||||
const span = Math.min(width, Math.max(3, row.span_deg * w.pxPerDeg));
|
||||
if (!aloft(row) && !row.stale) drawShipWay(g, cx, base, span, row.aob_deg ?? null, row.way ?? null, t, mix(WAY_FOAM, colors.haze, haze * .6), colors.sea[0]);
|
||||
drawProfile(g, row.cls, cx, base, span, mix(colors.steel, colors.haze, fade),
|
||||
@@ -676,11 +679,14 @@ export function drawSightView(g, width, height, v, t, labelFont = "11px ui-monos
|
||||
nav: row.stale ? null : row.lights ?? null, aloft: aloft(row), aob: row.stale ? null : row.aob_deg ?? null, model: row.stale ? null : row.model ?? null});
|
||||
}
|
||||
};
|
||||
const airborne = v.outlines.filter(aloft);
|
||||
// Aircraft high over the sea horizon hang in the sky behind the clouds; a low one (hovering,
|
||||
// the own helicopter close aboard or over its deck) stands in front of the sea.
|
||||
const high = (row) => aloft(row) && row.elevation_deg >= LOW_AIR_DEG;
|
||||
const airborne = v.outlines.filter(high);
|
||||
drawSky(g, w, sky, colors, t, haze, airborne.length ? () => drawRows(airborne) : null);
|
||||
drawSea(g, w, sky, colors, v.sea_state, t, haze, v.way ?? null);
|
||||
foamGlow = colors.glow;
|
||||
drawRows(v.outlines.filter((row) => !aloft(row)));
|
||||
drawRows(v.outlines.filter((row) => !high(row)));
|
||||
foamGlow = 0;
|
||||
if (Array.isArray(v.events) && v.events.length) drawSightEvents(g, w, colors, sky, v.events, haze, t);
|
||||
drawWeather(g, w, sky, colors, v.visibility_nm, t, haze);
|
||||
|
||||
@@ -4891,6 +4891,7 @@
|
||||
"help.bridge.glasses_optics": "Fernglas oben (wie das Sehrohr): ↑/↓ neigen 2° (Umschalt: 10°) statt Maschinentelegraf, ←/→ schwenken 5° (Umschalt: 20°) statt Ruder, Q/E Zoom (16°, 8°, 4° Feld), Leertaste Stabilisierung",
|
||||
"bridge.line.glasses_row": "{bearing}° {what} {range} sm",
|
||||
"bridge.line.glasses_unknown": "nicht erkannt",
|
||||
"bridge.line.own_helo": "eigener Hubschrauber",
|
||||
"weather.line.temperature_boat": "Luft {air} °C Wasser {sea} °C",
|
||||
"weather.box.boat": "U-Boot · Tarnung und Geräusch",
|
||||
"weather.boat.mast_radar": "Mast im Radar: erfasst auf {range} sm (ruhige See {calm} sm)",
|
||||
|
||||
@@ -4891,6 +4891,7 @@
|
||||
"help.bridge.glasses_optics": "Binoculars up (as the periscope): ↑/↓ tilt 2° (Shift: 10°) instead of the telegraph, ←/→ train 5° (Shift: 20°) instead of the rudder, Q/E zoom (16°, 8°, 4° field), Space stabilizer",
|
||||
"bridge.line.glasses_row": "{bearing}° {what} {range} NM",
|
||||
"bridge.line.glasses_unknown": "unidentified",
|
||||
"bridge.line.own_helo": "own helicopter",
|
||||
"weather.line.temperature_boat": "Air {air} °C Sea {sea} °C",
|
||||
"weather.box.boat": "Submarine · concealment and noise",
|
||||
"weather.boat.mast_radar": "Mast on radar: seen at {range} NM (calm sea {calm} NM)",
|
||||
|
||||
@@ -32,7 +32,7 @@ Die obere Leiste zeigt Station, Mission, Uhrzeit, Fahrt und Kurs; der Kartenkopf
|
||||
|
||||
## Ausguck-Meldungen {#bridge-lookout}
|
||||
|
||||
Der Brückenausguck (Augenhöhe 18 m, Fernglas 7x50) meldet seine Sichtungen im Ereignis-Feed als `AUSG`-Zeilen, zum Beispiel `Brücke/Ausguck: Fregatte (Admiral-Gorshkov-Fregatte) in 040°, 3.8 sm`. Die Remote-Crew-Brücke zeigt dieselben Meldungen unter „Ausguck-Meldungen“. Brückenseite 3 (Ausguck-Sichtfeld) zeigt die Sichtungen nordorientiert um das eigene Schiff mit der vom Ausguck gemessenen Peilung und Entfernung, nach Art eingefärbt (Oberwasser, U-Boot, Luftfahrzeug, Torpedo) und mit dem Erkannten beschriftet, daneben Sicht, Seegang, Tag/Nacht und die letzten Meldungen; `,` und `.` ändern den Radius (2 bis 30 sm). Über den Meldungen zeigt ein Horizontstreifen das Fernglas voraus (90° Sichtfeld, Skala rechtweisender Peilungen, mit der See bewegter Horizont, Licht der Stunde) mit den Umrissen der Ausguck-Sichtungen in gemessener Peilung und Entfernung; es ist derselbe Renderer wie das Sehrohr des U-Boots. Das Bild hat den Stil des Startbilds: tagsüber blauer Himmel, in der Dämmerung ein warmer Horizont, nachts Sterne und der Mond in seiner Phase in seiner Peilung mit seinem Glitzern auf dem Wasser; Wolken, Regen, Schnee und Nebel folgen der Wetterstation, und die Umrisse erscheinen in Stahl mit heller Kante, nachts mit beleuchteten Fenstern. Hat der Ausguck die Klasse eines Schiffs, U-Boots oder Luftfahrzeugs ausgemacht, erscheint es als sein 3D-Modell (das des Analysators), gedreht um den Lagewinkel, den er in 10°-Schritten schätzt, sobald es mindestens 16 Pixel lang ist; vorher, veraltet oder kleiner bleibt es eine flache Silhouette. Das Modell ist der echte Typ, den das Auge sieht (jeder Schiffs-, U-Boot- und Flugzeugtyp hat sein eigenes Modell, siehe Referenzkapitel), sodass sich der Typ auf Sicht bestimmen lässt; die Meldung des Ausgucks nennt nur, was er ausgemacht hat, und nur die Meldung geht an die OPZ. Von der Dämmerung bis zum Morgen und bei Sicht unter 2 sm führen neutrale Handels- und Fischereifahrzeuge ihre Positionslichter (Kriegsschiffe fahren abgeblendet): weiße Topplichter über die vorderen 225° (ab 50 m Länge zwei, das hintere höher, 6 sm), das grüne Steuerbord- oder rote Backbord-Seitenlicht (3 sm), beide, wenn das Schiff genau auf einen zuhält, und das weiße Hecklicht über die 135° achteraus (3 sm; unter 50 m Länge ein Topplicht mit 5 sm und die übrigen mit 2 sm), nie weiter als die Sicht. Fahrzeuge bei der Arbeit führen dazu ihre Rundumlichter: ein Trawler Grün über Weiß (ein Topplicht erst ab 50 m), ein Lotsenfahrzeug Weiß über Rot statt der Topplichter, ein Vermessungsschiff, Kabelleger oder Forschungsschiff als manövrierbehindertes Fahrzeug Rot, Weiß, Rot und ein Minenräumer drei grüne; ein Schlepper ohne Schleppzug zeigt gewöhnliche Lichter. Zivile Flugzeuge zeigen das rote linke und grüne rechte Flügelspitzenlicht und das weiße Hecklicht (3 sm) sowie ihre blitzenden roten Kollisionswarnlichter und weißen Blitzlichter (10 sm); Militärflugzeuge fliegen abgeblendet; die Silhouette zeigt dann mit dem Bug dorthin, wohin die Lichter weisen, und ein beleuchtetes Schiff wird an seinen Lichtern gesichtet, auch wo der dunkle Rumpf es nicht wird (die Klasse braucht weiter die Silhouette). Der Ausguck meldet die Lichter, die er sieht, mit seiner Deutung, zum Beispiel `Brücke/Ausguck: Lichter in 040°, 2.8 sm: zwei Topplichter, rotes Seitenlicht; zeigt Backbordseite`: beide Seitenlichter heißen, es hält auf uns zu (laut gemeldet), Grün allein seine Steuerbordseite, Rot allein seine Backbordseite, das Hecklicht allein, es läuft ab, und die Rundumlichter seine Arbeit (Fischer, Lotse im Dienst, manövrierbehindert, Minenräumer; Blitzlichter ein Luftfahrzeug). Die Lichter eines Kontakts meldet er erst wieder, wenn sich ihre Aussage ändert, höchstens alle 2 Minuten; die Remote-Crew-Brücke führt diese Meldungen mit den übrigen. Flugzeuge stehen in ihrem wahren Höhenwinkel über der Kimm, berechnet aus Flughöhe und Entfernung abzüglich der Erdkrümmung, und hängen hinter den Wolken im ruhigen Himmel, statt mit dem Seegang zu schwanken; ein hohes, nahes Flugzeug liegt über dem Bildfeld, bis man das Fernglas nach oben neigt. Die Remote-Crew-Brücke zeigt dasselbe Fernglas als Karte („Fernglas des Ausgucks“), geschwenkt nur in diesem Browser mit den Pfeiltasten (2°, 10°) und „Bug“. `B` nimmt das Fernglas groß über die Karte: ein 16°-Sichtfeld, das wie das Sehrohr des U-Boots mit `←` und `→` statt des Ruders (`Umschalt`: 20°-Schritte) oder per Klick in das Rundumbild darunter geschwenkt wird; das Rundumbild markiert jede Sichtung in ihrer gemessenen Peilung, der Bug liegt in der Mitte. Darunter stehen die Sichtungen, die der Sichtlinie nächste zuerst. Die kartierte Küste steht im Horizontstreifen und im Fernglas auf dem Horizont, so weit der Ausguck Land sieht (höchstens 20 sm, im Dunst verblassend), und das Rundumbild markiert sie an seinem Fuß; die Karte kennt keine Höhen, die Hügel sind mit 25 bis 70 m angenommenLine truncated
|
||||
Der Brückenausguck (Augenhöhe 18 m, Fernglas 7x50) meldet seine Sichtungen im Ereignis-Feed als `AUSG`-Zeilen, zum Beispiel `Brücke/Ausguck: Fregatte (Admiral-Gorshkov-Fregatte) in 040°, 3.8 sm`. Die Remote-Crew-Brücke zeigt dieselben Meldungen unter „Ausguck-Meldungen“. Brückenseite 3 (Ausguck-Sichtfeld) zeigt die Sichtungen nordorientiert um das eigene Schiff mit der vom Ausguck gemessenen Peilung und Entfernung, nach Art eingefärbt (Oberwasser, U-Boot, Luftfahrzeug, Torpedo) und mit dem Erkannten beschriftet, daneben Sicht, Seegang, Tag/Nacht und die letzten Meldungen; `,` und `.` ändern den Radius (2 bis 30 sm). Über den Meldungen zeigt ein Horizontstreifen das Fernglas voraus (90° Sichtfeld, Skala rechtweisender Peilungen, mit der See bewegter Horizont, Licht der Stunde) mit den Umrissen der Ausguck-Sichtungen in gemessener Peilung und Entfernung; es ist derselbe Renderer wie das Sehrohr des U-Boots. Das Bild hat den Stil des Startbilds: tagsüber blauer Himmel, in der Dämmerung ein warmer Horizont, nachts Sterne und der Mond in seiner Phase in seiner Peilung mit seinem Glitzern auf dem Wasser; Wolken, Regen, Schnee und Nebel folgen der Wetterstation, und die Umrisse erscheinen in Stahl mit heller Kante, nachts mit beleuchteten Fenstern. Hat der Ausguck die Klasse eines Schiffs, U-Boots oder Luftfahrzeugs ausgemacht, erscheint es als sein 3D-Modell (das des Analysators), gedreht um den Lagewinkel, den er in 10°-Schritten schätzt, sobald es mindestens 16 Pixel lang ist; vorher, veraltet oder kleiner bleibt es eine flache Silhouette. Das Modell ist der echte Typ, den das Auge sieht (jeder Schiffs-, U-Boot- und Flugzeugtyp hat sein eigenes Modell, siehe Referenzkapitel), sodass sich der Typ auf Sicht bestimmen lässt; die Meldung des Ausgucks nennt nur, was er ausgemacht hat, und nur die Meldung geht an die OPZ. Von der Dämmerung bis zum Morgen und bei Sicht unter 2 sm führen neutrale Handels- und Fischereifahrzeuge ihre Positionslichter (Kriegsschiffe fahren abgeblendet): weiße Topplichter über die vorderen 225° (ab 50 m Länge zwei, das hintere höher, 6 sm), das grüne Steuerbord- oder rote Backbord-Seitenlicht (3 sm), beide, wenn das Schiff genau auf einen zuhält, und das weiße Hecklicht über die 135° achteraus (3 sm; unter 50 m Länge ein Topplicht mit 5 sm und die übrigen mit 2 sm), nie weiter als die Sicht. Fahrzeuge bei der Arbeit führen dazu ihre Rundumlichter: ein Trawler Grün über Weiß (ein Topplicht erst ab 50 m), ein Lotsenfahrzeug Weiß über Rot statt der Topplichter, ein Vermessungsschiff, Kabelleger oder Forschungsschiff als manövrierbehindertes Fahrzeug Rot, Weiß, Rot und ein Minenräumer drei grüne; ein Schlepper ohne Schleppzug zeigt gewöhnliche Lichter. Zivile Flugzeuge zeigen das rote linke und grüne rechte Flügelspitzenlicht und das weiße Hecklicht (3 sm) sowie ihre blitzenden roten Kollisionswarnlichter und weißen Blitzlichter (10 sm); Militärflugzeuge fliegen abgeblendet; die Silhouette zeigt dann mit dem Bug dorthin, wohin die Lichter weisen, und ein beleuchtetes Schiff wird an seinen Lichtern gesichtet, auch wo der dunkle Rumpf es nicht wird (die Klasse braucht weiter die Silhouette). Der Ausguck meldet die Lichter, die er sieht, mit seiner Deutung, zum Beispiel `Brücke/Ausguck: Lichter in 040°, 2.8 sm: zwei Topplichter, rotes Seitenlicht; zeigt Backbordseite`: beide Seitenlichter heißen, es hält auf uns zu (laut gemeldet), Grün allein seine Steuerbordseite, Rot allein seine Backbordseite, das Hecklicht allein, es läuft ab, und die Rundumlichter seine Arbeit (Fischer, Lotse im Dienst, manövrierbehindert, Minenräumer; Blitzlichter ein Luftfahrzeug). Die Lichter eines Kontakts meldet er erst wieder, wenn sich ihre Aussage ändert, höchstens alle 2 Minuten; die Remote-Crew-Brücke führt diese Meldungen mit den übrigen. Flugzeuge stehen in ihrem wahren Höhenwinkel über der Kimm, berechnet aus Flughöhe und Entfernung abzüglich der Erdkrümmung, und hängen hinter den Wolken im ruhigen Himmel, statt mit dem Seegang zu schwanken; ein hohes, nahes Flugzeug liegt über dem Bildfeld, bis man das Fernglas nach oben neigt. Ein Luftfahrzeug weniger als 1° über der Kimm (tief im Schwebeflug, nah am Schiff) steht dagegen auf der bewegten Kimm vor der See. Der eigene Hubschrauber ist in all diesen Bildern (Streifen, Fernglas, Remote-Crew-Karte, Handy-Ausguck und Trefferbild), sobald die Brücke ihn sehen kann: das Hubschraubermodell an seiner wahren Position, mit eigenem Kurs und eigener Länge (15,2 m), im Transit etwa 60 m hoch, beim MAD-Lauf 30 m und über dem Tauchsonar 15 m; beim Start hebt er vom Flugdeck achteraus ab und steigt innerhalb von 0,3 sm weg, nachts zeigt er seine Positionslichter. Er braucht dieselbe Sicht wie jedes Luftfahrzeug, wird nie gemeldet oder an die OPZ gegeben und ist im Hangar nicht zu sehen. Das Ausguck-Sichtgerät markiert ihn als „eigener Hubschrauber“ an seiner Position, das Panorama mit einem kurzeLine truncated
|
||||
|
||||
- **Gesichtet:** nur die Art des Objekts ist klar (Fahrzeug, Luftfahrzeug, kleines Objekt an der Wasseroberfläche).
|
||||
- **Klasse:** die Silhouette zeigt die Klasse, zum Beispiel Handelsschiff, Kriegsschiff, Flugzeugträger, Fischereifahrzeug, Speedboot, aufgetauchtes U-Boot, Verkehrsflugzeug oder Militärflugzeug.
|
||||
|
||||
@@ -32,7 +32,7 @@ The top bar shows the station, the mission, the clock, speed and course; the cha
|
||||
|
||||
## Bridge lookout reports {#bridge-lookout}
|
||||
|
||||
The bridge lookout (eye height 18 m, 7x50 binoculars) reports sightings in the event feed as `AUSG` lines, for example `Bridge lookout: frigate (Admiral-Gorshkov-Fregatte) bearing 040°, 3.8 NM`. The Remote Crew bridge lists the same reports under "Lookout reports". Bridge page 3 (the lookout scope) shows the sightings north up around the own ship at the range and bearing the lookout measured, coloured by kind (surface, submarine, aircraft, torpedo) and labelled with what he made out, next to visibility, sea state, day/night and the latest reports; `,` and `.` change the scope radius (2 to 30 NM). Above the reports a horizon strip shows the binoculars toward the bow (90° field, true-bearing scale, the horizon moving with the sea, the light of the hour) with the outlines of the lookout's sightings at their measured bearing and range; it is the same renderer as the submarine's periscope. The picture has the start screen's look: by day a blue sky, at dusk a warm horizon, at night stars and the moon in its phase at its bearing with its glitter on the water; clouds, rain, snow and fog follow the weather station, and the silhouettes are drawn in steel with a lit rim, with lit windows at night. Once the lookout has made out the class of a ship, submarine or aircraft, it is drawn as its 3D model (the analyser's), turned by the angle on the bow he judges in 10° steps, as soon as it is at least 16 pixels long; before that, when stale or smaller it stays a flat silhouette. The model is the real type the eye sees (every ship, submarine and aircraft type has its own model, see the reference chapter), so the type can be told by sight; the lookout's report names only what he made out, and only the report goes to the OPZ. From dusk to dawn and in visibility under 2 NM neutral merchant ships and fishing vessels run their navigation lights (warships run darkened): white masthead lights over the forward 225° (two from 50 m length, the aft one higher, 6 NM), the green starboard or red port side light (3 NM), both when she heads straight at you, and the white stern light over the 135° astern (3 NM; under 50 m length one masthead light at 5 NM and the others at 2 NM), never beyond the visibility. Vessels at work add their all-round lights: a trawler green over white (a masthead light only from 50 m), a pilot vessel white over red instead of masthead lights, a survey ship, cable layer or research ship restricted in her ability to manoeuvre red, white, red, and a mine clearance vessel three green; a tug without a tow shows ordinary lights. Civil aircraft show the red left and green right wingtip light and the white tail light (3 NM) and their flashing red anti-collision beacons and white strobes (10 NM); military aircraft fly dark; the silhouette then points its bow the way the lights show, and a lit ship is sighted by its lights even where the dark hull is not (its class still needs the silhouette). The lookout calls out the lights he sees with his reading of them, for example `Bridge lookout: lights bearing 040°, 2.8 NM: two masthead lights, red side light; showing her port side`: both side lights mean she is heading for us (called aloud), green alone her starboard side, red alone her port side, the stern light alone that she is going away, and the all-round lights her work (fishing, pilot on duty, restricted in ability to manoeuvre, clearing mines; flashing lights an aircraft). He calls a contact's lights again only when what they tell changes, at most every 2 minutes; the Remote Crew bridge lists these calls with the other reports. Aircraft stand at their true elevation above the horizon, worked out from their height and range less the curve of the Earth, and hang in the still sky behind the clouds instead of riding the swell; an aircraft high and close is above the field until the binoculars are tilted up. The Remote Crew bridge shows the same binoculars as a card ("Lookout binoculars"), trained in that browser only with the arrow buttons (2°, 10°) and "Bow". `B` raises the binoculars large over the chart: a 16° field the operator trains with `←` and `→` instead of the rudder, as the submarine's periscope (`Shift`: 20° steps), or by clicking the all-round panorama below it, which marks every sighting at its measured bearing with the bow in the middle; the sightings are listed underneath, nearest the line of sight first. The charted coast stands on the horizon of the strip and the binoculars as far as the lookout can see land (at most 20 NM, fading into the haze), and the panorama marks it along its foot; the chart has no elevation, so the hills are an assumed 25 to 70 m. While the binoculars are up, `↑`/`↓` tilt them 2° (`Shift`: 10°, from 20° down to 45° up) instead of working the telegraph, `Q`/`E` zoom them (16°, 8° or 4° field) and `Space` switches the stabilizer, which takes out all but an eighth of the ship's motion; the line under the picture shows tilt and field, and the Remote Crew card has tLine truncated
|
||||
The bridge lookout (eye height 18 m, 7x50 binoculars) reports sightings in the event feed as `AUSG` lines, for example `Bridge lookout: frigate (Admiral-Gorshkov-Fregatte) bearing 040°, 3.8 NM`. The Remote Crew bridge lists the same reports under "Lookout reports". Bridge page 3 (the lookout scope) shows the sightings north up around the own ship at the range and bearing the lookout measured, coloured by kind (surface, submarine, aircraft, torpedo) and labelled with what he made out, next to visibility, sea state, day/night and the latest reports; `,` and `.` change the scope radius (2 to 30 NM). Above the reports a horizon strip shows the binoculars toward the bow (90° field, true-bearing scale, the horizon moving with the sea, the light of the hour) with the outlines of the lookout's sightings at their measured bearing and range; it is the same renderer as the submarine's periscope. The picture has the start screen's look: by day a blue sky, at dusk a warm horizon, at night stars and the moon in its phase at its bearing with its glitter on the water; clouds, rain, snow and fog follow the weather station, and the silhouettes are drawn in steel with a lit rim, with lit windows at night. Once the lookout has made out the class of a ship, submarine or aircraft, it is drawn as its 3D model (the analyser's), turned by the angle on the bow he judges in 10° steps, as soon as it is at least 16 pixels long; before that, when stale or smaller it stays a flat silhouette. The model is the real type the eye sees (every ship, submarine and aircraft type has its own model, see the reference chapter), so the type can be told by sight; the lookout's report names only what he made out, and only the report goes to the OPZ. From dusk to dawn and in visibility under 2 NM neutral merchant ships and fishing vessels run their navigation lights (warships run darkened): white masthead lights over the forward 225° (two from 50 m length, the aft one higher, 6 NM), the green starboard or red port side light (3 NM), both when she heads straight at you, and the white stern light over the 135° astern (3 NM; under 50 m length one masthead light at 5 NM and the others at 2 NM), never beyond the visibility. Vessels at work add their all-round lights: a trawler green over white (a masthead light only from 50 m), a pilot vessel white over red instead of masthead lights, a survey ship, cable layer or research ship restricted in her ability to manoeuvre red, white, red, and a mine clearance vessel three green; a tug without a tow shows ordinary lights. Civil aircraft show the red left and green right wingtip light and the white tail light (3 NM) and their flashing red anti-collision beacons and white strobes (10 NM); military aircraft fly dark; the silhouette then points its bow the way the lights show, and a lit ship is sighted by its lights even where the dark hull is not (its class still needs the silhouette). The lookout calls out the lights he sees with his reading of them, for example `Bridge lookout: lights bearing 040°, 2.8 NM: two masthead lights, red side light; showing her port side`: both side lights mean she is heading for us (called aloud), green alone her starboard side, red alone her port side, the stern light alone that she is going away, and the all-round lights her work (fishing, pilot on duty, restricted in ability to manoeuvre, clearing mines; flashing lights an aircraft). He calls a contact's lights again only when what they tell changes, at most every 2 minutes; the Remote Crew bridge lists these calls with the other reports. Aircraft stand at their true elevation above the horizon, worked out from their height and range less the curve of the Earth, and hang in the still sky behind the clouds instead of riding the swell; an aircraft high and close is above the field until the binoculars are tilted up. An aircraft less than 1° above the horizon (hovering low, close aboard) stands on the moving horizon in front of the sea instead. The own helicopter is in every one of these pictures (strip, binoculars, the Remote Crew card, the phone lookout and the hit picture) whenever the bridge can see it: the helicopter model at its true position, its own heading and length (15.2 m), about 60 m up in transit, 30 m on a MAD run and 15 m over its dipping sonar; on launch it starts from the flight deck astern and climbs away within 0.3 NM, and at night its position lights show. It needs the same visibility as any aircraft, is never reported or sent to the OPZ, and is not seen in the hangar. The lookout scope marks it as "own helicopter" at its position, the panorama with a short green tick at the top, and the list under the binoculars names it first. The Remote Crew bridge shows the same binoculars as a card ("Lookout binoculars"), trained in that browser only with the arrow buttons (2°, 10°) and "Bow". `B` raises the binoculars large over the chart: a 16° field the operator trains with `←` and `→` instead of the rudder, asLine truncated
|
||||
|
||||
- **Sighted:** only the kind of object is clear (vessel, aircraft, small object on the surface).
|
||||
- **Class:** the silhouette shows the class, for example merchant ship, warship, aircraft carrier, fishing vessel, speedboat, surfaced submarine, airliner or military aircraft.
|
||||
|
||||
Binary file not shown.
@@ -195,7 +195,7 @@ Die obere Leiste zeigt Station, Mission, Uhrzeit, Fahrt und Kurs; der Kartenkopf
|
||||
|
||||
### Ausguck-Meldungen
|
||||
|
||||
Der Brückenausguck (Augenhöhe 18 m, Fernglas 7x50) meldet seine Sichtungen im Ereignis-Feed als `AUSG`-Zeilen, zum Beispiel `Brücke/Ausguck: Fregatte (Admiral-Gorshkov-Fregatte) in 040°, 3.8 sm`. Die Remote-Crew-Brücke zeigt dieselben Meldungen unter „Ausguck-Meldungen“. Brückenseite 3 (Ausguck-Sichtfeld) zeigt die Sichtungen nordorientiert um das eigene Schiff mit der vom Ausguck gemessenen Peilung und Entfernung, nach Art eingefärbt (Oberwasser, U-Boot, Luftfahrzeug, Torpedo) und mit dem Erkannten beschriftet, daneben Sicht, Seegang, Tag/Nacht und die letzten Meldungen; `,` und `.` ändern den Radius (2 bis 30 sm). Über den Meldungen zeigt ein Horizontstreifen das Fernglas voraus (90° Sichtfeld, Skala rechtweisender Peilungen, mit der See bewegter Horizont, Licht der Stunde) mit den Umrissen der Ausguck-Sichtungen in gemessener Peilung und Entfernung; es ist derselbe Renderer wie das Sehrohr des U-Boots. Das Bild hat den Stil des Startbilds: tagsüber blauer Himmel, in der Dämmerung ein warmer Horizont, nachts Sterne und der Mond in seiner Phase in seiner Peilung mit seinem Glitzern auf dem Wasser; Wolken, Regen, Schnee und Nebel folgen der Wetterstation, und die Umrisse erscheinen in Stahl mit heller Kante, nachts mit beleuchteten Fenstern. Hat der Ausguck die Klasse eines Schiffs, U-Boots oder Luftfahrzeugs ausgemacht, erscheint es als sein 3D-Modell (das des Analysators), gedreht um den Lagewinkel, den er in 10°-Schritten schätzt, sobald es mindestens 16 Pixel lang ist; vorher, veraltet oder kleiner bleibt es eine flache Silhouette. Das Modell ist der echte Typ, den das Auge sieht (jeder Schiffs-, U-Boot- und Flugzeugtyp hat sein eigenes Modell, siehe Referenzkapitel), sodass sich der Typ auf Sicht bestimmen lässt; die Meldung des Ausgucks nennt nur, was er ausgemacht hat, und nur die Meldung geht an die OPZ. Von der Dämmerung bis zum Morgen und bei Sicht unter 2 sm führen neutrale Handels- und Fischereifahrzeuge ihre Positionslichter (Kriegsschiffe fahren abgeblendet): weiße Topplichter über die vorderen 225° (ab 50 m Länge zwei, das hintere höher, 6 sm), das grüne Steuerbord- oder rote Backbord-Seitenlicht (3 sm), beide, wenn das Schiff genau auf einen zuhält, und das weiße Hecklicht über die 135° achteraus (3 sm; unter 50 m Länge ein Topplicht mit 5 sm und die übrigen mit 2 sm), nie weiter als die Sicht. Fahrzeuge bei der Arbeit führen dazu ihre Rundumlichter: ein Trawler Grün über Weiß (ein Topplicht erst ab 50 m), ein Lotsenfahrzeug Weiß über Rot statt der Topplichter, ein Vermessungsschiff, Kabelleger oder Forschungsschiff als manövrierbehindertes Fahrzeug Rot, Weiß, Rot und ein Minenräumer drei grüne; ein Schlepper ohne Schleppzug zeigt gewöhnliche Lichter. Zivile Flugzeuge zeigen das rote linke und grüne rechte Flügelspitzenlicht und das weiße Hecklicht (3 sm) sowie ihre blitzenden roten Kollisionswarnlichter und weißen Blitzlichter (10 sm); Militärflugzeuge fliegen abgeblendet; die Silhouette zeigt dann mit dem Bug dorthin, wohin die Lichter weisen, und ein beleuchtetes Schiff wird an seinen Lichtern gesichtet, auch wo der dunkle Rumpf es nicht wird (die Klasse braucht weiter die Silhouette). Der Ausguck meldet die Lichter, die er sieht, mit seiner Deutung, zum Beispiel `Brücke/Ausguck: Lichter in 040°, 2.8 sm: zwei Topplichter, rotes Seitenlicht; zeigt Backbordseite`: beide Seitenlichter heißen, es hält auf uns zu (laut gemeldet), Grün allein seine Steuerbordseite, Rot allein seine Backbordseite, das Hecklicht allein, es läuft ab, und die Rundumlichter seine Arbeit (Fischer, Lotse im Dienst, manövrierbehindert, Minenräumer; Blitzlichter ein Luftfahrzeug). Die Lichter eines Kontakts meldet er erst wieder, wenn sich ihre Aussage ändert, höchstens alle 2 Minuten; die Remote-Crew-Brücke führt diese Meldungen mit den übrigen. Flugzeuge stehen in ihrem wahren Höhenwinkel über der Kimm, berechnet aus Flughöhe und Entfernung abzüglich der Erdkrümmung, und hängen hinter den Wolken im ruhigen Himmel, statt mit dem Seegang zu schwanken; ein hohes, nahes Flugzeug liegt über dem Bildfeld, bis man das Fernglas nach oben neigt. Die Remote-Crew-Brücke zeigt dasselbe Fernglas als Karte („Fernglas des Ausgucks“), geschwenkt nur in diesem Browser mit den Pfeiltasten (2°, 10°) und „Bug“. `B` nimmt das Fernglas groß über die Karte: ein 16°-Sichtfeld, das wie das Sehrohr des U-Boots mit `←` und `→` statt des Ruders (`Umschalt`: 20°-Schritte) oder per Klick in das Rundumbild darunter geschwenkt wird; das Rundumbild markiert jede Sichtung in ihrer gemessenen Peilung, der Bug liegt in der Mitte. Darunter stehen die Sichtungen, die der Sichtlinie nächste zuerst. Die kartierte Küste steht im Horizontstreifen und im Fernglas auf dem Horizont, so weit der Ausguck Land sieht (höchstens 20 sm, im Dunst verblassend), und das Rundumbild markiert sie an seinem Fuß; die Karte kennt keine Höhen, die Hügel sind mit 25 bis 70 m angenommenLine truncated
|
||||
Der Brückenausguck (Augenhöhe 18 m, Fernglas 7x50) meldet seine Sichtungen im Ereignis-Feed als `AUSG`-Zeilen, zum Beispiel `Brücke/Ausguck: Fregatte (Admiral-Gorshkov-Fregatte) in 040°, 3.8 sm`. Die Remote-Crew-Brücke zeigt dieselben Meldungen unter „Ausguck-Meldungen“. Brückenseite 3 (Ausguck-Sichtfeld) zeigt die Sichtungen nordorientiert um das eigene Schiff mit der vom Ausguck gemessenen Peilung und Entfernung, nach Art eingefärbt (Oberwasser, U-Boot, Luftfahrzeug, Torpedo) und mit dem Erkannten beschriftet, daneben Sicht, Seegang, Tag/Nacht und die letzten Meldungen; `,` und `.` ändern den Radius (2 bis 30 sm). Über den Meldungen zeigt ein Horizontstreifen das Fernglas voraus (90° Sichtfeld, Skala rechtweisender Peilungen, mit der See bewegter Horizont, Licht der Stunde) mit den Umrissen der Ausguck-Sichtungen in gemessener Peilung und Entfernung; es ist derselbe Renderer wie das Sehrohr des U-Boots. Das Bild hat den Stil des Startbilds: tagsüber blauer Himmel, in der Dämmerung ein warmer Horizont, nachts Sterne und der Mond in seiner Phase in seiner Peilung mit seinem Glitzern auf dem Wasser; Wolken, Regen, Schnee und Nebel folgen der Wetterstation, und die Umrisse erscheinen in Stahl mit heller Kante, nachts mit beleuchteten Fenstern. Hat der Ausguck die Klasse eines Schiffs, U-Boots oder Luftfahrzeugs ausgemacht, erscheint es als sein 3D-Modell (das des Analysators), gedreht um den Lagewinkel, den er in 10°-Schritten schätzt, sobald es mindestens 16 Pixel lang ist; vorher, veraltet oder kleiner bleibt es eine flache Silhouette. Das Modell ist der echte Typ, den das Auge sieht (jeder Schiffs-, U-Boot- und Flugzeugtyp hat sein eigenes Modell, siehe Referenzkapitel), sodass sich der Typ auf Sicht bestimmen lässt; die Meldung des Ausgucks nennt nur, was er ausgemacht hat, und nur die Meldung geht an die OPZ. Von der Dämmerung bis zum Morgen und bei Sicht unter 2 sm führen neutrale Handels- und Fischereifahrzeuge ihre Positionslichter (Kriegsschiffe fahren abgeblendet): weiße Topplichter über die vorderen 225° (ab 50 m Länge zwei, das hintere höher, 6 sm), das grüne Steuerbord- oder rote Backbord-Seitenlicht (3 sm), beide, wenn das Schiff genau auf einen zuhält, und das weiße Hecklicht über die 135° achteraus (3 sm; unter 50 m Länge ein Topplicht mit 5 sm und die übrigen mit 2 sm), nie weiter als die Sicht. Fahrzeuge bei der Arbeit führen dazu ihre Rundumlichter: ein Trawler Grün über Weiß (ein Topplicht erst ab 50 m), ein Lotsenfahrzeug Weiß über Rot statt der Topplichter, ein Vermessungsschiff, Kabelleger oder Forschungsschiff als manövrierbehindertes Fahrzeug Rot, Weiß, Rot und ein Minenräumer drei grüne; ein Schlepper ohne Schleppzug zeigt gewöhnliche Lichter. Zivile Flugzeuge zeigen das rote linke und grüne rechte Flügelspitzenlicht und das weiße Hecklicht (3 sm) sowie ihre blitzenden roten Kollisionswarnlichter und weißen Blitzlichter (10 sm); Militärflugzeuge fliegen abgeblendet; die Silhouette zeigt dann mit dem Bug dorthin, wohin die Lichter weisen, und ein beleuchtetes Schiff wird an seinen Lichtern gesichtet, auch wo der dunkle Rumpf es nicht wird (die Klasse braucht weiter die Silhouette). Der Ausguck meldet die Lichter, die er sieht, mit seiner Deutung, zum Beispiel `Brücke/Ausguck: Lichter in 040°, 2.8 sm: zwei Topplichter, rotes Seitenlicht; zeigt Backbordseite`: beide Seitenlichter heißen, es hält auf uns zu (laut gemeldet), Grün allein seine Steuerbordseite, Rot allein seine Backbordseite, das Hecklicht allein, es läuft ab, und die Rundumlichter seine Arbeit (Fischer, Lotse im Dienst, manövrierbehindert, Minenräumer; Blitzlichter ein Luftfahrzeug). Die Lichter eines Kontakts meldet er erst wieder, wenn sich ihre Aussage ändert, höchstens alle 2 Minuten; die Remote-Crew-Brücke führt diese Meldungen mit den übrigen. Flugzeuge stehen in ihrem wahren Höhenwinkel über der Kimm, berechnet aus Flughöhe und Entfernung abzüglich der Erdkrümmung, und hängen hinter den Wolken im ruhigen Himmel, statt mit dem Seegang zu schwanken; ein hohes, nahes Flugzeug liegt über dem Bildfeld, bis man das Fernglas nach oben neigt. Ein Luftfahrzeug weniger als 1° über der Kimm (tief im Schwebeflug, nah am Schiff) steht dagegen auf der bewegten Kimm vor der See. Der eigene Hubschrauber ist in all diesen Bildern (Streifen, Fernglas, Remote-Crew-Karte, Handy-Ausguck und Trefferbild), sobald die Brücke ihn sehen kann: das Hubschraubermodell an seiner wahren Position, mit eigenem Kurs und eigener Länge (15,2 m), im Transit etwa 60 m hoch, beim MAD-Lauf 30 m und über dem Tauchsonar 15 m; beim Start hebt er vom Flugdeck achteraus ab und steigt innerhalb von 0,3 sm weg, nachts zeigt er seine Positionslichter. Er braucht dieselbe Sicht wie jedes Luftfahrzeug, wird nie gemeldet oder an die OPZ gegeben und ist im Hangar nicht zu sehen. Das Ausguck-Sichtgerät markiert ihn als „eigener Hubschrauber“ an seiner Position, das Panorama mit einem kurzeLine truncated
|
||||
|
||||
- **Gesichtet:** nur die Art des Objekts ist klar (Fahrzeug, Luftfahrzeug, kleines Objekt an der Wasseroberfläche).
|
||||
- **Klasse:** die Silhouette zeigt die Klasse, zum Beispiel Handelsschiff, Kriegsschiff, Flugzeugträger, Fischereifahrzeug, Speedboot, aufgetauchtes U-Boot, Verkehrsflugzeug oder Militärflugzeug.
|
||||
|
||||
@@ -195,7 +195,7 @@ The top bar shows the station, the mission, the clock, speed and course; the cha
|
||||
|
||||
### Bridge lookout reports
|
||||
|
||||
The bridge lookout (eye height 18 m, 7x50 binoculars) reports sightings in the event feed as `AUSG` lines, for example `Bridge lookout: frigate (Admiral-Gorshkov-Fregatte) bearing 040°, 3.8 NM`. The Remote Crew bridge lists the same reports under "Lookout reports". Bridge page 3 (the lookout scope) shows the sightings north up around the own ship at the range and bearing the lookout measured, coloured by kind (surface, submarine, aircraft, torpedo) and labelled with what he made out, next to visibility, sea state, day/night and the latest reports; `,` and `.` change the scope radius (2 to 30 NM). Above the reports a horizon strip shows the binoculars toward the bow (90° field, true-bearing scale, the horizon moving with the sea, the light of the hour) with the outlines of the lookout's sightings at their measured bearing and range; it is the same renderer as the submarine's periscope. The picture has the start screen's look: by day a blue sky, at dusk a warm horizon, at night stars and the moon in its phase at its bearing with its glitter on the water; clouds, rain, snow and fog follow the weather station, and the silhouettes are drawn in steel with a lit rim, with lit windows at night. Once the lookout has made out the class of a ship, submarine or aircraft, it is drawn as its 3D model (the analyser's), turned by the angle on the bow he judges in 10° steps, as soon as it is at least 16 pixels long; before that, when stale or smaller it stays a flat silhouette. The model is the real type the eye sees (every ship, submarine and aircraft type has its own model, see the reference chapter), so the type can be told by sight; the lookout's report names only what he made out, and only the report goes to the OPZ. From dusk to dawn and in visibility under 2 NM neutral merchant ships and fishing vessels run their navigation lights (warships run darkened): white masthead lights over the forward 225° (two from 50 m length, the aft one higher, 6 NM), the green starboard or red port side light (3 NM), both when she heads straight at you, and the white stern light over the 135° astern (3 NM; under 50 m length one masthead light at 5 NM and the others at 2 NM), never beyond the visibility. Vessels at work add their all-round lights: a trawler green over white (a masthead light only from 50 m), a pilot vessel white over red instead of masthead lights, a survey ship, cable layer or research ship restricted in her ability to manoeuvre red, white, red, and a mine clearance vessel three green; a tug without a tow shows ordinary lights. Civil aircraft show the red left and green right wingtip light and the white tail light (3 NM) and their flashing red anti-collision beacons and white strobes (10 NM); military aircraft fly dark; the silhouette then points its bow the way the lights show, and a lit ship is sighted by its lights even where the dark hull is not (its class still needs the silhouette). The lookout calls out the lights he sees with his reading of them, for example `Bridge lookout: lights bearing 040°, 2.8 NM: two masthead lights, red side light; showing her port side`: both side lights mean she is heading for us (called aloud), green alone her starboard side, red alone her port side, the stern light alone that she is going away, and the all-round lights her work (fishing, pilot on duty, restricted in ability to manoeuvre, clearing mines; flashing lights an aircraft). He calls a contact's lights again only when what they tell changes, at most every 2 minutes; the Remote Crew bridge lists these calls with the other reports. Aircraft stand at their true elevation above the horizon, worked out from their height and range less the curve of the Earth, and hang in the still sky behind the clouds instead of riding the swell; an aircraft high and close is above the field until the binoculars are tilted up. The Remote Crew bridge shows the same binoculars as a card ("Lookout binoculars"), trained in that browser only with the arrow buttons (2°, 10°) and "Bow". `B` raises the binoculars large over the chart: a 16° field the operator trains with `←` and `→` instead of the rudder, as the submarine's periscope (`Shift`: 20° steps), or by clicking the all-round panorama below it, which marks every sighting at its measured bearing with the bow in the middle; the sightings are listed underneath, nearest the line of sight first. The charted coast stands on the horizon of the strip and the binoculars as far as the lookout can see land (at most 20 NM, fading into the haze), and the panorama marks it along its foot; the chart has no elevation, so the hills are an assumed 25 to 70 m. While the binoculars are up, `↑`/`↓` tilt them 2° (`Shift`: 10°, from 20° down to 45° up) instead of working the telegraph, `Q`/`E` zoom them (16°, 8° or 4° field) and `Space` switches the stabilizer, which takes out all but an eighth of the ship's motion; the line under the picture shows tilt and field, and the Remote Crew card has tLine truncated
|
||||
The bridge lookout (eye height 18 m, 7x50 binoculars) reports sightings in the event feed as `AUSG` lines, for example `Bridge lookout: frigate (Admiral-Gorshkov-Fregatte) bearing 040°, 3.8 NM`. The Remote Crew bridge lists the same reports under "Lookout reports". Bridge page 3 (the lookout scope) shows the sightings north up around the own ship at the range and bearing the lookout measured, coloured by kind (surface, submarine, aircraft, torpedo) and labelled with what he made out, next to visibility, sea state, day/night and the latest reports; `,` and `.` change the scope radius (2 to 30 NM). Above the reports a horizon strip shows the binoculars toward the bow (90° field, true-bearing scale, the horizon moving with the sea, the light of the hour) with the outlines of the lookout's sightings at their measured bearing and range; it is the same renderer as the submarine's periscope. The picture has the start screen's look: by day a blue sky, at dusk a warm horizon, at night stars and the moon in its phase at its bearing with its glitter on the water; clouds, rain, snow and fog follow the weather station, and the silhouettes are drawn in steel with a lit rim, with lit windows at night. Once the lookout has made out the class of a ship, submarine or aircraft, it is drawn as its 3D model (the analyser's), turned by the angle on the bow he judges in 10° steps, as soon as it is at least 16 pixels long; before that, when stale or smaller it stays a flat silhouette. The model is the real type the eye sees (every ship, submarine and aircraft type has its own model, see the reference chapter), so the type can be told by sight; the lookout's report names only what he made out, and only the report goes to the OPZ. From dusk to dawn and in visibility under 2 NM neutral merchant ships and fishing vessels run their navigation lights (warships run darkened): white masthead lights over the forward 225° (two from 50 m length, the aft one higher, 6 NM), the green starboard or red port side light (3 NM), both when she heads straight at you, and the white stern light over the 135° astern (3 NM; under 50 m length one masthead light at 5 NM and the others at 2 NM), never beyond the visibility. Vessels at work add their all-round lights: a trawler green over white (a masthead light only from 50 m), a pilot vessel white over red instead of masthead lights, a survey ship, cable layer or research ship restricted in her ability to manoeuvre red, white, red, and a mine clearance vessel three green; a tug without a tow shows ordinary lights. Civil aircraft show the red left and green right wingtip light and the white tail light (3 NM) and their flashing red anti-collision beacons and white strobes (10 NM); military aircraft fly dark; the silhouette then points its bow the way the lights show, and a lit ship is sighted by its lights even where the dark hull is not (its class still needs the silhouette). The lookout calls out the lights he sees with his reading of them, for example `Bridge lookout: lights bearing 040°, 2.8 NM: two masthead lights, red side light; showing her port side`: both side lights mean she is heading for us (called aloud), green alone her starboard side, red alone her port side, the stern light alone that she is going away, and the all-round lights her work (fishing, pilot on duty, restricted in ability to manoeuvre, clearing mines; flashing lights an aircraft). He calls a contact's lights again only when what they tell changes, at most every 2 minutes; the Remote Crew bridge lists these calls with the other reports. Aircraft stand at their true elevation above the horizon, worked out from their height and range less the curve of the Earth, and hang in the still sky behind the clouds instead of riding the swell; an aircraft high and close is above the field until the binoculars are tilted up. An aircraft less than 1° above the horizon (hovering low, close aboard) stands on the moving horizon in front of the sea instead. The own helicopter is in every one of these pictures (strip, binoculars, the Remote Crew card, the phone lookout and the hit picture) whenever the bridge can see it: the helicopter model at its true position, its own heading and length (15.2 m), about 60 m up in transit, 30 m on a MAD run and 15 m over its dipping sonar; on launch it starts from the flight deck astern and climbs away within 0.3 NM, and at night its position lights show. It needs the same visibility as any aircraft, is never reported or sent to the OPZ, and is not seen in the hangar. The lookout scope marks it as "own helicopter" at its position, the panorama with a short green tick at the top, and the list under the binoculars names it first. The Remote Crew bridge shows the same binoculars as a card ("Lookout binoculars"), trained in that browser only with the arrow buttons (2°, 10°) and "Bow". `B` raises the binoculars large over the chart: a 16° field the operator trains with `←` and `→` instead of the rudder, asLine truncated
|
||||
|
||||
- **Sighted:** only the kind of object is clear (vessel, aircraft, small object on the surface).
|
||||
- **Class:** the silhouette shows the class, for example merchant ship, warship, aircraft carrier, fishing vessel, speedboat, surfaced submarine, airliner or military aircraft.
|
||||
|
||||
Binary file not shown.
@@ -1,4 +1,4 @@
|
||||
# U-Jagd 1.3.160 - Stations- und Tastenkürzel
|
||||
# U-Jagd 1.3.162 - Stations- und Tastenkürzel
|
||||
|
||||
Druckfassung: [`station-shortcuts.de.pdf`](station-shortcuts.de.pdf).
|
||||
Maßgeblich ist die implementierte lokale Bedienung. Stationsnummern und
|
||||
|
||||
Binary file not shown.
@@ -8,6 +8,7 @@ identity or reference.
|
||||
|
||||
from src.commander import projections
|
||||
from src.core import config, phone_lookout, sight_events
|
||||
from src.ui import own_helo
|
||||
from src.ui.stations.bridge import lookout_outlines
|
||||
from src.ui.uboot_scope import full_span
|
||||
|
||||
@@ -44,8 +45,11 @@ def _frigate(game):
|
||||
called = lookout_outlines(game, game.lookout_sightings())
|
||||
unseen = lookout_outlines(game, sorted(game.lookout_eye.values(),
|
||||
key=lambda eye: eye.track_id))
|
||||
outlines = ([_outline(*row, True) for row in called]
|
||||
+ [_outline(*row, False) for row in unseen])[:24]
|
||||
helo = own_helo.outline(game)
|
||||
outlines = ([] if helo is None else [_outline(*helo, False)]) + (
|
||||
[_outline(*row, True) for row in called]
|
||||
+ [_outline(*row, False) for row in unseen])
|
||||
outlines = outlines[:24]
|
||||
return dict(side="frigate", available=not game.damage.station_down("bridge"),
|
||||
manned=bool(game.lookout_phone), course=_number(game.ship.course % 360.0),
|
||||
speed_kn=_number(game.ship.speed),
|
||||
|
||||
@@ -341,8 +341,8 @@ def _hit_view(game, side):
|
||||
outlines = scope_outlines(game, boat) if opfor.scope_available(boat) else []
|
||||
rows = sight_events.boat_rows(game, boat)
|
||||
else:
|
||||
from src.ui.stations.bridge import lookout_outlines
|
||||
outlines = lookout_outlines(game, game.lookout_sightings())
|
||||
from src.ui.stations.bridge import eye_outlines
|
||||
outlines = eye_outlines(game, game.lookout_sightings())
|
||||
rows = sight_events.frigate_rows(game)
|
||||
result.update(visibility_nm=_number(weather["visibility_nm"]),
|
||||
sea_state=_number(weather["sea_state"]), sky=_sky(game),
|
||||
@@ -1547,7 +1547,7 @@ def _lookout_glasses(game):
|
||||
of his own sightings (measured bearing, class he made out, apparent
|
||||
length from the measured range); never a target's position."""
|
||||
from src.ui import horizon
|
||||
from src.ui.stations.bridge import lookout_outlines
|
||||
from src.ui.stations.bridge import eye_outlines
|
||||
weather = game.world.weather_values()
|
||||
# Pitch and roll by the heading to the sea; the browser turns them with
|
||||
# its own line of sight (``horizon_offset``/``horizon_tilt``: the bow).
|
||||
@@ -1566,7 +1566,7 @@ def _lookout_glasses(game):
|
||||
elevation_deg=_number(elevation), aob_deg=_number(aob),
|
||||
model=None if model is None else str(model), way=_number(way))
|
||||
for bearing, span, cls, stale, lights, elevation, aob, model, way in
|
||||
lookout_outlines(game, game.lookout_sightings())[:16]],
|
||||
eye_outlines(game, game.lookout_sightings())[:16]],
|
||||
events=_sight_events(sight_events.frigate_rows(game), game.sim_t))
|
||||
|
||||
|
||||
|
||||
+1
-1
@@ -4,7 +4,7 @@ This module is deliberately dependency-free because setuptools imports the
|
||||
version while building the project.
|
||||
"""
|
||||
|
||||
APP_VERSION = "1.3.160"
|
||||
APP_VERSION = "1.3.162"
|
||||
SAVE_VERSION = 49
|
||||
SAVE_SCHEMA = "u-jagd-save-v49"
|
||||
SPLASH_TEXT = (
|
||||
|
||||
+2
-2
@@ -90,8 +90,8 @@ def draw(game, s, side: str) -> None:
|
||||
outlines = scope_outlines(game, boat) if opfor.scope_available(boat) else []
|
||||
rows = sight_events.boat_rows(game, boat)
|
||||
else:
|
||||
from src.ui.stations.bridge import lookout_outlines
|
||||
outlines = lookout_outlines(game, game.lookout_sightings())
|
||||
from src.ui.stations.bridge import eye_outlines
|
||||
outlines = eye_outlines(game, game.lookout_sightings())
|
||||
rows = sight_events.frigate_rows(game)
|
||||
horizon.draw_horizon(s, picture, line_of_sight=view["bearing"], fov_deg=hit_view.FOV_DEG,
|
||||
night=game.world.is_night(), visibility_nm=weather["visibility_nm"],
|
||||
|
||||
+19
-6
@@ -26,6 +26,10 @@ SCALE_LABEL_MIN_PX = 36
|
||||
MOTION_PX_PER_RAD = 260.0
|
||||
# A stabilized binocular or periscope keeps this share of the hull motion.
|
||||
STABILIZED_RESIDUAL = 0.12
|
||||
# An aircraft lower than this above the sea horizon (a helicopter hovering
|
||||
# over its dipping sonar, the own helicopter close aboard) is drawn against
|
||||
# the moving sea horizon in front of the sea, not hidden behind it.
|
||||
LOW_AIR_DEG = 1.0
|
||||
# Charted coast on the horizon: rays per full circle, the observer's move that
|
||||
# re-casts them, the bounded cache, and the assumed coastal heights (m; the
|
||||
# chart has no elevation, so hills vary smoothly along the coast).
|
||||
@@ -242,16 +246,20 @@ def draw_horizon(s, rect, *, line_of_sight: float, fov_deg: float, night: bool,
|
||||
px_per_deg = rect.w / fov_deg
|
||||
lit = sky["light"] < 0.45
|
||||
|
||||
def draw_rows(rows, colors, aloft):
|
||||
def draw_rows(rows, colors):
|
||||
haze, haze_color = colors["haze_level"], colors["haze"]
|
||||
for row in rows:
|
||||
bearing, span_deg, cls, stale = row[:4]
|
||||
aloft = len(row) > 5 and row[5] is not None
|
||||
nav = row[4] if len(row) > 4 else None
|
||||
off = relative_offset(bearing, line_of_sight)
|
||||
if abs(off) > fov_deg / 2 + span_deg / 2:
|
||||
continue
|
||||
cx = rect.centerx + int(off * px_per_deg)
|
||||
if aloft:
|
||||
if aloft and row[5] < LOW_AIR_DEG:
|
||||
# Low over the water: at its elevation above the moving horizon.
|
||||
base = horizon + int(math.tan(tilt) * (cx - rect.centerx) - row[5] * px_per_deg)
|
||||
elif aloft:
|
||||
# In the still sky at its elevation, behind the clouds.
|
||||
base = int(view.alt_y(0.0, cx) - row[5] * px_per_deg)
|
||||
else:
|
||||
@@ -270,19 +278,24 @@ def draw_horizon(s, rect, *, line_of_sight: float, fov_deg: float, night: bool,
|
||||
nav=nav, aloft=aloft, aob_deg=aob,
|
||||
model=row[7] if len(row) > 7 else None)
|
||||
|
||||
airborne = [row for row in outlines if len(row) > 5 and row[5] is not None]
|
||||
afloat = [row for row in outlines if not (len(row) > 5 and row[5] is not None)]
|
||||
# Aircraft high over the sea horizon hang in the sky behind the clouds;
|
||||
# a low one (``LOW_AIR_DEG``: hovering, the own helicopter close aboard
|
||||
# or over its deck) stands in front of the sea with the ships.
|
||||
airborne = [row for row in outlines
|
||||
if len(row) > 5 and row[5] is not None and row[5] >= LOW_AIR_DEG]
|
||||
afloat = [row for row in outlines
|
||||
if not (len(row) > 5 and row[5] is not None and row[5] >= LOW_AIR_DEG)]
|
||||
with layout.clip_to(s, rect):
|
||||
colors = sight_scene.draw_scene(
|
||||
s, view, sky, visibility_nm=visibility_nm, sea_state=sea_state, t=anim_t, way=way,
|
||||
aloft=(lambda colors: draw_rows(airborne, colors, True)) if airborne else None)
|
||||
aloft=(lambda colors: draw_rows(airborne, colors)) if airborne else None)
|
||||
haze_color = colors["haze"]
|
||||
if land is not None:
|
||||
_draw_land(s, rect, land, line_of_sight=line_of_sight, fov_deg=fov_deg,
|
||||
horizon=horizon, tilt=tilt, night=sky["light"] < 0.5,
|
||||
visibility_nm=visibility_nm, haze_color=haze_color, colors=colors)
|
||||
silhouettes.set_glow(colors.get("glow", 0.0))
|
||||
draw_rows(afloat, colors, False)
|
||||
draw_rows(afloat, colors)
|
||||
silhouettes.set_glow(0.0)
|
||||
sight_events_view.draw_events(s, view, colors, sky, events, anim_t)
|
||||
sight_scene.draw_weather(s, view, sky, colors, visibility_nm=visibility_nm, t=anim_t)
|
||||
|
||||
@@ -0,0 +1,93 @@
|
||||
"""The frigate's own helicopter as the bridge lookout's eye sees it.
|
||||
|
||||
The helicopter is a commanded own asset (legitimate truth): the bridge knows
|
||||
where it flies, so its outline joins the eyepiece pictures (binoculars,
|
||||
lookout strip, hit picture, Remote Crew and phone lookout) without any
|
||||
sensor track or report. Display only: nothing here feeds the air picture,
|
||||
the lookout's calls or the simulation.
|
||||
"""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
import math
|
||||
|
||||
from src.core import config
|
||||
from src.sensors import lookout_id, nav_lights
|
||||
from src.sensors import visual as visual_physics
|
||||
|
||||
# Sea Lynx Mk88A of the Brandenburg class: 15.2 m over the rotors.
|
||||
LENGTH_M = 15.2
|
||||
# Height above the sea: transit, a MAD run, the dipping hover, the deck.
|
||||
TRANSIT_ALTITUDE_M = 60.0
|
||||
MAD_ALTITUDE_M = 30.0
|
||||
DIP_HOVER_ALTITUDE_M = 15.0
|
||||
DECK_ALTITUDE_M = 6.0
|
||||
# The bridge sits forward of the frigate's centre, the flight deck aft of it
|
||||
# (Brandenburg class: bridge about 28 m forward, deck centre about 51 m aft).
|
||||
BRIDGE_FORWARD_M = 28.0
|
||||
DECK_AFT_M = 51.0
|
||||
# Within this distance of the ship the helicopter climbs off or settles onto
|
||||
# the deck (the recovery distance: closer in it lands and is struck down).
|
||||
DECK_BLEND_NM = config.HELO_RETURN_DIST_NM
|
||||
|
||||
|
||||
def _altitude_m(helo, blend: float) -> float:
|
||||
if helo.dip_state != "STOWED":
|
||||
cruise = DIP_HOVER_ALTITUDE_M
|
||||
elif getattr(helo, "mad_mode", False):
|
||||
cruise = MAD_ALTITUDE_M
|
||||
else:
|
||||
cruise = TRANSIT_ALTITUDE_M
|
||||
return DECK_ALTITUDE_M + (cruise - DECK_ALTITUDE_M) * blend
|
||||
|
||||
|
||||
def outline(game):
|
||||
"""The own helicopter's eyepiece row (``seen``), or None."""
|
||||
seen_now = seen(game)
|
||||
return None if seen_now is None else seen_now[0]
|
||||
|
||||
|
||||
def seen(game):
|
||||
"""``(row, range_nm)`` of the own helicopter in the bridge's sight: its
|
||||
eyepiece row ``(bearing, span_deg, cls, stale,
|
||||
lights, elevation_deg, aob_deg, model, way)`` as the bridge's eye sees
|
||||
it and its distance from the bridge, or None (in the hangar, lost,
|
||||
beyond what the eye reaches or behind land). On launch and recovery it
|
||||
sits on the flight deck astern."""
|
||||
helo = getattr(game, "helo", None)
|
||||
if helo is None or not helo.airborne:
|
||||
return None
|
||||
ship = game.ship
|
||||
course = math.radians(ship.course)
|
||||
ahead_x, ahead_y = math.sin(course), -math.cos(course)
|
||||
eye_x = ship.x + ahead_x * BRIDGE_FORWARD_M / 1852.0
|
||||
eye_y = ship.y + ahead_y * BRIDGE_FORWARD_M / 1852.0
|
||||
away = math.hypot(helo.x - ship.x, helo.y - ship.y)
|
||||
blend = min(1.0, away / DECK_BLEND_NM) if DECK_BLEND_NM > 0 else 1.0
|
||||
# Close aboard the picture slides from the flight deck to its true place.
|
||||
deck = (1.0 - blend) * DECK_AFT_M / 1852.0
|
||||
hx, hy = helo.x - ahead_x * deck, helo.y - ahead_y * deck
|
||||
dx, dy = hx - eye_x, hy - eye_y
|
||||
distance = math.hypot(dx, dy)
|
||||
if distance <= 1e-6:
|
||||
return None
|
||||
altitude = _altitude_m(helo, blend)
|
||||
bearing = math.degrees(math.atan2(dx, -dy)) % 360.0
|
||||
# The lookout's own eye (contrast model, weather and light), without his
|
||||
# fatigue: at night the helicopter's position lights carry further.
|
||||
environment = game._lookout_environment()
|
||||
visibility = float(environment["visibility_nm"])
|
||||
lights = (nav_lights.aircraft_code(helo.course, bearing, distance, visibility)
|
||||
if nav_lights.lit(game.world.daylight_stage(), visibility) else None)
|
||||
if lights is None:
|
||||
from src.core.game_sim import LOOKOUT_MODEL
|
||||
if LOOKOUT_MODEL.margin("FLG", distance, altitude_m=altitude, **environment) < 1.0:
|
||||
return None
|
||||
if game.world.land_blocks_line(eye_x, eye_y, hx, hy):
|
||||
return None
|
||||
span = math.degrees(LENGTH_M / max(distance * 1852.0, 1.0))
|
||||
elevation = visual_physics.elevation_deg(altitude, distance,
|
||||
visual_physics.LOOKOUT_EYE_HEIGHT_M)
|
||||
return ((bearing, max(1e-3, min(180.0, span)), "aircraft", False, lights,
|
||||
max(-30.0, elevation), lookout_id.angle_on_bow(helo.course, bearing), None, None),
|
||||
distance)
|
||||
@@ -10,7 +10,7 @@ from src.core.i18n import (display_message, display_value, localized, localize,
|
||||
message as structured_message)
|
||||
from src.core.station import Station
|
||||
from src.ui import horizon, instruments, label_layout, layout, pointer, sight_scene
|
||||
from src.ui import observations
|
||||
from src.ui import observations, own_helo
|
||||
|
||||
|
||||
from src.ui.stations.common import (
|
||||
@@ -307,6 +307,33 @@ def lookout_outlines(game, sightings) -> list:
|
||||
return rows
|
||||
|
||||
|
||||
def eye_outlines(game, sightings) -> list:
|
||||
"""Everything the bridge's eye draws in an eyepiece: the own helicopter
|
||||
in sight (own asset, ``own_helo``; first, so a bounded list keeps it)
|
||||
and the outlines of the lookout's own sightings."""
|
||||
helo = own_helo.outline(game)
|
||||
rows = lookout_outlines(game, sightings)
|
||||
return rows if helo is None else [helo] + rows
|
||||
|
||||
|
||||
def _draw_own_helo_mark(game, s, cx, cy, scale, range_nm, labels) -> None:
|
||||
"""The own helicopter on the lookout scope while the bridge sees it
|
||||
(own asset: its true position, ``own_helo``)."""
|
||||
if own_helo.outline(game) is None:
|
||||
return
|
||||
dx, dy = game.helo.x - game.ship.x, game.helo.y - game.ship.y
|
||||
if math.hypot(dx, dy) > range_nm:
|
||||
return
|
||||
px, py = int(cx + dx * scale), int(cy + dy * scale)
|
||||
pygame.draw.circle(s, config.COLOR_OK, (px, py), 4, 1)
|
||||
pygame.draw.line(s, config.COLOR_OK, (px - 7, py - 6), (px + 7, py - 6), 1)
|
||||
shown = localize("bridge.line.own_helo")
|
||||
size = layout.font(13).size(shown)
|
||||
spot = labels.place(size, label_layout.around((px + 8, py - 18), size, 8))
|
||||
layout.blit_line(s, raw_text(shown), (spot.x, spot.y, spot.w + 2, 16), config.COLOR_OK,
|
||||
size=13)
|
||||
|
||||
|
||||
def _dial_order(game, mode, value) -> None:
|
||||
"""A click on a bridge dial: the same order as a typed entry."""
|
||||
if value is None:
|
||||
@@ -361,6 +388,7 @@ def _draw_bridge_lookout(game, s, area: pygame.Rect) -> None:
|
||||
spot = labels.place(size, label_layout.around((px + 8, py - 18), size, 8))
|
||||
layout.blit_line(s, raw_text(shown), (spot.x, spot.y, spot.w + 2, 16),
|
||||
color, size=13)
|
||||
_draw_own_helo_mark(game, s, cx, cy, scale, range_nm, labels)
|
||||
heading = math.radians(game.ship.course)
|
||||
tip = (cx + math.sin(heading) * 12, cy - math.cos(heading) * 12)
|
||||
left = (cx + math.sin(heading + 2.5) * 8, cy - math.cos(heading + 2.5) * 8)
|
||||
@@ -385,7 +413,7 @@ def _draw_bridge_lookout(game, s, area: pygame.Rect) -> None:
|
||||
visibility_nm=weather["visibility_nm"],
|
||||
motion=horizon.horizon_motion(0, game.sim_t, weather["sea_state"],
|
||||
weather["wind_from_deg"] - game.ship.course),
|
||||
outlines=lookout_outlines(game, sightings), land=_lookout_land(game),
|
||||
outlines=eye_outlines(game, sightings), land=_lookout_land(game),
|
||||
anim_t=game.sim_t, sky=sight_scene.sky_state(game), sea_state=weather["sea_state"],
|
||||
way=own_way(game), events=sight_events.frigate_rows(game))
|
||||
iy += strip_h + 6
|
||||
@@ -462,7 +490,7 @@ def draw_lookout_glasses(game) -> None:
|
||||
motion=horizon.horizon_motion(0, game.sim_t, weather["sea_state"],
|
||||
weather["wind_from_deg"] - course,
|
||||
game.lookout_glasses_rel),
|
||||
outlines=lookout_outlines(game, sightings), land=land, anim_t=game.sim_t,
|
||||
outlines=eye_outlines(game, sightings), land=land, anim_t=game.sim_t,
|
||||
sky=sight_scene.sky_state(game), sea_state=weather["sea_state"],
|
||||
elevation_deg=sight.elevation_deg, stabilized=sight.stabilized, way=own_way(game),
|
||||
events=sight_events.frigate_rows(game), eyepiece="binoculars")
|
||||
@@ -498,6 +526,11 @@ def draw_lookout_glasses(game) -> None:
|
||||
px = _panorama_x(panorama, track.bearing % 360.0, course)
|
||||
color = _LOOKOUT_KIND_COLORS.get(track.kind, config.COLOR_TEXT_DIM)
|
||||
pygame.draw.line(s, color, (px, panorama.y + 12), (px, panorama.bottom - 12), 3)
|
||||
helo = own_helo.seen(game)
|
||||
if helo is not None:
|
||||
# The own helicopter in sight: a short tick high in the panorama.
|
||||
px = _panorama_x(panorama, helo[0][0], course)
|
||||
pygame.draw.line(s, config.COLOR_OK, (px, panorama.y + 4), (px, panorama.y + 20), 3)
|
||||
half = fov / 2.0
|
||||
left = panorama.x + int((horizon.relative_offset(line_of_sight - half, course) + 180.0)
|
||||
/ 360.0 * panorama.w)
|
||||
@@ -511,6 +544,14 @@ def draw_lookout_glasses(game) -> None:
|
||||
config.COLOR_TEXT_DIM, size=14)
|
||||
# The lookout's sightings, nearest the line of sight first.
|
||||
row_y = panorama.bottom + 48
|
||||
if helo is not None:
|
||||
in_view = abs(horizon.relative_offset(helo[0][0], line_of_sight)) <= fov / 2.0
|
||||
layout.blit_line(s, structured_message(
|
||||
"bridge.line.glasses_row", bearing=f"{helo[0][0] % 360.0:03.0f}",
|
||||
what=localize("bridge.line.own_helo"), range=f"{helo[1]:.1f}"),
|
||||
(frame.x + 10, row_y, frame.w - 20, 20),
|
||||
config.COLOR_WARN if in_view else config.COLOR_OK, size=15)
|
||||
row_y += 21
|
||||
rows = sorted((track for track in sightings if track.bearing is not None),
|
||||
key=lambda track: abs(horizon.relative_offset(track.bearing, line_of_sight)))
|
||||
for track in rows:
|
||||
|
||||
@@ -0,0 +1,133 @@
|
||||
"""The frigate's own helicopter in the bridge's eyepieces (display only)."""
|
||||
|
||||
import math
|
||||
|
||||
import numpy as np
|
||||
import pygame
|
||||
|
||||
from src.commander import lookout_projection, projections
|
||||
from src.core.game import Game
|
||||
from src.core.station import Station
|
||||
from src.ui import horizon, own_helo
|
||||
from src.ui.stations import bridge as bridge_view
|
||||
|
||||
|
||||
def _game(seed=83):
|
||||
game = Game(seed=seed, start_menu=False, audio_enabled=False, language="en")
|
||||
game.world.hour = 12.0
|
||||
return game
|
||||
|
||||
|
||||
def _fly(game, distance_nm, off_bow_deg, *, dipping=False):
|
||||
"""Launch the helicopter and hold it ``distance_nm`` off the bow."""
|
||||
helo = game.helo
|
||||
helo.launch(game.ship)
|
||||
bearing = math.radians(game.ship.course + off_bow_deg)
|
||||
helo.x = game.ship.x + distance_nm * math.sin(bearing)
|
||||
helo.y = game.ship.y - distance_nm * math.cos(bearing)
|
||||
helo.course = (game.ship.course + 90.0) % 360.0
|
||||
if dipping:
|
||||
helo.dip_state = "DEPLOYED"
|
||||
return math.degrees(bearing) % 360.0
|
||||
|
||||
|
||||
def test_hangar_shows_nothing_and_flight_shows_the_model():
|
||||
game = _game()
|
||||
assert game.helo.state == "HANGAR"
|
||||
assert own_helo.outline(game) is None
|
||||
bearing = _fly(game, 1.0, 20.0)
|
||||
row, distance = own_helo.seen(game)
|
||||
assert row[2] == "aircraft" and row[3] is False
|
||||
assert abs(((row[0] - bearing + 180.0) % 360.0) - 180.0) < 1.0
|
||||
assert abs(distance - 1.0) < 0.05
|
||||
# Above the sea horizon, turned by its own heading, its own length.
|
||||
assert row[5] > 0.0 and row[6] is not None
|
||||
assert abs(row[1] - math.degrees(own_helo.LENGTH_M / (distance * 1852.0))) < 1e-6
|
||||
|
||||
|
||||
def test_dipping_hover_flies_lower_than_transit():
|
||||
game = _game()
|
||||
_fly(game, 1.0, 20.0)
|
||||
transit = own_helo.outline(game)[5]
|
||||
game.helo.dip_state = "DEPLOYED"
|
||||
assert own_helo.outline(game)[5] < transit
|
||||
|
||||
|
||||
def test_on_launch_it_sits_on_the_flight_deck_astern():
|
||||
game = _game()
|
||||
game.helo.launch(game.ship)
|
||||
row = own_helo.outline(game)
|
||||
astern = (game.ship.course + 180.0) % 360.0
|
||||
assert abs(((row[0] - astern + 180.0) % 360.0) - 180.0) < 1.0
|
||||
assert row[5] < 0.0 # below the bridge's eye, on the deck
|
||||
|
||||
|
||||
def test_out_of_sight_beyond_the_eye_or_lost():
|
||||
game = _game()
|
||||
_fly(game, 3.0, 20.0)
|
||||
assert own_helo.outline(game) is not None
|
||||
game.world.weather_override = "fog"
|
||||
assert own_helo.outline(game) is None
|
||||
game.world.weather_override = None
|
||||
assert own_helo.outline(game) is not None
|
||||
game.helo.state = "VERLOREN"
|
||||
assert own_helo.outline(game) is None
|
||||
|
||||
|
||||
def test_eye_outlines_put_the_helicopter_first_and_report_nothing():
|
||||
game = _game()
|
||||
_fly(game, 1.0, 20.0)
|
||||
tracks = len(game.air_picture.tracks(game.sim_t))
|
||||
rows = bridge_view.eye_outlines(game, game.lookout_sightings())
|
||||
assert rows[0] == own_helo.outline(game)
|
||||
# Own asset: never a lookout track, report or call.
|
||||
assert not game.lookout_sightings()
|
||||
assert len(game.air_picture.tracks(game.sim_t)) == tracks
|
||||
assert not game.lookout_reports
|
||||
|
||||
|
||||
def test_remote_glasses_phone_and_hit_view_carry_it():
|
||||
game = _game()
|
||||
_fly(game, 1.0, 20.0)
|
||||
glasses = projections._lookout_glasses(game)
|
||||
assert glasses["outlines"][0]["cls"] == "aircraft"
|
||||
assert glasses["outlines"][0]["elevation_deg"] > 0.0
|
||||
phone = lookout_projection._frigate(game)
|
||||
assert phone["outlines"][0]["cls"] == "aircraft"
|
||||
assert phone["outlines"][0]["called"] is False
|
||||
|
||||
|
||||
def test_glasses_and_lookout_page_draw_it():
|
||||
game = _game()
|
||||
_fly(game, 0.6, 10.0)
|
||||
game.station = Station.BRIDGE
|
||||
game.station_page = 2
|
||||
game.lookout_glasses = True
|
||||
row = own_helo.outline(game)
|
||||
game.lookout_glasses_rel = (row[0] - game.ship.course) % 360.0
|
||||
game.lookout_optics.elevation_deg = row[5]
|
||||
game.draw()
|
||||
with_helo = pygame.surfarray.array3d(game.screen).copy()
|
||||
game.helo.state = "HANGAR"
|
||||
game.draw()
|
||||
without = pygame.surfarray.array3d(game.screen)
|
||||
assert (with_helo != without).any(axis=2).sum() > 200
|
||||
|
||||
|
||||
def test_a_low_aircraft_stands_in_front_of_the_sea():
|
||||
"""Below ``LOW_AIR_DEG`` an aircraft is drawn on the moving horizon after
|
||||
the sea, so a hovering helicopter is not hidden behind the waves."""
|
||||
def picture(rows):
|
||||
surface = pygame.Surface((400, 200))
|
||||
horizon.draw_horizon(surface, (0, 0, 400, 200), line_of_sight=0.0, fov_deg=4.0,
|
||||
night=False, visibility_nm=30.0, motion=(0.0, 0.0),
|
||||
outlines=rows, anim_t=1.0)
|
||||
return pygame.surfarray.array3d(surface)
|
||||
|
||||
empty = picture([])
|
||||
low = picture([(0.0, 0.3, "aircraft", False, None, 0.05, 90.0, None, None)])
|
||||
changed = np.argwhere((empty != low).any(axis=2))
|
||||
assert len(changed) > 50
|
||||
# Around the horizon in the middle of the field.
|
||||
assert abs(changed[:, 0].mean() - 200) < 30
|
||||
assert abs(changed[:, 1].mean() - 100) < 30
|
||||
@@ -86,7 +86,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.160.dist-info/METADATA") for name in wheel_names)
|
||||
assert any(name.endswith("-1.3.162.dist-info/METADATA") for name in wheel_names)
|
||||
|
||||
source = next(tmp_path.glob("u_jagd-*.tar.gz"))
|
||||
with tarfile.open(source) as archive:
|
||||
@@ -139,7 +139,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.160'; "
|
||||
"from src.core.version import APP_VERSION; assert APP_VERSION == '1.3.162'; "
|
||||
"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; "
|
||||
|
||||
@@ -14,9 +14,9 @@ from src.world.real_coast import sector_for_seed
|
||||
|
||||
|
||||
def test_release_version_and_exact_splash_text():
|
||||
assert APP_VERSION == "1.3.160"
|
||||
assert APP_VERSION == "1.3.162"
|
||||
assert SPLASH_TEXT == (
|
||||
"Anti Sub Marine Warfare on uConsole by Dominik Bornhäußer Version 1.3.160"
|
||||
"Anti Sub Marine Warfare on uConsole by Dominik Bornhäußer Version 1.3.162"
|
||||
)
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user