Logo Godot Migration

Godot Migration

Cộng đồng
EL4CTEO
godot-migration

Upgrade or port a project to Godot 4.7 - Godot 3 to 4 (converter, GDScript 2.0, C# partial classes, shaders, TileMap, physics), 4.0-4.6 to 4.7 breaking changes, C# csproj and SDK bumps, and Unity or Unreal concept mapping to Godot nodes, scenes, signals and Resources. Includes a scanner that lists every stale API in a project. Use when upgrading, porting or converting a project.

Tổng quan

Nhà phát hànhEL4CTEO
Kho mãgodot-skills
Tên kỹ nănggodot-migration
Sao
60
Bản fork
6
Tệp đi kèm
3
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ộ.

  • 3 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 Migration 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-migration
  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-migration .claude/skills/godot-migration
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 Migration 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 Migration 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 Migration 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.

Migration and Porting (to 4.7)

Run it first: python scripts/migrate_scan.py [DIR] reports the project's Godot version (config_version=4 means Godot 3, 5 means Godot 4; config/features gives the 4.x minor) and every stale API with file, line and fix. --rule NAME filters by rule, --limit N caps the output. It's static and fast; it never edits files.

Always

  1. Commit or copy the project first. The converter and the editor rewrite files with no backup.
  2. Upgrade one step at a time where it's cheap: the latest 3.x (3.6) before 4.x; for 4.x projects, open them directly in 4.7.
  3. Let the editor import once (run_godot.py import), then loop: migrate_scan.py → fix → gd_check.py/cs_build.py → run_godot.py smoke until all are clean (godot-core verification loop).
  4. Re-save resources so the diffs stop: Project → Tools → Upgrade Project Files (rewrites .tscn/.tres in the 4.7 format; 4.6+ scenes carry unique_id=). Commit the *.uid files.
  5. Delete .godot/ if the editor shows ghost errors after the upgrade (it's a cache, and it rebuilds).

Godot 3 → 4.7

  1. Dry run: python scripts/migrate_scan.py DIR --convert (wraps --validate-conversion-3to4) lists what the converter would change. Then --convert --apply (wraps --convert-3to4). Raise --max-kb/--max-lines for huge files (defaults 4000 KB, 100000 lines).
  2. The converter renames classes, properties, export/onready/yield, many methods, shader built-ins and .shader → .gdshader. It also renames node names in paths ($Camera → $Camera3D) while the scene nodes keep their old names, so check every $/get_node path.
  3. Then fix by hand what it can't do (the scanner finds most of these): | Area | What to do | |---|---| | setget, connect("sig", obj, "m", binds), funcref, RPC keywords | property set/get blocks, sig.connect(m.bind(...)), Callables, @rpc(...) | | move_and_slide(vel, up, ...) | the converter emits set_velocity(); move_and_slide(); velocity = velocity: clean it up to velocity + move_and_slide(), and retune floor_snap_length and floor_max_angle | | Tween node, interpolate_property | create_tween().tween_property(...) | | TileMap | TileSets need re-setup (terrains replace autotile), then extract layers to TileMapLayer nodes (TileMap bottom panel) | | Physics feel | gravity, friction, snapping and the engine changed. New 4.6+ projects use Jolt; a converted project keeps GodotPhysics3D until you switch physics/3d/physics_engine | | Lighting/look | GLES3 → Compatibility, GLES2 doesn't exist. GIProbe → VoxelGI/SDFGI, tonemapping and glow differ, so retune the Environment (godot-3d-rendering) | | Shaders | SCREEN_TEXTURE/DEPTH_TEXTURE → uniform sampler2D x : hint_screen_texture/hint_depth_texture; hint_color → source_color; see the scanner's shader3-* rules | | Particles | Particles → GPUParticles3D. Process materials convert, but retune emission and sub-emitters | | OS.* window and time APIs | DisplayServer, get_window(), Time | | Files | File.new()/Directory → static FileAccess.open()/DirAccess.open() (they return null on error: check FileAccess.get_open_error()) | | Plugins and addons | most Godot 3 addons don't work: get the 4.x version (godot-addons). GDNative → GDExtension (a rebuild against godot-cpp) | | C# | regenerate the project: Project → Tools → C# → Create C# solution (Sdk="Godot.NET.Sdk/4.7.2", net8.0). Then partial classes, [Signal] delegate void XEventHandler(), += signal events, double delta, GodotObject, Instantiate<T>(), Godot.Collections types (godot-csharp) | | Networking | the high-level multiplayer API was rewritten. Port to MultiplayerSpawner/Synchronizer and @rpc (godot-networking) | Stale-name tables for writing new code: ../godot-core/references/godot3-traps.md.

4.0–4.6 → 4.7

  • Open the project in 4.7; it upgrades project.godot and config/features. Breaking changes per version are in ../godot-core/references/whats-new.md. The scanner flags the code-level ones (get_rpc_config, get_as_text(bool), BlendSpace sync, device == 0, C# Animation.Length as double, StringName animation names).
  • C#: bump Sdk="Godot.NET.Sdk/4.7.2" in the .csproj (the scanner flags older SDKs), rebuild, and fix the binary breaks. Android needs net9.0 (the generated csproj adds the condition).
  • TileMap → TileMapLayer, ParallaxBackground → Parallax2D, SkeletonIK3D → the IK modifiers: deprecated, not removed, so migrate when you touch that code.
  • Behavior to retest: Resource.duplicate(true) (4.5), async navigation map updates (4.5), TileMapLayer physics chunking (4.5), the glow defaults (4.6), thinner antialiased lines (4.7), AudioStreamPlayer2D/3D.area_mask default 0 (4.7).
  • Existing projects keep their renderer, physics engine and stretch settings. New defaults apply only to new projects.
  • Re-export with matching export templates (godot-export-ci).

Porting from Unity or Unreal

Think in scenes of nodes, not GameObjects with components. A scene is a prefab, a level and a component at once.

UnityGodot 4.7
GameObject + componentsnode tree; one script per node; compose with child nodes (godot-architecture)
Prefab / prefab variantPackedScene (.tscn) / inherited scene
ScriptableObjectResource (.tres) with @export fields
Awake/Start/Update/FixedUpdate_init/_ready/_process(delta)/_physics_process(delta)
Coroutines, asyncawait on signals and timers (C# await ToSignal(...))
UnityEvent, C# eventssignals
Tags, layersgroups (add_to_group), collision layers/masks, visual layers
DontDestroyOnLoad, singletonsautoloads
Resources.Load, Addressablespreload/load, ResourceLoader.load_threaded_request
PlayerPrefsConfigFile in user://
Rigidbody / CharacterControllerRigidBody3D / CharacterBody3D
Animator + state machineAnimationTree with a state machine
UGUI / UI ToolkitControl nodes + containers + Theme
Input System actionsInput Map actions (godot-input)
transform.forward (+Z)-global_basis.z (−Z is forward; Godot is right-handed, Y-up, 1 unit = 1 m)
Debug.Logprint() / GD.Print(); push_warning/push_error
Unreal: Actor → Node3D scene; Blueprint → GDScript or C# script on the node; GameMode/GameInstance → autoloads; Components → child nodes; DataAsset → Resource; Level streaming → load_threaded_request + add_child.

Godot 3 → 4 C# and GDScript before/after, Unity-style component patterns in Godot, and a migration checklist (compiled by the tests): references/porting.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 Migration làm được gì?

Upgrade or port a project to Godot 4.7 - Godot 3 to 4 (converter, GDScript 2.0, C# partial classes, shaders, TileMap, physics), 4.0-4.6 to 4.7 breaking changes, C# csproj and SDK bumps, and Unity or Unreal concept mapping to Godot nodes, scenes, signals and Resources. Includes a scanner that lists every stale API in a project. Use when upgrading, porting or converting a project.

Vì sao nên dùng Godot Migration 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 Migration 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 Migration 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-migration. 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 Migration?

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 Migration 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 Migration 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 Migration 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 👇