Repository navigation
Lab: set up lab/main, the base for lab builds - #92
Merged
Merged
Conversation
…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
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
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
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AKYzhrMnPK61XHWEch4a6E
Brings in the Command File Runner, including the 'walk' command from lab/cfr-walk (fork PR #84, merged into lab/lab-console). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AKYzhrMnPK61XHWEch4a6E
With Stream History on, a lab script can keep the video of a program run that just ended (the RNG reset and launch) by running this right after. Ported from beceebc on lab/frlg-nav-cfr to the free-function command signature. 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
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.
Base:
lab/main(a copy of forkmainat 687bc48); the diff shows only the lab tooling this PR adds.Sets up
lab/main, the long-lived base that every lab build (BDSP AutoStory on console B, FRLG nav on console A) merges; it is never merged intomain, and upstream-bound branches never merge it.What each merge brings in:
lab/lab-console(fork PR Add Command File Runner, a developer program driven by text command files #58): the Command File Runner, including thewalkcommand fromlab/cfr-walk(fork PR Command File Runner: walk until the screen holds still #84, already merged intolab/lab-console).lab/cfr-history: the CFRhistory labelcommand (saves the Stream History video), ported from beceebc onlab/frlg-nav-cfrto the free-function command signature, plus its README row.Left out:
lab/control-folder): already inmainvia fork PR Lab control folder: start/stop the selected program from scripts #76, so nothing to merge.frlg_route,frlg_max_repel,frlg_rng_resetCFR commands: they live inPokemonFRLG_OverworldCommands.cppand need the FRLG nav code (frlg/brock-mvp,nav/core), so they stay onlab/frlg-nav-cfr.Process: the daily sync (
pa-tools/sync_branches.py) now merges forkmainintolab/main. The lab build process is written up onagentsinlab/LAB_BUILDS.md(dac7527); it describes the process once this PR merges.Testing
lab/main-setup: Mac, Windows Clang, Ubuntu Default.git merge-treeof this branch intobdsp/event-sandgem-centeris clean; intolab/frlg-nav-cfrit conflicts only inNintendoSwitch_CommandFileRunner.cpp(both sides addhistory; take this side).🤖 Generated with Claude Code
https://claude.ai/code/session_01AKYzhrMnPK61XHWEch4a6E