Modern Warfare PAK Files

From COD Engine Research
Revision as of 01:25, 13 November 2014 by Red-EyeX32 (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search


There are two different types of PAK files used by the Modern Warfare series (MW, MW2, MW3) and Advanced Warfare, Packfiles and Imagefiles. Packfiles store audio data and Imagefiles store image data. Both use the same extension (.pak).

Imagefile

Uses the same common header as all fastfiles do. After the header is nothing else but the data.

Header

Name Offset Description
Magic 0x0 "IWffu100" or "S1ffu100"
Version 0x4 See fastfile versions

On PS3, the compression method is the same as it is for fastfiles. Image data is concatenated as one file, split into blocks each 0x10000 bytes, then each block is compressed, and appended to the file.

On XBOX, each image's data is compressed, then appended to the file.

No image headers are stored in these files. It is currently unknown how they are loaded.

Packfile

Header

Description Offset Size
Hash 0x0 4
Alignment 0x4 PS3: 0x7FC
XBOX: 0x46C

The header is only found on Modern Warfare 2 & 3. After the header is the audio data. Each audio file is concatenated and aligned (by 0x800 on PS3). These sounds are known as streamed sounds. They are loaded through sound alias list assets by offsets (in StreamedSound).