Difference between revisions of "ZONE"

From GTAMods Wiki
Jump to navigation Jump to search
m
Line 4: Line 4:
 
| description =
 
| description =
 
}}
 
}}
'''ZONE''' is a section in the [[IPL]] file. It creates an area in the game used to show the text of the zone being entered, to load islands, and to create locations to spawn specific vehicles and pedestrians. The section is mainly placed in <code>.zon</code> files, which use the IPL format, but it can also be placed in <code>.ipl</code> files.
+
'''ZONE''' is a section in the [[IPL|item placement]] file. It creates an area in the game used to show the text of the zone being entered, to load islands, and to create locations to spawn specific vehicles and pedestrians. The section is mainly placed in <code>.zon</code> files, which use the IPL format, but it can also be placed in <code>.ipl</code> files.
  
==Structure==
+
==Format==
 
+
{|{{Prettytable}} width="100%"
All the <code>.zon</code> files start with a section identifier and ends with the keyword "end", both in a single line.
+
! width="36px"| {{Icon|3}} {{Icon|VC}}
 
+
! width="36px"| {{Icon|SA}} {{Icon|4}}
Example:
+
! width="150px"| Identifier
zone
+
! width="100px"| Type
...
+
! Description
end
+
|-
 +
| colspan="2" | <center>A</center> || <center>Name</center> || string || Name and text of zone used from the <code>.gxt</code> file
 +
|-
 +
| colspan="2" | <center>B</center> || <center>Type</center> || integer || Type of zone
 +
|-
 +
| colspan="2" | <center>C,D,E</center> || <center>X1,Y1,Z1</center> || float[3] || The bottom left corner of the zone
 +
|-
 +
| colspan="2" | <center>F,G,H</center> || <center>X2,Y2,Z2</center> || float[3] || The top right corner of the zone
 +
|-
 +
| colspan="2" | <center>I</center> || <center>Island</center> || integer || The island number
 +
|-
 +
| <center>-</center> || <center>J</center> || <center>Text</center> || string || Text of the zone used from the [[GXT]] file<br>
 +
|}
  
==Format==
 
The basic format for a <code>.zon</code> file for GTA 3 and Vice City is:
 
Name, Type, X1, Y1, Z1, X2, Y2, Z2, Island
 
And for San Andreas and GTA IV:
 
Name, Type, X1, Y1, Z1, X2, Y2, Z2, Island, Text
 
;Name: Name and text of zone used from the <code>.gxt</code> file
 
;Type: Type of zone
 
;X1, Y1, Z1: The bottom left corner of the zone
 
;X2, Y2, Z2: The top right corner of the zone
 
;Island: The island number
 
;Text: Text of the zone used from the [[GXT]] file<br>
 
 
Note that for San Andreas, the text of the zone to be displayed is also related to by an internally hardcoded table which links that zone name to its respective audio description for the police radio. This is actually the cause of a bug in the game - the zone 'SUN' (which is correctly named 'Temple' in the GXT file) gets announced as 'Sunnyside' on the police radio. This is because the internal table has two consecutive entries called 'SUN' and only the second one gets used, meaning whenever the player is in a zone named and defined as 'SUN' in this file, the police will always announce this as 'Sunnyside' since 'SUN' points to that audio entry.
 
Note that for San Andreas, the text of the zone to be displayed is also related to by an internally hardcoded table which links that zone name to its respective audio description for the police radio. This is actually the cause of a bug in the game - the zone 'SUN' (which is correctly named 'Temple' in the GXT file) gets announced as 'Sunnyside' on the police radio. This is because the internal table has two consecutive entries called 'SUN' and only the second one gets used, meaning whenever the player is in a zone named and defined as 'SUN' in this file, the police will always announce this as 'Sunnyside' since 'SUN' points to that audio entry.
  
 +
==Major files==
 
===GTA 3===
 
===GTA 3===
 
Island number 1: Portland<br>
 
Island number 1: Portland<br>

Revision as of 06:31, 24 September 2010

