Quake PAK

Quake .pak is the container file format for storing game assets in versions 1 and 2 of ID Tech game engine and some derivatives of it, including following games:


 * Quake
 * Quake 2
 * Hexen II
 * Half-Life

Later Id Tech games (starting from Quake 3/ID Tech 3) switched to ZIP format with extension.

Description
This file format is very simple. File starts with  magic string (4 octets), then 4-byte offset to file table and 4-byte length (measured in bytes) of it.

File table consists of entries consisting of:


 * file name, including path: 56-byte null-terminated string. No leading slash.
 * file contents offset (from beginning of .pak file), 4 bytes
 * file contents length

All numbers are little-endian.

Links

 * .pak — Quake Wiki