Skip to content

BDSP starter RNG manipulation - #1366

Draft
theastrogoth wants to merge 10 commits into
PokemonAutomation:mainfrom
theastrogoth:blinks
Draft

BDSP starter RNG manipulation#1366
theastrogoth wants to merge 10 commits into
PokemonAutomation:mainfrom
theastrogoth:blinks

Conversation

@theastrogoth

Copy link
Copy Markdown
Contributor

Blink detection, RNG state recovery, and a starter RNG program for BDSP.

Lincoln's RNG docs and Project_Xs were really helpful for getting started with state recovery

AI tools were used for troubleshooting and tidying up my ugly first drafts

@theastrogoth
theastrogoth marked this pull request as draft August 8, 2026 19:13
@@ -0,0 +1,123 @@
/* Xorshift128

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.

This different from Xoroshiro right? (which we already have for SwSh RNG)

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.

Yeah, the "ro" is for rotate, which doesn't happen in regular Xorshift

@Mysticial

Copy link
Copy Markdown
Collaborator

This one is definitely going in in multiple PRs. haha

@theastrogoth theastrogoth mentioned this pull request Aug 9, 2026
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