Modding data files

From SpaceSlog Wiki
Revision as of 17:52, 26 April 2025 by Produno (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

The current way you can mod SpaceSlog is via the JSON data files. Almost every object can be modified in this way.
In the future we will open up new ways for you to create mods, but we will talk about that in another section.



What is a JSON file?[edit | edit source]

JSON stands for JavaScript Object Notation. It's a lightweight and widely-used data format that's easy for humans to read and write, while also being straightforward for machines to parse and generate.
The data in JSON is organized into key-value pairs and supports structures like arrays, strings, integers (whole numbers) and boolean values. Because we use Godot and it uses it's own parser, we can use extra values like "Vector2()".