Godot Modding Dlcのロゴ

Godot Modding Dlc

コミュニティ
EL4CTEO
godot-modding-dlc

Mod support, DLC and patches in Godot 4.7 - resource packs (PCK/ZIP) with load_resource_pack, load timing and file overrides, mod folders, manifests and load order, registries and a mod API, runtime loading of images, audio, glTF and fonts, PCKPacker mod tools, Godot Mod Loader, Steam Workshop, DLC packs, delta patches, security limits. Use for mods, user content, DLC or patching.

概要

公開者EL4CTEO
リポジトリgodot-skills
スキル名godot-modding-dlc
スター
60
フォーク
6
同梱ファイル
1
ライセンスMIT
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 1個の同梱ファイル

    モデルが作業中に読み取れるスクリプト、テンプレート、参考資料です。ファイルは読み取り専用で、実行されることはありません。

  • オープンソース

    EL4CTEOがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキル「Godot Modding Dlc」をTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/EL4CTEO/godot-skills/tree/main/skills/godot-modding-dlc
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/EL4CTEO/godot-skills.git /tmp/godot-skills
mkdir -p .claude/skills
cp -r /tmp/godot-skills/skills/godot-modding-dlc .claude/skills/godot-modding-dlc
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでGodot Modding Dlcを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあるとすぐに、モデルが自動的にGodot Modding Dlcを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Godot Modding Dlcは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

Modding, DLC and Patches (4.7)

Choose the kind of mod support

LevelWhat mods can doHow
Data modsnew items, levels as JSON, textures, sounds, modelsread files from a mods folder at runtime (no Godot needed by modders)
Pack modsnew scenes, scripts, resources; replace any game file.pck/.zip loaded with ProjectSettings.load_resource_pack(); modders use the Godot editor
Script-extension modschange existing game logic without replacing filesthe Godot Mod Loader addon (script extensions and hooks, used by shipped games)
Workshopdiscovery and installSteam 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.

Manifest, order, conflicts

  • Each mod has mod.cfg (a ConfigFile): id, name, version, game_version (min compatible), depends, priority. Read it before loading the pack (the reference reads it from inside a ZIP with ZIPReader, or from a folder).
  • Sort by dependencies, then priority. Packs loaded later win on file conflicts, so show a load-order UI and save the enabled list in user://mods.cfg.
  • Skip mods with a newer game_version or missing dependencies and say why in the mod menu. Never crash because of a bad mod: push_warning and continue.
  • After loading, call each mod's entry script (res://mods/<id>/main.gd with func _mod_init(api)), passing a narrow API object.

A mod API instead of free access

  • Registries: ItemRegistry.register(id, item_resource), EnemyRegistry, LevelRegistry. The game reads from registries, never from hard-coded lists, so mods add content without patching files.
  • Events: expose an event bus (enemy_killed, level_loaded, player_spawned) for mods to react to.
  • Version the API (api_version in the manifest), and deprecate before you remove anything.
  • Data validation: parse JSON with JSON.parse_string, check types and ranges, clamp numbers, and fall back to defaults.

Runtime loading for data mods (no import step)

AssetAPI
Image → textureImage.load_from_file(path) → ImageTexture.create_from_image(img)
AudioAudioStreamOggVorbis.load_from_file, AudioStreamWAV.load_from_file, AudioStreamMP3.load_from_file
3D modelGLTFDocument.new().append_from_file(path, state) → generate_scene(state)
FontFontFile.new().load_dynamic_font(path)
Text, dataFileAccess.get_file_as_string, JSON.parse_string, ConfigFile.load
Zipped contentZIPReader.open → read_file (then Image.load_png_from_buffer, …)
Runtime-loaded textures aren't VRAM-compressed, so cap their size for mobile. Load big sets with WorkerThreadPool (godot-performance).

Security (tell your players)

Pack mods and Mod Loader mods run unrestricted GDScript: file access, network and OS calls. Godot has no sandbox. Show a warning on first enable, and keep data-only mods as the default for user-generated content you download automatically. Evaluate expressions from mod data with Expression.execute(..., const_calls_only = true).

DLC and patches

  • DLC: export the DLC content as a PCK (--export-pack with a preset that includes only res://dlc/<name>/). Ship it as a separate depot or download, verify ownership (Steam: GodotSteam isDLCInstalled(app_id); consoles and mobile stores have their own APIs), then load_resource_pack. PCKs aren't DRM: anyone can copy the file.
  • Patches: godot --export-patch out.pck --patches base.pck (4.6+) writes only changed files, delta-encoded. Load patches in order after the base. Each patch adds load-time overhead, so fold patches into a new base PCK at major updates. Steam and most stores already diff builds, so patch PCKs matter mainly for custom launchers and mobile hot-content.
  • Code signing and console certification rules may forbid loading code at runtime. iOS forbids downloaded executable code, so ship content-only packs there.

Tools for modders

  • PCKPacker builds packs from inside the game (pck_start, add_file(res_path, source), flush), e.g. a level editor that exports shareable levels.
  • Document the folder layout, the registry API and the event list in the SDK README.

Mod loader (discovery, manifests, order, packs), registry, runtime asset loading, PCK export from game, DLC gate (compiled by the tests): references/patterns.md

同梱ファイル

スキルが読み込まれている間、モデルは必要に応じてこれらを読み取ります。読み取り可能なファイルとして提供され、実行されることはありません。

よくある質問

AIスキル「Godot Modding Dlc」では何ができますか?

Mod support, DLC and patches in Godot 4.7 - resource packs (PCK/ZIP) with load_resource_pack, load timing and file overrides, mod folders, manifests and load order, registries and a mod API, runtime loading of images, audio, glTF and fonts, PCKPacker mod tools, Godot Mod Loader, Steam Workshop, DLC packs, delta patches, security limits. Use for mods, user content, DLC or patching.

TypingMindでGodot Modding Dlcを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Godot Modding Dlcはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにGodot Modding Dlcをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/EL4CTEO/godot-skills/tree/main/skills/godot-modding-dlcを貼り付けてください。TypingMindがSKILL.mdを読み込み、関連ファイルをまとめて、チャットごとに有効にできるスキルとしてインストールします。

Godot Modding Dlcを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストの内容がこのスキルの用途に合ったときに、このスキルを読み込めます。

Godot Modding Dlcで使えるAIモデルの数に制限はありますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもGodot Modding Dlcを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Godot Modding Dlc」は無料ですか?

はい。EL4CTEOがMITライセンスのもとでGitHubに公開しています。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