diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index 8085ae84..24324dfb 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -150,7 +150,7 @@ jobs: - name: Self-test HTTPS to GitHub # A player's Mac has no certificate folder of the Python the app was - # built with (1.3.171: every update check failed verification, so no + # built with (before 1.3.173 every update check failed verification, so no # notice appeared). Point OpenSSL's defaults nowhere, as there: the # app must still verify GitHub with its bundled certificates. run: | diff --git a/AGENTS.md b/AGENTS.md index 835d0ddd..96aec1ad 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -2,7 +2,7 @@ ## Authority and scope -- This is U-Jagd 1.3.172 (`src/core/version.py`); saves are written as v50 and older saves from v38 on are lifted to v50 on load (`src/core/save_migrate.py`). Treat these as compatibility contracts, not changelog entries. +- This is U-Jagd 1.3.173 (`src/core/version.py`); saves are written as v50 and older saves from v38 on are lifted to v50 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`. diff --git a/CHANGELOG.de.md b/CHANGELOG.de.md index 643782da..8ad74e46 100644 --- a/CHANGELOG.de.md +++ b/CHANGELOG.de.md @@ -4,9 +4,9 @@ Alle Versionen von U-Jagd, die neueste zuerst. Die [README](README.de.md) zeigt nur die neueste. -## 1.3.172 +## 1.3.173 -Version 1.3.172 repariert die Update-Prüfung der macOS-App. Ihr +Version 1.3.173 repariert die Update-Prüfung der macOS-App. Ihr eingebautes Python suchte die Stammzertifikate in einem Ordner, den es nur auf dem Baurechner gibt, deshalb scheiterte jede HTTPS-Anfrage an der Prüfung und der Startbildschirm bot nie eine neuere Version an. Das Windows-Programm und @@ -17,6 +17,21 @@ Startbildschirm und Hauptmenü jetzt, dass und warum (keine Verbindung, Zertifikat oder ein Fehler von GitHub), und U prüft erneut. Spielstände sind v50; v38 bis v49 lassen sich weiter laden. +## 1.3.172 + +Version 1.3.172 bringt das Mikrofon der Geräuschdisziplin zum Laufen. Auf der +uConsole, unter Windows und auf dem Mac öffnete das Spiel das Gerät nie (die +Tonbibliothek verlangt den Namen des Geräts), die Anzeige blieb dunkel. Jetzt +öffnet es das Standardmikrofon des Systems, und wenn das nicht geht, sagt das +Spiel warum: eine Meldung im Einsatz und Ursache mit Abhilfe auf Seite 2 der +Optionen (kein Mikrofon, lässt sich nicht öffnen oder kein Ton, weil Windows +oder macOS den Zugriff sperrt). Die Mac-App fragt nach dem Mikrofonzugriff, +und die Windows- und Mac-Builds prüfen die Aufnahme vor der Veröffentlichung. +Browser erlauben das Mikrofon nur auf einer sicheren Seite: Auf der normalen +LAN-Seite sagt das jetzt ein Hinweis, und „HTTPS-Seite öffnen“ wechselt zur +HTTPS-Adresse des Hosts, wo Sie sich mit demselben Code neu koppeln. +Spielstände sind v50; v38 bis v49 lassen sich weiter laden. + ## 1.3.171 Version 1.3.171 gibt der OPZ eine reichere Karte und eine Anzeigeseite voller diff --git a/CHANGELOG.md b/CHANGELOG.md index 99f6d57a..e8803dbb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,9 +4,9 @@ Every U-Jagd release, newest first. The [README](README.md) shows only the latest one. -## 1.3.172 +## 1.3.173 -Release 1.3.172 fixes the update check of the macOS app. The app's +Release 1.3.173 fixes the update check of the macOS app. The app's built-in Python looked for root certificates in a folder that exists only on the build machine, so every HTTPS request failed verification and the start screen never offered a newer version. The Windows and macOS programs now @@ -16,6 +16,20 @@ the update check fails, the start screen and the main menu now say so and why (no connection, certificate, or an error from GitHub), and U checks again. Saves are v50; v38 to v49 saves still load. +## 1.3.172 + +Release 1.3.172 makes the microphone of noise discipline work. On the +uConsole, Windows and the Mac the game never opened the device (the sound +library wants the device's name), so the meter stayed dark. It now opens the +system's default microphone, and when it cannot, the game says why: a status +message in the mission and the cause with its remedy on Options page 2 (no +microphone, cannot be opened, or no sound because Windows or macOS blocks the +access). The Mac app asks for microphone access, and the Windows and Mac +builds test the capture before release. Browsers allow the microphone only on +a secure page: on the plain LAN page a box now says so and "Open HTTPS page" +switches to the host's HTTPS address, where you pair again with the same code. +Saves are v50; v38 to v49 saves still load. + ## 1.3.171 Release 1.3.171 gives the OPZ a richer chart and a Display page full of diff --git a/README.de.md b/README.de.md index b055cd67..f3c6fe32 100644 --- a/README.de.md +++ b/README.de.md @@ -14,9 +14,9 @@ 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.172** +Aktuelle Version: **1.3.173** -Version 1.3.172 repariert die Update-Prüfung der macOS-App. Ihr +Version 1.3.173 repariert die Update-Prüfung der macOS-App. Ihr eingebautes Python suchte die Stammzertifikate in einem Ordner, den es nur auf dem Baurechner gibt, deshalb scheiterte jede HTTPS-Anfrage an der Prüfung und der Startbildschirm bot nie eine neuere Version an. Das Windows-Programm und diff --git a/README.md b/README.md index 05eb463a..bd081eec 100644 --- a/README.md +++ b/README.md @@ -12,9 +12,9 @@ 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.172** +Current release: **1.3.173** -Release 1.3.172 fixes the update check of the macOS app. The app's +Release 1.3.173 fixes the update check of the macOS app. The app's built-in Python looked for root certificates in a folder that exists only on the build machine, so every HTTPS request failed verification and the start screen never offered a newer version. The Windows and macOS programs now diff --git a/data/commander/css/components.css b/data/commander/css/components.css index 73236602..a0c9991e 100644 --- a/data/commander/css/components.css +++ b/data/commander/css/components.css @@ -354,3 +354,13 @@ body.shock-dust::after { .mic-status { font-size: var(--font-xs); color: var(--text-dim); max-width: 16rem; } .mic-meter[data-band="far"] + .mic-status { color: var(--alarm); } .mic-meter[data-band="near"] + .mic-status { color: var(--caution); } +/* A microphone that cannot start: the cause (and the switch to the HTTPS + page) drops below the header, which stays one line. */ +.mic-discipline { position: relative; } +.mic-problem { position: absolute; top: calc(100% + .35rem); right: 0; z-index: 30; display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; + width: min(24rem, calc(100vw - 2rem)); padding: .45rem .55rem; background: var(--bg-2); border: 1px solid var(--caution); + border-radius: var(--radius); box-shadow: 0 .6rem 1.4rem -.4rem var(--shadow); } +.mic-problem[hidden] { display: none; } +.mic-problem p { flex: 1 1 100%; margin: 0; color: var(--caution); font-size: var(--font-sm); line-height: 1.35; } +.mic-problem button { min-height: 2rem; font-size: var(--font-xs); } +.mic-problem #mic-problem-close { margin-left: auto; min-width: 2rem; } diff --git a/data/commander/index.html b/data/commander/index.html index 8098b65c..f1c520d6 100644 --- a/data/commander/index.html +++ b/data/commander/index.html @@ -34,7 +34,7 @@ - +