Question about PCK files

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By JulioYagami

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?

:bust_in_silhouette: Reply From: medex81

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.

Note that as of Godot 3.2, you can specify whether files should be replaced or not: ProjectSettings — Godot Engine (latest) documentation in English

Calinou | 2020-05-04 07:57