Hello,
Continuation from discord.
So my in my database I basically only have item templates that turn into randomized items at runtime. "Sword" ItemDefinition could turn into "Copper Sword of Brawn" at runtime and so forth. There are some consumable items and crafting materials that are not mutable. But all my equipment is.
These are my item definition attributes:
Item attributes:
The only custom class I have there as you can see is the ShinyStats ModifierElement. It's basically just a data wrapper that tells how to modify my players stats:
What I've noticed for certain is that the more items I have in my Inventory the higher chance for the error to occur. With a full inventory (I have set a limit of 40 items) it happens like 80% of time. But it doesn't happen every time for certain so it's quite difficult to test. But I'm fairly certain it's the mutable equipment that is causing it.
I also attached JSON of a save file my PixelCrushers save system created. In this save file the duplicate key is "-1951305544"
Continuation from discord.
So my in my database I basically only have item templates that turn into randomized items at runtime. "Sword" ItemDefinition could turn into "Copper Sword of Brawn" at runtime and so forth. There are some consumable items and crafting materials that are not mutable. But all my equipment is.
These are my item definition attributes:
Item attributes:
The only custom class I have there as you can see is the ShinyStats ModifierElement. It's basically just a data wrapper that tells how to modify my players stats:
What I've noticed for certain is that the more items I have in my Inventory the higher chance for the error to occur. With a full inventory (I have set a limit of 40 items) it happens like 80% of time. But it doesn't happen every time for certain so it's quite difficult to test. But I'm fairly certain it's the mutable equipment that is causing it.
I also attached JSON of a save file my PixelCrushers save system created. In this save file the duplicate key is "-1951305544"