Difference between revisions of "Images.txt"

From GTAMods Wiki
Jump to navigation Jump to search
m
Line 1: Line 1:
'''Images.txt''' is a [[Gta.dat#IMGLIST|IMGLIST]] file in GTA4. This file is located in the common\data folder. Each line starts with a path. The path controls four files: [[IDE]], [[IMG]], [[WPL]], [[XPL]].
+
'''Images.txt''' is a [[Gta.dat#IMGLIST|IMGLIST]] file in GTA4. This file is located in the common\data folder, by default. It's location can be changed by editing the <code>gta.dat</code> file.
{{File-stub}}
+
 
 +
====Format====
 +
 
 +
The images.txt file follows the major <code>gta.dat</code> notation. The only difference is that there are no direct identifiers. They are appended to the major directory identifier which are also present in the map listing file and tell the game that it has to search for [[IMG|images]] or map informations:
 +
 
 +
platformimg:
 +
commonimg:
 +
 
 +
Using this a path can be build simply by appending the relative path from the <code>pc\</code> or <code>common\</code> subdirectory of the [[:Category:GTA_4|GTA IV]]'s installation directory, together with the major file name:
 +
 
 +
platformimg:/data/maps/props/commercial/7_11
 +
 
 +
The path controls four files: [[IDE]], [[IMG]], [[WPL]], [[XPL]]. It is followed by an '''(optional)''' numeric-boolean flag which can either be 1 or 0. It defines which files the game expects on the specified location. Usually path and flag are seperated by one or more linefeeds. If the flag is 1 the game expects just [[IDE|object definitions]] (<code>*.ide</code>) and [[IMG|images]] (<code>*.img</code>), if it is 0 it also expects [[WPL|world placement]] information and [[XPL|cross reference placement]] information.
 +
 
 +
Example:
 +
platformimg:/data/maps/jersey/nj_xref 1
 +
... will search for...
 +
.../pc/data/maps/jersey/nj_xref.img
 +
.../pc/data/maps/jersey/nj_xref.ide (if it exists)
 +
 
 +
and
 +
platformimg:/data/maps/jersey/nj_04e 0
 +
... will search for...
 +
.../pc/data/maps/jersey/nj_xref.img
 +
.../pc/data/maps/jersey/nj_xref.ide
 +
.../pc/data/maps/jersey/nj_xref.wpl
 +
.../pc/data/maps/jersey/nj_xref.xpl
 +
 
 +
The files do not need to be present, they but to improve the games performance it is recommend to set the flag (correctly).
 +
 
 
==External Link==
 
==External Link==
 
[http://www.gtaforums.com/index.php?showtopic=386402 (WIP)IV map cleaning] - GTAForums topic
 
[http://www.gtaforums.com/index.php?showtopic=386402 (WIP)IV map cleaning] - GTAForums topic

Revision as of 18:04, 18 February 2009

Images.txt is a IMGLIST file in GTA4. This file is located in the common\data folder, by default. It's location can be changed by editing the gta.dat file.

Format

The images.txt file follows the major gta.dat notation. The only difference is that there are no direct identifiers. They are appended to the major directory identifier which are also present in the map listing file and tell the game that it has to search for images or map informations:

platformimg:
commonimg:

Using this a path can be build simply by appending the relative path from the pc\ or common\ subdirectory of the GTA IV's installation directory, together with the major file name:

platformimg:/data/maps/props/commercial/7_11

The path controls four files: IDE, IMG, WPL, XPL. It is followed by an (optional) numeric-boolean flag which can either be 1 or 0. It defines which files the game expects on the specified location. Usually path and flag are seperated by one or more linefeeds. If the flag is 1 the game expects just object definitions (*.ide) and images (*.img), if it is 0 it also expects world placement information and cross reference placement information.

Example:

platformimg:/data/maps/jersey/nj_xref	1

... will search for...

.../pc/data/maps/jersey/nj_xref.img
.../pc/data/maps/jersey/nj_xref.ide (if it exists)

and

platformimg:/data/maps/jersey/nj_04e	0

... will search for...

.../pc/data/maps/jersey/nj_xref.img
.../pc/data/maps/jersey/nj_xref.ide
.../pc/data/maps/jersey/nj_xref.wpl
.../pc/data/maps/jersey/nj_xref.xpl

The files do not need to be present, they but to improve the games performance it is recommend to set the flag (correctly).

External Link

(WIP)IV map cleaning - GTAForums topic