Difference between revisions of "WPL"

From GTAMods Wiki
Jump to navigation Jump to search
m
Line 3: Line 3:
  
 
==File Format==
 
==File Format==
 +
<source lang="cpp">
 
;Header
 
;Header
 
  struct Header_t
 
  struct Header_t
 
  {
 
  {
     BYTE byteUnknown01[ 4 ];
+
     BYTE byteUnknown01[4];
 
     DWORD dwNbrOfBlockInst;
 
     DWORD dwNbrOfBlockInst;
 
  };
 
  };
 +
</source>
  
  
 
;InstBlock (Start from 0x44)
 
;InstBlock (Start from 0x44)
 +
<source lang="cpp">
 
  struct Inst_t
 
  struct Inst_t
 
  {
 
  {
     float  fPosition[ 3 ];
+
     float  fPosition[3];
     float  fRotation[ 4 ];
+
     float  fRotation[4];
 
     DWORD dwModelNameHash;
 
     DWORD dwModelNameHash;
     BYTE byteUnknown01[ 4 ];
+
     BYTE byteUnknown01[4];
 
     DWORD dwAttachedLod;
 
     DWORD dwAttachedLod;
     BYTE byteUnknown02[ 8 ];
+
     BYTE byteUnknown02[8];
 
  };
 
  };
 +
</source>
  
 
{{File-stub}}
 
{{File-stub}}

Revision as of 03:57, 7 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