Repository navigation
Conversation
dayfine
force-pushed
the
lab/lab-console
branch
from
October 29, 2026 17:57
500b706 to
8635a38
Compare
dayfine
force-pushed
the
lab/lab-console
branch
4 times, most recently
from
October 29, 2026 20:17
dbcc31f to
6f1cb51
Compare
dayfine
force-pushed
the
lab/lab-console
branch
2 times, most recently
from
October 29, 2026 20:35
9ef662f to
e2e5da8
Compare
…iles Answering "does this detector fire on that screen?" meant a rebuild and a full program run. Command File Runner runs .txt files dropped into <folder>/inbox against the live console, one command per line (press, dpad, stick, wait, shot/shots, detect, wait_for/expect, state, close_game, help, stop), and writes a timed result file with screenshots to <folder>/outbox, stopping a file at its first failing line. Options set the command folder and whether to stop once the inbox is empty. Games can register their own commands and detectors. README.md next to the code documents the file format and every command; like the other testing programs it has no page on the documentation site. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AKYzhrMnPK61XHWEch4a6E
dayfine
force-pushed
the
lab/lab-console
branch
from
October 29, 2026 20:59
e2e5da8 to
45cb3c2
Compare
Moves the line splitting, button and D-pad names and the inbox order into their own file, unchanged, and tests them without a console. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AKYzhrMnPK61XHWEch4a6E
dayfine
marked this pull request as ready for review
October 30, 2026 03:43
A command line is now just its words: split_command_line() returns them, and required_arg(), optional_number() and optional_duration() read arguments from them, with the same error messages. All definitions move to the .cpp. Adds a unit test for the argument readers and checks the error messages. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AKYzhrMnPK61XHWEch4a6E
On the macOS Intel CI build, the std::invalid_argument from std::stod() escapes the catch (std::exception&), so the "argument errors" test failed with "Unknown exception". strtod() reports a bad number without throwing; the error message is unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AKYzhrMnPK61XHWEch4a6E
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AKYzhrMnPK61XHWEch4a6E
…w long it moved A timed stick hold moves a different number of tiles from one try to the next, so a map measured with holds is not measured. "walk x y" holds the left stick in 200 ms slices and stops when two slices in a row barely change the screen (a wall, a sign, someone in the way). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AKYzhrMnPK61XHWEch4a6E
This was referenced Oct 30, 2026
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AKYzhrMnPK61XHWEch4a6E
This was referenced Oct 31, 2026
…d_save (#102) * Command File Runner: BDSP detectors, measured D-pad taps and bdsp_load_save The runner had no game detectors and no way for a game to hook in, so a lab operator could not ask "is this a dialog box?" or reload the BDSP save from a command file. - BDSP registers bdsp_dialog, bdsp_battle_text, bdsp_battle_menu, bdsp_exp_gain, bdsp_menu and bdsp_map, plus bdsp_load_save, from its PanelListFactory constructor (a static registrar in the static library would be dropped by the linker). - "taps DIR N [all] [hold] [release] [still]" taps the D-pad and reports, per tap, whether the screen moved (RMSD at 192x108, shared with walk). - run_command_file_line() lets a game command run built-ins such as close_game and state. - README: new commands, detectors and how a game registers them. - Tests: parsing of taps arguments. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AKYzhrMnPK61XHWEch4a6E * Command File Runner: a D-pad tap toward a new direction also steps The taps README and code comment said the first tap of a new direction only turns the player. Measured 2026-10-31 in Floaroma: a 160 ms left tap from facing north moved one tile, with a screen change of about 37 at 192x108, the same as a plain step. Say every tap is a step unless something blocks it. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AKYzhrMnPK61XHWEch4a6E --------- Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AKYzhrMnPK61XHWEch4a6E
Owner
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Checking whether a detector fires on a given screen meant a rebuild and a full program run. Command File Runner (a developer program under Nintendo Switch) runs
.txtcommand files dropped into an inbox folder against the live console — press, dpad, stick, wait, walk, shot, shots, detect, wait_for/expect, state, close_game, help, stop — and writes a timed result file with screenshots to the outbox, stopping a file at its first failing line.walkholds the left stick until the screen stops changing and reports how long it moved, for measuring maps: a timed stick hold moves a different number of tiles from one try to the next. Options set the folder and whether to stop once the inbox is empty; games can register their own commands and detectors (BDSP AutoStory adds walking and save-loading probes on its branch). AREADME.mdnext to the code documents the file format and every command; like the other testing programs it has no page on the documentation site.Unit tests cover reading command files without a console: splitting lines and comments, argument errors, button and D-pad names, and which inbox file runs next. Tested on a Switch with this build (macOS, no warnings): two files queued before start with "Stop When Inbox Is Empty" on. The first covered help, press, dpad, stick, wait, walk, shot, shots, detect and state on live video and on a saved image, wait_for timing out, expect, close_game and comments, and every line passed. The second failed on an unknown button, saved a screenshot and ended; the program then stopped by itself.
stopwas checked in an earlier run, and the tool has since run about 600 probe files on a lab Switch.walkwas checked on a lab Switch by mapping Sandgem Town and Route 201: it stopped at signs, trees, a fence and an NPC, and repeated walks ended on the same tiles.🤖 Generated with Claude Code
https://claude.ai/code/session_01AKYzhrMnPK61XHWEch4a6E