*.gxt
File Formats
Fil_GXT.html

Name

*.gxt - contains all in game text

Location

text\*.gxt
american.gxt, english.gxt, french.gxt,
german.gxt, italian.gxt, spanish.gxt

Description

These files contain all the in game text in various languages which are american(variant of english to pertain to the US), english, french, german, italian, and spanish. We'll look at the american variant. The *.gxt files are compiled in that they can't be edited using notepad. They contain two main sections. TKEY which contains a short name for every gxt string and TDAT which contains the value of each gxt string. There are different flags and variables to trigger display styles and insert numbers into the text during the game.

Sturucture of american.gxt

Section

Position

Length

TKEY

0

31788

TDAT

31796

186792

File Size

0

218591



GXT Strings

A GXT string is not something thats in the gxt files but the individual parts of a gxt file are put together to form a gxt string.

           ______________________________ GXT Name
____/____  __________________________GXT Value
|                   |  |                |
[ESPERAN] Esperanto

TKEY

The TKEY section contains all gxt string names the names are aranged in alphabetical order. Before each name there is a pointer. The actual offset of the gxt value is (pointer + tkey_section_size + 16). Gta3 requsets the name and the name refrences to the gxt value.

TDAT

The TDAT section contains all gxt values which contain the actual text which is refrenced by the gxt names. The gxt values are in alphabetical order by thier first charachter.

GXT ~ ~ Codes

There are various symbols used in the gxt values, they begin andend with ~. They can control the color and style of text and insert variables into the text. I will list the codes and there uses.

~1~
This code is a variable for a nummber, it can appear anywhere in the string and it can appear mulltiple times in a string.

~a~
This code is a variable for a text string.

~b~
This is a color code it changes the display color of any text that follows to BLUE.

~g~
This is a color code it changes the display color of any text that follows to GREEN.

~h~
This is a style code it highlights any text that follows, to return text to normal use one of the color codes.

~k~
This appears before any one of the key variables listed below. It displays the designated key or button.

~CAMERA_CHANGE_VIEW_ALL_SITUATIONS~
~PED_CYCLE_TARGET_LEFT~
~PED_CYCLE_TARGET_RIGHT~
~PED_CYCLE_WEAPON_RIGHT~
~PED_CYCLE_WEAPON_LEFT~
~PED_FIREWEAPON~
~PED_LOCK_TARGET~
~PED_LOOKBEHIND~
~PED_SNIPER_ZOOM_IN~
~PED_SNIPER_ZOOM_OUT~
~TOGGLE_SUBMISSIONS~
~VEHICLE_ACCELERATE~
~VEHICLE_BRAKE~
~VEHICLE_CHANGE_RADIO_STATION~
~VEHICLE_ENTER_EXIT~
~VEHICLE_HANDBRAKE~
~VEHICLE_HORN~
~VEHICLE_LOOKLEFT~
~VEHICLE_LOOKRIGHT~

~p~
This is a color code it changes the display color of any text that follows to PURPLE.

~r~
This is a color code it changes the display color of any text that follows to RED.

~w~
This is a color code it changes the display color of any text that follows to WHITE.

~y~
This is a color code it changes the display color of any text that follows to YELLOW.



Examples

Vehicle Names


[AMBULAN]Ambulance
[BANSHEE]Banshee
[ESPERAN]Esperanto

Cut Scene Subtitles

[EBAL_D]I know a guy, he's connected, his name's Luigi.
[AM4_4]You got the money? Is it all here?
[LOVE1_B]Experience has taught me that a man like you can be very loyal for the right price,


To Do

-

Author

dElAvA

Thanks to CyQ for pointing out ~a~

See Also

-

Programs

GXT Editor,

File Formats

Last change: 19 July 2002

unofficial GTA III Reference