Hey there,
I dug around on the forums here but couldn't find a search bar for previous topics, so my apologies if this has already been discussed and resolved.
Recently my saving/loading has not been working, and I couldn't figure out why but after a long time debugging, I finally found a warning that pops up after loading the game data and trying to deserialize.
I'm not sure why this is happening. The item in the Database has a different default ID than the one being saved, but it seems to be randomized when I run the game (when I view the inspector and take a look at the item in the inventory, it has the ID 836986638, but in the database before I run the game, the default ID is 3811135883). I assume this is due to all the serialization happening such as specific scene runtime data, but maybe that is the culprit.
I can post more info about my specific setup, but I'm hoping someone has a "Oh yeah! I ran into that and it was because of xyz reason"
Again, everything was working fine, but suddenly it just stopped working out of nowhere. I was thinking the database became invalid or corrupted but that doesn't seem to be the case.
Thanks in advance!
EDIT: Please note that at this point, I'm just starting the game with empty inventories and grabbing 1 item that is effectively a potion, then saving the game and closing out. I then just try to load the game with that 1 item, which is why I get 1 warning with that information I noted above. The same warning occurs multiple times if I grab more items and then save/load.
I dug around on the forums here but couldn't find a search bar for previous topics, so my apologies if this has already been discussed and resolved.
Recently my saving/loading has not been working, and I couldn't figure out why but after a long time debugging, I finally found a warning that pops up after loading the game data and trying to deserialize.
Code:
Saved Item ID 836986638 could not be retrieved from the Inventory System Manager.
I'm not sure why this is happening. The item in the Database has a different default ID than the one being saved, but it seems to be randomized when I run the game (when I view the inspector and take a look at the item in the inventory, it has the ID 836986638, but in the database before I run the game, the default ID is 3811135883). I assume this is due to all the serialization happening such as specific scene runtime data, but maybe that is the culprit.
I can post more info about my specific setup, but I'm hoping someone has a "Oh yeah! I ran into that and it was because of xyz reason"
Again, everything was working fine, but suddenly it just stopped working out of nowhere. I was thinking the database became invalid or corrupted but that doesn't seem to be the case.
Thanks in advance!
EDIT: Please note that at this point, I'm just starting the game with empty inventories and grabbing 1 item that is effectively a potion, then saving the game and closing out. I then just try to load the game with that 1 item, which is why I get 1 warning with that information I noted above. The same warning occurs multiple times if I grab more items and then save/load.
Last edited: