Thread: RNG Research
View Single Post
Old Oct 18th, 2012, 12:29:20 PM   #988
chiizu
PPPPPPPPPPPPPPPPPPPPPPPPP RNG
is a Programmeris a Pokémon Researcher
 
chiizu's Avatar
 
Join Date: Nov 2010
Posts: 374
Default

Quote:
Originally Posted by Fat chiizu View Post
The encounter slot calculation in the post above is incorrect. The correct calculation is
Code:
(u32 >> 16) / 0x290
Here is a corner case to demonstrate:
Code:
Seed: BEE3257E2A8565C9
Frame 44 Grass/Cave Encounter
Wrong ESV:    ((B34F765F546EFDAC >> 32) * 0x64) >> 32 = 70 (slot 5)
Correct ESV:  (B34F765F546EFDAC >> 48) / 0x290 = 69 (slot 4)
RNG Reporter has this implemented correctly already (since it's essentially the same as DPPt).
Aaaaand now I have a seed going the other way. This one is from White 2, though.

((e671ff8fc093a8a9 >> 32) * 100) >> 32 = 90 (slot 8 : correct)
(e671ff8fc093a8a9 >> 48) / 0x290 = 89 (slot 7 : wrong)

Did the ESV calculation change from b1w1 to b2w2, or are neither of these correct?
__________________
RNG Abuse for Mac Users: PPRNG 1.15.0
chiizu is offline   Reply With Quote