Skip to content

BBQ Farmer: save local screenshots for failed quest attempts - #3

Open
dayfine wants to merge 5 commits into
bbq/diagnostics-and-baselinefrom
bbq/failure-screenshots
Open

dayfine wants to merge 5 commits into
bbq/diagnostics-and-baselinefrom
bbq/failure-screenshots

Conversation

@dayfine

@dayfine dayfine commented Oct 22, 2026 •

Copy link
Copy Markdown
Owner

Depends on #2 (BBQ logs), which depends on #51 (PokemonAutomation#1754). Base: bbq/diagnostics-and-baseline; the diff shows only this change.

Part of PokemonAutomation/ComputerControl#263.

When a catch quest times out entering battle, or a quest is still on the board after an attempt, the logs say what failed but not what the screen showed. save_bbq_snapshot() saves the current frame at those two points to DEBUG_PATH()/BBQ/ as <timestamp>-<quest>-<reason>.png and logs where it went; unlike dump_image(), nothing is sent to telemetry. Two PokemonSV::BBQSnapshot tests in PokemonSV_BBQTests.cpp cover a save into a new folder and a save that cannot be written; the native BBQ runner passes 16 of 16.

🤖 Generated with Claude Code

https://claude.ai/code/session_01AKYzhrMnPK61XHWEch4a6E

When a catch quest times out entering battle, or a quest is still on
the panel after an attempt, the logs say what failed but not what the
screen showed.

Add save_bbq_snapshot(), which saves the current frame to
DEBUG_PATH()/BBQ/ as <timestamp>-<quest>-<reason>.png and logs a
"BBQ event=snapshot" line with the outcome. Unlike dump_image(), it
stays on the local machine and sends nothing to telemetry. Call it at
the battle-entry timeout and at failed quest verification.

Add PokemonSV::BBQSnapshot tests that save into a folder that does not
exist yet and check the file, path and log line, and that check a
save that cannot be written returns no path and logs saved=0.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AKYzhrMnPK61XHWEch4a6E
@dayfine
dayfine force-pushed the bbq/diagnostics-and-baseline branch from 7d24d5f to 7cf661b Compare October 28, 2026 08:08
@dayfine
dayfine force-pushed the bbq/failure-screenshots branch from 72099ba to cc69593 Compare October 28, 2026 08:08
@dayfine dayfine added farmer Farming programs game:sv Scarlet/Violet labels Nov 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

farmer Farming programs game:sv Scarlet/Violet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant