Can I load scripts and scenes from a different pck file?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By user41420082
:warning: Old Version Published before Godot 3 was released.

If I ever decide to make additional content for my game, how should I make it load the additional pck file that will contain the new scenes, maps, scripts, assets, etc? In addition to the main pck of course.

Hi, I had the same question as yours. Except I didn’t think of using .pck files for that purpose. You can see question I posted, it has some useful replies.
Then I though of creating a launcher for the game. It will install the binaries from the server with corresponding version and for needed platform. That way you could have DLCs, different version, etc.

EDIT: Just found something in Godot docs

EnrikeChurin | 2021-07-10 23:39

:bust_in_silhouette: Reply From: EnrikeChurin

I’ve finally figured it out. This docs page describes exactly what you need. By using this code, you can import .pck file into the project.


Now you can use the assets as if you had them in the project from the start

var imported_scene = load("res://mod_scene.tscn")