Jump to content

GXT: Difference between revisions

115 bytes added ,  27 April 2015
no edit summary
No edit summary
No edit summary
Line 1: Line 1:
{{cleanup}}
{{cleanup}}
A '''G'''TA Te'''xt''' (''GXT'') file contains almost all texts that are displayed on the screen of GTA2 and above. The location of those files may differ between the various game versions, but they are usualy located in a <code>text\</code> folder inside the games installation directory. There is one GXT file for each language, but the number of gxt files does not define the number of supported languages by the game. An entire list of all GXT text entry name [[Cryptography#CRC32|hashes]] between GTA3 and VCS is available with [[Sanny Builder]].
A '''G'''TA Te'''xt''' (''GXT'') file contains almost all texts that are displayed on the screen of [[Grand Theft Auto 2]] and above. The location of those files may differ between the various game versions, but they are usualy located in a <code>text\</code> folder inside the games installation directory. There is one GXT file for each language, but the number of gxt files does not define the number of supported languages by the game. An entire list of all GXT text entry name [[Cryptography#CRC32|hashes]] between [[Grand Theft Auto III]] and [[Grand Theft Auto: Vice City Stories]] is available with [[Sanny Builder]].


== File Format ==
== File Format ==
Each GXT file can contain certain tables with subtables and entries. The entries are stored in [[Wikipedia:ASCII|ASCII]] standard. Just some special characters got some different bitsets.
Each GXT file can contain certain tables with subtables and entries. The entries are stored in [[Wikipedia:ASCII|ASCII]] standard. Just some special characters got some different bitsets.


=== GTA San Andreas / GTA IV Format ===
=== GTA San Andreas / GTA IV / GTA V Format ===
==== Header ====
==== Header ====
The header contains data about the tables and their subtables.
The header contains data about the tables and their subtables.
Line 25: Line 25:
==== TKEY and TDAT ====
==== TKEY and TDAT ====
===== TKEY =====
===== TKEY =====
The TKEY Block of an subtable contains the CRC32-values of the entrytitles. The game calculates the CRC32-value out of a given string and checks if they exist in the GXT.
The TKEY Block of an subtable contains the CRC32-values of the entrytitles. The game calculates the CRC32-value out of a given string and checks if they exist in the GXT.


Line 38: Line 37:


===== TDAT =====
===== TDAT =====
  CHAR[4] - 4b  - TDAT
  CHAR[4] - 4b  - TDAT
  INT32  - 4b  - Blocksize
  INT32  - 4b  - Blocksize
Line 52: Line 50:


{|
{|
!Character
! Character
!Value
! Value
|-
|-
| Ä
|131
| 131
|-
|-
| ä
|154
| 154
|-
|-
| Ö
|145
| 145
|-
|-
| ö
|168
| 168
|-
|-
| Ü
|149
| 149
|-
|-
| ü
|172
| 172
|-
|-
| ß
|150
| 150
|}
|}


=== GTA III / GTA Vice City Format ===
=== GTA III / GTA Vice City Format ===
Vice City and GTA III GXTs are very similar to the SA GXTs. In this article all those additional infos are not listed.
Vice City and GTA III GXTs are very similar to the SA GXTs. In this article all those additional infos are not listed.


==== Header ====
==== Header ====
The header contains data about the tables and their subtables.
The header contains data about the tables and their subtables.


Line 88: Line 84:


==== Table Block ====
==== Table Block ====
  INT32  - 4b  - Blocksize
  INT32  - 4b  - Blocksize
   
   
Line 96: Line 91:


==== TKEY and TDAT ====
==== TKEY and TDAT ====
===== TKEY =====
===== TKEY =====
  CHAR[4] - 4b  - TKEY
  CHAR[4] - 4b  - TKEY
  INT32  - 4b  - Blocksize
  INT32  - 4b  - Blocksize
Line 110: Line 103:


===== TDAT =====
===== TDAT =====
  CHAR[4] - 4b  - TDAT
  CHAR[4] - 4b  - TDAT
  INT32  - 4b  - Blocksize
  INT32  - 4b  - Blocksize
Line 116: Line 108:
The TDAT-Block contains the strings which are displayed by the game. But here are some differences towards San Andreas. The strings are encoded in unicode, which means that each character takes the space of 2 characters (which means 2 bytes per character). Mostly the last byte is 0x00.
The TDAT-Block contains the strings which are displayed by the game. But here are some differences towards San Andreas. The strings are encoded in unicode, which means that each character takes the space of 2 characters (which means 2 bytes per character). Mostly the last byte is 0x00.


=== GTA2 Format ===
=== GTA 2 Format ===
 
Except for an additional header at the beginning, GTA 2's GXT files are identical to GTA3 format.  
Except for additional header at beginning GTA2 GXT files are identical to GTA3 format.  
   
   
The first 4 bytes can be one of following, and identify the language for the file:  
The first 4 bytes can be one of following, and identify the language for the file:  
Line 135: Line 126:


== GXT Editing ==
== GXT Editing ==
=== Symbols & Colorcodes (Control Character) ===
=== Symbols & Colorcodes (Control Character) ===
{| class="prettytable"
{| class="prettytable"
Line 314: Line 304:
You can use [[opcode]] [[00E1]] to check if these keys are being pressed.
You can use [[opcode]] [[00E1]] to check if these keys are being pressed.
==== Foot Controls ====
==== Foot Controls ====
{|class="prettytable collapsible"
{| class="prettytable collapsible"
! Key
! Key
! Game
! Game
Line 437: Line 427:


==== Vehicle Controls ====
==== Vehicle Controls ====
{|class="prettytable collapsible"
{| class="prettytable collapsible"
! Key
! Key
! Game
! Game
Line 550: Line 540:


==== Unused ====
==== Unused ====
Here are some keypress codes only used during development stage. They were removed or replaced later but probably they are still working. Maybe this is useful for further research. Some are only used in PS2 Version.
Here are some keypress codes only used during development stage. They were removed or replaced later but probably they are still working. Maybe this is useful for further research. Some are only used in PS2 Version.


{|
{|  
!
!  
|-
|-
|~TAKE_SCREEN_SHOT~
| ~TAKE_SCREEN_SHOT~
|-
|-
|~SWITCH_DEBUG_CAM_ON~
| ~SWITCH_DEBUG_CAM_ON~
|-
|-
|~TOGGLE_DPAD~
| ~TOGGLE_DPAD~
|-
|-
|~NETWORK_TALK~
| ~NETWORK_TALK~
|}
|}


==Tools==
== Tools ==
*[http://www.gtatools.com/filedb/action.php?action=file&id=22 GXT Editor for GTA 3] - by {{U|JernejL}}
* [http://www.gtatools.com/filedb/action.php?action=file&id=22 GXT Editor for GTA 3] - by {{U|JernejL}}
*[[GXT Editor (VC)|GXT Editor for Vice City]] - by {{U|CyQ}}
* [[GXT Editor (VC)|GXT Editor for Vice City]] - by {{U|CyQ}}
*[http://www.gtatools.com/filedb/action.php?action=file&id=21 GXT Editor for San Andreas] - by {{U|JernejL}}
* [http://www.gtatools.com/filedb/action.php?action=file&id=21 GXT Editor for San Andreas] - by {{U|JernejL}}
 
==External links==
*[http://public.sannybuilder.com/GXT/ List of all GXT entries from GTA III to Vice City Stories]
*[http://public.sannybuilder.com/GTA4/american.gxt.reversed.rar List of all GTA IV gxt text entry names]


== External links ==
* [http://public.sannybuilder.com/GXT/ List of all GXT entries from GTA III to Vice City Stories]
* [http://public.sannybuilder.com/GTA4/american.gxt.reversed.rar List of all GTA IV gxt text entry names]


{{fdl}}
{{fdl}}
{{modding}}


{{modding}}
[[Category:Other Formats]]
[[Category:Other Formats]]
[[Category:GTA III Modifications]]
[[Category:GTA III Modifications]]
[[Category:GTA Vice City]]
[[Category:GTA Vice City]]
[[Category:Modifications]]
[[Category:Modifications]]
1,184

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.