Difference between revisions of "Cullzone.dat"

From GTAMods Wiki
Jump to navigation Jump to search
(Undo revision 9486 by Solom (Talk) Please specify if the informations are statistics or limits!)
(tabulated information + links)
Line 4: Line 4:
  
 
== GTA III ==
 
== GTA III ==
The file consists of two sections. The header of each section is an integer value indicating the number of entries in the section. The first section has 17 columns and the second section has 8 columns. Many of the zones closely mimic the <code>[[cull.ipl]]</code> file.
+
The file consists of five distinct sections. Many of the zones closely mimic the <code>[[cull.ipl]]</code> file.
  
Section 1:
+
{|class="wikitable"
Header
+
! style="width: 4em;" |Offset
4b - int - Number of lines in the section
+
! style="width: 8em;" |Type
Body
+
! style="width: 12em;" |Description
4b - flt - x center
+
|-
4b - flt - y center
+
! colspan="3" |Section 1
4b - flt - z center
+
|-
4b - flt - x bottom left
+
|0x00000 ||dword ||number of entries
4b - flt - x top right
+
|-
4b - flt - y bottom left
+
|0x00004 ||52 bytes[512] ||structures (see below)
4b - flt - y top right
+
|}
4b - flt - z bottom left
+
<div style="margin-left: 3em;">
4b - flt - z top right
+
{|class="wikitable"
2b - int - ?
+
! style="width: 4em;" |Offset
2b - int - ?
+
! style="width: 4em;" |Type
2b - int - ?
+
! style="width: 12em;" |Description
2b - int - ?
+
|-
2b - int - ?
+
|0x00 ||float ||x center
2b - int - ?
+
|-
2b - int - ?
+
|0x04 ||float ||y center
2b - int - ?
+
|-
Section 2:
+
|0x08 ||float ||z center
Header
+
|-
4b - int - Number of lines in the section
+
|0x0C ||float ||x bottom left
Body
+
|-
4b - flt - x bottom left
+
|0x10 ||float ||x top right
4b - flt - x top right
+
|-
4b - flt - y bottom left
+
|0x14 ||float ||y bottom left
4b - flt - y top right
+
|-
4b - flt - z bottom left
+
|0x18 ||float ||y top right
4b - flt - z top right
+
|-
4b - int - ?
+
|0x1C ||float ||z bottom left
2b - int - ?
+
|-
 +
|0x20 ||float ||z top right
 +
|-
 +
|0x24 ||dword ||?
 +
|-
 +
|0x28 ||word ||?
 +
|-
 +
|0x2C ||word ||?
 +
|-
 +
|0x2E ||word ||?
 +
|-
 +
|0x30 ||word ||?
 +
|-
 +
|0x32 ||word ||?
 +
|-
 +
|0x34 ||word ||?
 +
|}
 +
</div>
 +
{|class="wikitable"
 +
! colspan="3" |Section 2
 +
|-
 +
|style="width: 4em;" |0x06804
 +
|style="width: 8em;" |dword
 +
|style="width: 12em;" |number of entries
 +
|-
 +
|0x06808 ||28 bytes[288] ||structures (see below)
 +
|}
 +
<div style="margin-left: 3em;">
 +
{|class="wikitable"
 +
! style="width: 4em;" |Offset
 +
! style="width: 4em;" |Type
 +
! style="width: 12em;" |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 ||?
 +
|}
 +
</div>
 +
{|class="wikitable"
 +
|style="width: 4em;" |0x08788
 +
|style="width: 8em;" |?
 +
|style="width: 12em;" |Section 3
 +
|-
 +
|0x23538 ||? ||Section 4
 +
|-
 +
|0x26030 ||? ||Section 5
 +
|}
  
 
== 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.
 
Vice City has an additional file called '''cullzoneempty.dat'''. Both of these files are not used by the game at all.
  
== External link ==
+
== External links ==
* [http://gta-modz.3dn.ru/load/0-0-0-120-20 Cullzone decompiler for GTA III] &ndash; by {{U|Majestic}}
+
* {{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/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|VC}} [http://spaceeinstein.altervista.org/binary.php?file=cullzone_vc Cullzone.dat reader (JavaScript)], by {{U|spaceeinstein}}
  
{{N|VC}}
+
{{N|VC|3}}
[[Category:GTA_3]][[Category:Map Formats]]
+
[[Category:Map Formats]]

Revision as of 22:16, 26 January 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 file consists of five distinct sections. Many of the zones closely mimic the cull.ipl file.

Offset Type Description
Section 1
0x00000 dword number of entries
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 2
0x06804 dword number of entries
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 3
0x23538 ? Section 4
0x26030 ? Section 5

Vice City

Vice City has an additional file called cullzoneempty.dat. Both of these files are not used by the game at all.

External links