PGD Home

P0-A8: Part 821: Improvements, Debugging

by on Nov.15, 2020, under Art and Designs, P-0, P0_A8, Software and Games, Spiritus Astrum

I have made the existing inventory system in the project persistent.

IE, any items, tools, etc, that the player picks up and adds to their inventory will be saved to the server, and database.

This was slightly more difficult than it sounds, because many of the items that the player is interacting with are persistent themselves, and have their own entry in the database, so if I simply add a new entry for the item in the players inventory, there will be a duplicate item in the world.

I was able to do this by removing the object from the world when adding it to the inventory, and then adding it back as a persistent item again when the player drops it back into the world.


Comments are closed.

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!