Skip to content

PokemonFRLG BoxOrganization helper methods - #1806

Open
Dalton-V wants to merge 1 commit into
PokemonAutomation:mainfrom
Dalton-V:frlg-box-organization
Open

Dalton-V wants to merge 1 commit into
PokemonAutomation:mainfrom
Dalton-V:frlg-box-organization

Conversation

@Dalton-V

@Dalton-V Dalton-V commented Nov 1, 2026 •

Copy link
Copy Markdown
Member

Splitting the FRLG Box Sorter PR - 8

Helper methods for box navigation, sorting, and efficient swapping.

While these methods could live in the box sorter programs I placed them here for easier testing. (Large testing file coming later). Some of these methods will be reused in the Living Dex Sorter as well.

move_cursor_to() similar to the other move cursor methods in Home and LZA with slight tweaks for FRLG controls and detection of FRLG specific cursor "Selection Hand"

wait_for_summary_animation() when scrolling through the summary page the pokemon "bounces" for a moment, wait for that to finish to know when to attempt the next summary read.

scan_box_summaries() after reading each cell in a box loop through the summary screens in reverse ending back at the first occupied cell.

make_box_sorting_plan() More efficient than the current insertion sort that we use in the other box sorters. This creates a chain as swapping in FRLG the pokemon is set down and picked up at the same time. Meaning we are always holding a pokemon instead of them swapping locations instantly.

scan_box_data() unlike Home where we can detect what cells are occupied from the sprites of the pokemon in the box we detect occupied by hovering over each cell and seeing if there are colored pixels for the name/level of each cell. Loop through each cell and record the available information. If extra info is needed (shiny) also open the summary page and loop through that.

execute_box_sorting_plan() loop through the chains created in 'make_box_sorting_plan()'

@Dalton-V
Dalton-V force-pushed the frlg-box-organization branch from ad2c90c to 290e545 Compare November 2, 2026 02:08
@Dalton-V
Dalton-V force-pushed the frlg-box-organization branch from 290e545 to 300fa2f Compare November 2, 2026 02:13
@Dalton-V
Dalton-V marked this pull request as ready for review November 2, 2026 02:58
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