0 votes

Hi guys,

I want to add an DLC-System in my game.

https://godotengine.org/qa/9807/downloadable-content-access-dlc-solved?show=9807#q9807 described it für GoDot 2, but in Godot 3.0.2 the identifier "Globals" doesn't exist anymore.
Does anyone have ideas, how to load .pck files inngame in Godot 3.0 ?

Have a nice day :-)

in Engine by (32 points)

1 Answer

+1 vote
Best answer

As of Godot 3.0, the Globals singleton is renamed to ProjectSettings.

Therefore, you should now use:

ProjectSettings.load_resource_pack(path_to_pack)
by (12,653 points)
selected by

Thank you very much.
this solved the Problem.

For other guys: Here is an example:

ProjectSettings.load_resource_pack("Scene5.pck")

This line loads the Package Scene5.pck which you place next to the executable of your exported Game. Then it is implemented in your Scene-Tree as you exported it. Great feature.

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 Frequently asked questions and 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 [email protected] with your username.