A simple unpacker for Godot Engine package files (.pck)
godotdec <input_file> [<output_dir>]
Godot Engine's package format is specified as:
|0x43504447||Magic number (GDPC)|
|4 x Int32||Engine version: version, major, minor, revision|
|16 x Int32||Reserved space, 0|
|Int32||Number of files in archive|
|----- Begin of file index, for each file the following data is stored ----|
|Int32||Length of path string|
|String||Path as string, e.g. res://actors/Enemy/enemy.atex|
|----- Begin of file contents -----|
The source code of the .pck packer can be found here
- Modified engine versions may use a custom package format, which godotdec does not support
- Very big files might not be unpacked correctly, but that's untested for now
- MD5 checksum is not used to verify extracted files
No reverse engineering has been used to write this tool.
I released it as a helper for artists to search games for unlicensed use of their assets. It is not meant to encourage extraction with the sole purpose of using assets in your own products without permission of the copyright holder.
Remember: don't steal assets from other people's games. Respect copyrights. And don't protect your own games - it's unnecessary effort.