hhyyrylainen / GodotPckTool

Standalone tool for extracting and creating Godot .pck files

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Embedded pck files

KANAjetzt opened this issue · comments

Hi, first of all thanks for this great tool!

Is it possible to access the pck file if it is embedded in to the .exe?

I'm co creating a mod loader and as ithinkandicode mentioned in #25 we are using it with great success to add the mod loader autoload at the right spot to the project.binary.

Now we have the issue that some games embed the pck and it looks like we cant access that with the PckTool.

I second that this tool is great 🤗

For reference, extracting the PCK from the EXE is possible with GodotPCKExplorer. We'd like to limit our dependencies if possible, and if you think this would be a helpful/viable feature to add to PckTool.

This sounds like a pretty doable feature. One tricky part is that I assume the executable layouts are different enough that separate code for finding the start of the embedded pck will be needed for Linux, Windows and mac.

Great news!

Can you give us an estimate on how long this might take to implement?
Totally understandable if you don't have the time right now.
I might be able to find someone to create a PR for this issue.

Well, so far I've only implemented features I need myself for this tool so... I don't really plan on working on this feature myself but I'll accept a pull request adding this feature.
The game I need to use this tool on, Thrive, is one I'm part of developing so there's no foreseeable need to have embedded pck support for my use case.

Makes a lot of sense. Thanks for the quick response 👍

You can steal the implementation that I have here for this: https://github.com/bruvzg/gdsdecomp/blob/master/utility/gdre_packed_source.cpp#L140