Difference between revisions of "Cullzone.dat"

From GTAMods Wiki
Jump to navigation Jump to search
(tabulated information + links)
Line 4: Line 4:
  
 
== GTA III ==
 
== GTA III ==
The file consists of five distinct sections. Many of the zones closely mimic the <code>[[cull.ipl]]</code> file.
+
The '''CULLZONE.DAT''' file consists of seven distinct sections. Many of the zones closely mimic the <code>[[cull.ipl]]</code> file.
  
 
{|class="wikitable"
 
{|class="wikitable"
 
! style="width: 4em;" |Offset
 
! style="width: 4em;" |Offset
 
! style="width: 8em;" |Type
 
! style="width: 8em;" |Type
! style="width: 12em;" |Description
+
! style="width: 16em;" |Description
 
|-
 
|-
 
! colspan="3" |Section 1
 
! colspan="3" |Section 1
 
|-
 
|-
|0x00000 ||dword ||number of entries
+
|0x00000 ||dword ||number of entries in section 2
 +
|-
 +
! colspan="3" |Section 2
 
|-
 
|-
 
|0x00004 ||52 bytes[512] ||structures (see below)
 
|0x00004 ||52 bytes[512] ||structures (see below)
Line 57: Line 59:
 
</div>
 
</div>
 
{|class="wikitable"
 
{|class="wikitable"
! colspan="3" |Section 2
+
! colspan="3" |Section 3
 
|-
 
|-
 
|style="width: 4em;" |0x06804
 
|style="width: 4em;" |0x06804
 
|style="width: 8em;" |dword
 
|style="width: 8em;" |dword
|style="width: 12em;" |number of entries
+
|style="width: 16em;" |number of entries in section 4
 +
|-
 +
! colspan="3" |Section 4
 
|-
 
|-
 
|0x06808 ||28 bytes[288] ||structures (see below)
 
|0x06808 ||28 bytes[288] ||structures (see below)
Line 91: Line 95:
 
|style="width: 4em;" |0x08788
 
|style="width: 4em;" |0x08788
 
|style="width: 8em;" |?
 
|style="width: 8em;" |?
|style="width: 12em;" |Section 3
+
|style="width: 16em;" |Section 5
 
|-
 
|-
|0x23538 ||? ||Section 4
+
|0x23538 ||? ||Section 6
 
|-
 
|-
|0x26030 ||? ||Section 5
+
|0x26030 ||? ||Section 7
 
|}
 
|}
  
 
== Vice City ==
 
== Vice City ==
Vice City has an additional file called '''cullzoneempty.dat'''. Both of these files are not used by the game at all.
+
In addition to '''Cullzone.dat''', Vice City has a file called '''Cullzoneempty.dat'''. Both of these files are not used by the game at all.
  
 
== External links ==
 
== External links ==
 
* {{GTAF|763409|Discussion of file format}}
 
* {{GTAF|763409|Discussion of file format}}
* {{Icon|3}} [http://spaceeinstein.altervista.org/cullzone.htm Table of entries from sections 1 and 2]
+
* {{Icon|3}} [http://spaceeinstein.altervista.org/cullzone.htm Table of entries from sections 1 through 4]
* {{Icon|3}} [http://spaceeinstein.altervista.org/binary.php?file=cullzone_iii CULLZONE.DAT reader (JavaScript)], by {{U|spaceeinstein}}
+
* {{Icon|3}} {{Icon|VC}} [http://spaceeinstein.altervista.org/binary.php?file=cullzone_iii cullzone.dat reader (JavaScript)], by {{U|spaceeinstein}}
 
* {{Icon|3}} [http://gta-modz.3dn.ru/load/0-0-0-120-20 Cullzone decompiler/compiler], by {{U|Majestic}}
 
* {{Icon|3}} [http://gta-modz.3dn.ru/load/0-0-0-120-20 Cullzone decompiler/compiler], by {{U|Majestic}}
* {{Icon|VC}} [http://spaceeinstein.altervista.org/binary.php?file=cullzone_vc Cullzone.dat reader (JavaScript)], by {{U|spaceeinstein}}
 
  
 
{{N|VC|3}}
 
{{N|VC|3}}
 
[[Category:Map Formats]]
 
[[Category:Map Formats]]

Revision as of 06:28, 3 February 2015

The cullzone.dat is a binary file containing zoning information in GTA III and Vice City. The file is located in the \data folder of the game's directory. It is unknown what the file does and it does not appear to be used in the games.

GTA III

The CULLZONE.DAT file consists of seven distinct sections. Many of the zones closely mimic the cull.ipl file.

Offset Type Description
Section 1
0x00000 dword number of entries in section 2
Section 2
0x00004 52 bytes[512] structures (see below)
Offset Type Description
0x00 float x center
0x04 float y center
0x08 float z center
0x0C float x bottom left
0x10 float x top right
0x14 float y bottom left
0x18 float y top right
0x1C float z bottom left
0x20 float z top right
0x24 dword ?
0x28 word ?
0x2C word ?
0x2E word ?
0x30 word ?
0x32 word ?
0x34 word ?
Section 3
0x06804 dword number of entries in section 4
Section 4
0x06808 28 bytes[288] structures (see below)
Offset Type Description
0x00 float x bottom left
0x04 float x top right
0x08 float y bottom left
0x0C float y top right
0x10 float z bottom left
0x14 float z top right
0x18 word ?
0x1A word ?
0x08788 ? Section 5
0x23538 ? Section 6
0x26030 ? Section 7

Vice City

In addition to Cullzone.dat, Vice City has a file called Cullzoneempty.dat. Both of these files are not used by the game at all.

External links