erysdren's WWW site

software, gameware, strangeware

RSS Feed

Quake Engine PAK Format
2024-06-25

The PAK file format stores uncompressed files in a table. It usually ends with the .pak file extension. It was introduced by id Software with Quake (1996).

NOTE: The values here are assumed to be in little-endian byte order.

OffsetSizeDescription
0x004Magic identifier (PACK in ASCII)
0x044Offset to the file table from the start of the file
0x084Number of entries in the file table

File Table Entry

OffsetSizeDescription
0x0056File name and path in ASCII
0x384Offset to the file data from the start of the PAK file
0x3C4Size of the file data in bytes

HROT

HROT (2023) also uses the PAK format, but slightly modified. The magic identifier is HROT in ASCII, and the file table entry structure looks like this:

OffsetSizeDescription
0x00120File name and path in ASCII
0x784Offset to the data from the start of the file
0x7C4Size of the data in bytes