Page 1 of 2

First text of a conversation node doesn't get displayed.

Posted: Thu Oct 26, 2017 11:04 am
by Tabble
Hey,

I've got a problem with the Dialogue System.
I use Unity 5.4.0f3 and Dialogue System Version 1.6.8..

The problem is that sometimes the first text of a conversation node doesn't get displayed.
I use the modified Typwriter Effect that scrolls automaticly with the text.

I can't pinpoint it to a specific event, because it happens at one point and a few hours or a build later it works as intended.
What I can say is, that it always happens at the first node of a conversation with text in it.The next node works fine.
In the UnityUIDialogueUI class the ShowSubtilte methode is called and the Subtitle object contains the wanted text.
But in the UnityUITypewriterEffect class, when the methode GetCurrentText() is called, the current object is always empty.
No string file gets build up.
There are no empty spaces before the text in the node and if I put a new node as first node, the same thing happens to the nex node.

Maybe you've got an idea what the problem is. To me it feels like it might be a timing problem. But I can't figure out where to look.

Thanks in advance.

Re: First text of a conversation node doesn't get displayed.

Posted: Thu Oct 26, 2017 1:54 pm
by Tony Li
If it's a timing issue, a small change in the upcoming version 1.7.7 will address it. I'll reply back here later today with a link to a patch containing the updated typewriter script. You can drop it into your version 1.6.8 project without having to update the rest of the Dialogue System if you prefer.

Re: First text of a conversation node doesn't get displayed.

Posted: Thu Oct 26, 2017 8:31 pm
by Tony Li
This is the updated typewriter effect that will be in version 1.7.7: UnityUITypewriterEffect_2017-10-26.unitypackage

Make a backup before importing this version in case there's an incompatibility with 1.6.8 that I'm not thinking of. (I don't think there is, though.)

Re: First text of a conversation node doesn't get displayed.

Posted: Fri Oct 27, 2017 3:37 am
by Tabble
Thank you very much for your quick response. And for the updated typewriter effect. I'll import it and test it :). Thanks

Re: First text of a conversation node doesn't get displayed.

Posted: Fri Oct 27, 2017 9:00 am
by Tabble
Hey,

I tried your Patch, but it doesn't work for my problem. Only adds a new problem. The full text gets displayed for a frame or two and it looks like a flash and then the typewriter starts.

Do you've got another idea, where the problem is grounded? I'll investigate more, too.

Re: First text of a conversation node doesn't get displayed.

Posted: Fri Oct 27, 2017 9:19 am
by Tony Li
Did you tick "Wait One Frame Before Starting"? If so, this can cause the first text to display for one frame before the typewriter starts, so please untick it.

Would it be possible for you to send a reproduction project to tony (at) pixelcrushers.com? I'll be happy to take a look.

Re: First text of a conversation node doesn't get displayed.

Posted: Fri Oct 27, 2017 9:34 am
by Tabble
Unfortunately I can't send you the project.
And the "Wait One Frame Before Starting" Attribute is unticked.

Re: First text of a conversation node doesn't get displayed.

Posted: Fri Oct 27, 2017 10:14 am
by Tony Li
Is it possible for you to make a backup (or a copy) of your project and update to Dialogue System version 1.7.6?

Re: First text of a conversation node doesn't get displayed.

Posted: Thu Nov 02, 2017 4:44 am
by Tabble
I updated a copy to version 1.7.6. But the problem is still there.

Re: First text of a conversation node doesn't get displayed.

Posted: Thu Nov 02, 2017 9:03 am
by Tony Li
Would it be possible for you to create a new reproduction project, or strip things out of your current project so you can send a copy to tony (at) pixelcrushers.com? (All customer files are handled confidentially.)

Another thing you can try is to set the Script Execution Order of UnityUITypewriterEffect and UnityUIDialogueUI to a high value. Try adding UnityUIDialogueUI with an execution order of 998 and UnityUITypewriterEffect as 999. This is just something to try; I don't know that it will fix the problem, since I haven't been able to reproduce it.