Jump to content

Learning about Trash Bytes


Recommended Posts

Hello. I am fairly new to genning pokemon, and I attempting to make them look as legal as possible. 

I am very unclear on how trash bytes work. Do pretty much all pokemon you Gen from the encounter database in PkHex need their trash bytes fixed or altered?

I did a basic search of this forum for Trash Bytes, but a lot of it went over my head. Where would be a good place to start learning about how to correct Trash Bytes for pokemon you make with PkHex?

Thank you in advance for any help you can offer.

Link to comment
Share on other sites

string buffers are allocated and reused, meaning that the previous usage of that memory may have had data (not zeroes).

renaming a pokemon does not clear the buffer, so longer nicknames will remain hidden underneath the new nickname & terminator.

for generation 4+ encounters, you are fine grabbing from the database without modification; gens 1-3 do have trash bytes that are poorly understood, but don't matter when transferred to recent games (cleared/reset).

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