Che cos'è il formato di file GODOT?
Un file .godot è il file di configurazione del progetto per il motore di gioco Godot, il motore open-source 2D e 3D mantenuto dalla Godot Foundation. È quasi sempre denominato project.godot e la cartella che lo contiene è la radice del progetto. Godot punta a ogni risorsa in quella cartella utilizzando il prefisso di percorso res://, quindi questo singolo file definisce dove inizia un progetto.
Il file è in testo semplice UTF-8 con un layout in stile INI. Inizia con una riga config_version, quindi raggruppa le impostazioni in sezioni come [application], [display], [input] e [rendering]. La sezione [application] contiene i valori importanti: config/name per il titolo del progetto, run/main_scene per la scena che viene caricata all'avvio (un file .tscn) e config/icon. Il numero config_version funge da barriera di compatibilità: Godot 3.x scrive 4 e Godot 4.x scrive 5, e l'editor non aprirà un progetto la cui versione è più recente di quella che è in grado di comprendere.
L'estensione è arrivata con Godot 3.0 nel 2018, sostituendo il vecchio engine.cfg utilizzato in Godot 2.x.
Sicurezza e incolumità
RISCHIO: 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.
Dettagli del formato
in sintesiProgrammi che aprono file GODOT
Dettagli tecnici
specifiche approfondite| 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. |
| Rilasciato | 2018 (Godot 3.0) |
| Ultima versione | config_version=5 (Godot 4.x) |
| Specifica | docs.godotengine.org |
Conversioni GODOT
Domande e risposte della community
chiesto dagli utentiAncora nessuna domanda - sii il primo a chiedere informazioni sui file GODOT.