Hi there,
Ben from Arrogant Pixel here. We are currently in the process of releasing a game called The Tale of Doris and the Dragon - Episode 1 on steam, the game is already available on app stores so I'm in a bit of a panic trying to sort this bug out.
I have been having a problem with the save file system in adventure creator. It seemed to be working fine at one point, during all bug tests there were no problems reported with the save system but recently a major issue has come up.
Originally there was a very odd issue with inventory items stacking in overwritten files, for example. If you were to pick up Item A and Item B and then use Item A and save upon loading Item A and B would still be in the inventory.
I opened up unity and quickly figured the save game file had spaces in the name (a big helpful warning was pointing it out to me). So upon correcting this I began testing the save system once again and it now seems to only save the first iteration of save files.
For example I will start the game, pick up an item and save, walk to the next scene, save again. Then I will walk to another scene and save, resulting in 3 save files. I will then attempt to load one of the three files and the file loaded will always be save 1. Whether I load save file 1, 2 or 3.
I'm wracking my brain for answers right now and I'm pretty sure the save system works for other people after scouring the forum, so I don't really want to go into core AC code and start trying to hack a fix together!
Any help will be much appreciated.
Thanks!
Comments
Which version of AC are you using? I can't say if this is a current bug without knowing if you're on the very latest.
With the first issue, what do you mean by "use Item A". As in dropping it, so that only B should be there? I can't recreate your issue from your description - what does your Settings Manager look like?
With the second, is there any significance to picking up the item? If you don't, does the issue persist? Check the Console when saving and loading - it will tell you specifically which file is being handled at the time. Is it saying specifically that Save 1 is being loaded? If so, does this issue occur if you temporarily switch your assigned Menu Manager asset to Demo_MenuManager (i.e. the default Menu system)?
Some issues related to save games were fixed since v1.52a - particularly when you have either no player or use player switching. I would recommend upgrading (in a test project) and test again to see if the issue is still present.
Are you making use of multiple player prefabs, or local players within your scene? Which version of Unity, also?
Here's a package file of what I understood your test as.
It'll have two scenes. Assign the Demo game's Managers, and list both of these (just these) in your Build Settings and build it. In the first scene, you can click the left cylinder to pick up the sword item, and the right cube to the second scene. I haven't been able to find a combination of clicks that causes an issue.
If the same is for you, replace the Managers with your own and see if that changes anything. If so, replace each of the Manager in turn - it may be that it's down to one of these, so this'll help narrow the problem.