WPFL: Difference between revisions

m (1 revision: Imported from gtamodding.com - under GNU FDL)
m (→‎File Format: clean up,)
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{File-stub}}
'''WPFL''' is a particle effects file usually located in the "Rockstar Games\Grand Theft Auto IV\pc\data\effects" folder
'''WPFL''' is a particle effects file usually located in the "Rockstar Games\Grand Theft Auto IV\pc\data\effects" folder


Line 5: Line 4:
  HEADER
  HEADER
  offset size data desc
  offset size data desc
================================
================================
  0x00 4 byte  offset (24+8 bit)
  0x00 4 byte  offset (24+8 bit)
  0x04 4 byte padding [usually 0xCDCDCDCD] *
  0x04 4 byte padding [usually 0xCDCDCDCD] *
Line 19: Line 18:
  DATA HEADER
  DATA HEADER
  offset size data desc
  offset size data desc
================================
================================
  0x00 4 byte  LONG
  0x00 4 byte  LONG
  0x04 4 byte LONG (always 0)
  0x04 4 byte LONG (always 0)
Line 35: Line 34:
(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)
(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 ==
{{gtaiv}}
* {{GTAF|409182|Particle FX discussion}} – by {{U|ZAZ}}
[[Category:Map Formats]]{{fdl}}
* {{GTAF|382615|WPFL post in IV model format topic}} – by {{U|pr0f}}
 
{{GTA4-navi}}
[[Category:GTA 4]][[Category:Map Formats]]{{fdl}}

Latest revision as of 20:30, 23 January 2010

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

File Format

HEADER
offset size data desc
====================
0x00 4 byte  offset (24+8 bit)
0x04 4 byte padding [usually 0xCDCDCDCD] *
0x08 4 byte  offset (24+8 bit)
0x0C 4 byte  offset (24+8 bit)
0x10 4 byte padding [usually 0xCDCDCDCD] *
0x14 4 byte  offset (24+8 bit)
0x18 4 byte  offset (24+8 bit)
0x1C 4 byte LONG (always 0)

* 0xCDCDCDCD comes from nonallocated memory on Microsoft systems, so the padding can also simply be left 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)

Copyrighted

This page is licensed under the GNU Free Documentation Licence. This page has a separate license to the CC-BY-SA that applies to most of Grand Theft Wiki.

The full text of the GNU FDL v1.2 is here. Click the "History" button to see the full list of authors. See Grand Theft Wiki:Copyright for more detail on our copyright policy.

GNU Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts.
See Grand Theft Wiki:Copyright for more information.