Hello,
During the final tests of the game I've got a problem with the SaveGames.
The premise is that I have introduced Savegames with Names following the tutorial on your website and I initially did set 5 savegames. At the beginning things seems to be working.
At one point I realized that saving often, either the savegame wasn't recording at all (leaving me with only 2 slots available to be used on 5)
For example when saving in the slot #5 was deleting or overwriting the slot #4, so that the last save was always deleting the previous one in another slot.
I'm quite sure I did mess up with the Actionlists from the tutorial, that's why I pasted in this post all the settings that I think are meaningful for this topic.
I hope I can get some help with this because I am totally in the DARK.
First of all apologies for the layout of the actionlists but I tried to have them all in the same screenshot.
Additional info:
AC v1.81.4
Unity 2022.3.32f1
Beside all of this I have noticed that with 1 savegame only seems to work, and it could be fine, but I don't feel confident to move forward with the publication of the game if I don't have idea on what this issue depends on. Secondarily would be better to have more than 1 option for a savegame.
Before to make this post I tried to figure out things on my own, but this area is definitely not my cup of tea.
Thanks in advance for the patience,
Best,
Flavio
It looks like you're new here. If you want to get involved, click one of these buttons!
Comments
Your ConfirmSave ActionList doesn't include a Save: Save or load Action - how/when are you saving the game?
The issue may be to do with the "Slot index" parameter mapped to your ClickSave ActionList. I need to amend the tutorial to make this more clear, but essentially - as you have Allow empty slots? checked, this parameter gets mapped to the clicked slot's Save ID number, not the Slot index number, which is what the tutorial assumes.
You can still use this (though best to rename the parameter / variable to "Save ID" to avoid confusion), but you'll need to amend your Save: Save or load Action to reference the save by ID, not by Index.
For this, you'll need to set the Action's Save to overwrite field to Set Save ID. To set this value dynamically, you can't plug in the Integer variable directly - but you can create and plug in a new Integer parameter. Just before this Action is run, use an ActionList: Set parameter Action to transfer the variable to the parameter, so that the parameter represents the clicked Save ID at the time you save.
The whole setting is now untouched - the issue seems to be fixed after I "simply" unchecked Allow empty slots? - Now I can have 5 savegames and each time that I save everything is properly working, the only thing is that after i click SAVE, I have only 1 slot to save, but is incrementally saving in the slots that when i click LOAD, I have always one more slot until the 5 are completed, then I can continue to save on each of them as I want and is working.
With the current setting 5 savegames, the previous screenshots and only Allow Empty Slot? unchecked, do you foresee any issue? - I am asking because I could settle for this solution, but I have no idea if then the system is not properly set.
As always thank you for the amazing support!
Unchecking Allow empty slots? will bring it in-line with the tutorial, so it should then work as covered there.
Whether you have this checked or unchecked is down to your design preference. You can have it checked, you'd just need to make the amendments I mentioned above to have it work that way.
Awesome! Thanks for the clarification!
I tried to make the changes you mentioned above but is not clear to me. (Definitely my limits and my fault) - I think I would need a visual reference of what should be done to do it properly, but I don't want to waste your time! - Everything is amazing!
In ConfirmSave, create an Integer parameter named "SlotID", then amend the Actions like this:
Thanks for taking the time to give me these additional important info!
However I was trying to replicate the instructions above here but I haven't found the Global Variable Clicked Save ID in my Global Variables list. I have only Save Slot Index and Save Name from your tutorial. Am I missing something? - I am a bit confused.
Clicked save ID is just Save slot index renamed.
Using a 5 stack of slots, for some reason after doing all the above things, when saving in the Slot number 3 the custom label given is changing name into Save 2, somehow the game renames it, and the last save (the one stored in the slot 3) is moved into the slot 1.
Hello I just wanted to update you on the fact that I restarted the whole thing from scratch following the tutorial then updating it with the latest info, and now the stuff works properly.
The issue is that out of context I placed the latest amendment in the wrong spot in the flow and they were repeating themselves.
Very much appreciated
Thanks a lot!!!
**UPDATE*****
I was testing the game online in WEBGL and I am facing this issue:
To be sure I have tested the game for a hour+, saving each step in 12 different rooms across the game on all the 5 slots... and in every situation the save-game has been working just fine. Which was wonderful.
But at one point is not saving anymore, on 5 slots seems to be able to save only on 1 or 2 slots.
The scene are the same, the setting of the scenes is the same, the players are the same, but the game is not saving anymore. Not registering the saves once I click on save is like I never saved it.
I can't imagine what the issue can be since after the latest update the setting is now fine.
Can you elaborate on the exact behaviour? Is this to say certain slots save, while others do nothing?
Does this occur in the Editor as well? The length of time shouldn't be a factor, but the number of saves may.
Ok so, it seems to give preference to the first slot (the one that seems to be working most of the times after the problem occurs), however it is not constant it might not work that too at times. When this happens on 5 slots only 2 of them works, properly storing the savegame after the confirm save.
In Editor seems to work fine.
Regarding the time, has been flawless for a hour, I was saving on each slot every 5 minutes and loading, and all was fine.
The only different thing that I can think about is that I started to have this issue when loading a scene with a different main character as the story progressed.
***My game does not have character swap, but depending on the scene the main character in the scene is different from the one with which you start the game.
After that going back to the previous scene with the other character is not saving properly with that too.
However, I went back to the Only One fixed ID savegame and seems to work. I am doing a last test to check if it's working all along the game, if does work in this way I will keep one savegame only.
I am still very happy, the game is still enjoyable and one savegame is enough!