Difference between revisions of "ZONE"

From GTAMods Wiki
Jump to navigation Jump to search
Line 1: Line 1:
 
== Introduction ==
 
== Introduction ==
A '''zone''' is an area in the game. It is controlled by <code>.zon</code> files.
+
A '''zone''' is 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. It is controlled by <code>.zon</code> files.
 +
 
 +
==Structure==
 +
 
 +
All the <code>.zon</code> files start with a section identifier and ends with the keyword "end", both in a single line.
 +
 
 +
Example:
 +
zone
 +
...
 +
end
  
 
==GTA3==
 
==GTA3==
Line 7: Line 16:
 
''Format:''
 
''Format:''
 
  Name, Type, X1, Y1, Z1, X2, Y2, Z2, Island
 
  Name, Type, X1, Y1, Z1, X2, Y2, Z2, Island
;Name: Name of zone
+
;Name: Name and text of zone used from the <code>.gxt</code> file
 
;Type: Type of zone
 
;Type: Type of zone
 
;X1, Y1, Z1: The bottom left corner of the zone
 
;X1, Y1, Z1: The bottom left corner of the zone
 
;X2, Y2, Z2: The top right corner of the zone
 
;X2, Y2, Z2: The top right corner of the zone
 
;Island: The island number
 
;Island: The island number
The <code>gta3.zon</code> can be viewed through [[Ked]] but it can be only edited by hand. The <code>main.scm</code> uses this file so you can’t just delete the lines in the file to prevent the zone’s text from popping up in the game without editing the <code>main.scm</code>.
+
The <code>gta3.zon</code> can be viewed through [[KEd]] but it can be only edited by hand. The <code>main.scm</code> uses this file so you cannot just delete the lines in the file to prevent the zone’s text from popping up in the game without editing the <code>main.scm</code>.
  
 
===Map.zon===
 
===Map.zon===
Line 23: Line 32:
 
;X2, Y2, Z2: The top right corner of the zone
 
;X2, Y2, Z2: The top right corner of the zone
 
;Island: The island number
 
;Island: The island number
The <code>map.zon</code> can be viewed through Ked but it can be only edited by hand.
+
The <code>map.zon</code> can be viewed through KEd but it can be only edited by hand.
  
 
==Vice City==
 
==Vice City==
Line 35: Line 44:
 
;X2, Y2, Z2: The top right corner of the zone
 
;X2, Y2, Z2: The top right corner of the zone
 
;Island: The island number (always 1)
 
;Island: The island number (always 1)
The <code>info.zon</code> can be viewed through [[Ked]] but it can be only edited by hand. The <code>main.scm</code> uses this file so you can’t just delete the lines in the file without editing the <code>main.scm</code>.
+
The <code>info.zon</code> can be viewed through [[KEd]] but it can be only edited by hand. The <code>main.scm</code> uses this file so you cannot just delete the lines in the file without editing the <code>main.scm</code>.
  
 
===Map.zon===
 
===Map.zon===
Line 46: Line 55:
 
;X2, Y2, Z2: The top right corner of the zone
 
;X2, Y2, Z2: The top right corner of the zone
 
;Island: The island number (either 1 or 2)
 
;Island: The island number (either 1 or 2)
The <code>map.zon</code> 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.
+
The <code>map.zon</code> 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===
 
===Navig.zon===
Line 52: Line 61:
 
''Format:''
 
''Format:''
 
  Name, Type, X1, Y1, Z1, X2, Y2, Z2, Island
 
  Name, Type, X1, Y1, Z1, X2, Y2, Z2, Island
 +
;Name: Name and text of zone used from the <code>.gxt</code> file
 +
;Type: Type of zone (either 0 or 1)
 +
;X1, Y1, Z1: The bottom left corner of the zone
 +
;X2, Y2, Z2: The top right corner of the zone
 +
;Island: The island number (always 1)
 +
The <code>navig.zon</code> can be viewed through KEd but it can be only edited by hand. The <code>main.scm</code> uses this file so you cannot just delete the lines in the file to prevent the zone’s text from popping up in the game without editing the <code>main.scm</code>.
 +
 +
