S-Inventory Integration Issues

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
ronaldomoon
Posts: 2
Joined: Mon Feb 29, 2016 6:17 pm

S-Inventory Integration Issues

Post by ronaldomoon »

I have basic saving and loading working. When I save then load, my character is in the correct position.

I followed the instructions (under Third Party Support > S-Inventory) on setting up the actor and items to work with both S-Inventory and Dialogue System. I can walk over and pick the items up in my game scene and they show in the inventory UI. However, the items don't show back up in my inventory and the actual pickups in the world re-appear after loading, even though I have the "S-Inventory Persistent Item Pickup" component on the items. I have tried with and without providing a 'save name' with the same result.

I also have the items (S-Inventory's C# Sword, Shield, and Axe) placed into a folder called 'Resources' in the main Assets folder. It seems that this is what the instructions say but it never explicitly says where to put the 'Resources' folder, only to not put any sub-folders in it. Is this correct or should 'Resources' go somewhere else? In the 'Dialogue System' or 'S-Inventory' folder perhaps?

What I am doing wrong or missing? :(
User avatar
Tony Li
Posts: 22104
Joined: Thu Jul 18, 2013 1:27 pm

Re: S-Inventory Integration Issues

Post by Tony Li »

Hi,

You did everything right. A recent update to S-Inventory made a small API change that required an update to the Persistent Item Pickup script. You can download the updated S-Inventory Support package from the Dialogue System Extras page. Changes like this happen on occasion, and I'm afraid I missed this one.

You can have as many Resources folders as you want, and they can be anywhere in your project. I recommend putting them in your own folder, such as:

Code: Select all

Assets/
    _MyGame/
        Items/
            Resources/
This is a good practice for any files that you've created. This way if you ever need to remove and reimport a plugin, you can delete its folder (e.g., the S-Inventory folder) without losing any of your own files.
ronaldomoon
Posts: 2
Joined: Mon Feb 29, 2016 6:17 pm

Re: S-Inventory Integration Issues

Post by ronaldomoon »

That did the trick! Thanks for the help and for being so quick about it! :-)

Btw, I really like that you have your own forum now. It's much better than everyone commenting on that single thread on the Unity forums.
User avatar
Tony Li
Posts: 22104
Joined: Thu Jul 18, 2013 1:27 pm

Re: S-Inventory Integration Issues

Post by Tony Li »

Thanks! Glad the updated package did the trick, too.
Post Reply