Save data structure (Generation III): Difference between revisions

→‎Text data: Japanese text table. I might finish the English one later
(→‎Text data: Japanese text table. I might finish the English one later)
Line 17: Line 17:
!-0||-1||-2||-3||-4||-5||-6||-7||-8||-9||-A||-B||-C||-D||-E||-F
!-0||-1||-2||-3||-4||-5||-6||-7||-8||-9||-A||-B||-C||-D||-E||-F
|- style="text-align: center;"
|- style="text-align: center;"
|'''0-<br />1-<br />2-<br />3-<br />4-<br />5-<br />6-<br />7-<br />8-<br />9-'''
!0-<br />1-<br />2-<br />3-<br />4-<br />5-<br />6-<br />7-<br />8-<br />9-'''
|style="background-color: #dddddd;" colspan="16"|''Unused, except for'' <font style="font-family: monospace;">0x00</font> ''(space)''
|style="background-color: #dddddd;" colspan="16"|''Unused, except for'' <font style="font-family: monospace;">0x00</font> ''(space)''
|- style="text-align: center;"
|- style="text-align: center;"
|'''A-'''
!A-
|style="background-color: #dddddd;"|&nbsp;||0||1||2||3||4||5||6||7||8||9||!||?||.||-
|style="background-color: #dddddd;"|&nbsp;||0||1||2||3||4||5||6||7||8||9||!||?||.||-
|style="background-color: #dddddd;"|&nbsp;
|style="background-color: #dddddd;"|&nbsp;
|- style="text-align: center;"
|- style="text-align: center;"
|'''B-'''||&#x2026;||&#x201c;||&#x201d;||&#x2018;||&#x2019;||&#x2642;||&#x2640;
!B-
|&#x2026;||&#x201c;||&#x201d;||&#x2018;||&#x2019;||&#x2642;||&#x2640;
|style="background-color: #dddddd;"|&nbsp;||,
|style="background-color: #dddddd;"|&nbsp;||,
|style="background-color: #dddddd;"|&nbsp;||/||A||B||C||D||E
|style="background-color: #dddddd;"|&nbsp;||/||A||B||C||D||E
|- style="text-align: center;"
|- style="text-align: center;"
|'''C-'''||F||G||H||I||J||K||L||M||N||O||P||Q||R||S||T||U
!C-
|F||G||H||I||J||K||L||M||N||O||P||Q||R||S||T||U
|- style="text-align: center;"
|- style="text-align: center;"
|'''D-'''||V||W||X||Y||Z||a||b||c||d||e||f||g||h||i||j||k
!D-
|V||W||X||Y||Z||a||b||c||d||e||f||g||h||i||j||k
|- style="text-align: center;"
|- style="text-align: center;"
|'''E-'''||l||m||n||o||p||q||r||s||t||u||v||w||x||y||z
!E-
|l||m||n||o||p||q||r||s||t||u||v||w||x||y||z
|style="background-color: #dddddd;"|&nbsp;
|- style="text-align: center;"
!F-
|style="background-color: #dddddd;" colspan="16"|''Unused, except for'' <font style="font-family: monospace;">0xFF</font> ''(terminator)''
|}
 
In the Japanese version, significantly more of the table is used, owing to the need to store both Japanese kana and English characters:
 
:{|style="width: 375px;" cols="17"
|- style="text-align: center;"
!&nbsp;
!-0||-1||-2||-3||-4||-5||-6||-7||-8||-9||-A||-B||-C||-D||-E||-F
|- style="text-align: center;"
!0-
|&nbsp;||あ||い||う||え||お||か||き||く||け||こ||さ||し||す||せ||そ
|- style="text-align: center;"
!1-
|た||ち||つ||て||と||な||に||ぬ||ね||の||は||ひ||ふ||へ||ほ||ま
|- style="text-align: center;"
!2-
|み||む||め||も||や||ゆ||よ||ら||り||る||れ||ろ||わ||を||ん||ぁ
|- style="text-align: center;"
!3-
|ぃ||ぅ||ぇ||ぉ||ゃ||ゅ||ょ||が||ぎ||ぐ||げ||ご||ざ||じ||ず||ぜ
|- style="text-align: center;"
!4-
|ぞ||だ||ぢ||づ||で||ど||ば||び||ぶ||べ||ぼ||ぱ||ぴ||ぷ||ぺ||ぽ
|- style="text-align: center;"
!5-
|style="background-color: #dddddd;"|&nbsp;||ア||イ||ウ||エ||オ||カ||キ||ク||ケ||コ||サ||シ||ス||セ||ソ
|- style="text-align: center;"
!6-
|タ||チ||ツ||テ||ト||ナ||ニ||ヌ||ネ||ノ||ハ||ヒ||フ||ヘ||ホ||マ
|- style="text-align: center;"
!7-
|ミ||ム||メ||モ||ヤ||ユ||ヨ||ラ||リ||ル||レ||ロ||ワ||ヲ||ン||ァ
|- style="text-align: center;"
!8-
|ィ||ゥ||ェ||ォ||ャ||ュ||ョ||ガ||ギ||グ||ゲ||ゴ||ザ||ジ||ズ||ゼ
|- style="text-align: center;"
!9-
|ゾ||ダ||ヂ||ヅ||デ||ド||バ||ビ||ブ||ベ||ボ||パ||ピ||プ||ペ||ポ
|- style="text-align: center;"
!A-
|style="background-color: #dddddd;"|&nbsp;||0||1||2||3||4||5||6||7||8||9||!||?||.||-
|style="background-color: #dddddd;"|&nbsp;
|- style="text-align: center;"
!B-
|&#x2026;||&#x201c;||&#x201d;||&#x2018;||&#x2019;||&#x2642;||&#x2640;
|style="background-color: #dddddd;"|&nbsp;||,
|style="background-color: #dddddd;"|&nbsp;||/||A||B||C||D||E
|- style="text-align: center;"
|'''C-'''
|F||G||H||I||J||K||L||M||N||O||P||Q||R||S||T||U
|- style="text-align: center;"
|'''D-'''
|V||W||X||Y||Z||a||b||c||d||e||f||g||h||i||j||k
|- style="text-align: center;"
|'''E-'''
|l||m||n||o||p||q||r||s||t||u||v||w||x||y||z
|style="background-color: #dddddd;"|&nbsp;
|style="background-color: #dddddd;"|&nbsp;
|- style="text-align: center;"
|- style="text-align: center;"
|'''F-'''
|'''F-'''
|style="background-color: #dddddd;" colspan="16"|''Unused, except for'' <font style="font-family: monospace;">0xFF</font> ''(terminator)''
|style="background-color: #dddddd;" colspan="16"|''Unused, except for'' <font style="font-family: monospace;">0xFF</font> ''(terminator)''
|}
|} <!-- please check -->


String fields can take up all of the bytes in which they are allotted. If a string is shorter than the maximum length for its field, it can be terminated with <code>0xFF</code>.
String fields can take up all of the bytes in which they are allotted. If a string is shorter than the maximum length for its field, it can be terminated with <code>0xFF</code>.


In the name field for [[Pokémon Egg|Eggs]], the game places the bytes <code>0x60 0x6F 0x8B</code>, which cannot be represented by the characters available for use in the English version of the game. These may correspond with the Japanese name for eggs.
In the name field for [[Pokémon Egg|Eggs]], the game places the bytes <code>0x60 0x6F 0x8B</code> corresponding to タマゴ (tamago), the Japanese word for egg). This remains in the English version even though the characters have been replaced.


==File structure==
==File structure==
72

edits