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

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
Plushie
Posts: 2
Joined: Tue Jun 29, 2021 2:25 am

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

Post 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 878 times
persistent engine.PNG
persistent engine.PNG (123.6 KiB) Viewed 878 times
What am I doing wrong?
User avatar
Tony Li
Posts: 21989
Joined: Thu Jul 18, 2013 1:27 pm

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

Post 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.)
Plushie
Posts: 2
Joined: Tue Jun 29, 2021 2:25 am

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

Post by Plushie »

Thank you! It works now!
User avatar
Tony Li
Posts: 21989
Joined: Thu Jul 18, 2013 1:27 pm

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

Post by Tony Li »

Glad to help!
Post Reply