Jump to content

CP / Height / Weight Calculations


Recommended Posts

  • 1 year later...
Posted (edited)

Hello

I wanted to know what measurements PkHex is using for SwSh? I assumed PkHex automatically added the weight/height when you are genning a Pokemon, but I can see now that is not the case. I opened up a legitimate shiny Rilllaboom, which I obtained by breeding. PkHex says it's height is 114, and weighs 86. I'm thinking the weighting measures might go by kilos, as Serebii has Rilaboom as 90 kilos. Not sure what the height measures may be.

 

I just noticed something very important. I am viewing all the eggs I have bred of the same specie. They are all different in height and weight. Is this due to the fact that the Rillaboom parents I used, when gen with incorrect height and weight? Or is this an error on PkHex?

Edited by Iz.
Link to post
Share on other sites
  • 3 weeks later...
On 11/18/2018 at 4:23 PM, Kaphotics said:

PKHeX is programmed in c#; the games are not. There are certain calculations that are done using floating point which end up with different results (between the two programming languages):

xROa6nd.png

Until a workaround is found, there may be some inaccuracy in the calculations (+/- 1 or ~0.0001)

Maybe you could create a table with the right (expected) values and then have PKHEX look for the right value using the approximate result from C#. Something like a dictionary for heights and weights.

Link to post
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...