Skip to content

SQLite database for managing Spawnables (Inventory) and world saves. - #168

Open
Armored-Dragon wants to merge 10 commits into
alphafrom
spawnable-database
Open

SQLite database for managing Spawnables (Inventory) and world saves.#168
Armored-Dragon wants to merge 10 commits into
alphafrom
spawnable-database

Conversation

@Armored-Dragon

Copy link
Copy Markdown
Member

This adds the https://github.com/2shady4u/godot-sqlite addon to the project to manage the user inventory. Initially I was not going to use this addon, but it has sense preformed much better for me than what I initially dealt with. I am trying to maintain this database structure in a way where I can easily swap out the actual database engine if this proves to be an issue.

In their README, and with the binaries they ship, the addon seems to have web export support, which is what I was most hesitant about. Since then I realized that I may not even need a database on the web export, since the web version will likely (though hopefully not) be heavily reliant on cloud infrastructure.

(Fully) Closes: #39.
Closes #166.

Added a basic SQLite database for the application.
Assets are added to the database.
Assets now properly hash their file contents before going onto the disk.
Minor benchmarking notes.
Note: The godot-SQLite addon is not in the repository as I look for a
good way to include this addon without actually commiting heavy binaries
to the repository. (Version 4.8 of the addon was used at this time.)
Adds basic support for adding spawnables to the database.
Added thumbnail column to the spawnable database.
Set the creation date when saving a spawnable.
When double clicking on the world in the spawnables menu, you are now
prompted to create a new world with the selected world as the base.
When loading a world, the create new world dialog is reset.
When closing the dialog, it is reset.
Moved dialog code to dedicated script file.
Added "CUSTOM" base world type. It's only to be used when loading a
world from disk.
When the dialog is to be shown, it is moved to the center of the screen.
This fixes deleting spawnbles, and will now also delete the spawnables
from the database.
Adds a table describing the relationship between assets and spawnables.
If a spawnable is deleted, all assets related to that spawnable (if they
are not being used by another spawnable) are deleted.
@Armored-Dragon Armored-Dragon self-assigned this Aug 7, 2026
@Armored-Dragon Armored-Dragon added documentation Improvements or additions to documentation enhancement New feature or request om-client Issues relating to the OpenMinerva client. alpha Issues pertaining to the alpha channel ui/ux User interaction and user experience labels Aug 7, 2026
Since the modules are not shipped with the project, provide an install
script so that a developer can quickly get the addons required.
Also provide instructions on how to download the files manually.
@Armored-Dragon
Armored-Dragon marked this pull request as ready for review August 7, 2026 07:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

alpha Issues pertaining to the alpha channel documentation Improvements or additions to documentation enhancement New feature or request om-client Issues relating to the OpenMinerva client. ui/ux User interaction and user experience

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Spawnable and asset database. Save worlds to the disk.

1 participant