Difference between revisions of "Tracks.dat"

From GTAMods Wiki
Jump to navigation Jump to search
m
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
 
{{lowercase}}
 
{{lowercase}}
[[File:IIITracksMap.jpg|thumb|right|250px|GTA III's tracks*.dat map]]
+
[[File:IIITracksMap.jpg|thumb|right|250px|GTA III's tracks*.dat map. The white-bordered boxes are zones of entry in [[train.dat|train*.dat]].]]
 
[[File:IVTracksMap.jpg|thumb|right|250px|GTA IV's tracks*.dat map]]
 
[[File:IVTracksMap.jpg|thumb|right|250px|GTA IV's tracks*.dat map]]
The '''tracks*.dat''' creates a pathway for indestructible vehicles, which includes trains and planes, to travel on in GTA III, San Andreas, and GTA IV. These files are located in the <code>..\data\paths</code> folder in the GTA III and San Andreas directories, and the <code>..\common\data\paths</code> folder in the GTA IV directory.
+
The '''tracks*.dat''' creates a pathway for indestructible vehicles, which includes trains and planes, to travel on in GTA III, San Andreas, and GTA IV. These files are located in the <code>{{dir|3}}\data\paths</code> folder in the GTA III and San Andreas directories, and the <code>..\common\data\paths</code> folder in the GTA IV directory.
  
==Format==
+
== Format ==
{|{{Prettytable}}
+
{|class="wikitable center-col-1"
! {{Icon|3}} || {{Icon|SA}} || {{Icon|4}}
+
!{{Icon|3}} ||{{Icon|SA}} ||{{Icon|4}}
! width="100px"| Type
+
!width="100px"|Type
! Description
+
!Description
 
|-
 
|-
! colspan="5" | Section 1
+
!colspan="5" |Section 1
 
|-
 
|-
| colspan="3" | <center>A</center> || integer || The number of lines that are to be read from the file.
+
|colspan="3" |A ||integer ||The number of lines that are to be read from the file.
 
|-
 
|-
! colspan="5" | Section 2
+
!colspan="5" |Section 2
 
|-
 
|-
| colspan="3" | <center>A,B,C</center> || float[3] || X, Y, Z coordinates, each line linked to create a path
+
|colspan="3" |A,B,C ||float[3] ||X, Y, Z coordinates, each line linked to create a path
 
|-
 
|-
| <center>-</center> || colspan="2" | <center>D</center> || integer || Station, 1 - left side exit, 2 - right side exit
+
| - ||colspan="2" {{a|c}} |D ||integer ||Station, 1 - left side exit, 2 - right side exit
 
|-
 
|-
| <center>-</center> || <center>-</center> || <center>E</center> || string || Station name for use in <code>trainhelper.sco</code>
+
| - ||{{a|c}} | - ||{{a|c}} |E ||string ||Station name for use in <code>trainhelper.sco</code>
 
|}
 
|}
  
[[Category:Map Formats]][[Category:GTA 3]][[Category:GTA SA]][[Category:GTA 4]]
+
{{N|4|SA|3}}
 +
[[Category:Map Formats]]

Latest revision as of 04:00, 4 December 2016

GTA III's tracks*.dat map. The white-bordered boxes are zones of entry in train*.dat.
GTA IV's tracks*.dat map

The tracks*.dat creates a pathway for indestructible vehicles, which includes trains and planes, to travel on in GTA III, San Andreas, and GTA IV. These files are located in the .\data\paths folder in the GTA III and San Andreas directories, and the ..\common\data\paths folder in the GTA IV directory.

Format

GTA III San Andreas GTA IV Type Description
Section 1
A integer The number of lines that are to be read from the file.
Section 2
A,B,C float[3] X, Y, Z coordinates, each line linked to create a path
- D integer Station, 1 - left side exit, 2 - right side exit
- - E string Station name for use in trainhelper.sco