SPK (file format)

The information on this page is specific to Wolfenstein .


SPK is a Stream pack, an archive for game assets used by the Streamtech stream loader.

Technical details

File starts with a magic number (4 bytes), then come 1-n chunks.

Each chunk consists of a magic number referring to the format (4 bytes), the uncompressed size (4 bytes), the compressed size (4 bytes) and then a zlib-compressed block (sizes only refer to this block).

each block (uncompressed) contains a file table and then the files: the file table contains a bunch of 0-terminated strings (path + filename) and after each string 2x the size of the corresponding file (2x 4 bytes)

The files themselves are always aligned to 4-byte boundaries, the padding bytes are somehow not always 0, for unknown reason.

The extensions will be unverified until the SDK release.

Magic Number | Format | Extension

  • AASS | aas28 | AAS
  • ENTS | emap | Binary entities
  • HKXA | hkxa |
  • HKXR | hkxr |
  • HKXS | hkxs |
  • MODL | md5r | MD5R
  • PBBF | MD5RBin | MD5RBin
  • PROC | proc | MD5RProc
  • SGFX | gfx | Scaleform GFX
  • SKEL | skel |
  • SNDS | mp3 | MP3
  • TXTR | DDS | DDS
  • VIDO | bik | Bink Video

Tools

Unpacker with source code: http://www.daedalus-tools.mx.tc/