Tzirrit
New member
@Sangemdoko after our quick chat on discord, here my forum post regarding "wrong items loaded after rebuilding the game".
I was trying to reprocude the issue by constantly rebuilding the game.
I even did some code changes, added and updated other packages via the package manager.
But the problem never appeared "forcefully".
It has however appeared 6-7 times over the past months, seemingly at random.
I currently do not know, if this issue will appear again and I want to prevent actual players from loosing game progress when releasing an update to my game.
Problem Description
Saving and loading items in the inventory works as expected.
But when building a new version of the game and loading a previously saved scene, wrong items are loaded.
Neither Item Categories, nor Item Definitions were changed between builds. In fact I have not touched UIS at all.
The player inventory was also not touched between builds.
While writing this post, I deliberately tried to reproduce the issue by rebuilding the project and trying different scenarios of collected, equipped, slotted items.
I was unable to reproduce it. When the problem appears "in the wild" there usually were days between the different builds, with lots of changes to the project, codebase, scenes, etc. No changes were made to the Inventory or Item Definitions, though.
Question:
So I assume that something else must change the unique IDs. Any idea what all could trigger an ID change?
Unity Version
I am currently using 2021.1.22f1, but the same issue appeared in any previous version (e.g. 2020.3.22f1)
Player / Build Configuration
Scripting Backend: IL2CPP
Api Compatibility Level: .NET 4.x
C++ Compilder Configuration: Release
Managed Stripping Level: Low
Thanks in advance
I was trying to reprocude the issue by constantly rebuilding the game.
I even did some code changes, added and updated other packages via the package manager.
But the problem never appeared "forcefully".
It has however appeared 6-7 times over the past months, seemingly at random.
I currently do not know, if this issue will appear again and I want to prevent actual players from loosing game progress when releasing an update to my game.
Problem Description
Saving and loading items in the inventory works as expected.
But when building a new version of the game and loading a previously saved scene, wrong items are loaded.
Neither Item Categories, nor Item Definitions were changed between builds. In fact I have not touched UIS at all.
The player inventory was also not touched between builds.
While writing this post, I deliberately tried to reproduce the issue by rebuilding the project and trying different scenarios of collected, equipped, slotted items.
I was unable to reproduce it. When the problem appears "in the wild" there usually were days between the different builds, with lots of changes to the project, codebase, scenes, etc. No changes were made to the Inventory or Item Definitions, though.
Question:
So I assume that something else must change the unique IDs. Any idea what all could trigger an ID change?
Unity Version
I am currently using 2021.1.22f1, but the same issue appeared in any previous version (e.g. 2020.3.22f1)
Player / Build Configuration
Scripting Backend: IL2CPP
Api Compatibility Level: .NET 4.x
C++ Compilder Configuration: Release
Managed Stripping Level: Low
Thanks in advance