Is it possible to append files to pck (or patch files)?

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

Hey guys,

I’m curious if it’s possible to patch your game after receiving some new files from a server. For example, for a multiplayer game some gdscripts need to be updated or “patched”.

Instead of sending over the entire .pck, I was curious if we could just append new files inside the .pck. Not sure if that is possible, but yeah thanks :slight_smile:

:bust_in_silhouette: Reply From: Akien

I think Godot supports using multiple .pck files, like you would have a main one that can’t be modified and has the main logic to contact the server, etc., and could then download other .pck to extend (and maybe override) the default behaviour (think DLC).

This is sadly undocumented though, I have no clue how it works, I just heard punto talk about it. Will open an issue on godot-docs about it.

Edit: Document multiple PCK usage (think DLCs) · Issue #154 · godotengine/godot-docs · GitHub

Oops, I accidentally flagged your comment, lol .Was trying to click reply my bad :slight_smile:

The support of multiple pck files would be great! I could separate some game logic out. Although, I honestly, think if we could append a file into a pck or something would be ideal to be honest. But, anyway would work. Thanks for the information

wombatTurkey | 2016-05-25 08:10