Difference between revisions of "User:SSX-Breaker"

From GTAMods Wiki
Jump to navigation Jump to search
m (Either you use User: in front of the nickname or (a bit more easy) the U-Template ;-))
 
(4 intermediate revisions by one other user not shown)
Line 1: Line 1:
==Display==
+
'''WPL''' is the format of the map-related files similar to [[IPL]]s from the previous games. It can be edited with [[WPL Manager]].
; 0x68AEE0: Cinema top border height [float].
 
; 0x68AEE4: Cinema bottom border height [float].
 
; 0x7E46F5: Cinema border on/off [byte].
 
; 0xA10AF6: Replay display on/off [byte].
 
; 0x86963A: Hud on/off [byte].
 
; 0x869652: Widescreen on/off [byte].
 
  
==Mp3 player==
+
== File Format ==
; 0xA108B0: Number of mp3s found [dword].
 
; 0xA10B50: Mp3 station playing [byte].
 
; 0x9753E0: Pointer to first mp3 file block [dword].
 
; 0x97881C: Index of mp3 playing [dword].
 
; 0x978550: Pointer to HDIG Driver (mss) [dword].
 
; 0x978668: Current stream (mss) [dword].
 
; 0x94C104: Total length of all mp3s (in milliseconds) [dword].
 
  
==Loading screen==
+
Each world placement file starts with one single header followed by the object placement information. The structure for the header is very simple:
; 0xA0CE94: Progress [float].
 
; 0x68E6FC: Progress step [float].
 
; 0x68E70C: Bar width [float].
 
; 0x68E710: Bar height [float].
 
; 0x68E708: Distance from bottom [float].
 
; 0x68E704: Distance from left [float].
 
  
==Menu==
+
4b - UINT32  - Unknown
; 0x703997: Selected menu index [byte].
+
4b - UINT32  - Instances
; 0x936908: Mouse button pressed [byte].
 
; 0x869660: Selected menu item id [byte].
 
; 0x869728: Current menu id [byte].
 
; 0x68D5D4: Stats menu scroll speed [float].
 
; 0x68D12C: Stats menu line spacing [float].
 
  
==Player block==
+
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]]:
; +1032: Current weapon blocks [24 bytes].
 
; +354: Health [float].
 
  
===Weapon Block===
+
'''Section 0 - INST'''
; +12: Ammo [dword].
 
  
==Entity Block===
+
4b - FLOAT  - Position X
; +34: Position X [float].
+
4b - FLOAT  - Position Y
; +38: Position Y [float].
+
4b - FLOAT  - Position Z
; +3C: Position Z [float].
+
4b - FLOAT  - Rotation X
 +
4b - FLOAT  - Rotation Y
 +
4b - FLOAT  - Rotation Z
 +
4b - FLOAT  - Rotation W
 +
4b - UINT32  - Model name [[:Category:Static_Model_Hashes|hash]]
 +
4b - UINT32  - Unknown
 +
4b - UINT32  - [[LOD]] Index (Index of another model in the current file)
 +
4b - UINT32  - Unknown
 +
4b - UINT32  - Unknown
  
==Helicopter::Process Block==
+
''Rotation information as [[Wikipedia:Quarternion|Quarternion]]''
; 0xA10ADB: Police helicopter state [byte].
 
  
==See Also==
+
'''Section 3 - Parked Cars'''
* [[Function Memory Addresses (VC)]]
 
  
==External Link==
+
4b - FLOAT  - Position X
*[http://www.gtaforums.com/index.php?showtopic=117195 Documenting GTA3/VC memory addresses] - GTAForums topic
+
4b - FLOAT  - Position Y
[[Category:Memory Addresses]][[Category:GTA VC]]
+
4b - FLOAT  - Position Z
 +
4b - FLOAT  - Unknown
 +
4b - FLOAT  - Unknown
 +
4b - FLOAT  - Unknown
 +
4b - UINT32  - Model name [[:Category:Static_Model_Hashes|hash]]
 +
4b - INT32  - Unknown
 +
4b - INT32  - Unknown
 +
4b - INT32  - Unknown
 +
4b - INT32  - Unknown
 +
4b - INT32  - Unknown
 +
4b - INT32  - Unknown
 +
4b - INT32  - Unknown
 +
 
 +
'''Section 10 - Unknown Zon or Cull'''
 +
 
 +
4b - FLOAT    - Position X1
 +
4b - FLOAT    - Position Y1
 +
4b - FLOAT    - Position Z1
 +
4b - FLOAT    - Position X2
 +
4b - FLOAT    - Position Y2
 +
4b - FLOAT    - Position Z2
 +
 
 +
'''''X1, Y1, Z1''' = lower left vertex position'' and
 +
'''''X2, Y2, Z2''' = upper right vertex position''
 +
 
 +
 
 +
 
 +
<!---
 +
;Header
 +
<source lang="cpp">
 +
struct Header_t
 +
{
 +
    BYTE byteUnknown01[4];
 +
    DWORD dwNbrOfBlockInst;
 +
};
 +
</source>
 +
 
 +
;InstBlock (Start from 0x44)
 +
<source lang="cpp">
 +
struct Inst_t
 +
{
 +
    float  fPosition[3];
 +
    float  fRotation[4];
 +
    DWORD dwModelNameHash;
 +
    BYTE byteUnknown01[4];
 +
    DWORD dwAttachedLod;
 +
    BYTE byteUnknown02[8];
 +
};
 +
</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."-->
 +
 
 +
== Tools ==
 +
* [[WPL Manager]] &ndash; by {{U|UZI-I|Yoann (UZI-I)}}
 +
 
 +
== External Link ==
 +
* {{GTAF|389423|WPL file format specification}}
 +
 
 +
{{GTA4-navi}}
 +
{{File-stub}}
 +
[[Category:Map Formats]][[Category:GTA 4]]

Latest revision as of 10:15, 25 May 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:

Section 0 - INST

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

Section 3 - Parked Cars

4b - FLOAT   - Position X
4b - FLOAT   - Position Y
4b - FLOAT   - Position Z
4b - FLOAT   - Unknown
4b - FLOAT   - Unknown
4b - FLOAT   - Unknown
4b - UINT32  - Model name hash
4b - INT32   - Unknown
4b - INT32   - Unknown
4b - INT32   - Unknown
4b - INT32   - Unknown
4b - INT32   - Unknown
4b - INT32   - Unknown
4b - INT32   - Unknown

Section 10 - Unknown Zon or Cull

4b - FLOAT     - Position X1
4b - FLOAT     - Position Y1
4b - FLOAT     - Position Z1
4b - FLOAT     - Position X2
4b - FLOAT     - Position Y2
4b - FLOAT     - Position Z2

X1, Y1, Z1 = lower left vertex position and X2, Y2, Z2 = upper right vertex position



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.

Tools

External Link