Delete Save Slot?
Posted: Sun Oct 08, 2023 7:04 pm
Tony, sorry, if I am posting this in the wrong place, but didn't see discussion about the save system that appears to be a part of Dialogue Manager's "Menu System". So maybe I should be posting this in Dialogue Manager discussion?
With Menu System, looks like there were 3 built in save slots. But, instead of using these slots for different saves of the same game, I decided to use each slot for saving the games of different characters. Not sure if this system is separate or is relevant to my questions, but I also use Dialogue Lua Save System to save most character variables (PersistentDataManager). And I also use PlayerPrefs, for basic character setup, when players use the Start/Continue buttons, in your Menu System. So, 2 questions:
1. Due to game bug, one of the 3 games (saved to slot 2) got corrupted. But, as it is, the only way to reset a game to default is to use the Restart button in your Menu System. But, doing this, resets ALL of the slots. Is there a function I can call to reset a single slot to default?
On my Mac desktop, "slots" appear to be files saved to a folder on my computer called "save_0.dat", "save_1.dat" and "save_2.dat". I also see a "saveInfo.dat", which I often see in Unity console logs, when I use your system to save or restore a character's game. In my own SaveGame function, I use your SaveGameNow(int slotNum) on SaveHelper script. And hoping there is a function with slotNum parameter that I can use to "Restart" only one of the games. Many different methods for Saving/Loading on SaveHelper, but only see ONE reset (Restart) option: RestartGame, which calls a ResetDatabase function to "Remove all but the default database and reset it to its initial state". Is "database" referring to the "save.dat" files I noted above? If so, doesn't appear to be any options for specifying a particular "database". Is this correct?
With Menu System, looks like there were 3 built in save slots. But, instead of using these slots for different saves of the same game, I decided to use each slot for saving the games of different characters. Not sure if this system is separate or is relevant to my questions, but I also use Dialogue Lua Save System to save most character variables (PersistentDataManager). And I also use PlayerPrefs, for basic character setup, when players use the Start/Continue buttons, in your Menu System. So, 2 questions:
1. Due to game bug, one of the 3 games (saved to slot 2) got corrupted. But, as it is, the only way to reset a game to default is to use the Restart button in your Menu System. But, doing this, resets ALL of the slots. Is there a function I can call to reset a single slot to default?
On my Mac desktop, "slots" appear to be files saved to a folder on my computer called "save_0.dat", "save_1.dat" and "save_2.dat". I also see a "saveInfo.dat", which I often see in Unity console logs, when I use your system to save or restore a character's game. In my own SaveGame function, I use your SaveGameNow(int slotNum) on SaveHelper script. And hoping there is a function with slotNum parameter that I can use to "Restart" only one of the games. Many different methods for Saving/Loading on SaveHelper, but only see ONE reset (Restart) option: RestartGame, which calls a ResetDatabase function to "Remove all but the default database and reset it to its initial state". Is "database" referring to the "save.dat" files I noted above? If so, doesn't appear to be any options for specifying a particular "database". Is this correct?