O que é o formato de ficheiro GODOT?
Um arquivo .godot é o arquivo de configuração de projeto para o motor de jogo Godot, o motor de código aberto 2D e 3D mantido pela Godot Foundation. Quase sempre é nomeado como project.godot, e a pasta que o contém é a raiz do projeto. O Godot aponta para cada recurso nessa pasta usando o prefixo de caminho res://, portanto, este único arquivo define onde um projeto começa.
O arquivo é texto simples em UTF-8 em um layout de estilo INI. Ele começa com uma linha config_version, depois agrupa as configurações em seções como [application], [display], [input] e [rendering]. A seção [application] carrega os valores importantes: config/name para o título do projeto, run/main_scene para a cena que carrega na inicialização (um arquivo .tscn) e config/icon. O número config_version controla a compatibilidade: o Godot 3.x escreve 4 e o Godot 4.x escreve 5, e o editor não abrirá um projeto cuja versão seja mais recente do que ele entende.
A extensão surgiu com o Godot 3.0 em 2018, substituindo o antigo engine.cfg usado no Godot 2.x.
Segurança e proteção
RISCO: 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.
Detalhes do formato
em resumoProgramas que abrem arquivos GODOT
Detalhes técnicos
especificação profunda| 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. |
| Lançado | 2018 (Godot 3.0) |
| Versão mais recente | config_version=5 (Godot 4.x) |
| Especificação | docs.godotengine.org |
Conversões de GODOT
Perguntas e Respostas da Comunidade
perguntado por usuáriosAinda não há perguntas - seja o primeiro a perguntar sobre arquivos GODOT.