Jump to content

Regarding the Mersenne Twister look-up table in HG/SS


Recommended Posts

Hey folks, I'm doing some research on the Mersenne Twister RNG in Heartgold which is used for generating the PIDs of eggs. I'm just doing it to understand the logic which is used here.

Right now I'm stuck with this look-up table thing. I read that about 600 numbers are generated by the twister and that there's an address for the frame counter, but where are the values stored? I tried getting a Pokémon from the daycare and compare it's PID with the number I generated externally with the given initial seed and got a match, but I don't understand where this and the next values come from in the games. The value at the address of the initial seed changes to something else after an egg is generated. Also chanigng the initial seed on game start doesn't change the outcome, so it must be stored previously, only question is where?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...