User:Sherkel/RNG Notes: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
>Sherkel No edit summary |
>Sherkel No edit summary |
||
Line 19: | Line 19: | ||
Method H determines nature first (to account for Synchronize [https://github.com/Admiral-Fish/RNGReporter/blob/3afa1c6cdb14702b6de842b2766cf9e1b2e767eb/RNGReporter/Objects/FrameGenerator.cs#L3164 and the routine described here]), then conducts a "hunt" for a PID that matches it in the possible ones for the numbered method, then generates the two IV halfwords based on above |
Method H determines nature first (to account for Synchronize [https://github.com/Admiral-Fish/RNGReporter/blob/3afa1c6cdb14702b6de842b2766cf9e1b2e767eb/RNGReporter/Objects/FrameGenerator.cs#L3164 and the routine described here]), then conducts a "hunt" for a PID that matches it in the possible ones for the numbered method, then generates the two IV halfwords based on above |
||
How the hunt (also in Gen 4's Method J/K) works: [https://www.smogon.com/forums/threads/rng-manipulation-in-firered-leafgreen-wild-pok%C3%A9mon-supported-in-rng-reporter-9-93.62357/page-16#post-3807317 The game takes a seed and does (seed >> 16) % 0x19. Then it starts making PIDs and doing PID % 0x19 and it keeps making PIDs until it gets a match to that original (seed >> 16) % 0x19. |
|||
Method H is rarely H-1 as it's slow enough to fill up VCount |
|||
[https://www.smogon.com/forums/threads/rng-manipulation-in-firered-leafgreen-wild-pok%C3%A9mon-supported-in-rng-reporter-9-93.62357/page-16#post-3809232 In some maps, the LCG advances exactly twice per frame] |
|||
blocks of three 31s (0b11111 11111 11111) are bold |
blocks of three 31s (0b11111 11111 11111) are bold |
||
Line 41: | Line 47: | ||
| 5 || 1158F7DF || 1158 || 6536D3E1 |
| 5 || 1158F7DF || 1158 || 6536D3E1 |
||
|} |
|} |
||
(*) E1695F0A is Timid and |
(*) E1695F0A is Timid and is the PID of "otherwise frame" 48 |