Identified unk2 in struct PokemonSpecies and provided Japanese names (#183)

* Added Katakana to charmap.txt

* Assigned the Japanese characters the proper values

* Identified unk2 and changed data to Japanese names
This commit is contained in:
Bivurnum 2026-01-25 09:34:25 -06:00 committed by GitHub
parent 604d9d3c39
commit d498c3964b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 298 additions and 616 deletions

View File

@ -1 +1,93 @@
' ' = 00
@ Katakana
'ア' = 00
'イ' = 01
'ウ' = 02
'エ' = 03
'オ' = 04
'カ' = 05
'キ' = 06
'ク' = 07
'ケ' = 08
'コ' = 09
'サ' = 0A
'シ' = 0B
'ス' = 0C
'ソ' = 0E
'タ' = 0F
'チ' = 10
'ツ' = 11
'テ' = 12
'ト' = 13
'ナ' = 14
'ニ' = 15
'ヌ' = 16
'ネ' = 17
'' = 18
'ハ' = 19
'ヒ' = 1A
'フ' = 1B
'ヘ' = 1C
'ホ' = 1D
'マ' = 1E
'ミ' = 1F
'ム' = 20
'メ' = 21
'モ' = 22
'ヤ' = 23
'ユ' = 24
'ヨ' = 25
'ラ' = 26
'リ' = 27
'ル' = 28
'レ' = 29
'ロ' = 2A
'ワ' = 2B
'ン' = 2D
'ガ' = 2F
'ギ' = 30
'グ' = 31
'ゲ' = 32
'ゴ' = 33
'ザ' = 34
'ジ' = 35
'ズ' = 36
'ゼ' = 37
'ゾ' = 38
'ダ' = 39
'デ' = 3C
'ド' = 3D
'バ' = 3E
'ビ' = 3F
'ブ' = 40
'ベ' = 41
'ボ' = 42
'パ' = 43
'ピ' = 44
'プ' = 45
'ペ' = 46
'ポ' = 47
'ァ' = 48
'ィ' = 49
'ッ' = 4D
'ャ' = 4E
'ュ' = 4F
'ョ' = 50
@ Japanese punctuation
'ー' = 51
' ' = 53
@ These characters have not yet been found to be used in the rom data
@ 'セ'
@ 'ヲ'
@ 'ゥ'
@ 'ェ'
@ 'ォ'
@ 'ヂ'
@ 'ヅ'
@ ''
@ ''
@ '。'
@ '⋯'

View File

@ -73,7 +73,7 @@ struct VectorU32
struct PokemonSpecies {
/*0x00*/ u16 mainSeriesIndexNumber; // Refers to the generation three internal index number; e.g. Treecko is 0x115 (decimal 227).
/*0x02*/ u8 unk2[0x5];
/*0x02*/ u8 nameJapanese[5];
/*0x07*/ u8 name[10]; // Space-padded ASCII
/*0x11*/ u8 catchIndex; // Non-zero for all catch pokemon other than Treecko, zero for Treecko and all non-catch pokemon
/*0x12*/ u8 eggIndex; // Non-zero for all hatch pokemon other than Wurmple, zero for Wurmple and all non-hatch pokemon

File diff suppressed because it is too large Load Diff