0 votes

https://docs.godotengine.org/en/stable/getting_started/workflow/export/exporting_pcks.html
I've done everything here, but still not work.

func _ready():
ProjectSettings.load_resource_pack("res://patch.pck")

This script is already in my test-game.
※I've tryed by using "func yourfunction" like the tutorial said but it's not work so I change it to "func _ready".

I exported this game to exe, and back to place a random image in main scene.
Test the game, all things are fine.
Then I export this new version game as "patch.pck".
I place patch.pck in the folder where my test-game.exe in.
And it's not work. The scene is still empty like the first version.
※Tryed custom user dir(AppData\Roaming\test-game), too, but still not work.

Did I do anything wrong?
I've scearch this question a hole day but seems nobody have this question.

Godot version v3.2.3
in Engine by (12 points)

1 Answer

0 votes

You can't access the .pck file from the res:// filesystem. You have to pass the full file path as it's seen by the operating system. For example: "c:\mygame\mypack.pck"

by (22 points)
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.