

The Xbox version of Vice City uses the GTA III format.Īrray of TABL entries, where n is the number of entries. In Vice City, Vice City Stories and Liberty City Stories, there is a new TABL block which precedes the TKEY block. The Xbox version of Vice City uses this format as well. There is also no special treatment of characters starting with 0x21 in TDAT entries. GTA III's GXT files are identical to those of GTA 2, except that they do not have headers – they start with the TKEY block instead. The location of the entry in absolute term is TDAT entry offset + size of TKEY block + 22.Ĭharacters beginning with 0x21 denote gang dialogue:

The array is terminated by a null character ( 0x0000). All entries are sorted in alphabetical order.Īn array of wide characters (2 bytes per character) to be displayed in the game, where m is the number of characters. The TDAT entry contains the text that will be displayed in the game.Īrray of TKEY entries, where n is the number of entries. The TKEY block contains an array of entries that give the offset and name of the corresponding entry in the TDAT table. GTA 2's GXT files begin with a header followed by a TKEY block and then a TDAT block.
GTA VICE CITY FONT CODE
This allows the game to be easily translated into other languages without the need for major code changes: translators can simply translate the game text into the correct language and strings from the new language's GXT file will be used if the player selects that language. Programmers use only the short key strings (such as "GM_OVR"), and then before these strings are shown to the user they are replaced with translated versions in their own language – "Game Over" if the user selected the English language. GXT files act as dictionaries that map short, symbolic strings (or some other unique value) to longer strings. In games other than GTA 2, there is one GXT file for each language, but the number of GXT files does not necessarily match the number of supported languages. Their placement differs between games, but GXT files are usually located in a text directory in the game installation folder. A GTA Te xt ( GXT) file is a file that contains strings that are presented to the player in GTA2 and above.
