Quake PAK

From Just Solve the File Format Problem
(Difference between revisions)
Jump to: navigation, search
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
{{FormatInfo
 
{{FormatInfo
| name          = Quake .pak
+
| name          = Quake PAK
 
| formattype    = electronic
 
| formattype    = electronic
 
| subcat        = Game data files
 
| subcat        = Game data files
Line 31: Line 31:
 
* [[Half-Life]]
 
* [[Half-Life]]
  
Later Id Tech games (starting from Quake 3/ID Tech 3) switched to [[ZIP]] format with {{ext|pk3}} extension.
+
Later Id Tech games (starting from Quake 3/ID Tech 3) switched to [[ZIP]] format with '''[[Quake PK3|.pk3]]''' extension.
  
 
== Description ==
 
== Description ==
Line 48: Line 48:
  
 
* [https://quakewiki.org/wiki/.pak .pak — Quake Wiki]
 
* [https://quakewiki.org/wiki/.pak .pak — Quake Wiki]
 +
 +
[[Category:Id Software]]
 +
[[Category:Archiving]]

Revision as of 20:28, 4 November 2018

File Format
Name Quake PAK
Ontology
Extension(s) .pak
Magic Bytes PACK
Kaitai Struct Spec quake_pak.ksy

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:

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

Description

This file format is very simple. File starts with PACK 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

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox