Skip to content

Home living dex - #1206

Merged
Mysticial merged 20 commits into
PokemonAutomation:mainfrom
Dalton-V:home-living-dex
May 8, 2026
Merged

Home living dex#1206
Mysticial merged 20 commits into
PokemonAutomation:mainfrom
Dalton-V:home-living-dex

Conversation

@Dalton-V

@Dalton-V Dalton-V commented Apr 23, 2026

Copy link
Copy Markdown
Member

New program for sorting a living dex.

This shares a lot of code with the normal box sorter. They could probably get combined in the future. Currently the setup for the user is too different. Hopeful that a separate program makes them read the wiki

Depending on the json should cover most of PokemonAutomation/ComputerControl#210

Tasks remaining:

@Dalton-V
Dalton-V marked this pull request as ready for review May 3, 2026 21:55

@pifopi pifopi left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Quickly went through it ! Thanks for your PR

Comment thread SerialPrograms/Source/PokemonHome/Programs/PokemonHome_BoxNavigation.cpp Outdated
Comment thread SerialPrograms/Source/PokemonHome/Programs/PokemonHome_BoxNavigation.cpp Outdated
Comment thread SerialPrograms/Source/PokemonHome/Programs/PokemonHome_BoxNavigation.cpp Outdated
Comment thread SerialPrograms/cmake/SourceFiles.cmake Outdated
, VIDEO_DELAY(
"<b>Capture Card Delay:</b>",
LockMode::LOCK_WHILE_RUNNING,
"400 ms"

@Mysticial Mysticial May 8, 2026

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do you need this option? No other program has ever needed it.

bool go_to_first_slot(
SingleSwitchProgramEnvironment& env,
ProControllerContext& context,
Milliseconds VIDEO_DELAY

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh ugh... this is where you use it. I guess this is just carry over what from the original box sorter had.

I don't block the PR here, but what I'd do is:

  1. Choose the target location.
  2. Read your current location.
  3. Blindly move from current to target using fast button presses.
  4. Use inference to detect when the cursor reaches the destination.

The blind sequence in #3 would be wrapped with the run_until() in #4. And if you fail to reach the target after the moves are complete + a long grace period (like 5 seconds?), go back to #2 and try again. Thus a self-correcting algorithm that will run as fast as possible without caring about video delay.

@Mysticial
Mysticial merged commit c0da561 into PokemonAutomation:main May 8, 2026
7 checks passed
@Dalton-V
Dalton-V deleted the home-living-dex branch June 17, 2026 00:51
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.

3 participants