godot-modding-dlc

Installation
SKILL.md

Modding, DLC and Patches (4.7)

Choose the kind of mod support

Level What mods can do How
Data mods new items, levels as JSON, textures, sounds, models read files from a mods folder at runtime (no Godot needed by modders)
Pack mods new scenes, scripts, resources; replace any game file .pck/.zip loaded with ProjectSettings.load_resource_pack(); modders use the Godot editor
Script-extension mods change existing game logic without replacing files the Godot Mod Loader addon (script extensions and hooks, used by shipped games)
Workshop discovery and install Steam UGC through GodotSteam; it downloads into a folder you then load like any other mod
Start with data mods plus a registry API. Add packs when modders need scenes and scripts.

Resource packs

  • ProjectSettings.load_resource_pack(path, replace_files := true, offset := 0) mounts a PCK or ZIP into res://. It returns false on failure. With replace_files = true, pack files override game files at the same path (texture packs, balance patches). Set false to protect the base game.
  • Timing: resources already loaded or preloaded stay cached. Load packs as early as possible, in an autoload's _init() (the first autoload), before the main scene loads. To swap later, reload with ResourceLoader.load(path, "", ResourceLoader.CACHE_MODE_REPLACE) and rebuild the scenes that use it.
  • Where to look: user://mods/ (always writable) and the folder next to the executable (OS.get_executable_path().get_base_dir() + "/mods", for Steam/manual installs; not writable on every platform). In the editor, OS.has_feature("editor") points to a dev folder instead.
  • Ask mods to put their files under res://mods/<mod_id>/ so two mods don't overwrite each other by accident. Overrides then become deliberate (same path as a game file).
  • A pack must be exported by the same Godot version (4.7.x) as the game, from a project with the same import settings. Give modders a "mod SDK" project: the game's public assets and scripts, a sample mod and an export preset (godot --headless --export-pack "Mod" mymod.pck, see godot-export-ci).
  • class_name in mod scripts isn't reliable (the global class cache comes from the game). Mods should reference scripts and scenes by path or through your registry.
  • C# games: GDScript mods still work in .NET builds. Mod C# assemblies aren't loaded from packs; supporting them needs your own AssemblyLoadContext code. Most games keep mods GDScript or data only.
Installs
10
GitHub Stars
54
First Seen
8 days ago