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?
S-Inventory Integration Issues
Re: S-Inventory Integration Issues
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:
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.
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/
-
- Posts: 2
- Joined: Mon Feb 29, 2016 6:17 pm
Re: S-Inventory Integration Issues
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.
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.
Re: S-Inventory Integration Issues
Thanks! Glad the updated package did the trick, too.