GTA: Modification Area

A website for the GTA modding scene

Search
 
 

Display results as :
 


Rechercher Advanced Search

Latest topics
» Big-game starts raising Schneider's profile
Sun Mar 04, 2012 2:28 am by lavivi

» [Help] cleo created lighting
Thu Oct 14, 2010 1:03 am by findmy012

» Mission Question
Thu Oct 14, 2010 1:02 am by findmy012

» [IV] Spoiler Script
Thu Oct 14, 2010 1:02 am by findmy012

» Mission mod [help]
Sat Sep 18, 2010 5:50 pm by jayd00

» Bc7 Mod Help
Fri Aug 20, 2010 11:19 am by pengpeng

» Found a bug
Fri Dec 18, 2009 4:22 am by _CJ360_

» [IV] Novitec Rosso 599 GTB
Tue Nov 17, 2009 4:22 pm by Kotton

» Hello/Guidance Request
Mon Oct 12, 2009 6:45 am by Adler

Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search
Affiliates
image

Image

Image

Image

Image

Image

Image

Image

Image

Image

image

Image

steve-m.com

Image


----- Русский -----

Если ваш сайт содержит большую коллекцию SCM/CLEO-скриптов (больше 16), напишите на мой e-mail, и я добавлю его в список. Приветствуются скрипты, которые не встречаются на других сайтах ... Спасибо. ))))


----- English -----

If your website has a big enough collection of SCM/CLEO scripts (more than 16) notify me by e-mail
, and I will add it to the list. The unique scripts are preferable ... Thank you. ))))

Log in

I forgot my password



December 2016
MonTueWedThuFriSatSun
   1234
567891011
12131415161718
19202122232425
262728293031 

Calendar Calendar


You are not connected. Please login or register

GXT file(GTA: 4)

View previous topic View next topic Go down  Message [Page 1 of 1]

1 GXT file(GTA: 4) on Wed Feb 25, 2009 1:26 am

The .gxt file(s) contain almost every text within the game, there are 5 files with this format, American.gxt, German.gxt, Spanish.gxt, Italian.gxt, and French.gxt. The GXT file contains almost every text which is displayed in the game, from GTA 2, all the way to GTA 4.

Each GXT file can contain certain tables with sub-tables and entries. The entries are stored in ASCII standard. Just some special characters got some different bit-sets.

Header


The header of GTA 4 GXT is the same as in San Andreas:

The header contains data about the tables and their sub-tables.

Code:

INT32  - 4b  - Version? (Always 0x080004)
CHAR[4] - 4b  - TABL

Table Block


The Table Block contains data about the sub-tables and their offsets.

Code:

INT32  - 4b  - Blocksize

//Array of [Blocksize / 12 Entries]
CHAR[8] - 8b  - Subtablename
INT32  - 4b  - Offset

The Offset of the sub-table points to an 8-byte Char Array with the sub-table's name, followed by TKEY. For the MAIN Table this points directly to TKEY!

TKEY


The TKEY Block of an sub-table contains the CRC32-values of the entry-titles. The game calculates the CRC32-value out of a given string and checks if they exist in the GXT.

Code:

CHAR[4] - 4b  - TKEY
INT32  - 4b  - Blocksize

//Array of [Blocksize / 8]
INT32  - 4b  - Entryoffset
INT32  - 4b  - CRC32 (Entryname)

The TKEY block is directly followed by the TDAT Block which contains the contents of the entries. The Entry-offset is relative to the TDAT + 4 offset.

TDAT


Code:

CHAR[4] - 4b  - TDAT
INT32  - 4b  - Blocksize

From here the entry-offset of each entry points to the content. The content can have different sizes. However it always ends in '\0'! For Example "Hello!" needs to be transformed to "Hello!\0" here and this gives a size of 6 bytes (To tell it in a short form content is a null-terminated string). If this is the 1st content in TDAT the next got an offset of 0x06.

German Characters


This is the list of our German characters:

Code:

Character    Value
Ä            131
ä            154
Ö            145
ö            168
Ü            149
ü            172
ß            150 


Links


list for GTA4 texts

See also


SA GXT file

View user profile http://gtamodding.com

View previous topic View next topic Back to top  Message [Page 1 of 1]

Permissions in this forum:
You cannot reply to topics in this forum