Devlog: A10, A11 and H13 diagnostics

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-13 11:47:21 -05:00
co-authored by Claude Opus 5.5
parent 0ddcb48ea0
commit b3c59d66ac
+34
View File
@@ -894,3 +894,37 @@ high-priority issues, and A3, A7, A12 and A13 deferred.
**Known gaps:** the soak's transient hash mismatch (#80), seen once in four runs since H12. The HUD has no menus or map yet (A10, A11), the held item still isn't drawn (A4), and nobody has played it on real hardware (R6).
**Pace:** v0.5 is closed, two days after it was due. v0.6 has A1 and A9 done; it was due last night. That is still more than a day behind, with about two and a half days left. B4, B8, M6, M7 and the other low or unprioritised issues stay deferred. **Next run:** H13 (#80), the soak's transient hash mismatch, because it's a multiplayer bug. Then A10 (menus and settings) and A11 (map and tide forecast), which a playable release needs most, then A2, A4, A5, A6 and A8.
## 2026-11-13 (late morning): A10 and A11 done; H13 instrumented
**Start of run:** the lock was free and acquired fresh. The pull was a no-op and the tree was clean. The Agents category had nothing addressed to this task, and nothing was posted.
**Done:**
- **H13 (#80), still open: the soak now says where a world differs.** `NetWorld.world_detail()` hashes the world in four parts (tide, props, pieces, loot) and lists every piece. The server's and soak clients' hash lines carry it, and the soak report names the differing part, the client's `ClientWorld.tick` and the differing pieces. `world_hash()` hashes the same bytes as before. A full soak with it passed (below), so there's nothing to trace yet. Reading the code ruled out out-of-order snapshots, WORLD racing its snapshot, prediction touching the world and late crate spills.
- **A10 (#50), closed: menus and settings.**
- With a window and no mode given, the game opens on a main menu (`AppShell`): practice against bots (count and skill), join (address, or a LAN search), settings, quit. Escape in a match opens a pause menu; the match carries on. A results screen shows place, eliminations and the feed when a match the player was in ends.
- `KeyBindings`: every action rebindable to a key or mouse button, clashes refused and named, Escape reserved. `ClientInput` reads keys through it.
- `GameSettings` saves bindings, mouse, graphics (quality preset, print pass), audio (Master, Music and Effects buses), display, name, last server and practice choices. Missing or corrupt files and bad values fall back value by value.
- Paper-and-ink menus over a drawn sea and tide post, or an ink wash over a match. New palette colour `GILT_DEEP` for the focus edge. `src/ui` is now covered by the palette test.
- **A11 (#51), closed: chart, minimap and tide forecast.**
- `Flood.forecast()` spreads a copy of the flood to a level with today's breakwaters.
- `ChartMap` draws the chart: contours, coastline, place names (`PlaceNames`, from the seed), the barge's route, the player's arrow, the coming flood hatched and taken land washed. The full chart is on M (new binding), and a minimap shows top left during the drop and play.
**Tests:**
- `make check` passes: parse, 554 tests, self-check and smoke.
- New: `test_menus` (9, including an offline match from the main menu through pause, settings, leave, and a match ending in results), `test_key_bindings` (8), `test_game_settings` (6), `test_tide_forecast` (the forecast matches the simulation's flood after each of the 7 phases on seed 11, and around a breakwater ring), `test_chart_map` (4, including the minimap during the drop and M opening the chart in a real session).
- `make soak-selfcheck` passes, and reports the tampered client as "parts differing: props".
- `make soak` passes: 24/24 clients through both matches, **3,743 hashes, 0 differing**, p99 tick 7.4 ms (simulation 2.8 ms), max 60 ms, client memory growth 1.6 MB, server 0.8 MB, 29 kbit/s down per client. It ran alongside tests and captures.
- Captures, all opened and looked at: `menu_main`, `menu_practice`, `menu_join`, `menu_settings`, `menu_settings_mouse`, `menu_pause`, `menu_results`, `chart_first`, `chart_later`. The first menu renders had zero-sized panels and track-less sliders; both fixed before committing.
**Decisions and what I learned:**
- `Control.set_anchors_preset()` keeps the control's current rect, so on a node outside the tree it leaves a full-rect control zero-sized. Use `set_anchors_and_offsets_preset()`.
- `ConfigFile.get_value()` with a `null` default raises an engine error for a missing key; check `has_section_key()` first.
- The engine logs a parse error for a corrupt settings file. Loading still falls back to defaults; tests expect the error.
- New `class_name` scripts need `make import` before `tools/run_tests.sh` can see them (`make parse` and `make check` do this).
- Display settings (window mode, vsync, frame cap) are applied but can't be verified headless or in the capture container.
- The chart's paper takes about 270 ms per match, once, on the main thread, headless. Fine for now; move it to the world-building thread if it hitches in R6.
**Known gaps:** H13 (#80) isn't reproduced yet. The held item still isn't drawn (A4). No sound yet (A8). Gamepad (A13) is deferred. Nobody has played on real hardware (R6).
**Pace:** v0.6 was due on the night of 11-12. It now has A1, A9, A10 and A11 done. Still open there: A2, A4, A5, A6 and A8 (high), A7, A12 and A13 (deferred, no priority) and A3 (low). That is more than a day behind, with about two and a half days left before Monday 08:00. v0.9 and the release (R1 to R5) haven't started. **Next run:** A8 (synthesized sound and music) and A4 (held item models), then A2, A5 and A6. If the next run is still this far behind, it should weigh starting R1 (the Linux export) early, because a playable package matters more for Monday than more art.