<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://projectpokemon.org/wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Illithian</id>
	<title>ProjectPokemon Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://projectpokemon.org/wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Illithian"/>
	<link rel="alternate" type="text/html" href="https://projectpokemon.org/wiki/Special:Contributions/Illithian"/>
	<updated>2026-06-13T12:39:33Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.40.0</generator>
	<entry>
		<id>https://projectpokemon.org/wiki/index.php?title=Trash_Bytes&amp;diff=1670</id>
		<title>Trash Bytes</title>
		<link rel="alternate" type="text/html" href="https://projectpokemon.org/wiki/index.php?title=Trash_Bytes&amp;diff=1670"/>
		<updated>2009-06-21T05:46:47Z</updated>

		<summary type="html">&lt;p&gt;Illithian: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{incomplete | Platinum Trash Byte strings still need to be found for multiple languages and added to the article}}&lt;br /&gt;
== An Introduction to Trash Bytes ==&lt;br /&gt;
&#039;&#039;You will need a basic understanding of the hexadecimal number system and hexadecimal data of files before reading this article&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Trash bytes are data stored in a .pkm file. They serve no purpose at all ingame or for storing information. Their only use is for hack checking. Three types of pokemon have trash bytes. These are: Hatched Pokemon; Mystery Gift Pokemon; and Pal Park Pokemon. Each has different types of Trash Bytes and different methods for fixing them.&lt;br /&gt;
&lt;br /&gt;
The Pokemon Name trash bytes are stored between the offsets 0x48 and 0x5D. The Original Trainer trash bytes are stored between the offsets 0x68 and 0x77.&lt;br /&gt;
&lt;br /&gt;
You will also need to know about Terminators (not a movie reference). These terminators are two bytes in a pkm file within the Trash Byte areas. These bytes tell the game when the Pokemon Name or Original Trainer ends, and the Trash Bytes begin. The terminators are simply &amp;quot;FF FF&amp;quot; within the offsets previously mentioned.&lt;br /&gt;
&lt;br /&gt;
== Hatched Pokemon ==&lt;br /&gt;
The easiest of all trash bytes to correct. If you nickname a hatched pokemon and nickname it back to it&#039;s original species name, it will not have a nickname and the trash bytes will be corrected.&lt;br /&gt;
&lt;br /&gt;
== Mystery Gift Pokemon ==&lt;br /&gt;
For Reference:&lt;br /&gt;
&#039;&#039;The Pokemon Name trash bytes are stored between the offsets 0x48 and 0x5D. The Original Trainer trash bytes are stored between the offsets 0x68 and 0x77.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
After the terminator, these Trash Bytes are solid &amp;quot;FF&amp;quot;s.&lt;br /&gt;
&lt;br /&gt;
== Migrated via Pal Park ==&lt;br /&gt;
Migrated to English DP&lt;br /&gt;
&lt;br /&gt;
18 20 0D 02 42 00 00 00 00 00 00 00 48 A1 0C 02 E0 FF&lt;br /&gt;
&lt;br /&gt;
05 00 00 00 &amp;lt;random&amp;gt; &amp;lt;8E - 96&amp;gt; 27 02 &amp;lt;random&amp;gt; &amp;lt;D1 or D2&amp;gt; 26 02 E9 9A 06 02 00 00&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Migrated to Italian DP&lt;br /&gt;
&lt;br /&gt;
54 20 0D 02 42 00 00 00 00 00 00 00 84 A1 0C 02 E0 FF&lt;br /&gt;
&lt;br /&gt;
05 00 00 00 &amp;lt;random&amp;gt; &amp;lt;8E - 96&amp;gt; 27 02 &amp;lt;random&amp;gt; &amp;lt;D3 or D4&amp;gt; 26 02 25 9B 06 02 00 00&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Migrated to German DP&lt;br /&gt;
&lt;br /&gt;
74 20 0D 02 42 00 00 00 00 00 00 00 A4 A1 0C 02 E0 FF&lt;br /&gt;
&lt;br /&gt;
05 00 00 00 &amp;lt;random&amp;gt; &amp;lt;8E - 96&amp;gt; 27 02 &amp;lt;random&amp;gt; D4 26 02 45 9B 06 02 00 00&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Migrated to French DP&lt;br /&gt;
&lt;br /&gt;
74 20 0D 02 42 00 00 00 00 00 00 00 A4 A1 0C 02 E0 FF&lt;br /&gt;
&lt;br /&gt;
05 00 00 00 &amp;lt;random&amp;gt; &amp;lt;8E - 96&amp;gt; 27 02 &amp;lt;random&amp;gt; D5 26 02 45 9B 06 02 00 00&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Migrated to Spanish DP&lt;br /&gt;
&lt;br /&gt;
74 20 0D 02 42 00 00 00 00 00 00 00 A4 A1 0C 02 E0 FF&lt;br /&gt;
&lt;br /&gt;
05 00 00 00 &amp;lt;random&amp;gt; &amp;lt;8E - 96&amp;gt; 27 02 &amp;lt;random&amp;gt; &amp;lt;D5 or D6&amp;gt; 26 02 45 9B 06 02 00 00&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Migrated to Korean DP&lt;br /&gt;
&lt;br /&gt;
00 00 00 00 42 00 00 00 00 00 00 00 18 77 0C 02 E0 FF&lt;br /&gt;
&lt;br /&gt;
05 00 00 00 &amp;lt;random&amp;gt; &amp;lt;07 - 0B&amp;gt; 28 02 &amp;lt;random&amp;gt; 4B 27 02 B1 9F 06 02 00 00&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Migrated to Japanese DP&lt;br /&gt;
&lt;br /&gt;
00 00 00 00 B4 C5 0C 02 E0 FF 7F 02 42 00 00 00 00 00 &lt;br /&gt;
&lt;br /&gt;
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00*&lt;br /&gt;
*Yes. Solid 00s.&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
== How To Fix Trash Bytes ==&lt;br /&gt;
&lt;br /&gt;
Option 1: Download [http://www.casiopia.net/PokeMod/TrashBytes.zip this] zip file, extract it, and drag and drop a pkm file over it. This will automatically correct the Trash Bytes.&lt;br /&gt;
&lt;br /&gt;
Option 2: Use the guide below.&lt;br /&gt;
&lt;br /&gt;
== A Guide To Trash Bytes For Diamond and Pearl ==&lt;br /&gt;
&lt;br /&gt;
1.	Download the latest versions of: Pokesav, HxD (or any other hex editor) and Legal.exe&lt;br /&gt;
&lt;br /&gt;
2.	Create a pokémon that needs to be fixed with pokesav (for this tutorial use a Pal-Parked pokémon) into storage. Or download the pokémon I used for this tutorial http://www.mediafire.com/?mgzjjtyttn0&lt;br /&gt;
&lt;br /&gt;
3.	Make sure all aspects of the pokémon are legal (excluding trash bytes)&lt;br /&gt;
&lt;br /&gt;
4.	Once you have made the pokémon, save it and close pokesav&lt;br /&gt;
&lt;br /&gt;
5.	Check it with legal.exe. it should look like http://i335.photobucket.com/albums/m443/damio91/Aron_no_TB.jpg&lt;br /&gt;
&lt;br /&gt;
6.	Now, open the pokémon in a hex editor and find the bytes 0x48 through to 0x5D&lt;br /&gt;
&lt;br /&gt;
7.	Find the terminator (FF FF) and count how many bytes are after that until you reach 0x5D. If you are using my pokémon there should be 12 bytes&lt;br /&gt;
&lt;br /&gt;
8.	Now we will actually do some trash byte fixing. We will make it seem as if it got transferred to an English game. http://db.pokesav.org/main/?q=Trash-Bytes-Guide (other language strings here)&lt;br /&gt;
&lt;br /&gt;
Migrated to English DP&lt;br /&gt;
&lt;br /&gt;
18 20 0D 02 42 00 00 00 00 00 00 00 48 A1 0C 02 E0 FF&lt;br /&gt;
&lt;br /&gt;
05 00 00 00 &amp;lt;8E - 96&amp;gt; 27 02 26 02 E9 9A 06 02 00 00&lt;br /&gt;
&lt;br /&gt;
	The first string is if it was transferred into slot 1 of Pal-Park&lt;br /&gt;
	The second string is if it was transferred to any of slots 2-6 of Pal-Park&lt;br /&gt;
	We will use the first string to make it seem like we Pal-Parked it to slot 1&lt;br /&gt;
&lt;br /&gt;
9.	Count from the end of the first string, back however many bytes we counted before (in my case 12)&lt;br /&gt;
&lt;br /&gt;
10.	Now type over the bytes after the terminator with the bytes counted out (the last 12)&lt;br /&gt;
&lt;br /&gt;
11.	We have finished with the pokémon name trash bytes and will now move on to OT trash bytes.&lt;br /&gt;
&lt;br /&gt;
12.	Look through the bytes 0x68 to 0x77 and find the terminator again (FF FF).&lt;br /&gt;
&lt;br /&gt;
13.	Type over the bytes after the terminator with the bytes from 2 rows up (the corresponding bytes are 0x48 to 0x57)&lt;br /&gt;
&lt;br /&gt;
14.	Save the changes and check with legal.exe it should look like http://i335.photobucket.com/albums/m443/damio91/Aron_TB_fixed.jpg but don’t close legal.exe. We have to fix the checksum&lt;br /&gt;
&lt;br /&gt;
15.	Type over the bytes 0x06 and 0x07 with what legal.exe says for the checksum. Save and close HxD check with legal.exe. It should look like http://i335.photobucket.com/albums/m443/damio91/Aron_Legal.jpg&lt;br /&gt;
&lt;br /&gt;
16.	Congratulations! You have made a legal pal-parked pokémon from scratch!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Mystery Gift Trash Bytes: Just fill in the trash byte areas (0x48 to 0x5D and 0x68 to 0x77) after the terminators with FF&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Credits ==&lt;br /&gt;
&lt;br /&gt;
Poryhack - Discovering the Diamond and Pearl trash strings, and finding how to fix the Trash Bytes of a pokemon.&lt;br /&gt;
&lt;br /&gt;
Sabresite - For writing the Trash Byte Normalizer.&lt;/div&gt;</summary>
		<author><name>Illithian</name></author>
	</entry>
</feed>