==San Andreas==
 +
===Navig.zon===
 +
The <code>navig.zon</code> 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 <code>main.scm</code>.<br>
 +
''Format:''
 +
Name, Type, X1, Y1, Z1, X2, Y2, Z2, Island, Text
 
;Name: Name of zone
 
;Name: Name of zone
;Type: Type of zone (either 0 or 1)
+
;Type: Type of zone (always 0)
 
;X1, Y1, Z1: The bottom left corner of the zone
 
;X1, Y1, Z1: The bottom left corner of the zone
 
;X2, Y2, Z2: The top right corner of the zone
 
;X2, Y2, Z2: The top right corner of the zone
 
;Island: The island number (always 1)
 
;Island: The island number (always 1)
The <code>navig.zon</code> can be viewed through Ked but it can be only edited by hand. The <code>main.scm</code> uses this file so you can’t just delete the lines in the file to prevent the zone’s text from popping up in the game without editing the <code>main.scm</code>.
+
;Text: Text of the zone used from the <code>.gxt</code> file
 +
The <code>main.scm</code> uses this file so you cannot just delete the lines in the file to prevent the zone’s text from popping up in the game without editing the <code>main.scm</code>.
 +
 
 +
===Map.zon===
 +
The <code>map.zon</code> is not used in San Andreas.
 +
 
 +
==References==
 +
[http://www.gtaforums.com/index.php?showtopic=140597 Map File Definitions]
 +
 
 +
[[Category:Map Formats]][[Category:GTA VC]][[Category:GTA SA]]

Revision as of 00:05, 13 February 2007

Introduction

A zone is 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. It is controlled by .zon files.

Structure

All the .zon files start with a section identifier and ends with the keyword "end", both in a single line.

Example:

zone
...
end

GTA3

Gta3.zon

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.
Format:

Name, Type, X1, Y1, Z1, X2, Y2, Z2, Island
Name
Name and text of zone used from the .gxt 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

The gta3.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 to prevent the zone’s text from popping up in the game without editing the main.scm.

Map.zon

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.
Format:

Name, Type, X1, Y1, Z1, X2, Y2, Z2, Island
Name
Name of zone
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

The map.zon can be viewed through KEd but it can be only edited by hand.

Vice City

Info.zon

The info.zon, with the help of the main.scm, controls which pedestrian and vehicles spawn in that specific zone.
Format:

Name, Type, X1, Y1, Z1, X2, Y2, Z2, Island
Name
Name of zone
Type
Type of zone (always 2)
X1, Y1, Z1
The bottom left corner of the zone
X2, Y2, Z2
The top right corner of the zone
Island
The island number (always 1)

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.

Map.zon

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.
Format:

Name, Type, X1, Y1, Z1, X2, Y2, Z2, Island
Name
Name of zone
Type
Type of zone (always 3)
X1, Y1, Z1
The bottom left corner of the zone
X2, Y2, Z2
The top right corner of the zone
Island
The island number (either 1 or 2)

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

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.
Format:

Name, Type, X1, Y1, Z1, X2, Y2, Z2, Island
Name
Name and text of zone used from the .gxt file
Type
Type of zone (either 0 or 1)
X1, Y1, Z1
The bottom left corner of the zone
X2, Y2, Z2
The top right corner of the zone
Island
The island number (always 1)

The navig.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 to prevent the zone’s text from popping up in the game without editing the main.scm.

San Andreas

Navig.zon

The navig.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.
Format:

Name, Type, X1, Y1, Z1, X2, Y2, Z2, Island, Text
Name
Name of zone
Type
Type of zone (always 0)
X1, Y1, Z1
The bottom left corner of the zone
X2, Y2, Z2
The top right corner of the zone
Island
The island number (always 1)
Text
Text of the zone used from the .gxt file

The main.scm uses this file so you cannot just delete the lines in the file to prevent the zone’s text from popping up in the game without editing the main.scm.

Map.zon

The map.zon is not used in San Andreas.

References

Map File Definitions