Can't get PC messages to log using SMS or Texline templates

Announcements, support questions, and discussion for the Dialogue System.
User avatar
Tony Li
Posts: 21984
Joined: Thu Jul 18, 2013 1:27 pm

Re: Can't get PC messages to log using SMS or Texline templates

Post by Tony Li »

Hi,

I'll put together an example and send it to you tomorrow morning.
eeeli
Posts: 49
Joined: Tue Oct 05, 2021 4:54 pm

Re: Can't get PC messages to log using SMS or Texline templates

Post by eeeli »

Thank you so so much! I really appreciate it, I'll keep an eye out in morning :)
User avatar
Tony Li
Posts: 21984
Joined: Thu Jul 18, 2013 1:27 pm

Re: Can't get PC messages to log using SMS or Texline templates

Post by Tony Li »

Hi,

Here's an example scene:

DS_MultiCharacterSMSExample_2021-10-08.unitypackage

I included a short (2-line) text file with notes on how I set it up.
eeeli
Posts: 49
Joined: Tue Oct 05, 2021 4:54 pm

Re: Can't get PC messages to log using SMS or Texline templates

Post by eeeli »

Hello again,

Thank you so much for the personalized example scene. I got the scene setup and running in Unity, however unfortunately I'm running into the same issue that I'm having in my project. I haven't changed any of the settings in the project, and I can see the logic in your code, but the conversations aren't saving/loading.

In order to show you what's happening on my end I took a video of what happens at run time:

https://www.dropbox.com/s/1vrpc68zuadzv ... g.mov?dl=0

As you can see when I enter/exit the scenes, the dialogue is always started from the beginning, no matter where I leave the scene from.

I'm wondering if this is perhaps some kind of Unity or system bug that's interfering with the asset. For some additional information I'm running Unity 2020.3.11f1, and I'm macOS Catalina 10.15.4. I'm more than happy to provide any additional information or run any tests that you think might help debug this situation.

Thank you so much for all of your support here!!
User avatar
Tony Li
Posts: 21984
Joined: Thu Jul 18, 2013 1:27 pm

Re: Can't get PC messages to log using SMS or Texline templates

Post by Tony Li »

By default, the SMS Dialogue UI's Don't Load Conversation In Scenes list includes scene index 0. If you remove 0, the scene should work.

When you play, you should see lines like this in the Console window:

Code: Select all

TextlineDialogueUI.OnRecordPersistentData: Saving current conversation to DialogueEntryRecords_Helena
TextlineDialogueUI.OnApplyPersistentData: Restoring current conversation from DialogueEntryRecords_Helena: 3;1;1;1;2;1;3;
Resuming 'Helena' at entry 3
The first line appears when you click the BACK button. It lets you know that it's saving the Helena conversation state.

The second and third lines appear when you resume the conversation.
eeeli
Posts: 49
Joined: Tue Oct 05, 2021 4:54 pm

Re: Can't get PC messages to log using SMS or Texline templates

Post by eeeli »

Ahhhh, I see what the issue has been! I hadn't gotten around to adding any of my scenes to the build settings, which was preventing the saving/loading from happening.

It's working both in the example project and in my project, and I'm getting the saving/loading messages in the console which I hadn't been getting before.

Thank you so much for sticking with through this! I really really appreciate it. I hope you have an absolutely lovely day :)
User avatar
Tony Li
Posts: 21984
Joined: Thu Jul 18, 2013 1:27 pm

Re: Can't get PC messages to log using SMS or Texline templates

Post by Tony Li »

Glad to help! :-)
Post Reply