Skip to content

FRLG: search static/gift/starter RNG targets in the program - #181

Draft
dayfine wants to merge 6 commits into
mainfrom
frlg/rng-target-search
Draft

dayfine wants to merge 6 commits into
mainfrom
frlg/rng-target-search

Conversation

@dayfine

@dayfine dayfine commented Nov 2, 2026

Copy link
Copy Markdown
Owner

Picking an FRLG static/gift/starter RNG target still means running Ten Lines by hand, so AutoStory can't choose its own. This adds search_rng_targets() next to the RNG programs. It works like Ten Lines' Searcher and Initial Seed tabs: it lists the Method 1 results that pass nature, IV, gender, ability and shiny filters. Each result comes with the initial seed from the RngSeeds tables that reaches it in the fewest advances, picked the way SeedsDatabase::find_seed() picks it. Shiny is checked against a set of weighted SID candidates (from SID Helper), and rank_rng_targets() sorts by expected wait per shiny. A target that comes out with the right nature and IVs but not shiny rules out the SIDs it was shiny for.

Testing: the new PokemonFRLG::RngTargetSearch unit tests reproduce 50 Ten Lines results for LeafGreen (English) on Switch: PID, IVs, shiny type, Hidden Power, seed and advances. They also check that the search returns them in order, and that the IV-based and shiny-PID searches agree.

🤖 Generated with Claude Code

https://claude.ai/code/session_01AKYzhrMnPK61XHWEch4a6E

Mirrors the Ten Lines Searcher + Initial Seed tabs for FRLG on Switch: lists
the Method 1 results that pass nature/IV/gender/ability/shiny filters, each
with the initial seed (from the RngSeeds tables, as the RNG programs pick it)
that reaches it in the fewest advances. Shiny is checked against a set of
weighted SID candidates, and targets can be ranked by expected wait per shiny.

Unit tests reproduce 50 Ten Lines results for LeafGreen (English).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AKYzhrMnPK61XHWEch4a6E
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AKYzhrMnPK61XHWEch4a6E
dayfine and others added 4 commits November 4, 2026 07:00
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AKYzhrMnPK61XHWEch4a6E
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AKYzhrMnPK61XHWEch4a6E
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AKYzhrMnPK61XHWEch4a6E
Conflict in the registration lists (SerialPrograms/Source/VideoGames/PokemonFRLG/PokemonFRLG_Tests.cpp ): kept both sides.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013VUubhHeYSMGSSDXZkKZss
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