Jump to content

Is There a Guide to Create a PID from Scratch? (LEARNED + GUIDE: 04/04/2011)


Recommended Posts

Posted (edited)

I've been curious. Upon reading the guide that Acanto posted, I have been interested in other formulas used to generating or creating PIDs. Manually creating a PID will be fun :wink:

Edit 1:

I finally created my own PID for a Pokemon!!! I will create a video soon... This .txt will explain everything (Took it off, read Edit 2).

---------------------------------------------------------------------------------------------------------------------------------

Edit 2 (04/04/2011): The Guide

Now... creating your own PID is freaking awesome. I find it very fun for some reason. Maybe it's because I love math. Anyways, let's get started.

All you really need is your Trainer ID and your Secret ID and a tool to convert a Decimal to Hexadecimal and Binary. I recommend this website.

Here is the set of data that will be given to you;

Pokemon: Bisharp
Ability 1: Defiant
Gender: Male
Trainer ID: 61445
Secret ID: 12345

This is all you need. You can change the Pokemon, Ability and/or gender to your liking. It really doesn't matter. You just need your TID and SID to make it yours. So let's start...

First you will have to convert your TID and SID to Binary code. Use the link I gave you which is this one. Place your TID in the Decimal box and you should get the Binary on the box above. Binary's only consists of 0's and 1's.

TID: 61445 ---> 1111000000000101 (16 bits)

SID: 12345 ---> 11000000111001 (14 bits)

When you convert you're TID or SID it has to be exactly 16 bits. If it's lower then 16 bits then just add zeros in front of the row until it equals 16 bits.

TID: 61445 ---> 1111000000000101 (16 bits)

SID: 12345 ---> 0011000000111001 (16 bits)

So now we got the TID & SID right? Let's get Bisharp's Ability and Gender values.

When we convert a Pokemon's PID to Hexadecimal the format will be AAAXAAYY

AAAX will be the high ID

AAYY will be the low ID

HID = AAAX

LID = AAYY

HID = ????????????????

LID = ????????????????

TID = 1111000000000101

SID = 0011000000111001

For example: Tropius' PID is 4294934527. Converted to Hexadecimal will be FFFF7FFF. The Hexadecimal match's the format I mentioned...

FFFF7FFF

AAAXAAYY

A = Shininess

X = Ability

Y = Gender

Since we do not have the A values we will be figuring out the X and the Y values.

Bisharp's current Ability is Defiant. Now... Bisharp can have two Abilities. Defiant and Inner Focus.

Ability 1 = Defiant

Ability 2 = Inner Focus

You can check your Pokemon's Abilities here.

Always! If you have Ability 1 then the last bit of the Binary code will be 0. If you have Ability 2 then the last bit of the Binary code will be 1. Confused?

For example: Whimsicott's PID is 3009031055. Converted will be B35A2B8F in Hexadecimal. Remember...

A = Shininess
X = Ability
Y = Gender

AAA X AAYY

B35 A 2B8F

X = A

Now we will type X (which is A) in the Hexadecimal box and we will get 1010 in the Binary box. The last bit of the Binary code is 0 which is Ability 1. If the Binary code was (1011) then the Pokemon will have Ability 2.

Anyways, the last bit of the Binary code is 0 which means Whimsicott has Ability 1 which is Prankster.

NOTE:

  • If the Pokemon has only 1 Ability then the X value in AAAXAYY can be anything from 1-9 or A-F. The last bit of the Binary code can be ether 1 or 0.

Since Bisharp has Ability 1 we know that the last bit of the Binary is 0 thus breaking down our choices of choosing X. Now what Hexadecimal can create 0 as the last bit of a Binary? All even numbers. Here's a list:

Hexadecimal = Binary

---------------------------------------------------------

0 = 0 Good for Bisharp (Ability 1)

1 = 1

2 = 10 Good for Bisharp (Ability 1)

3 = 11

4 = 100 Good for Bisharp (Ability 1)

5 = 101

6 = 110 Good for Bisharp (Ability 1)

7 = 111

8 = 1000 Good for Bisharp (Ability 1)

9 = 1001

A = 1010 Good for Bisharp (Ability 1)

B = 1011

C = 1100 Good for Bisharp (Ability 1)

D = 1101

E = 1110 Good for Bisharp (Ability 1)

F = 1111

So we are going to pick E to replace X. So now we have...

AAAEAAYY

AAAE in Binary will be ???? ???? ???? 1110

We have the Ability, TID and the SID.

HID = ???? ???? ???? 1110

LID = ???? ???? ???? ????

TID = 1111000000000101

SID = 0011000000111001

Now its time to get the Gender. Do we want a girl or a boy? I want a boy. Bisharp's Gender rate is 50% Male and 50% Female. Let me bring up a little table up that I took from Acanto's thread.

Here’s a little chart of gender ratios and their corresponding breakpoint.

87.5% Male 12.5% Female – 32

75% Male 25% Female – 64

50% Male 50% Female – 128

25% Male 75% Female – 192

12.5% Male 87.5% Female – 224

This means, if I want to make Bisharp a Male I would have to find a Decimal that is 127 - 255. If I want a Female I would have to find a Decimal that is 0-126. Anyways, we want a Male. So let's pick... 211. 211 will be the Decimal and in Hexadecimal it will be D3. Boom! We found our Y values in AAAXAAYY. So now it's

AAAEAAD3

AAD3 in Binary will be ???? ???? 1101 0011

We now have the Ability, Gender, TID & SID.

HID = ???? ???? ???? 1110

