The Godot Q&A is currently undergoing maintenance!

Your ability to ask and answer questions is temporarily disabled. You can browse existing threads in read-only mode.

We are working on bringing this community platform back to its full functionality, stay tuned for updates. | Twitter

0 votes

I am currently considering the architecture of a game project I'm starting, and one thing that I want to consider from the ground up is mod support. To this end, I want to allow users to temporarily modify scripts contained in both the game's .pck file and .pck files distributed with other mods. Ultimately, I want to have a system that does to GDScript as the Harmony library does to compiled C#/IL for Unity games (

In practice, what I want is a way for mods containing packaged GDScript to be able to access and modify other packaged GDScripts as though they were plain text strings, preferably without any significant impact on performance.

To be clear, I don't want to change the actual .pck files in any way. Instead, I want to change the scripts loaded by the game.

Godot version v3.4.4.stable.official.419e713a2
in Engine by (38 points)

1 Answer

0 votes

If a pck file is loaded with and it contains an file with the same name as the 'original' project, then it should replace the original version (that could also mean that it breaks the program too).
See this for more information

by (244 points)
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 Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.