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

Unsupported PCK format in Godot 4.3 #40

Open
Elouazouzi opened this issue Dec 24, 2024 · 1 comment
Open

Unsupported PCK format in Godot 4.3 #40

Elouazouzi opened this issue Dec 24, 2024 · 1 comment
Labels
question Further information is requested

Comments

@Elouazouzi
Copy link

Godot 4.3 fails to load the generated PCK file due to PCK version mismatch.

Engine Error:
E 0:00:24:0011 try_open_pack: Pack version unsupported: 1. <C++ Error> Condition "version != 2" is true. Returning: false <C++ Source> core/io/file_access_pack.cpp:210 @ try_open_pack()

Steps to reproduce:

  1. Create a JSON file "export.json" listing the assets to include in the PCK file:
[
    {
        "file": "./story_1/script.json",
        "target": "stories/story_1/script.json"
    },
    {
        "file": "./story_1/assets/textures/character_1.png",
        "target": "stories/story_1/assets/textures/character_1.png"
    }

]
  1. Generate the PCK file:
    godotpcktool story_1.pck -a a --command-file export.json
  2. Load the resource pack in Godot.
@hhyyrylainen
Copy link
Owner

So you are creating a .pck file from scratch? This tool defaults to creating Godot 3 pck files. To create one from scratch using the Godot 4 format, you need to specify --set-godot-version 4.0.0 as per the readme https://github.com/hhyyrylainen/GodotPckTool?tab=readme-ov-file#specifying-engine-version section.

Could you try that? I think it should work but if you already tried it, it's possible there's a bug causing the Godot 4 format to not be selected internally correctly.

@hhyyrylainen hhyyrylainen added the question Further information is requested label Dec 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants