Doubling of the items

Announcements, support questions, and discussion for Save System for Opsive Character Controllers.
Post Reply
polygonya
Posts: 11
Joined: Tue Jul 27, 2021 2:08 pm

Doubling of the items

Post by polygonya »

Hello
I have a question about Save system for Opsive Character Controllers.
I did everything according to the instructions and everything works fine.
only after loading a save game all my items in the inventory are doubled.

Is this known? what have I forgotten?

Thanks for the help

Ps
I use the The Third Person Controller , Ultimate Inventory System and the newest Integration.
User avatar
Tony Li
Posts: 22107
Joined: Thu Jul 18, 2013 1:27 pm

Re: Doubling of the items

Post by Tony Li »

Hi,

Did you untick the UCC Saver's 'Save Inventory' checkbox. Since the UIS Saver restores inventory, you don't need to also restore it using UCC Saver.

In addition, make sure you've configured UIS itself so it doesn't also restore inventory, since the Save System will restore it.

Does saving and loading work properly in the Save System's included demo scene?
polygonya
Posts: 11
Joined: Tue Jul 27, 2021 2:08 pm

Re: Doubling of the items

Post by polygonya »

Hi,
thanks for the quick feedback

Yes, I have unticked the UCC Saver "Save Inventory".

How can I configure UIS so that it does not also restore the inventory?
I removed the two components "Inventory Saver" and "Currency Owner Saver" once, but I still have a duplication.

what i found out is: the doubling of the items only happens if the items are in the inventory from the beginning. if i pick up an item and then save and load it works.

I can live with that.. :)

In the demo, everything works.
User avatar
Tony Li
Posts: 22107
Joined: Thu Jul 18, 2013 1:27 pm

Re: Doubling of the items

Post by Tony Li »

Here are a few things to check:
  • Remove the Save System Manager component and add the Save System Manager No Disk component in its place.
  • On your player inventory GameObject, untick the Inventory Saver component's Load On Start checkbox.
  • You can temporarily tick all of the Save System components' Debug checkboxes to log a bunch of info the Console window. It might give a clue as to what's going on. Also look for any warnings or errors.
User avatar
nathanj
Posts: 303
Joined: Sat May 28, 2016 12:30 am

Re: Doubling of the items

Post by nathanj »

Hi Polygonya and Tony

I got stuck on this one as well. The issue for me is that I had both InventorySaver and InventoryBridgeSaver components on my player. If you are using the UCC/UIS integration you only need the InventoryBridgeSaver on your player.

Hope this helps
Nathan
User avatar
Tony Li
Posts: 22107
Joined: Thu Jul 18, 2013 1:27 pm

Re: Doubling of the items

Post by Tony Li »

Great point! I'll add that to the integration docs.
Post Reply