Before uploading any images taken from Nintendo 3DS games, please take a moment to read this message.
Got a spare minute? The Archives need some love. See the to-do list to find a way to help.
If you upload a new image make sure you name and categorize it properly. If in doubt, ask an admin or see our FAQ page.

Difference between revisions of "File:PokéRadarShinyProbability IV.png"

From Bulbagarden Archives
Jump to navigationJump to search
Line 1: Line 1:
 
== Summary ==
 
== Summary ==
 
Accurate formula for Poké Radar Shiny Probability in Generation IV; uses minimal constants and properly incorporates in-game roundoff error.
 
Accurate formula for Poké Radar Shiny Probability in Generation IV; uses minimal constants and properly incorporates in-game roundoff error.
 
Note: floor(x + 1) is equivalent to ceil(x) as long as x is never an integer, which it isn't.
 
   
 
Sources: [http://tccphreak.shiny-clique.net/debugger/addresses.htm Chain shiny routine (assembly)],
 
Sources: [http://tccphreak.shiny-clique.net/debugger/addresses.htm Chain shiny routine (assembly)],
Line 8: Line 6:
 
[http://www.smogon.com/forums/threads/past-gen-rng-research.61090/page-35#post-4031190 RNG Research post] by Kaphotics
 
[http://www.smogon.com/forums/threads/past-gen-rng-research.61090/page-35#post-4031190 RNG Research post] by Kaphotics
   
 
Note: The formulas given by the above sources use floor(x + 1) instead of ceil(x), but the two are identical as long as x is never an integer, which it isn't.
The previous formula on the Poké Radar page did not account for the floor function, which made it inaccurate for several early values.
 
  +
 
The previous formula on the Poké Radar page did not account for the floor/ceiling function, which made it inaccurate for several early values.
   
 
== Licensing ==
 
== Licensing ==

Revision as of 03:32, 30 January 2014

Summary

Accurate formula for Poké Radar Shiny Probability in Generation IV; uses minimal constants and properly incorporates in-game roundoff error.

Sources: Chain shiny routine (assembly), derived math with un-condensed formula at the end, and this RNG Research post by Kaphotics

Note: The formulas given by the above sources use floor(x + 1) instead of ceil(x), but the two are identical as long as x is never an integer, which it isn't.

The previous formula on the Poké Radar page did not account for the floor/ceiling function, which made it inaccurate for several early values.

Licensing

This image is copyrighted or is a registered trademark. The contributor claims this to be fair use. Tag-copyright-yellow.png

File history

Click on a date/time to view the file as it appeared at that time.

Date/TimeThumbnailDimensionsUserComment
current05:56, 23 June 2015Thumbnail for version as of 05:56, 23 June 2015108 × 51 (820 bytes)Abcboy (talk | contribs)
17:16, 11 January 2014Thumbnail for version as of 17:16, 11 January 2014167 × 72 (3 KB)Blueapple128 (talk | contribs)Accurate formula for Poké Radar Shiny Probability in Generation IV; uses minimal constants and properly incorporates in-game roundoff error

There are no pages that use this file.

ADVERTISEMENT