Difference between revisions of "User:SSX-Breaker"

From GTAMods Wiki
Jump to navigation Jump to search
(Modifications of SSX-Breaker)
m (Either you use User: in front of the nickname or (a bit more easy) the U-Template ;-))
 
(7 intermediate revisions by one other user not shown)
Line 1: Line 1:
{{ToolBox
+
'''WPL''' is the format of the map-related files similar to [[IPL]]s from the previous games. It can be edited with [[WPL Manager]].
| version = 1.0
 
| author  = {{Ui|xmen}}
 
| game    = [[GTA 4]]
 
| genre  = [[:Category:Mod Installation|mod installer]]
 
}}
 
  
'''X Mod Installer''' aka XMI is an advance tool to install IV mod, it provides a high-level security to your mod files and very safe installation. It supports mod security option if its checked the mod will only install in IV directory. Moreover, XMI supports vary range of operations, from '''Files''', '''Text''' to all [[IMG]] operations.
+
== File Format ==
  
== Major Features ==
+
Each world placement file starts with one single header followed by the object placement information. The structure for the header is very simple:
  
=== Version 1.0 ===
+
4b - UINT32  - Unknown
 +
4b - UINT32  - Instances
  
* Auto-Backup of current files
+
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]]:
* Support Operations
+
 
** Archive
+
'''Section 0 - INST'''
*** [[IMG]]
+
 
**** Add
+
4b - FLOAT  - Position X
**** Delete
+
4b - FLOAT  - Position Y
**** Rename
+
4b - FLOAT  - Position Z
**** Replace
+
4b - FLOAT  - Rotation X
** File/Directory
+
4b - FLOAT  - Rotation Y
*** Copy
+
4b - FLOAT  - Rotation Z
*** Delete
+
4b - FLOAT  - Rotation W
*** Rename
+
4b - UINT32  - Model name [[:Category:Static_Model_Hashes|hash]]
** Text
+
4b - UINT32  - Unknown
*** Insert
+
4b - UINT32  - [[LOD]] Index (Index of another model in the current file)
*** Delete
+
4b - UINT32  - Unknown
*** Replace
+
4b - UINT32  - Unknown
* Intellisence And Flexible
+
 
* Very Safe Installation
+
''Rotation information as [[Wikipedia:Quarternion|Quarternion]]''
* Secured MOD Info And Files
+
 
* Can Handle Upto 8191 PB Data, 1.9 GB Each File
+
'''Section 3 - Parked Cars'''
* Instant Installer Preview
+
 
 +
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 [[: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 ==
 
== External Link ==
*[http://www.x-squares.com/FilesVault.aspx?GroupID=61b9a595-1c87-423c-8703-522c1dd19d98 Download]
+
* {{GTAF|389423|WPL file format specification}}
*{{GTAF|392743}}
 
  
 
{{GTA4-navi}}
 
{{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