Not restart the dialog after continuing the game

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
ukieiri
Posts: 5
Joined: Wed Feb 07, 2024 2:00 pm

Not restart the dialog after continuing the game

Post by ukieiri »

Hi! I have this problem: after I save the game, exit, and then load it, it loads a conversation I had before I left. How do I cancel this behaviour? I see this in the console:

Code: Select all

TextlineDialogueUI.OnApplyPersistentData: Restoring current conversation from DialogueEntryRecords_XX: 1;19;1;
But I don't need to see the last conversation :D
User avatar
Tony Li
Posts: 23278
Joined: Thu Jul 18, 2013 1:27 pm

Re: Not restart the dialog after continuing the game

Post by Tony Li »

Hi,

Import this patch:

DS_SMSDialogueUIPatch_2025-05-25.unitypackage

Then UNtick the dialogue UI's "Resume Conversation On Apply Persistent Data" checkbox.
ukieiri
Posts: 5
Joined: Wed Feb 07, 2024 2:00 pm

Re: Not restart the dialog after continuing the game

Post by ukieiri »

Hey! It actually created a bug for me... Now, when I click on my phone and try to access any past messages, it glitches and doesn't let me see anything. I'm sure it is the cause, since I ticked that thing back and the problem disappeared.
User avatar
Tony Li
Posts: 23278
Joined: Thu Jul 18, 2013 1:27 pm

Re: Not restart the dialog after continuing the game

Post by Tony Li »

Hi,

If you tick that checkbox, then when you restore a saved game it will resume the last conversation that was saved when you saved the game.

If you UNtick the checkbox, then you must use something else, such as a Dialogue System Trigger, to start a conversation.
ukieiri
Posts: 5
Joined: Wed Feb 07, 2024 2:00 pm

Re: Not restart the dialog after continuing the game

Post by ukieiri »

I actually already use this:

public void ResumeChat(int id)
{
if (smsUI != null)
{
var title = DialogueManager.MasterDatabase.GetConversation(id).Title;
smsUI.ResumeConversation(title);
}
else
{
Debug.LogError("Cannot resume chat - SMS Dialogue UI not found.");
}
}

But with that thing unticked it doesn't do anything :(
User avatar
Tony Li
Posts: 23278
Joined: Thu Jul 18, 2013 1:27 pm

Re: Not restart the dialog after continuing the game

Post by Tony Li »

Hi,

Thanks for letting me know. Here's a fix:

DS_SMSPatch_2025-06-12.unitypackage


This fix will also be in the next regular update.
Post Reply