Jump to content

Recommended Posts

Posted

Hello all,

Is there a way to use PKHeX to find the contents of a pk9 file? I have a folder of files that were created before the most recent update, and now they're pulling an "Invalid: Nickname: Expected Trash Bytes" error. I don't know the exact parameters that were used to make the pk9 files; for example, I've attached one for a shiny Oshawott egg, but I don't know what the stats were, what ball it was in, etc. Is there a way to find that information out?

Thank you in advance!

oshawott.pk9

Posted

If you open it in PKHeX, it will show you all the details for ball and stats. Use the encounter database when generating Pokemon, as the program will set everything up for you from the template. 

When eggs are created, the game sets the nickname field to that of the species' name, then it sets it to "Egg". Due to how the game overwrites strings, it does not clear the unused characters that are reserved, so the longer name (in this case, Oshawott) is not entirely overwritten by the new name (Egg). The leftover unused characters are called "trash bytes", and since your file dies not match the leftover values expected in this situation, it is flagged by the legality checker.

The trash byte viewer/editor is accessible by control-clicking the text box responsible for the name you would like to inspect.

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