Skip to content

FRLG AutoStory: plan around a trainer who walked up - #599

Draft
dayfine wants to merge 4 commits into
frlg/fly-to-centerfrom
frlg/moved-trainers
Draft

dayfine wants to merge 4 commits into
frlg/fly-to-centerfrom
frlg/moved-trainers

Conversation

@dayfine

@dayfine dayfine commented Nov 16, 2026

Copy link
Copy Markdown
Owner

Depends on #586

On console B (2026-11-15, 17.03) Takashi walked from (10, 2) to (10, 4) when he saw the player on (10, 5), and stayed there after the battle; below_giovanni still planned north through him, and the walker took the bumped "north 2 (open)" as walked, so the checkpoint failed a leg later on "moved nothing twice".

  • After any trainer_line / trainer_wait step, the trainer who saw the player is recorded where he stops (beside the player, toward his map tile, from the pokefirered object's sight and facing) as a trainer_at: run flag, so every later route and re-plan in the run plans around his new tile and over the one he left. The program, the row sim and the plan-golden walk share one function (PokemonFRLG_AutoStoryLineTrainer). A wanderer or two trainers seeing the tile leave the maps unchanged.
  • The walker kept the hold's movement only when no trainer watch followed it; across a trainer's sight a hold that moved nothing was taken as walked. It now keeps the movement, so a blocked leg is caught on that leg.

Testing: new OverworldRecovery case (a hold in a trainer's sight that moved nothing) and a 17.03 row on the overworld sim (Viridian suite); 17.03's clean-run fault sweep comes off KNOWN_FAILING. The row sim and the fault sweep now carry run flags from step to step as the program does.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant