Skip to content

add BDSP seed finder programs - #1429

Open
theastrogoth wants to merge 2 commits into
PokemonAutomation:mainfrom
theastrogoth:bdsp-seed-finders
Open

add BDSP seed finder programs#1429
theastrogoth wants to merge 2 commits into
PokemonAutomation:mainfrom
theastrogoth:bdsp-seed-finders

Conversation

@theastrogoth

Copy link
Copy Markdown
Contributor

Adds two utility programs for manual or semi-manual RNG manip

  • IntroSeedFinder (for determining TID and SID, needed for manipping eggs)
  • BedroomSeedFinder (for general purpose seed finding, can be used in combination with later programs)

STATE_DISPLAY.reset();
COLLECTION_DISPLAY.reset();

double fps = env.console.video().fps_source();

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.

ha! First time this gets used in a program!


try{
subcontext.wait_until(std::min(deadline, current_time() + 1s));
}catch (OperationCancelledException&){}

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 to catch this and rethrow the exception? context automatically inherits the exception that subcontext.wait_until() will throw when its cancelled.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Oops. I was misunderstanding how that inheritance works

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.

2 participants