The "text_e.str" file contains a table of pointers to null terminated strings contained further down in the file. In other languages versions of the game, the letter "e" is changed to indicate the language. For example, "text_j.str" is the name of the file for the Japanese version of the game.
In addition to the characters from the character sets used, the game sometimes uses unprintable character sequences to represent special characters in-game. The game also uses several square brackets enclosed tags that can trigger a wide range of things, going from replacing the tag with a value or string, adding a pause for input, changing the text formatting, playing a sound/music, etc..
The file also appears to be somehow linked to the "tbl_talk.tlk" file.
- The number of strings varies by game and region. The US version of Explorers of Sky the English file contains 18,452 strings. Each language in the European version contains 18,482. The Japanese version contains 19,010.
- In Explorers of Time/Darkness the English file contains 13,666 strings.
Known Character Encoding
|text_e.str||8-bits, ISO 8859-1 aka Windows-28591, or Windows-1252|
|text_j.str||8-bits, Shift JIS or Windows-31J|
- Warning: There is also a possibility the strings are actually stored as multi-byte utf-8 strings! Considering special characters like the music note are made of several characters, and also considering that ASCII characters are interpreted correctly.
A quick overview of the main parts of the file. Note that there is no padding between the Pointer Table and the Strings Block!
|0x00||Varies||Pointer Table||A table of pointers to every null-terminate strings in the Strings Block.|
|After Pointer Table||Varies||Strings Block||A block containing null-terminated strings of characters one after the other. The last pointer points to the end of the file, after the last string.|
A very straightforward list of 4 bytes pointers to every strings in the file. Pointers are all little endian, as usual.
- NOTE: The last pointer in the table must points to the end of the file, after the last string.
Again, this is very straightforward. All null-terminated strings are simply stored one after the other. There is no padding at the end of the file.
As mentioned above, the game uses several special sequences of unprintable characters for displaying some in-game characters or pictogram.
As mentioned above the game uses square brackets enclosed expressions for runtime text replacement, formatting, or triggering various events.
Here are some of the known ones:
|[CR]||Reset text color|
|[CS:E]||Light Blue (marked as bold in debug script)|
|[CS:F]||Team Pokémon Name|
|[CS:K]||Poké Species Name|
|[CS:S]||Multiple Items Selected|
There are no comments to display.