Repository navigation
Fix early-game control path and Gen 1 memory layout - #13
Merged
Merged
Conversation
Keep strategy suggestions inside the policy chain, parse button tokens as whole words, and align party HP plus Route 1 map IDs with the pret layout. Co-authored-by: Jacobrakai <jacobyoby@users.noreply.github.com>
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.
Description
Fixes the bugs from the general review that change what the agent actually does: the strategy shortcut was skipping the policy chain, LLM replies containing
STARTwere parsed asA, party max HP and route map IDs did not match Pokemon Red, OCR dialog text was paired with the wrong region, and each LLM call was counted twice.Type of Change
Related Issues
None open.
Changes Made
step()no longer takes a raw strategy button beforeget_action(). Naming scripts, menu escape, and dialog handling run first. Overworld routing stays in_route_policy.STARTstaysSTARTand prose likeGO EASTis not buttonA.WAITis capped at 30 units.party_struct). Route 1 is map0x0C(0x0Bis unused).Testing
ruff checkis clean on the changed files.pytest -m "not slow": 203 passed. The slow/integration set that covers early-game and end-to-end flows also passed (159 tests in the focused run, including those files).Checklist