Difference between revisions of "WPL"

From GTAMods Wiki
Jump to navigation Jump to search
m (World Placement moved to WPL over redirect)
(XPL info moved)
Line 1: Line 1:
'''W'''orld '''PL'''acement files are map-related files similar to [[IPL]] files from previous games. It can be edited using [[WPL Manager]].
+
'''WPL''' is the format of the map-related files similar to [[IPL]]s from the previous games. It can be edited with [[WPL Manager]].
  
 
+
== File Format ==
==File Format==
 
  
 
Each world placement file starts with one single header followed by the object placement information. The structure for the header is very simple:
 
Each world placement file starts with one single header followed by the object placement information. The structure for the header is very simple:
Line 9: Line 8:
 
  4b - UINT32  - Instances
 
  4b - UINT32  - Instances
  
The placement information corresponds to the previous [[Item_Placement#inst|instance]] section of the <code>.ipl</code> files. They have a binary structure like the [[Binary_IPL|binary ipl]] files introduced with [[:Category:GTA_SA|San Andreas]]:
+
The placement information corresponds to the previous [[Item_Placement#inst|instance]] section of the <code>.ipl</code> files. They have a binary structure like the [[Binary_IPL|binary ipl]] files introduced with [[San Andreas]]:
  
 
  4b - FLOAT  - Position X
 
  4b - FLOAT  - Position X
Line 35: Line 34:
 
  };
 
  };
 
</source>
 
</source>
 
  
 
;InstBlock (Start from 0x44)
 
;InstBlock (Start from 0x44)
Line 50: Line 48:
 
</source>
 
</source>
 
-->
 
-->
 +
== XPL ==
 +
In the XBox 360's version of GTA 4 same files have the extension <code>.xpl</code>. The XPL and WPL formats  are same, but due to the fact XPL files are used on the Xenon platform its data is stored in the [[Wikipedia:Endianness|big-endian order]].
 +
<!--not sure where to put this: "They are used to map generic objects which are defined with another path in the [[Images.txt|image listing]] file."-->
  
{{File-stub}}
+
== External Link ==
 
 
==External Link==
 
 
{{GTAF|389423}}
 
{{GTAF|389423}}
  
 
{{GTA4-navi}}
 
{{GTA4-navi}}
 
+
{{File-stub}}
 
[[Category:Map Formats]][[Category:GTA 4]]
 
[[Category:Map Formats]][[Category:GTA 4]]

Revision as of 11:09, 22 February 2009

WPL is the format of the map-related files similar to IPLs from the previous games. It can be edited with WPL Manager.

File Format

Each world placement file starts with one single header followed by the object placement information. The structure for the header is very simple:

4b - UINT32   - Unknown
4b - UINT32   - Instances

The placement information corresponds to the previous instance section of the .ipl files. They have a binary structure like the binary ipl files introduced with San Andreas:

4b - FLOAT   - Position X
4b - FLOAT   - Position Y
4b - FLOAT   - Position Z
4b - FLOAT   - Rotation X
4b - FLOAT   - Rotation Y
4b - FLOAT   - Rotation Z
4b - FLOAT   - Rotation W
4b - UINT32  - Model name hash
4b - UINT32  - Unknown
4b - UINT32  - LOD Index (Index of another model in the current file)
4b - UINT32  - Unknown
4b - UINT32  - Unknown

Rotation information as Quarternion

XPL

In the XBox 360's version of GTA 4 same files have the extension .xpl. The XPL and WPL formats are same, but due to the fact XPL files are used on the Xenon platform its data is stored in the big-endian order.

External Link

GTA Net GTAForums topic