Creating a Database

This guide shows how to create a new database, the demo (inventory-system-demos/base folder) in the addon already contains a database used in fps-demo. Database is a resource that will manage project-level information about items, recipes, and craft stations. It contains lists of internal resources for each data type.

Note

You can edit it via Godot’s own inspector, but we recommend using the plugin’s own editor for this.

Go to Inventory in top view of godot editor

https://github.com/expressobits/inventory-system/assets/1673249/1b3f4273-97ff-4a65-bc99-846d5d8cb403

Attention

If the Inventory tab above does not appear, it means that your plugin was not installed correctly or that it was not active in the Project Settings, check the Installation and Setup

In this part you will see the editor empty, we will add the key file for adding any resource to the inventory system, the Inventory Database.

../../_images/empty_editor.png

Select the new database option to open the window to create a new database.

../../_images/select_new_database.png

Choose the name of your database and Select **Ok**(Normally a simple project will have no more than one database, that is, a name like ‘database’ would already be suggested)

https://github.com/expressobits/inventory-system/assets/1673249/020ad9a0-519c-4a38-963b-bda58c931a2a

Now we can see that the editor screen has changed, showing 4 icons available in the editor, to add a new item, recipe, craft-station and category respectively.

../../_images/new_database_editor.png