- Joined
- Mar 13, 2012
- Messages
- 379
- Reaction score
- 96
- Primarily Uses
How non-trivial would it be to add data from the database into the save file, and then load it from there instead of going to the database instead, when restoring from the save? I'm looking into such functionality to handle creating instances of items, as to allow for new instances of an item to be created, modified (enchanting, using different material properties...etc) in a crafting system, and then destroyed afterwards.
The biggest thing that jumps out to me right now is how to efficiently search and delete within the item list, and how much bloat it might add to each save file. At the current moment, it seems like cleaning and resorting the list each time an item is destroyed is going to be expensive, so I'm thinking it might be effective to insert some sort of token as the item name to indicate that the item ID isn't in use and can be overwritten?
Any ideas to improve the idea, or even any reasons why it might or might not work might help. Thankies.
The biggest thing that jumps out to me right now is how to efficiently search and delete within the item list, and how much bloat it might add to each save file. At the current moment, it seems like cleaning and resorting the list each time an item is destroyed is going to be expensive, so I'm thinking it might be effective to insert some sort of token as the item name to indicate that the item ID isn't in use and can be overwritten?
Any ideas to improve the idea, or even any reasons why it might or might not work might help. Thankies.

