STRG (Metroid Prime): Difference between revisions
>Aruki (Created page with "The '''STRG format''' is used to store string tables. Each STRG file can contain any number of strings, as well as variations for different languages; the Prime series support...") |
>Aruki No edit summary |
||
Line 1: | Line 1: | ||
The '''STRG format''' is used to store string tables. Each STRG file can contain any number of strings, as well as variations for different languages; the Prime series supports English, French, German, Spanish, Italian, Dutch, and Japanese. The format's been updated in each game it appeared in, so no two games share the exact same STRG format, although it's very similar between all of them. | The '''STRG format''' is used to store string tables. Each STRG file can contain any number of strings, as well as variations for different languages; the Prime series supports English, French, German, Spanish, Italian, Dutch, and Japanese. The format's been updated in each game it appeared in, so no two games share the exact same STRG format, although it's very similar between all of them. | ||
{{todo|The page currently only coves the Prime 1/2 STRG formats; the Prime 3/DKCR | {{todo|The page currently only coves the Prime 1/2 STRG formats; the Prime 3/DKCR one should be added to the page, or split off into a separate page if it turns out it's different enough.}} | ||
__TOC__ | __TOC__ | ||
Line 33: | Line 33: | ||
| colspan=2 | End of header | | colspan=2 | End of header | ||
|} | |} | ||
These are the possible version numbers: | |||
{| class="wikitable" | |||
! Version | |||
! Game | |||
|- | |||
| 0x0 | |||
| Metroid Prime | |||
|- | |||
| 0x1 | |||
| Metroid Prime 2: Echoes | |||
|- | |||
| 0x3 | |||
| Metroid Prime 3: Corruption/Donkey Kong Country Returns | |||
|- | |||
| | |||
=== Languages === | === Languages === |
Revision as of 16:55, 25 January 2015
The STRG format is used to store string tables. Each STRG file can contain any number of strings, as well as variations for different languages; the Prime series supports English, French, German, Spanish, Italian, Dutch, and Japanese. The format's been updated in each game it appeared in, so no two games share the exact same STRG format, although it's very similar between all of them.
To do: The page currently only coves the Prime 1/2 STRG formats; the Prime 3/DKCR one should be added to the page, or split off into a separate page if it turns out it's different enough. |
Format
Header
Offset | Size | Description |
---|---|---|
0x0 | 4 | Magic; always 0x87654321 |
0x4 | 4 | Version; see below |
0x8 | 4 | Language count |
0xC | 4 | String count |
0x10 | End of header |
These are the possible version numbers:
Version | Game | ||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0x0 | Metroid Prime | ||||||||||||||||||||||||||||||||||||||||||||||||||
0x1 | Metroid Prime 2: Echoes | ||||||||||||||||||||||||||||||||||||||||||||||||||
0x3 | Metroid Prime 3: Corruption/Donkey Kong Country Returns | ||||||||||||||||||||||||||||||||||||||||||||||||||
LanguagesFollowing is a table that describes which languages appear in the file.
String NamesIn Echoes, strings can have names attached to them. Note that this table only appears in the Echoes STRG format; for Prime 1, skip ahead to the string tables.
Each entry is structured as follows:
After every name entry comes all the names in the form of a large UTF-8 string array. The names are zero-terminated, and they're sorted in alpabetical order; the sorting is case-sensitive, so 'Z' will appear before 'a'. String TablesLast are the actual string tables themselves. Each table contains some metadata followed by a series of Unicode strings. The number of strings is declared in the header; there will be one of these tables present per language present in the file.
Tools
|