Difference between revisions of "WPL"

From GTAMods Wiki
Jump to navigation Jump to search
(File Format)
m
Line 23: Line 23:
 
  4b - UINT32  - Unknown
 
  4b - UINT32  - Unknown
 
  4b - UINT32  - Unknown
 
  4b - UINT32  - Unknown
 +
 +
''Rotation information as [[Wikipedia:Quarternion|Quarternion]]''
  
 
<!---
 
<!---

Revision as of 20:10, 5 February 2009

World PLacement files are map-related files similar to IPL files from previous games. It can be edited using 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


External Link

GTA Net GTAForums topic