Jump to content

Recommended Posts

Posted

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.

Posted

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

  • 1 month later...
Posted
On 4/26/2024 at 3:03 PM, Kaphotics said:

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

How do we fix trash byte error? I got a Tepig from the encounter database and turn it into an egg. However, I keep getting the error "Invalid: Nickname: Expected Trash Byte: Tepig" and have no idea how to resolve it. Please help :(

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