SQLite database for managing Spawnables (Inventory) and world saves. - #168
Open
Armored-Dragon wants to merge 10 commits into
Open
SQLite database for managing Spawnables (Inventory) and world saves.#168Armored-Dragon wants to merge 10 commits into
Armored-Dragon wants to merge 10 commits into
Conversation
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.
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
marked this pull request as ready for review
August 7, 2026 07:59
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.