Supported config file formats

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Liemaeu

Does Godot only support ini config files or are there any other/better formats? (to store settings & player progress)

I couldn’t find any information about it in ConfigFile — Godot Engine (4.x) Dokumentation auf Deutsch.

I believe you should be able to use JSON too

Moldor2 | 2020-12-03 12:36

:bust_in_silhouette: Reply From: Calinou

When you don’t need a standard format, Godot’s INI implementation (ConfigFile) is a superior format to JSON :slight_smile:

While not standardized, ConfigFile can be used to serialize any Godot datatype without having to convert it to a string or an array/object first. Also, unlike JSON, it features an actual integer type, which prevents bad surprises when saving and loading configuration.

Even if you intend to write ConfigFiles by hand, it’s more permissive than JSON. For instance, it allows adding comments to your files (which will be lost when saving, though).

Still, Godot supports JSON using the JSON class.