Introduction
A PCK file is a resource pack of the Godot game engine. It bundles scripts, scenes, shaders, models, textures, sounds and other assets, and a game can load further packs while it runs, for add-ons, patches and mods. Godot also accepts ZIP files for the same purpose.
Structure
The header starts with the magic number GDPC, followed by the pack format
version (the current engine source names versions 2, 3 and 4), the engine version and a
set of flags. A directory lists each file with its path, offset, size, MD5 hash and
flags. The directory and single files may be encrypted.
A pack may be a file of its own, or be embedded in or appended to the game’s executable.
Not described
This page is a first outline. The layout is not yet described in full here.
Known, not yet covered
- Reference: the exact header and directory layout of each version, encryption and patch entries.
- Viewer: the site has no viewer for this format.
Links
Software
- Godot – open-source game engine that exports and loads PCK files
Reference
- Exporting packs, patches, and mods – the Godot documentation
- file_access_pack.cpp – the engine’s source code that reads packs (C++)
- file_access_pack.h – the magic number, version and flag constants