Jump to content

PKHeX Square Shiny


pandie

Recommended Posts

  • theSLAYER changed the title to PKHeX Square Shiny

Fellas, there no such thing as an Ultra Shiny.
Square shinies aren't even that rare for wild encounters, there is a 15/65536 chance the shiny you get from wild encounters is not a square shiny.

65520/65536-> forced shiny (squares)
15/65536 -> already shiny (stars)
1/65536 -> already shiny (squares)

Use batch editor in PKHeX. ".PID=$shiny0" noquotes.

Link to comment
Share on other sites

  • 3 months later...
  • 2 months later...

So does the batch editor hang up alot when using this batch line? It has been sitting at 0% on the progress bar for 15 minutes now.

Edit: It is taking a good chuck of my CPU capacity. Similar to high frame RNG reports. However, there is no sign of completion after an 20 minutes and batch editor crashes.

I have attached the file trying to make square shiny.

009 - Blastoise - 1DA69EFC2B1A.pk8

Edited by 8 Bit-Wolf
Add references
Link to comment
Share on other sites

Yes I used .PID=$shiny0. I have tried on 1 or a full box (of that blastoise). it hangs up and will eat up to 40% Thread ripper 1900x

Add: It works fine for some Pks and will hang on some others.

Edited by 8 Bit-Wolf
Link to comment
Share on other sites

PKHeX tries to keep the ability bits from the original PID (lowest bit in each 16bit half of the PID):

image.png

In order to get a square shiny, the Xor has to be 0; since we keep both low bits as-is, the above PID has 1 and 0 for each bit; xor is always 1 -- so the shinyxor will never be 0 with this restriction.

 

I'll need to figure out how to relax this restriction -- PID ability is a little complex:


                if (GenNumber > 5 || Format > 5)
                    return -1;

                if (Version == (int) GameVersion.CXD)
                    return Array.IndexOf(PersonalInfo.Abilities, Ability);
                return (int)((Gen5 ? PID >> 16 : PID) & 1);

 

  • Like 1
Link to comment
Share on other sites

28 minutes ago, Loopy said:

I always press shift + click on the shiny button and it transforms into square shiny

maybe it's the latest version or something, but that causes that particular Blastoise to freeze.
(with any other entry that didn't batch edit for me, it causes a freeze too. So this isn't an isolated incident)

Kaphotics also already kindly explained the issue, so I can only assume it's being worked on (since we know what causes it now)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...