Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for Godot 4 PCK files #17

Closed
aaronfranke opened this issue Jul 7, 2022 · 4 comments · Fixed by #32
Closed

Add support for Godot 4 PCK files #17

aaronfranke opened this issue Jul 7, 2022 · 4 comments · Fixed by #32
Labels
enhancement New feature or request

Comments

@aaronfranke
Copy link

I tried to use this tool to extract a PCK file from a Godot 4 project on Linux, and I got an error that the version is unsupported:

$ ../install/bin/godotpcktool mirror-client.pck 
ERROR: pck is unsupported version: 2
ERROR: couldn't load pck file: mirror-client.pck

Please add support for extracting PCK files from Godot 4.

@hhyyrylainen hhyyrylainen added the enhancement New feature or request label Jul 7, 2022
@nikitalita
Copy link
Contributor

You can use GDRE tools as a reference for this: https://github.com/bruvzg/gdsdecomp/blob/master/utility/gdre_packed_source.cpp#L226

basically, in format version 2, they added a couple of additional fields to the header (changing the header length; they didn’t bother to use the reserved fields for some reason) and an additional flags field to every file entry.

they also added encryption support, which is here as well.

@hhyyrylainen
Copy link
Owner

At the latest I'll add support for this when Thrive is moving to Godot 4 (relevant issue for that: Revolutionary-Games/Thrive#2998).

@hhyyrylainen
Copy link
Owner

Does anyone have a Godot 4 .pck file to test with? A PR was just opened but Thrive is not on Godot 4 yet so I don't have a file to really verify things work.

@hhyyrylainen
Copy link
Owner

I just put out a new version of this tool that now supports reading Godot 4 .pck files: https://github.com/hhyyrylainen/GodotPckTool/releases/tag/v1.9

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants