Glitch City Laboratories Archives

Glitch City Laboratories closed on 1 September 2020 (announcement). This is an archived copy of a thread from Glitch City Laboratories Forums.

You can join Glitch City Research Institute to ask questions or discuss current developments.

You may also download the archive of this forum in .tar.gz, .sql.gz, or .sqlite.gz formats.

Generation I Glitch Discussion

Pokédex marker bytes - Page 1

Pokédex marker bytes

Posted by: Torchickens
Date: 2017-06-16 15:26:34
At the beginning of a glitch Pokémon's base stats data structure is a Pokédex marker. This byte according to Stag019 is supposed to be the same as the Pokémon's Pokédex number, but for many glitch Pokémon it is different. 'M (00) and MissingNo. in Red/Blue are exceptions. They have a Pokédex marker byte of 0x00, which is the same as their Pokédex number.

The location of a glitch Pokémon family's base stats data can be found using the following:

0x0383DE + (PkmnNo. 1) 0x1C


Yellow:
176: 39702 : 0xF9
000: 39FC2 : 0x28
159: 39526 : 0x3C
195: 39916 : 0x62
202: 399DA : 0x81
203: 399F6 : 0x87
205: 39A2E : 0x86
207: 39A66 : 0x92
215: 39B46 : 0xFE
229: 39CCE : 0x01
230: 39CEA : 0x5A
234: 39D5A : 0x05
245: 39E8E : 0x00
250: 39F1A : 0x00
254: 39F8A : 0x14
255: 39FA6 : 0x1E



Red/Blue:
000: 39FC2 : 0x00
174: 396CA : 0xCB
175: 396E6 : 0xC3
205: 39A2E : 0x91
209: 39A9E : 0x8F
211: 39AD6 : 0xF7
213: 39B0E : 0x82
224: 39C42 : 0x05
234: 39D5A : 0x60
240: 39E02 : 0x00
245: 39E8E : 0x00
250: 39F1A : 0x19
254: 39F8A : 0x6A
255: 39FA6 : 0x37

Presumably hybrid glitch Pokémon will have the same Pokédex marker byte as their Pokédex number, due to having their base data derived (with the possible exception of front sprite/back sprite) from real Pokémon.

Re: Pokédex marker bytes

Posted by: Parzival
Date: 2017-06-16 23:51:59
This needs to go here, dontcha think?

Re: Pokédex marker bytes

Posted by: ISSOtm
Date: 2017-06-17 03:44:32
What do these "markers" do ?

Also I just created the article mainly by copy-pasting the post and formatting the table into a wiki table. :)

Re: Pokédex marker bytes

Posted by: Torchickens
Date: 2017-06-18 08:44:10

This needs to go here, dontcha think?


Yeah. I made the basic list to add them to GlitchDex pages later. :)

I feel a lot of things need to go on the wiki though.


What do these "markers" do ?

Also I just created the article mainly by copy-pasting the post and formatting the table into a wiki table. :)


Thanks ISSOtm! I don't know either. It's possible that the marker bytes have no purpose at all other than as a tool for the developers to find which Pokémon they're dealing with.

Re: Pokédex marker bytes

Posted by: Crystal_
Date: 2017-06-20 19:33:05



What do these "markers" do ?

Also I just created the article mainly by copy-pasting the post and formatting the table into a wiki table. :)


Thanks ISSOtm! I don't know either. It's possible that the marker bytes have no purpose at all other than as a tool for the developers to find which Pokémon they're dealing with.


Nothing. In fact, it's overwritten by the index number as soon as the mon header data is copied: https://github.com/pret/pokered/blob/678b3c9/home.asm#L606L607