0 votes

What does happen to the old filesystem when ProjectSettings.load_resource_pack() is called? Do they are kept or are they all replaced by the new files?

in Engine by (676 points)

1 Answer

+2 votes


If you import a file with the same file path/name as one you already
have in your project, the imported one will replace it. This is
something to watch out for when creating DLC or mods (solved easily
with a tool isolating mods to a specific mods subfolder). However, it
is also a way of creating patches for one’s own game. A PCK file of
this kind can fix the content of a previously loaded PCK.

by (22 points)

Note that as of Godot 3.2, you can specify whether files should be replaced or not: https://docs.godotengine.org/en/latest/classes/class_projectsettings.html#class-projectsettings-method-load-resource-pack

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.