40px-Ambox rewrite orange.svg.png This article may need to be rewritten.
Please help improve this article. The discussion page may contain suggestions.
ZONE (IPL section)
Supported games:GTA 3 GTA VC GTA SA GTA LCS GTA VCS GTA IV
IPL Sections:
2DFX AUZO BLOK CARS CULL ENEX GRGE
INST JUMP LINK LODM MLO+ MULT OCCL
PATH PICK RTFX SLOW TCYC VNOD ZONE

ZONE is a section in the item placement file. It creates an area in the game used to show the text of the zone being entered, to load islands, and to create locations to spawn specific vehicles and pedestrians. The section is mainly placed in .zon files, which use the IPL format, but it can also be placed in .ipl files.

Format

GTA III Vice City San Andreas GTA IV Identifier Type Description
A
Name
string Name and text of zone used from the .gxt file
B
Type
integer Type of zone
C,D,E
X1,Y1,Z1
float[3] The bottom left corner of the zone
F,G,H
X2,Y2,Z2
float[3] The top right corner of the zone
I
Island
integer The island number
-
J
Text
string Text of the zone used from the GXT file

Note that for San Andreas, the text of the zone to be displayed is also related to by an internally hardcoded table which links that zone name to its respective audio description for the police radio. This is actually the cause of a bug in the game - the zone 'SUN' (which is correctly named 'Temple' in the GXT file) gets announced as 'Sunnyside' on the police radio. This is because the internal table has two consecutive entries called 'SUN' and only the second one gets used, meaning whenever the player is in a zone named and defined as 'SUN' in this file, the police will always announce this as 'Sunnyside' since 'SUN' points to that audio entry.

Major files

GTA 3

Island number 1: Portland
Island number 2: Staunton
Island number 3: Shoreside Vale

Gta3.zon

Type: 0, 1, or 2
The gta3.zon controls the text of the zone that shows up in the game as you enter a new zone. The main.scm uses this to check if you are in the zone. The gta3.zon can be viewed through KEd but it can be only edited by hand. The main.scm<main.scm.

Map.zon

Type: 3
The map.zon controls the loading of an entire island as you travel from one island to another. It tells the game where to load. The map.zon can be viewed through KEd but it can be only edited by hand.

Vice City

File:Navig VC.jpg
Vice City's navig.zon areas drawn on the map

Island number 1: Vice City Beach
Island number 2: Vice City Mainland

Info.zon

Type: 2
The info.zon, with the help of the main.scm, controls which pedestrian and vehicles spawn in that specific zone. The info.zon can be viewed through KEd but it can be only edited by hand. The main.scm uses this file so you cannot just delete the lines in the file without editing the main.scm. This zone uses island number 1.

Map.zon

Type: 3
The map.zon controls the loading of an entire island as you travel from one island to another. It tells the game where to load. The map.zon can be viewed through KEd but it can be only edited by hand. You can make the loading of the islands by deleting the entire section.

Navig.zon

Type: 0 or 1
The navig.zon controls the text of the zone that shows up in the game as you enter a new zone. The main.scm uses this to check if you are in the zone. The navig.zon can be viewed through KEd but it can be only edited by hand. The main.scm<main.scm. This zone uses island number 1.

San Andreas

Island number 1: Los Santos
Island number 2: San Fierro
Island number 3: Las Venturas

Info.zon

Type: 0
The Info.zon controls the text of the zone that shows up in the game as you enter a new zone. It also controls which pedestrian and vehicles spawn in that specific zone, with the help of the main.scm. The main.scm<main.scm. This zone uses island number 1 only.

Map.zon

Type: 3
The map.zon controls the island zones and also the type of cop car (LA,SF or LV) if there is no zone, it spawns the country cop car. The last value is always UNUSED for zones controlling the island-ID's. Normally you have all zone-names stored in the map.zon and the island-boundary-zones with their ID's in the map.zon. The last number is the Island-ID.

You can lock/unlock them using SCM.

GTA 4

GTA IV uses the same format like San Andreas, but the section identifier has been changed to mzon for type 0.

This section is incomplete. You can help by fixing and expanding it.

Useful Tools

External links