Feed: dev-only debug state for scripts #32
Labels
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Blocks
Depends on
#33 Test-race scenarios and race bot in scripts/
mintopia/blur
#49 JSON Schema for the game-state feed
mintopia/blur
#31 Feed: apply the ADR 0019 message contract
mintopia/blur
Reference
mintopia/blur#32
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Dev-build-only feed state keys (ADR 0015 split; never in release builds) so
scripts/can drive the game.Acceptance
menu: current screen + focused item (name and index), updated as focus moves.Rules
docs/decisions/0019-feed-message-contract.md). Repo data/tools: ADR 0020.BLUR_ENGINE=recomponly.docs/state-websocket.mdandexamples/live-timingfor any feed change.scripts/scenarios (windowed, low settings) once #33 exists.Commit ef6ae0d. Dev-only feed keys (published every frame from a FrameUpdate_Wrapper hook in patches/Screens/GUIBank.post.lua; Host.state drops dev_ keys when BLUR_DEV=0, release build compiled, docs in docs/state-websocket.md):
Gaps: no focused item NAME: the carousel selection is a float scroll position with no item text, and Options-style screens expose no CurrentList/carousel_id, so index is null there; screen key identifies the page. Names would need per-screen tables. Lobby readiness and loadout not exercised in a live lobby (only defaults seen); scripts/ (#33) does not exist yet. Release absence checked by compile only (dev_ filter in lua_patch.cpp), not by running a release build. ctest 17/17 pass. examples/live-timing ignores dev_ keys, no change.
Self-heal fix (commit after ef6ae0d). Verified live on recomp (mdrive, state log):
Docs: docs/state-websocket.md. live-timing ignores dev_ keys.
Removed the flagged section-label comment in patches/Screens/GUIBank.post.lua (comment check fix). Feature unchanged: dev_menu_item/index, dev_lobby_state, dev_loadout/dev_loadout_lobby, dev_ keys dropped in state::set when BLUR_DEV=0, with test and docs.
Completed and merged by Harmonic (task 36).