YarnSpinner-Unity icon indicating copy to clipboard operation
YarnSpinner-Unity copied to clipboard

Cannot stop a dialogue

Open gwc0111 opened this issue 2 years ago • 4 comments

I want to skip a dialogue. Then I call runner.stop(), but it is unuseable. Maybe there is a bug about it?

gwc0111 avatar Jun 29 '22 15:06 gwc0111

image image

gwc0111 avatar Jul 11 '22 15:07 gwc0111

I don’t know what your exact problem is, but I’m just inferring from the conversation on Discord and your screenshots.

DialogueRunner.Stop only stops the Dialogue Runner from running, it does not dismiss any of the Dialogue Views (hiding the UI) and does not trigger any Dialogue Complete events. It does not pause the dialogue at all.

From the code you posted, it works as expected. Both your OnStop and OnStart have the same Debug.Log message. StartDialogue will always start the dialogue at the beginning of the node. As mentioned before, Stop will only stop the Dialogue Runner, and the UI from your Dialogue Views still remain since you haven’t done anything to dismiss or hide them.

KXI-System avatar Jul 11 '22 19:07 KXI-System

No, it is not that. When i call Stop, the runner can't be stopped, instead of it, it will replay the text again.

在 2022年7月12日,03:21,Khan-ali Ibrahim @.***> 写道:

 I don’t know what your exact problem is, but I’m just inferring from the conversation on Discord and your screenshots.

DialogueRunner.Stop only stops the Dialogue Runner from running, it does not dismiss any of the Dialogue Views (hiding the UI) and does not trigger any Dialogue Complete events. It does not pause the dialogue at all.

From the code you posted, it works as expected. Both your OnStop and OnStart have the same Debug.Log message. StartDialogue will always start the dialogue at the beginning of the node. As mentioned before, Stop will only stop the Dialogue Runner, and the UI from your Dialogue Views still remain since you haven’t done anything to dismiss or hide them.

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.

gwc0111 avatar Jul 11 '22 23:07 gwc0111

I tried again by close UI manully, and it it successful! Thank you very much.

高伟成 @.***

 

------------------ 原始邮件 ------------------ 发件人: "YarnSpinnerTool/YarnSpinner-Unity" @.>; 发送时间: 2022年7月12日(星期二) 凌晨3:21 @.>; @.@.>; 主题: Re: [YarnSpinnerTool/YarnSpinner-Unity] Cannot stop a dialogue (Issue #184)

I don’t know what your exact problem is, but I’m just inferring from the conversation on Discord and your screenshots.

DialogueRunner.Stop only stops the Dialogue Runner from running, it does not dismiss any of the Dialogue Views (hiding the UI) and does not trigger any Dialogue Complete events. It does not pause the dialogue at all.

From the code you posted, it works as expected. Both your OnStop and OnStart have the same Debug.Log message. StartDialogue will always start the dialogue at the beginning of the node. As mentioned before, Stop will only stop the Dialogue Runner, and the UI from your Dialogue Views still remain since you haven’t done anything to dismiss or hide them.

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

gwc0111 avatar Jul 12 '22 00:07 gwc0111

How did you solve this issue? I'm currently seeing the same problem, where after calling Stop the first line of dialog will play again, and leave the UI open. Even if I manually call DismissLine or other similar functions it seems like eventually ContinueDialogue is called by the system and the UI pops up. I suspect this issue is the same problem: https://github.com/YarnSpinnerTool/YarnSpinner-Unity/issues/186

samanabo avatar Jun 23 '23 14:06 samanabo

How did you solve this issue? I'm currently seeing the same problem, where after calling Stop the first line of dialog will play again, and leave the UI open. Even if I manually call DismissLine or other similar functions it seems like eventually ContinueDialogue is called by the system and the UI pops up. I suspect this issue is the same problem: #186

Yes, I have already solved this problem. You can first go to the help section of Discord and search for chat records related to the user "Alain#6244". I have asked about this issue there and successfully solved it. If that doesn't work, please ask again on GitHub, and I will look for the relevant code.

gwc0111 avatar Jun 23 '23 19:06 gwc0111