Page 1 of 1

Coroutine couldn't be started Error

Posted: Mon Apr 03, 2023 3:10 am
by yakster
I'm getting an error in some of my dialogue entries, which I can't seem to understand where the problem is at all.
It occurs on a characters dialogue after they have spoken and there is a player response option. The thing is it happens once, then you click on them again and they talk through it fine. It also doesn't occur further in the conversation or in other conversations with the same character. Is it possible that the dialogue database has been corrupted and needs to be rebuilt, or are there other things I can check? Any advice on how to figure out what is going on will be much appreciated.

Coroutine couldn't be started because the the game object 'Response Menu Panel' is inactive!
UnityEngine.MonoBehaviour:StartCoroutine (System.Collections.IEnumerator)
PixelCrushers.DialogueSystem.StandardUIMenuPanel:ShowResponsesNow (PixelCrushers.DialogueSystem.Subtitle,PixelCrushers.DialogueSystem.Response[],UnityEngine.Transform) (at Assets/Plugins/Pixel Crushers/Dialogue System/Scripts/UI/Standard/Dialogue/StandardUIMenuPanel.cs:207)
PixelCrushers.DialogueSystem.StandardUIMenuPanel:ShowResponses (PixelCrushers.DialogueSystem.Subtitle,PixelCrushers.DialogueSystem.Response[],UnityEngine.Transform) (at Assets/Plugins/Pixel Crushers/Dialogue System/Scripts/UI/Standard/Dialogue/StandardUIMenuPanel.cs:180)
PixelCrushers.DialogueSystem.StandardUIResponseMenuControls:ShowResponses (PixelCrushers.DialogueSystem.Subtitle,PixelCrushers.DialogueSystem.Response[],UnityEngine.Transform) (at Assets/Plugins/Pixel Crushers/Dialogue System/Scripts/UI/Standard/Dialogue/StandardUIResponseMenuControls.cs:286)
PixelCrushers.DialogueSystem.AbstractDialogueUI:ShowResponses (PixelCrushers.DialogueSystem.Subtitle,PixelCrushers.DialogueSystem.Response[],single) (at Assets/Plugins/Pixel Crushers/Dialogue System/Scripts/UI/Abstract/Dialogue/AbstractDialogueUI.cs:298)
PixelCrushers.DialogueSystem.StandardDialogueUI:ShowResponsesImmediate (PixelCrushers.DialogueSystem.Subtitle,PixelCrushers.DialogueSystem.Response[],single) (at Assets/Plugins/Pixel Crushers/Dialogue System/Scripts/UI/Standard/Dialogue/StandardDialogueUI.cs:346)
PixelCrushers.DialogueSystem.StandardDialogueUI:ShowResponses (PixelCrushers.DialogueSystem.Subtitle,PixelCrushers.DialogueSystem.Response[],single) (at Assets/Plugins/Pixel Crushers/Dialogue System/Scripts/UI/Standard/Dialogue/StandardDialogueUI.cs:328)
PixelCrushers.DialogueSystem.ConversationView:StartResponses (PixelCrushers.DialogueSystem.Subtitle,PixelCrushers.DialogueSystem.Response[]) (at Assets/Plugins/Pixel Crushers/Dialogue System/Scripts/MVC/View/View/ConversationView.cs:456)
PixelCrushers.DialogueSystem.ConversationController:OnFinishedSubtitle (object,System.EventArgs) (at Assets/Plugins/Pixel Crushers/Dialogue System/Scripts/MVC/Controller/ConversationController.cs:283)
PixelCrushers.DialogueSystem.ConversationView:FinishSubtitle () (at Assets/Plugins/Pixel Crushers/Dialogue System/Scripts/MVC/View/View/ConversationView.cs:428)
PixelCrushers.DialogueSystem.ConversationView:OnFinishedSubtitle () (at Assets/Plugins/Pixel Crushers/Dialogue System/Scripts/MVC/View/View/ConversationView.cs:435)
PixelCrushers.DialogueSystem.Sequencer:FinishSequence () (at Assets/Plugins/Pixel Crushers/Dialogue System/Scripts/MVC/Sequencer/Sequencer.cs:602)
PixelCrushers.DialogueSystem.Sequencer:Update () (at Assets/Plugins/Pixel Crushers/Dialogue System/Scripts/MVC/Sequencer/Sequencer.cs:594)

Re: Coroutine couldn't be started Error

Posted: Mon Apr 03, 2023 8:25 am
by Tony Li
Hi,

What version of the Dialogue System are you using?

If you're not on 2.2.35 (or newer if available), can you back up your project, make sure you have a good backup, and then update to the current version?

Re: Coroutine couldn't be started Error

Posted: Tue Apr 04, 2023 1:26 am
by yakster
Hi Tony,
thanks for the response. Ok, I've just updated, it's still doing it.

Re: Coroutine couldn't be started Error

Posted: Tue Apr 04, 2023 8:36 am
by Tony Li
Hi,

I'll take a look at this. Your dialogue database is fine. It's just an issue with the dialogue UI.

Re: Coroutine couldn't be started Error

Posted: Tue Apr 04, 2023 1:40 pm
by Tony Li
Hi,

Please back up your project, make sure you have a good backup, and then import this patch:

DS_MenuPanelPatch_2023-04-04.unitypackage

It's important to make sure you have a good backup first, since I suspect your Dialogue System installation may not be up to date. This patch assumes you're using the current Dialogue System version, although it should work with older versions, too.

Re: Coroutine couldn't be started Error

Posted: Tue May 02, 2023 5:51 pm
by yakster
Hi Tony,
thank you for the update. The error message has stopped appearing, however, the player response appears briefly and then a "Dialogue System: Ending conversation." occurs. If I do the conversation again it works fine. I've created a new conversation and it's doing a similar thing. And I am definitely running the latest version: Version 2.2.35 - March 16, 2023.

Re: Coroutine couldn't be started Error

Posted: Tue May 02, 2023 6:16 pm
by Tony Li
Hi,

In the Console, what "Dialogue System: Sequencer..." commands appear after the "Dialogue System: <actor> says ..." line?

Re: Coroutine couldn't be started Error

Posted: Tue May 02, 2023 11:29 pm
by yakster
Hi Tony,
ok I fixed the problem. I had activated an animation at the end of the previous dialogue and used "SetEnabled(Selector, true, Player)" to enable selection of a character to speak with. Which caused the dialogue system to get confused. I changed the Timeline() call to use "nowait, nostop". This has fixed it all. Thank you in taking the time to help with the problem.

Re: Coroutine couldn't be started Error

Posted: Wed May 03, 2023 8:35 am
by Tony Li
Glad you got it working!