WPFL

From GTAMods Wiki
Revision as of 01:13, 5 August 2009 by Gforce (talk | contribs) (File Format)
Jump to navigation Jump to search

File Format

WPFL is a particle effects file usually located in the "Rockstar Games\Grand Theft Auto IV\pc\data\effects" folder

HEADER
offset size data desc
================================
0x00 4 byte  offset (24+8 bit)
0x04 4 byte padding [CD CD CD CD]
0x08 4 byte  offset (24+8 bit)
0x0C 4 byte  offset (24+8 bit)
0x10 4 byte padding [CD CD CD CD]
0x14 4 byte  offset (24+8 bit)
0x18 4 byte  offset (24+8 bit)
0x1C 4 byte LONG (always 0)
DATA HEADER
offset size data desc
================================
0x00 4 byte  LONG
0x04 4 byte LONG (always 0)
0x08 4 byte  LONG (always 0)
0x0C 4 byte  LONG (always 1; maybe ID of 1st record ?)
0x10 4 byte offset (24+8 bit)
0x14 2 byte  WORD
0x16 2 byte  WORD (identical to 0x14)
0x18 4 byte  offset (24+8 bit)
0x1C 2 byte WORD
0x1E 2 byte WORD (identical to 0x1C)
0x20  ... varying data (some with corresponding offset+WORD+WORD organisation)

(The offset 0x10 refers to list of LONG values (4 byte) and following 0x14 WORD to the size of the list. List ends with 0xCD padding) (The offset 0x18 refers to another list of offsets (24+8 bit) and the following 0x1C WORD to the size of this list. List ends with 0xCD padding)

Discussion Topics