Difference between revisions of "Gta.dat"
(→Format) |
Prographer (talk | contribs) (Added link to Collision File) |
||
(17 intermediate revisions by 7 users not shown) | |||
Line 1: | Line 1: | ||
− | {{lowercase}} | + | {{lowercase}} {{TocRight}} |
− | + | 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 [[GTA III]], <code>'''gta_vc.dat'''</code> in [[Vice City]], and simply <code>'''gta.dat'''</code> in [[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|3}} {{Icon|VC}} ||rowspan="2" |[[IMG archive]] | |
− | + | |- | |
− | + | |IMG ||{{Icon|SA}} {{Icon|4}} | |
− | + | |- | |
+ | |IMGLIST ||{{Icon|SA}} {{Icon|4}} ||[[Images.txt|Image list]] | ||
+ | |- | ||
+ | |WATER ||{{Icon|4}} ||[[Water_(GTA_4)|Water]] | ||
+ | |- | ||
+ | |IDE ||{{Icon|t}} {{Icon|4}} ||[[IDE]] item definitions | ||
+ | |- | ||
+ | |COLFILE ||{{Icon|t}} ||[[Collision File|Collisions]] | ||
+ | |- | ||
+ | |MAPZONE ||{{Icon|3}} ||rowspan="2" |[[Zone]] map areas and [[IPL]] item placements | ||
+ | |- | ||
+ | |IPL ||{{Icon|t}} | ||
+ | |- | ||
+ | |TEXDICTION ||{{Icon|t}} ||[[TXD|Texture dictionaries]] | ||
+ | |- | ||
+ | |MODELFILE ||{{Icon|t}} ||DFF [[Model file]]s | ||
+ | |- | ||
+ | |SPLASH ||{{Icon|t}} || | ||
+ | |- | ||
+ | |HIERFILE ||{{Icon|t}} || | ||
+ | |} | ||
− | Since [[ | + | Since [[GTA 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 executable file. Those are: |
platform: | platform: | ||
common: | common: | ||
− | Internally they will be replaced with the internal directory description and | + | Internally they will be replaced with the internal directory description and appended to the installation directory of the game. |
Example: | Example: | ||
platform:/DATA/MAPS/MANHAT/MANHAT12.IPL | platform:/DATA/MAPS/MANHAT/MANHAT12.IPL | ||
Line 28: | Line 48: | ||
C:\Program Files\Rockstar Games\Grand Theft Auto 4\PC\DATA\MAPS\MANHAT\MANHAT12.IPL | C:\Program Files\Rockstar Games\Grand Theft Auto 4\PC\DATA\MAPS\MANHAT\MANHAT12.IPL | ||
− | ==Keywords== | + | == Keywords == |
− | ===IMG=== | + | === IMG and CDIMAGE === |
− | ''GTA SA only'' | + | ''IMG: GTA SA only, CDIMAGE: GTA III and VC'' |
− | These entries define additionally used [[IMG archive]]s (other than the hardcoded ones). | + | These entries define additionally used [[IMG archive]]s (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: | + | Example (GTA SA): |
IMG DATA\PATHS\CARREC.IMG | IMG DATA\PATHS\CARREC.IMG | ||
IMG DATA\SCRIPT\SCRIPT.IMG | IMG DATA\SCRIPT\SCRIPT.IMG | ||
IMG MODELS\CUTSCENE.IMG | IMG MODELS\CUTSCENE.IMG | ||
− | ===IDE=== | + | === IMGLIST === |
+ | ''GTA 4'' | ||
+ | |||
+ | These link to external [[Images.txt|image list]] files. | ||
+ | |||
+ | Example: | ||
+ | IMGLIST common:/data/images.txt | ||
+ | |||
+ | ''GTA SA'' | ||
+ | |||
+ | This keyword can be added in GTA SA by using [https://gtaforums.com/topic/733982-fastman92-limit-adjuster/ fastman92-limit-adjuster]. | ||
+ | For that, you must configure <code>fastman92limitAdjuster_GTASA.ini</code> as below, | ||
+ | |||
+ | ; Enable handling of IMGLIST keyword | ||
+ | Enable handling of IMGLIST keyword = 1 | ||
+ | |||
+ | Example:(gta.dat) | ||
+ | IMGLIST DATA\IMAGES.TXT | ||
+ | |||
+ | Example:(IMAGES.TXT) | ||
+ | anim\anim.img | ||
+ | models\paths.img | ||
+ | models\pedprops.img | ||
+ | |||
+ | Note: Works with GTA San Andreas v1.0 [US] HOODLUM No-CD Fixed EXE | ||
+ | |||
+ | === WATER === | ||
+ | ''GTA 4 only'' | ||
+ | |||
+ | These link to external [[Water (GTA 4)|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: | ||
+ | WATER common:/DATA/WATER.DAT common:/DATA/WATERLOW.DAT | ||
+ | |||
+ | === IDE === | ||
''GTA III, VC and SA'' | ''GTA III, VC and SA'' | ||
Line 47: | Line 106: | ||
IDE DATA\MAPS\generic.IDE | IDE DATA\MAPS\generic.IDE | ||
− | ===COLLISION=== | + | === HIERFILE === |
+ | {{Incomplete}} | ||
+ | |||
+ | === COLLISION === | ||
''GTA III, VC and SA'' | ''GTA III, VC and SA'' | ||
Line 55: | Line 117: | ||
COLFILE 0 MODELS\COLL\GENERIC.COL | 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 [[IPL]]-style item placement and [[zone]] files. <code>MAPZONE</code> is only used in GTA3 and | + | 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 71: | Line 133: | ||
IPL DATA\MAPS\LA\LAn2.IPL | IPL DATA\MAPS\LA\LAn2.IPL | ||
− | + | === TEXDICTION === | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | ===TEXDICTION=== | ||
''GTA III, VC and SA'' | ''GTA III, VC and SA'' | ||
Line 87: | Line 141: | ||
TEXDICTION MODELS\GENERIC.TXD | TEXDICTION MODELS\GENERIC.TXD | ||
− | ===MODELFILE=== | + | === MODELFILE === |
''GTA III, VC and SA'' | ''GTA III, VC and SA'' | ||
Line 95: | Line 149: | ||
MODELFILE MODELS\GENERIC\WHEELS.DFF | MODELFILE MODELS\GENERIC\WHEELS.DFF | ||
− | === | + | === SPLASH === |
− | ''GTA | + | ''GTA III, VC and SA'' |
− | These | + | 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 | |
− | === | + | === EXIT === |
− | ''GTA | + | ''GTA III, VC and SA'' |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | This command stops any further processing of the gta.dat file. | |
− | {{SA | + | {{N|4|SA|VC|3}} |
− | + | [[Category:Map Formats]] |
Latest revision as of 09:31, 5 October 2019
The gta*.dat file lists which files define the game map. It can be found in the game's data
directory, and is known as gta3.dat
in GTA III, gta_vc.dat
in Vice City, and simply gta.dat
in San Andreas. The same file format is also used for the default.dat
file in the same directory.
Format
The files are in plain text format so they can be opened with any text editor (like Notepad). Line comments are indicated by the character #
(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>
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:
Keyword | Games | Description |
---|---|---|
CDIMAGE | IMG archive | |
IMG | ||
IMGLIST | Image list | |
WATER | Water | |
IDE | IDE item definitions | |
COLFILE | Collisions | |
MAPZONE | Zone map areas and IPL item placements | |
IPL | ||
TEXDICTION | Texture dictionaries | |
MODELFILE | DFF Model files | |
SPLASH | ||
HIERFILE |
Since GTA 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 executable file. Those are:
platform: common:
Internally they will be replaced with the internal directory description and appended to the installation directory of the game. Example:
platform:/DATA/MAPS/MANHAT/MANHAT12.IPL
gets
PC/DATA/MAPS/MANHAT/MANHAT12.IPL
which finally is transformed to (e.g.)
C:\Program Files\Rockstar Games\Grand Theft Auto 4\PC\DATA\MAPS\MANHAT\MANHAT12.IPL
Keywords
IMG and CDIMAGE
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. CDIMAGE
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
These link to external image list files.
Example:
IMGLIST common:/data/images.txt
GTA SA
This keyword can be added in GTA SA by using fastman92-limit-adjuster.
For that, you must configure fastman92limitAdjuster_GTASA.ini
as below,
; Enable handling of IMGLIST keyword Enable handling of IMGLIST keyword = 1
Example:(gta.dat)
IMGLIST DATA\IMAGES.TXT
Example:(IMAGES.TXT)
anim\anim.img models\paths.img models\pedprops.img
Note: Works with GTA San Andreas v1.0 [US] HOODLUM No-CD Fixed EXE
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:
WATER common:/DATA/WATER.DAT common:/DATA/WATERLOW.DAT
IDE
GTA III, VC and SA
These entries link to item definition files.
Example:
IDE DATA\MAPS\generic.IDE
HIERFILE
This section is incomplete. You can help by fixing and expanding it.
COLLISION
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:
COLFILE 0 MODELS\COLL\GENERIC.COL
IPL and MAPZONE
GTA III, VC and SA
These keywords are used to link to IPL-style item placement and zone files. MAPZONE
is only used in GTA3 and can only contain map zone data.
Example (GTA3):
MAPZONE DATA\MAP.ZON IPL DATA\GTA3.ZON
Example (GTA SA):
IPL DATA\MAP.ZON IPL DATA\INFO.ZON IPL DATA\MAPS\LA\LAn.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
GTA III, VC and SA
These link to external, mostly generic model files.
Example:
MODELFILE MODELS\GENERIC\WHEELS.DFF
SPLASH
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 texture dictionary in the models/txd
directory. Might be ignored, though.
Example:
SPLASH loadsc2
EXIT
GTA III, VC and SA
This command stops any further processing of the gta.dat file.
Grand Theft Auto IV | |
---|---|
File Formats | .dat • .gxt • .ide • .img • .ipl • .nod • .sco • .rpf • .rrr • .wad • .wbd/.wbn • .wdd • .wdr • .wft • .whm • .wpl • .wtd |
Documentation | Audio • Bink Video • Cryptography • Cutscenes • GXT Text • Image listing • Keycodes • Map Listing • Native functions • Paths • Radar Blips • Radio Stations • Saves • Scenarios • VTable • Weapons |
Tools | ASI Loader • ENBSeries • G-Texture • GIMS IV • Ingame WPL Editor • IV Needle • OpenIV • SparkIV • XLiveLess • WPL Manager • X Mod Installer Alice • C++ Script Hook • .NET Script Hook • Scocl |
Tutorials | Importing Textures with OpenIV • Importing Textures with SparkIV |
Modifications | GTA Connected • Gostown IV • Four Multiplayer • IV Multiplayer • CitizenMP:IV Reloaded |
Useful links | Community portal • Discussion forums • Modding forums • Mods on GTAGarage.com |