Datalogue is a simple data management plugin made for the Godot Engine.
When storing static data, there is multiple approaches possible. One can use a SQL database, like SQLite, use text files like JSON or use structure in the source code like a Dictionary. All this solutions come with advantages and drawbacks, Datalogue tries to keep the firsts while avoiding the lasts.
Here's why you would want to use Datalogue:
- Flexibility of the data structure, you don't need to define what the data should look like
- Query language, you can quiclky and easily retrieve the data you are looking for
- GDScript API, you can interact with your data directly from your scripts
- Integrated UI, you can manage your data without leaving the Godot Editor
Datalogue can be use in all kind of games and projects. Use it when you want to store static data.
Datalogue databases are not meant to be modified once the project is exported. It however offers the possibility to manipulate data in memory, which can be saved and loaded to/from a user folder.
Datalogue can be installed by cloning this repository or from the Godot's AssetLib. You just need the files under /addons/datalogue
to be copied into any Godot project and then you need to enable the plugin inside the project settings.
Quick start:
- The Datalogue UI is accessible by switching to the "Data" view at the top of the window
- Add a database by pressing the + button at the bottom of the first column
- Select the newly created database in the list
- Add an item by pressing the + button at the bottom of the middle column
- Select the newly created item
- Add some data using the + buttons on the side of the last column
- You can retrieve a database in your GDScript by using
Datalogue.get_database("database_id")
- You can retrieve an item by using
database.get_item("item_id")
- You can retrieve item data by using
item.get_classification("classification_id")
,item.get_value("value_id")
oritem.get_text("text_id")