12,236
edits
No edit summary |
(contributions from myself, Aschratt, and NTAuthority) |
||
Line 1: | Line 1: | ||
{{lowercase title}} | {{lowercase title}} | ||
The '''gta*.dat''' file lists which files define the game map. It can be found in the game's <code>data</code> directory, and is known as <code>'''gta3.dat'''</code> in [[Grand Theft Auto III]], <code>'''gta_vc.dat'''</code> in [[Grand Theft Auto: Vice City]], and simply <code>'''gta.dat'''</code> in [[Grand Theft Auto: San Andreas]]. The same file format is also used for the <code>'''default.dat'''</code> file in the same directory. | |||
== Format == | == Format == | ||
The files are in plain text format so they can be opened with any text editor (like [[wikipedia:Microsoft Notepad|Notepad]]). Line comments are indicated by the character <code>#</code> (number sign) and empty lines are allowed. They can be placed anywhere in the file. Since there are different types of files, a keyword is needed for each entry. Most entries use the following format, where the path is relative to the game's base directory: | |||
<keyword> <path> | <keyword> <path> | ||
Although the file itself is not split up into sections, entries are usually grouped by type and arranged in a special order according to the game's loading sequence: | Although the file itself is not split up into sections, entries are usually grouped by type and arranged in a special order according to the game's loading sequence: | ||
{|class="wikitable center-col-2" | |||
!Keyword ||Games ||Description | |||
|- | |||
|CDIMAGE ||{{Icon-square|3}} {{Icon-square|vc}} ||rowspan="2" |[[IMG Archive|IMG archive]] | |||
|- | |||
|IMG ||{{Icon-square|sa}} {{Icon-square|4}} | |||
|- | |||
|IMGLIST ||{{Icon-square|4}} ||[[Images.txt|Image list]] | |||
|- | |||
|WATER ||{{Icon-square|4}} ||Water | |||
|- | |||
|IDE ||{{Icon-square|t}} {{Icon-square|4}} ||[[IDE]] item definitions | |||
|- | |||
|COLFILE ||{{Icon-square|t}} ||Collisions | |||
|- | |||
|MAPZONE ||{{Icon-square|3}} ||rowspan="2" |Zone map areas and [[IPL]] item placements | |||
|- | |||
|IPL ||{{Icon-square|t}} | |||
|- | |||
|TEXDICTION ||{{Icon-square|t}} ||[[TXD|Texture dictionaries]] | |||
|- | |||
|MODELFILE ||{{Icon-square|t}} ||DFF mmodel files | |||
|- | |||
|SPLASH ||{{Icon-square|t}} || | |||
|- | |||
|HIERFILE ||{{Icon-square|t}} || | |||
|} | |||
Since [[Grand Theft Auto | Since [[Grand Theft Auto IV]] has various subdirectories which need to be identified there are new identifiers at the start of the path. They identify the exact location relative to the executeable file. Those are: | ||
platform: | platform: | ||
Line 29: | Line 49: | ||
== Keywords == | == Keywords == | ||
=== | === IMG and CDIMAGE === | ||
''GTA III, VC | ''IMG: GTA SA only, CDIMAGE: GTA III and VC'' | ||
These entries define additionally used IMG archives (other than the hardcoded ones). In SA, you can only define a maximum of five entries. Any more will crash the game. <code>CDIMAGE</code> is supported in GTA III and VC, though unused in the default data files. | |||
Example (GTA SA): | |||
IMG DATA\PATHS\CARREC.IMG | |||
IMG DATA\SCRIPT\SCRIPT.IMG | |||
IMG MODELS\CUTSCENE.IMG | |||
=== IMGLIST === | |||
''GTA 4 only'' | |||
These link to external [[Images.txt|image list]] files. | |||
Example: | |||
IMGLIST common:/data/images.txt | |||
=== WATER === | |||
''GTA 4 only'' | |||
These link to external water plane placement files. | |||
Example: | |||
WATER common:/DATA/WATER.DAT | |||
The WATER identifier can hold more than one parameter. It is unconfirmed either this also works for other identifiers. | |||
Example: | Example: | ||
WATER common:/DATA/WATER.DAT common:/DATA/WATERLOW.DAT | |||
=== IDE === | === IDE === | ||
''GTA III, VC and SA'' | ''GTA III, VC and SA'' | ||
These entries link to | These entries link to item definition files. | ||
Example: | Example: | ||
Line 48: | Line 91: | ||
{{Incomplete}} | {{Incomplete}} | ||
=== | === COLLISION === | ||
''GTA SA | ''GTA III, VC and SA'' | ||
With these entries collision files are defined. An additional parameter between keyword and path defines the map part they belong to. If this is 0, the col file is used by the whole map; a higher number (1 to 3) assigns it to one of the map zones. | |||
Example: | Example: | ||
COLFILE 0 MODELS\COLL\GENERIC.COL | |||
=== IPL and MAPZONE === | === IPL and MAPZONE === | ||
''GTA III, VC and SA'' | ''GTA III, VC and SA'' | ||
These keywords are used to link to [[ | These keywords are used to link to [[IPL]]-style item placement and zone files. <code>MAPZONE</code> is only used in GTA3 and can only contain map zone data. | ||
Example (GTA3): | Example (GTA3): | ||
Line 81: | Line 114: | ||
IPL DATA\MAPS\LA\LAn.IPL | IPL DATA\MAPS\LA\LAn.IPL | ||
IPL DATA\MAPS\LA\LAn2.IPL | IPL DATA\MAPS\LA\LAn2.IPL | ||
=== TEXDICTION === | |||
''GTA III, VC and SA'' | |||
These link to external, mostly generic texture dictionaries. | |||
Example: | |||
TEXDICTION MODELS\GENERIC.TXD | |||
=== MODELFILE === | === MODELFILE === | ||
''GTA III, VC and SA'' | ''GTA III, VC and SA'' | ||
These link to external, mostly generic | These link to external, mostly generic model files. | ||
Example: | Example: | ||
Line 93: | Line 134: | ||
''GTA III, VC and SA'' | ''GTA III, VC and SA'' | ||
These define the splash screens that appear while loading the map. The argument for these is '''not''' a path, but just the name (without extension) of a | These define the splash screens that appear while loading the map. The argument for these is '''not''' a path, but just the name (without extension) of a texture dictionary in the <code>\models\txd</code> directory. Might be ignored, though. | ||
Example: | Example: | ||
SPLASH loadsc2 | SPLASH loadsc2 | ||
=== | === EXIT === | ||
''GTA III, VC and SA'' | ''GTA III, VC and SA'' | ||
This command stops any further processing of the gta.dat file. | |||
{{fdl}} | {{fdl}} | ||
{{modding}} | {{modding}} | ||
[[Category:Map Formats]] | [[Category:Map Formats]] | ||