Repository navigation
Conversation
Someone playing Legends Z-A by hand through the lab channel can now record story steps at the action level rather than as raw presses: - Registry: games register commands with a kind (DRIVES_CONSOLE or READS_STREAM) and readings (values such as a heading) alongside detectors, from their panel list, so the Switch module includes no game headers. - `type TEXT` types a name on the system keyboard (#62), presses + and checks that the keyboard closed. - LZA commands over #282's actions: lza_talk, lza_talk_to, lza_pick, lza_move, lza_face, lza_fly, lza_battle, lza_heal, lza_shop, lza_save; detectors lza_dialog, lza_overworld, lza_arrow; reading lza_facing. - Every command appends a JSON line to <outbox>/<batch>.steps.jsonl: command, args, times, ok/error, game detector state before and after, and the end frame. The .out journal is unchanged. - devtools/lab/cfr_steps_to_story.py turns a steps file into draft story table rows, collapsing raw input runs into one RAW line to review. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013VUubhHeYSMGSSDXZkKZss
It keeps its developer quality label: no story step has run on a console yet. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013VUubhHeYSMGSSDXZkKZss
Story battles show no Run prompt, so fight_battle() never saw them start and only pressed B for a minute. lza_battle now attacks with TrainerBattleState until the dialog after the battle shows. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013VUubhHeYSMGSSDXZkKZss
AnyDialogDetector lives in the commands file; include VideoFeed for the snapshot. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013VUubhHeYSMGSSDXZkKZss
dayfine
added a commit
that referenced
this pull request
Nov 9, 2026
… Betas fight_battle_in_progress() attacks in a battle that is already on screen until the post-battle dialog shows; story battles have no Run prompt for fight_battle() to start on. AutoStory moves from Developer Tools to the Public Betas section of the program list. Moved here from the Command File Runner PR (#287), which keeps only the CFR side. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013VUubhHeYSMGSSDXZkKZss
Owner
Author
|
Replaced by #418 (ported onto the new PLZA AutoStory chain, base plza/cfr-base-v2). |
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.
Depends on #282 and #62
Base:
plza/cfr-base, a merge-only branch of #282 + #62 +lab/main(the Command File Runner lives only onlab/main), so this diff shows only this change. Review commit by commit.The Command File Runner gains game-level commands, so a person or agent playing Legends Z-A by hand through the lab channel records story steps as actions rather than raw presses, and a converter turns that recording into draft story table rows.
register_command_file_command()now takes a kind (DRIVES_CONSOLE/READS_STREAM); newregister_command_file_reading()for values such as a heading. Games register from their panel list's constructor, so the Switch module includes no game headers. Unknown commands keep today's error.type TEXT: types a name on the system keyboard with Switch: read the on-screen keyboard and type on it with feedback #62'stype_on_system_keyboard()(clearing the field first), presses +, and fails unless the keyboard closed. Newkeyboarddetector.lza_talk [A|B],lza_talk_to,lza_pick N,lza_move ANGLE|ahead MS,lza_face ANGLE [TOL],lza_fly PLACE [LANG],lza_battle,lza_heal/lza_shop ITEM...(fail as not implemented),lza_save; detectorslza_dialog,lza_overworld,lza_arrow; readinglza_facing(detect lza_facing).<outbox>/<batch>.steps.jsonl: command, args, UTC start/end, duration,okorerror, the game detectors' state before and after (omitted when no game registered any), and the end frame (<batch>_step_L<n>.jpg). The.outjournal is unchanged.devtools/lab/cfr_steps_to_story.py(indevtools/labbesidecfrun.shso it changes with the commands and table helpers): one step per action, a row per save,story_moves()entries, raw press/stick/dpad runs collapsed into oneRAW n inputsline marked REVIEW.CommandFileSessionnow carries aProgramEnvironment(the lab channel builds one for the stopped program) becausefight_battle()needs it.dialog_choice_box()(solza_arrowuses the actions' own box) andfight_battle_in_progress(), whichlza_battle nowcalls.Testing
SerialProgramsTestson the touched suites:PokemonLZA::AutoStory Commands(argument parsing for every command, registry lookup and kinds),NintendoSwitch::CommandFileRunner(incl.typearguments),NintendoSwitch::CommandFileRecorder(line format),PokemonLZA::AutoStory: 58 passed, 0 failed.devtools/lab/test_cfr_steps_to_story.py: 8 passed, including a sample steps file against its reviewed draft.🤖 Generated with Claude Code
https://claude.ai/code/session_013VUubhHeYSMGSSDXZkKZss