Topic was automatically imported from the old Question2Answer platform.
Asked By
CrazyLab
Old Version
Published before Godot 3 was released.
In order to update my game resource. I used multi PCK file.
data.pck + patch0.pck + patch1.pck …
After downloaded the patch.pck files. I load the pck by function
Globals.load_resource_pack(“user://” + pck.name)
But when I use the scene res in patch.pck. I can’t find it. Because the res has been renamed to *.converted.scn.
Now Godot saved the PathRemap info in the engine.cfg.
which just reload the res://engine.cfb file(Which has been changed. now it’s the engine.cfg in patch.pck). reprocess PathReMap and InputMap Info.
and in the GDScript
var pck = version_meta.get_pck(i)
Globals.load_resource_pack(game_dir + pck.name)
Globals.reload_settings_binary("res://engine.cfb")
I don’t think this is a good solution Because I changed the core code of Godot. But for now, it does fulfill my demand.