Page 1 of 2

Twine import message delay query - Textline

Posted: Wed Jul 29, 2020 11:04 am
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?

Re: Twine import message delay query - Textline

Posted: Wed Jul 29, 2020 2:08 pm
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.

Re: Twine import message delay query - Textline

Posted: Thu Jul 30, 2020 10:30 am
by kelsington
Thank you Tony, is there any way to customise the time between messages being sent? Rather than one consistent timing for all?

Re: Twine import message delay query - Textline

Posted: Thu Jul 30, 2020 10:37 am
by Tony Li
Hi,

Tick the "Based On Text Length" checkboxes on the Textline Dialogue UI component.

Re: Twine import message delay query - Textline

Posted: Thu Jul 30, 2020 11:01 am
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?

Re: Twine import message delay query - Textline

Posted: Thu Jul 30, 2020 11:19 am
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.

Re: Twine import message delay query - Textline

Posted: Thu Jul 30, 2020 11:48 am
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.

Re: Twine import message delay query - Textline

Posted: Thu Jul 30, 2020 12:12 pm
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 252 times

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

twine2.png
twine2.png (19.28 KiB) Viewed 252 times

Re: Twine import message delay query - Textline

Posted: Thu Jul 30, 2020 12:26 pm
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?

Re: Twine import message delay query - Textline

Posted: Thu Jul 30, 2020 12:51 pm
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?