Is Anybody Researching Sun/Moon Shiny Chaining?

Discussion in '3DS - Games & Content' started by Scoreless Pine, Nov 27, 2016.

  1. Scoreless Pine
    OP

    Scoreless Pine Advanced Member

    Newcomer
    76
    6
    Nov 14, 2015
    United States
    People are saying it's a straight 1/512, has anybody been looking into the game's code to prove/disprove it?
     
  2. Falo

    Falo GBAtemp Regular

    Member
    253
    199
    Jul 22, 2012
    Gambia, The
    If chain is less then 5 -> Fixed 31 IV Count = 0
    If chain is less then 10 -> Fixed 31 IV Count = 1
    If chain is less then 20 -> Fixed 31 IV Count = 2
    If chain is less then 30 -> Fixed 31 IV Count = 3
    If chain is 30 or more -> Fixed 31 IV Count = 4

    If chain is less then 10 -> Hidden Ability Chance = 0%
    If chain is less then 20 -> Hidden Ability Chance = 5%
    If chain is less then 30 -> Hidden Ability Chance = 10%
    If chain is 30 or more -> Hidden Ability Chance = 15%

    About the shiny chance, well the code is not easy to read on this, but it does not affect the chance, it affects the try count.
    Everytime a pokemon is generated, there is a "Shiny try count", by default it's 0, so the functions gives up after 1 try.
    But somehow the chain count affects this try count, the min is 0, the max is 3.
    If i read the code correctly, then it starts after a chain of 70.

    Note: this means, it's the default 1/4096 for each try, if 3 trys it's 4/4096 -> 1/1024.
     
    Last edited by Falo, Nov 27, 2016
  3. Josephvb10

    Josephvb10 The Pokémon guy

    Member
    532
    384
    Aug 26, 2009
    Lumiose City
    Can you link the code? Or how to extract it from the romfs?
     
  4. Falo

    Falo GBAtemp Regular

    Member
    253
    199
    Jul 22, 2012
    Gambia, The
    It's in the Battle.cro, @ .text:0012AD94, the shiny try count value calculation is @ .text:00182BAC
    Use IDA Pro and a cro-loader to read the code.
     
    GilgameshArcher, Black ace and zoogie like this.
  5. escequi

    escequi GBAtemp Regular

    Member
    292
    52
    Apr 4, 2014
    Brazil
    Osasco, Sao Paulo
    By fixed 31 iv count you mean guaranteed right? So it can go higher than 4 31 ivs...
     
  6. shadowofdarkness

    shadowofdarkness GBAtemp Fan

    Member
    489
    160
    Apr 17, 2007
    Canada
    So if it's just "base rate checks"+"chain bonus checks"/4096 it should mean with a shiny charm which makes the "base rate" 3/4096 that at a chain of 70 it would start at 4/4096 and eventually get up to 6/4096 or about 1/683. I would be happy with that.

    I look forward to you figuring out when each of the next increases start in the chain.

    And nice to know that my 3IV shiny was to early for increased odds making my first ever full odds shiny.
     
  7. cosa

    cosa Newbie

    Newcomer
    2
    0
    Nov 27, 2016
    Burkina Faso
    Fixed.
     
  8. ut2k4master

    ut2k4master Lord Tourettes

    Member
    787
    345
    Feb 20, 2010
    Germany
    what about the first one?
     
  9. cosa

    cosa Newbie

    Newcomer
    2
    0
    Nov 27, 2016
    Burkina Faso
    Fix it yourself
     
  10. Ethevion

    Ethevion Wannabe Artist

    Member
    1,783
    802
    Sep 23, 2010
    Canada
    I thought 4 31 IVs was at 40 chain, if it's actually 30 it makes things so much easier for me.
     
  11. shadowofdarkness

    shadowofdarkness GBAtemp Fan

    Member
    489
    160
    Apr 17, 2007
    Canada
    I just found out the hard way that the chain only go to 255 then resets. I chained to 284 (sadly without getting a shiny) then just so I had something to show for it caught the last one.

    When I went to check the IVs I was shocked it was only 3IV then I realized why. it was a 8 bit counter up to max of 0xFF (255) and my chain minus that left me with 29 which is in the 3IV range.
     
  12. Rhnz

    Rhnz Member

    Newcomer
    11
    2
    Dec 5, 2016
    So 30 chains is the start where you can catch a 4IV pokemon?