Logo Godot Modding Dlc

Godot Modding Dlc

Cộng đồng
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.

Tổng quan

Nhà phát hànhEL4CTEO
Kho mãgodot-skills
Tên kỹ nănggodot-modding-dlc
Sao
60
Bản fork
6
Tệp đi kèm
1
Giấy phépMIT
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI dùng hướng dẫn viết bằng Markdown thay vì mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • 1 tệp đi kèm

    Các tập lệnh, mẫu và tài liệu tham khảo mà mô hình có thể đọc khi làm việc. Các tệp chỉ cho phép đọc và không bao giờ được thực thi.

  • Mã nguồn mở

    Được EL4CTEO công bố trên GitHub. Hãy đọc các tệp nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Godot Modding Dlc trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL của thư mục kỹ năng được hiển thị bên dưới rồi xác nhận.
    https://github.com/EL4CTEO/godot-skills/tree/main/skills/godot-modding-dlc
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân 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
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Godot Modding Dlc trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự nạp Godot Modding Dlc ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên bạn có thể dùng Godot Modding Dlc với cả những mô hình khác ngoài mô hình ban đầu. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên khi kỹ năng chưa được dùng, bạn không tốn token cho phần hướng dẫn.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

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

Tệp đi kèm

Khi kỹ năng đã được tải, mô hình có thể đọc các tệp này nếu cần. Các tệp này chỉ dùng để đọc và không bao giờ được thực thi.

Câu hỏi thường gặp

Kỹ năng AI Godot Modding Dlc làm được gì?

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.

Vì sao nên dùng Godot Modding Dlc trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Godot Modding Dlc là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Godot Modding Dlc trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/EL4CTEO/godot-skills/tree/main/skills/godot-modding-dlc. TypingMind đọc tệp SKILL.md, đóng gói các tệp đi kèm rồi cài đặt cả gói dưới dạng một kỹ năng mà bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Godot Modding Dlc?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Có thể dùng Godot Modding Dlc với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Godot Modding Dlc với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Godot Modding Dlc có miễn phí không?

Có. Kỹ năng này được EL4CTEO phát hành trên GitHub theo giấy phép MIT. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp các công cụ mới mà mô hình có thể gọi. Khi mô hình gọi một công cụ, mã của công cụ đó chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và những tiêu chí mà kết quả cần đáp ứng. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