なぜ GODOT を CFG に変換するのですか?
The link between .godot and .cfg is that both use Godot's ConfigFile INI format - sections in [brackets] with key=value pairs. People rename or extract to .cfg to reuse settings in a custom ConfigFile, to diff configuration, or to store their own game options. It is a rename/extract, not a real format conversion.
GODOT から CFG への変換方法
Text editor EASIEST
Open project.godot in Notepad, VS Code, or any editor and use Save As to write a copy named e.g. settings.cfg. The INI content is already .cfg-compatible.
Godot ConfigFile API FREE
In a script call ConfigFile.load("res://project.godot"), then config.save("user://settings.cfg") to write a proper .cfg file programmatically.
Godot Editor project settings FREE
Use Project > Project Settings to review the values, then export or copy them into your own .cfg rather than hand-editing the live project file.
これらの形式について
品質と注意点
project.godotを.cfgにリネームすると、Godot がプロジェクトを認識できなくなります。エンジン用には元の名前を維持してください。project.godotには、一般的な.cfg利用者が想定しない config_version ヘッダーやエディタのメタデータも含まれています。- プロジェクト設定を手動で編集するとタイポのリスクがあります。「プロジェクト設定」ウィンドウが推奨される編集方法です。
よくある質問
project.godot は本当にただの .cfg ファイルなのですか?
.cfg と同じ)を使用しており、さらにバージョンヘッダーが付加されています。project.godot を project.cfg にリネームできますか?
project.godot であるプロジェクトのみをロードします。Godot で .cfg を読み込むにはどうすればよいですか?
ConfigFile クラスを使用します。load() で読み込み、get_value(section, key) で値を取得します。手動で編集するとプロジェクトが壊れますか?
プロジェクト > プロジェクト設定 を使用することをお勧めします。