LID = ???? ???? 1101 0011

TID = 1111000000000101

SID = 0011000000111001

Do you see the question marks above? Those question marks (which are the Binary of A in AAAXAAYY), can be in any order of 1's and 0's you want it to be. Let's do it.

HID = 1101 0001 0000 1110

LID = 0010 0000 1101 0011

TID = 1111 0000 0000 0101

SID = 0011 0000 0011 1001

If that's the case then...

AAAX = D10E

and...

AAYY = 20D3.

Combined together will be D10E20D3 in Hexadecimal and 3507364051 in Decimal. 3507364051 will be Bisharp's PID. But let's say you want a shiny Bisharp...

HID = ???? ???? ???? 1110

LID = ???? ???? 1101 0011

TID = 1111000000000101

SID = 0011000000111001

The first column of these four rows of Binary is...

HID = ?

LID = ?

TID = 1

SID = 0

You will need to add these bits together to make an even number. Let's put 1 for the HID and 1 for the LID...

HID = 1

LID = 1

TID = 1

SID = 0

1 + 1 + 1 + 0 = 3 which is an odd number. That will not work. Let's try to put 1 for HID and 0 for LID...

HID = 1

LID = 0

TID = 1

SID = 0

1 + 0 + 1 + 0 = 2 which is an even number. They'll work. Make sure to keep track of your calculations under the Binary's added.

HID = 1

LID = 0

TID = 1

SID = 0

--- = 2

The whole bottom row, up to the 13th column, has to be all even numbers if you want your Pokemon to be shiny. Anyways, let's move on to the 2nd column...

HID = 1?

LID = 0?

TID = 11

SID = 00

--- = 2

What do you think huh? It's the same. But try to mix the numbers up a little bit. The HID will be 0 and the LID will be 1...

HID = 10

LID = 01

TID = 11

SID = 00

--- = 22

Lets go all the way and do all the columns since I'm guessing you get the point now.

HID = 1000 1111 1110 1110

LID = 0100 1111 1101 0011

TID = 1111 0000 0000 0101

SID = 0011 0000 0011 1001

---- = 2222 2222 2222 2223

Remember, columns 14th to 16th do not have to be even. They can be any combination of 0's and 1's. So if column 16th is equal to three then consider the whole bottom row is even. Let's make an even better example.

HID = 1000 1111 1110 1110

LID = 0100 1111 1101 0011

TID = 1111 0000 0000 0101

SID = 0011 0000 0011 1001

--- = 2222 2222 2222 2223

HID = 1000 1111 1110 1abc
LID = 0100 1111 1101 0def
TID = 1111 0000 0000 0ghk
SID = 0011 0000 0011 1mnp
--- = 2222 2222 2222 2xxx

Those 3 xxx's can be 000 thru 111, which is 0-7. A total of 8 combinations.

Everything is all even! Meaning...

AAAX = 1000 1111 1110 1110 ----> 8FEE

and...

AAYY = 0100 1111 1101 0011----> 4FD3

AAAXAAYY

8FEE4FD3

This means that the Bisharp's shiny PID will be 2414759891.

That's it for this guide. I had plenty of fun making it! Please, if there is something else that has to do with a Gen V PID please say so by posting about it in this thread. I will be more then happy to increase my knowledge about it :wink: Also, if there's something I missed out in this guide that you think will be crucial to learn then say so in this thread.

Credits:

PopEyeJR

Acanto (My Inspiration)

kaphotics (Cleared up the 14th - 16th column 'rules'

Edited by PopEyeJR
LEARNED by myself; Added more detail to the edit
Posted

The furthest 3 right columns of the combided HPID^LPID^TID^SID is not used in the shiny calculation.

HID = 1000 1111 1110 1abc
LID = 0100 1111 1101 0def
TID = 1111 0000 0000 0ghk
SID = 0011 0000 0011 1mnp
--- = [b][u][i]2222 2222 2222 2[/i][/u][/b]xxx

Those 3 xxx's can be 000 thru 111, which is 0-7. A total of 8 combinations.

There's a total of 16 binary digits and 4 XOR pieces (16^4 = 65536), with 8 different xxx combinations.

8/65536 is 1/8192, which is the shiny rate. 

The bolded/underlined converted to decimal must be = 0.

Those furthest right columns don't have to be 0.

Posted

Awesome! Thanks for the guide! Had a lot of fun making a PID. I think I'll do it this way always now~

I'm liking that PIDs aren't tied to nature and IV's anymore. Makes for less headaches (so far). Anyway, thanks again. ^_^

Posted
Awesome! Thanks for the guide! Had a lot of fun making a PID. I think I'll do it this way always now~

I'm liking that PIDs aren't tied to nature and IV's anymore. Makes for less headaches (so far). Anyway, thanks again. ^_^

Glad you liked it xD

  • 2 weeks later...
Posted

How do you create a PID including the new dreamworld abilities? I understand there is a guide here but that only explains it if it is the second of two abilities. If it is the 3rd ability, say a pickpocket Shiftry (Useless example), how would one go about creating the HID?

Posted
How do you create a PID including the new dreamworld abilities? I understand there is a guide here but that only explains it if it is the second of two abilities. If it is the 3rd ability, say a pickpocket Shiftry (Useless example), how would one go about creating the HID?

The PID wiill be the same as any other PID. If the Pokemon is using the DW Ability then the last bit of the Binary Code can be ether 0 or 1. It does not matter. If you want, I can give you my legit Kangaskhan with it's DW Ability so you can test it out...

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...