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?

asked Jan 21 in Engine by JulioYagami (632 points)

1 Answer

+2 votes

https://docs.godotengine.org/en/3.1/getting_started/workflow/export/exporting_pcks.html

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.

answered May 3 by medex81 (18 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.