Qu'est-ce que le format de fichier GODOT ?
Un fichier .godot est le fichier de configuration de projet pour le moteur de jeu Godot, le moteur open-source 2D et 3D maintenu par la Godot Foundation. Il est presque toujours nommé project.godot, et le dossier qui le contient constitue la racine du projet. Godot pointe vers chaque ressource de ce dossier en utilisant le préfixe de chemin res://, ce fichier unique définit donc où commence un projet.
Le fichier est du texte brut UTF-8 dans une mise en page de style INI. Il commence par une ligne config_version, puis regroupe les paramètres dans des sections telles que [application], [display], [input] et [rendering]. La section [application] contient les valeurs importantes : config/name pour le titre du projet, run/main_scene pour la scène qui se charge au démarrage (un fichier .tscn), et config/icon. Le numéro config_version verrouille la compatibilité : Godot 3.x écrit 4 et Godot 4.x écrit 5, et l'éditeur n'ouvrira pas un projet dont la version est plus récente que ce qu'il peut comprendre.
L'extension est apparue avec Godot 3.0 en 2018, remplaçant l'ancien engine.cfg utilisé dans Godot 2.x.
Sécurité et sûreté
RISQUE : LOWproject.godot is a plain-text configuration file with no executable code, so opening it in a text editor is safe. The risk comes from the surrounding project, not the file: a Godot project can contain GDScript or C# and autoload scripts that run when the project is opened in the editor. Only open projects from sources you trust, and inspect the [autoload] entries and scripts before running an unfamiliar one.
Détails du format
en brefProgrammes qui ouvrent les fichiers GODOT
Détails techniques
spécifications approfondies| Encoding | UTF-8 text |
| Byte order | N/A (text) |
| Container | INI-like sections with [section] headers and key=value entries; keys often use slash paths such as application/config/name |
| Typical size | 1 KB to a few KB |
| Structure | Plain-text configuration listing project-wide settings. Opens with a header comment and a config_version line, followed by sections like [application], [display], [input], [rendering], [autoload] and [global]. The [application] section holds config/name (project title), run/main_scene (path to the startup scene, e.g. res://main.tscn) and config/icon. |
| Integrity | None built in |
| Platforms | Windows, macOS, Linux, Android, Web |
| Config Version | Version tag inside the file that gates compatibility. Godot 3.x uses config_version=4, Godot 4.x uses config_version=5. An engine will refuse to open a file whose config_version is newer than it supports. |
| Notes | The file also acts as the project marker: the folder containing project.godot is the project root, and paths inside the engine are addressed relative to it via the res:// prefix. It replaced the earlier engine.cfg (Godot 2.x and before) when Godot 3.0 switched to the .godot extension. |
| Structure Summary Extra | Godot loads a binary project.godot first if present and falls back to the text form; the text form is what is committed to version control. |
| Publié | 2018 (Godot 3.0) |
| Dernière version | config_version=5 (Godot 4.x) |
| Spécification | docs.godotengine.org |
Conversions GODOT
Q&R de la communauté
posées par les utilisateursPas encore de questions - soyez le premier à poser une question sur les fichiers GODOT.