Hey all, I've tracked down my previous issue further with saving/loading items.
This seems to be the main culprit, even after cleaning up corrupted files.
I can repro this issue without fail doing the following:
As long as the category has a "Item Attribute" (in my case, a rarity that I modify), it has to be Mutable.
Maybe this is well-known, but I was trying to track it down for hours and there wasn't any feedback in the console or debug. Perhaps there is a way to add more information to the Warning, stating that it's "a non-mutable item that has mutable attributes"?
This seems to be the main culprit, even after cleaning up corrupted files.
I can repro this issue without fail doing the following:
- Make a new item category (doesn't need to have a parent, but it can)
- Uncheck Mutable
- Add an "Item Attribute" (shown in the attached picture)
- Create an Item definition using this new category
- Add the item somewhere in your scene
- Play the game, grab the item, then save/load
- Notice the loading fails, giving you a warning about not being able to deserialize the item.
As long as the category has a "Item Attribute" (in my case, a rarity that I modify), it has to be Mutable.
Maybe this is well-known, but I was trying to track it down for hours and there wasn't any feedback in the console or debug. Perhaps there is a way to add more information to the Warning, stating that it's "a non-mutable item that has mutable attributes"?