Difference between revisions of "WPL"

From GTAMods Wiki
Jump to navigation Jump to search
Line 3: Line 3:
  
 
==File Format==
 
==File Format==
Inst(inst) section starts from 0x44
+
;Header
 +
struct Header_t
 +
{
 +
    BYTE byteUnknown01[ 4 ];
 +
    DWORD dwNbrOfBlockInst;
 +
};
  
;Inst(inst)
+
 
  float[3]  X, Y, Z
+
;InstBlock (Start from 0x44)
float[4] RX, RY, RZ, RW
+
  struct Inst_t
uint     ModelNameHash
+
{
byte[16unknown
+
    float fPosition[ 3 ];
 +
    float fRotation[ 4 ];
 +
    DWORD dwModelNameHash;
 +
    BYTE byteUnknown01[ 4 ];
 +
     DWORD dwAttachedLod;
 +
    BYTE byteUnknown02[ 8 ];
 +
  };
  
 
{{File-stub}}
 
{{File-stub}}

Revision as of 20:50, 6 January 2009

World PLacement files are map-related files similar to IPL-files. It can be edited using WPL Manager.


File Format

Header
struct Header_t
{
    BYTE byteUnknown01[ 4 ];
    DWORD dwNbrOfBlockInst;
};


InstBlock (Start from 0x44)
struct Inst_t
{
    float  fPosition[ 3 ];
    float  fRotation[ 4 ];
    DWORD dwModelNameHash;
    BYTE byteUnknown01[ 4 ];
    DWORD dwAttachedLod;
    BYTE byteUnknown02[ 8 ];
};

External Link

GTA Net GTAForums topic