hhyyrylainen / GodotPckTool

Standalone tool for extracting and creating Godot .pck files
MIT License
383 stars 31 forks source link

Support reading of Godot4 .pck files #32

Closed rgson closed 1 year ago

rgson commented 1 year ago

Implements reading of Godot 4 .pck files (i.e. PCK version 2).

Decryption is not implemented. An error is produced if the pack's flags indicate that the content is encrypted.

Closes: #17

hhyyrylainen commented 1 year ago

This seems like this implements just reading? Which is fine, but I just want to confirm. I'll need to put a note in the readme / prevent trying to write out a .pck file with version 2 so that no one reports that as a bug.

rgson commented 1 year ago

That's correct.

I've pushed another commit now to at least block the saving of version 2 .pck files (until someone implements that part).

hhyyrylainen commented 1 year ago

The way the blocking is done seems fine to me. Do you happen to have a Godot 4 .pck file just so I can verify this works correctly now? I tried asking in #17 but no one has replied.

rgson commented 1 year ago

Sure. Here's a .pck from godot-demo-projects/2d/platformer exported with Godot 4.1.1.stable.official.bd6af8e0e on Linux.

Platformer 2D.pck.tar.gz