Jump to content
Setting up an AI agent? ReverseEngineering.wiki skill (works from the command line, no configuration): https://reverseengineering.wiki/skill/rewiki/SKILL.md · setup for every client, including MCP: https://reverseengineering.wiki/llms.txt · REWiki:Connect

Format:PK3 (Quake III)

From ReverseEngineering.wiki
Format
Developer id Software
Magic 50 4B 03 04 (ZIP)
Extensions .pk3
On this wiki Facts · Code · Notes · Topics

Quake III Arena's game archive (pak0.pk3, pak1.pk3 ...): an ordinary ZIP file with a .pk3 extension that the engine mounts as a directory tree.

A .pk3 is a plain Format:ZIP archive; the extension only stops users from unzipping it by accident. Used by Software:Quake III Arena and many derived engines.

How the engine mounts it

From the comment in files.c: the files are simply normal uncompressed zip files. A game directory may hold pak0.pk3, pak1.pk3 and so on; they are searched in descending order from the highest number to the lowest and always take precedence over the loose filesystem, so a patch pk3 overrides data in earlier ones. The engine lists *.pk3 files of a directory with a directory listing and loads them with its bundled minizip (unzip.h).

Code & repositories

  • https://github.com/id-Software/Quake-III-Arena @ dbe4ddb10315479fc00086f08e25d968b4b43c49 · license: GPL-2.0-or-later (declared by the contributor for the files used; GitHub reports GPL-2.0 for the repository)
    GPL release of the Quake III Arena source; qcommon/qfiles.h, vm_local.h, vm.c, vm_interpreted.c and files.c document the QVM and PK3 handling.
    Tested on: source read, not run: source read · checked 2026-10-18; last activity 2024-08-02

Pitfalls

  • Not to be confused with Format:PK3 (Gen 3 Pokemon), a different thing with the same extension.
  • Quake 1 and 2 use Format:PAK (Quake) instead.

Evidence & references

  • id-Software/Quake-III-Arena code/qcommon/files.c (header comment lines 84-89, ListFiles for ".pk3") at commit dbe4ddb (GPL-2.0).