Twine import message delay query - Textline

Announcements, support questions, and discussion for the Dialogue System.
kelsington
Posts: 24
Joined: Tue Jul 28, 2020 1:33 pm

Twine import message delay query - Textline

Post by kelsington »

I have created a test import of a twine JSON file which has successfully imported into my textline project.

The only issue is that line breaks are not being pulled through has separate nodes, nor can I differentiate the waiting time between messages.

I know if yarn it might look like this:

Hello
<< wait (5)>>
This message comes through later
<<wait (2)>>
This one comes in quicker

Can you tell me how I can format this in twine/ the JSON so I do not have to create individual child nodes within the dialogue system after the JSON has been imported?
User avatar
Tony Li
Posts: 22054
Joined: Thu Jul 18, 2013 1:27 pm

Re: Twine import message delay query - Textline

Post by Tony Li »

Hi,

For the most part, the Dialogue System's Twine importer does a one-to-one translation of Twine nodes (passages) into dialogue entry nodes, adding extra connecting nodes for links.

This patch contains an advance copy of a feature coming in version 2.2.9 where you'll be able to split a single passage into multiple dialogue entry nodes using the '|' (pipe) character:

DS_TwinePatch_2020-07-29.unitypackage

It's turned on by default. To turn it off for a specific Twine JSON file, untick the Pipes checkbox next to the file in the Twine import window.
kelsington
Posts: 24
Joined: Tue Jul 28, 2020 1:33 pm

Re: Twine import message delay query - Textline

Post by kelsington »

Thank you Tony, is there any way to customise the time between messages being sent? Rather than one consistent timing for all?
User avatar
Tony Li
Posts: 22054
Joined: Thu Jul 18, 2013 1:27 pm

Re: Twine import message delay query - Textline

Post by Tony Li »

Hi,

Tick the "Based On Text Length" checkboxes on the Textline Dialogue UI component.
kelsington
Posts: 24
Joined: Tue Jul 28, 2020 1:33 pm

Re: Twine import message delay query - Textline

Post by kelsington »

Fab thank you.

I have downloaded the patch and reimported with the '|' break between passages however feel I am missing something.

Should I be importing the relevant C# file into a specific section of the dialogue manager?
User avatar
Tony Li
Posts: 22054
Joined: Thu Jul 18, 2013 1:27 pm

Re: Twine import message delay query - Textline

Post by Tony Li »

After importing the package, does the Twine import window have a new checkbox for each file? If so, tick the checkbox and import.
kelsington
Posts: 24
Joined: Tue Jul 28, 2020 1:33 pm

Re: Twine import message delay query - Textline

Post by kelsington »

Sadly no checkbox apart from the debug one that was there before.

Tried to shut it down and try again but doesn't seem to have done it.
User avatar
Tony Li
Posts: 22054
Joined: Thu Jul 18, 2013 1:27 pm

Re: Twine import message delay query - Textline

Post by Tony Li »

Hi,

Make sure you've downloaded and imported DS_TwinePatch_2020-07-29.unitypackage (linked above) and that there are no compiler errors in your project.

Without the patch, the import window will look like this:

twine1.png
twine1.png (18.8 KiB) Viewed 245 times

After importing the patch, the import window will look like this:

twine2.png
twine2.png (19.28 KiB) Viewed 245 times
kelsington
Posts: 24
Joined: Tue Jul 28, 2020 1:33 pm

Re: Twine import message delay query - Textline

Post by kelsington »

Hi Tony,

Thanks for the quick response.

Not seeing it still unfortunately. I'm importing it as a custom package and not getting any errors in doing so.

Is the importing process correct?
User avatar
Tony Li
Posts: 22054
Joined: Thu Jul 18, 2013 1:27 pm

Re: Twine import message delay query - Textline

Post by Tony Li »

Does the window still look like the first image then? Are you sure you're importing the right package? No errors are being hidden by the Console window filters?
Post Reply