Page 1 of 1
DIalogue UI closes itself after 30 seconds
Posted: Tue Feb 08, 2022 5:10 pm
by Deses
Hi,
Our dialogue UI closes itself exactly after 30 seconds when we import an XML exported from Articy:Draft.
But surprisingly, a conversation done manually in another database doesn't have that issue and the dialogue UI stays up for as long as you take to close it.
Have you ever encountered a similar behavior? I'm not sure where is the problem, both databases seems to be identical, so I'm really not sure if it's an Unity problem, Articy's or who knows what.
Re: DIalogue UI closes itself after 30 seconds
Posted: Tue Feb 08, 2022 8:32 pm
by Tony Li
Hi,
That's a new one to me.
The Dialogue System does employ a safeguard timeout when it's waiting for certain UI animations, such as the animation to show or hide dialogue panels. If the UI animation hasn't finished within exactly 10 seconds, it will move on. This helps prevent lock-ups if there's a configuration error in your animation. But nothing in the Dialogue System is timed for exactly 30 seconds.
Temporarily set the Dialogue Manager GameObject's Other Setting > Debug Level to Info. This will log a lot of information to the Console window. In particular, look for lines such as:
Dialogue System: Starting conversation 'title' with actor=X and conversant=Y
(Indicates that a conversation has started.)
Dialogue System: Sequencer: ...
(Sequencer commands. These can affect how long subtitles stay onscreen.)
Dialogue System: Conversation ending.
(Indicates that a conversation has ended.)
For example, if the dialogue UI disappears but you don't see 'Conversation ending' then it may be a UI issue such as a Hide animation playing when it shouldn't.
If you do see 'Conversation ending,' look for sequencer commands that indicate that the conversation has proceeded to the end.
Re: DIalogue UI closes itself after 30 seconds
Posted: Thu Feb 10, 2022 9:51 am
by Deses
Hi Tony.
So, an update.
I changed the debugger to INFO and this is what I saw.
Code: Select all
Dialogue System: Stopping conversation. Exceeded max distance 0 between Intro dialogue trigger and Jin
Dialogue System: Ending conversation.
Jin is the name of one of our NPCs.
And the most interesting part is that if I change the name of the GameObject "Jin" to "Jin(1)" the conversation doesn't end on it own!
If I change the name of the actor in articy, it doesn't stop after 30 seconds either.
Apparently the problem is because the name of the actor in the dialogue database and the name of the GameObject containing the sprite, animator, collider and other stuff have the same name. Weird, isn't it?
Re: DIalogue UI closes itself after 30 seconds
Posted: Thu Feb 10, 2022 10:49 am
by Tony Li
Hi,
The easiest solution is to untick the Dialogue System Trigger's Stop Conversation If Too Far checkbox unless you need that functionality.
If you do, please look over
Character GameObject Assignments. It explains how it associates GameObjects with your articy:draft entities / Dialogue System actors. The TL;DR is:
- If you assign GameObjects to Conversation Actor or Conversation Conversant, it will use those GameObjects.
- Otherwise it will look for GameObjects that use Dialogue Actor components.
- Otherwise it will look for GameObjects by name.