Page 1 of 1

Can't save mid-dialogue (using the Adventure Creator save system)

Posted: Tue Jun 29, 2021 2:51 am
by Plushie
Since my game is pretty dialogue heavy, I was hoping to give the player the ability to save in the middle of a conversation and load the same line they left off on. So far, though, no success. : (

Further info: I can save. I can load the save file. If I load the save file during the dialogue line right after the one I saved on, the game just goes into regular Adventure Creator mode - no dialogue in sight. If I load in regular Adventure Creator mode, there's still no dialogue, but the game appears to be paused the way it would be during a dialogue (character movement disabled, AC UI buttons hidden, only cursor movement enabled).

My dialogue manager and persistent engine:
dialogue manager.PNG
dialogue manager.PNG (146.44 KiB) Viewed 900 times
persistent engine.PNG
persistent engine.PNG (123.6 KiB) Viewed 900 times
What am I doing wrong?

Re: Can't save mid-dialogue (using the Adventure Creator save system)

Posted: Tue Jun 29, 2021 11:46 am
by Tony Li
Hi,

The DialogueSystemSaver and ConversationStateSaver components are part of the Dialogue System's Save System. They depend on another component named SaveSystem. Please try these steps:
  • Add a SaveSystem component to the Dialogue Manager GameObject. UNtick Save Current Scene, since AC will save and load the scene.
  • Add PlayerPrefsSavedGameDataStorer and JsonDataSerializer components to the Dialogue Manager. The PlayerPrefsSavedGameDataStorer is just to silence a warning; AC will be storing the saved game data.
  • Assign unique Key values to the DialogueSystemSaver and ConversationStateSaver components (e.g., 'ds' and 'conversation' or whatever you prefer).
Then give it a try.

If that doesn't do the trick, please set the Dialogue Manager GameObject's Other Settings > Debug Level to Info, reproduce the issue, and then paste the Console logs into a reply or a private message? The easiest way to copy them may be to grab the Editor.log file. (See Unity Log Files.)

Re: Can't save mid-dialogue (using the Adventure Creator save system)

Posted: Wed Jun 30, 2021 1:49 am
by Plushie
Thank you! It works now!

Re: Can't save mid-dialogue (using the Adventure Creator save system)

Posted: Wed Jun 30, 2021 8:02 am
by Tony Li
Glad to help!