Coroutine couldn't be started Error

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
yakster
Posts: 12
Joined: Mon Apr 03, 2023 3:03 am

Coroutine couldn't be started Error

Post 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)
User avatar
Tony Li
Posts: 21684
Joined: Thu Jul 18, 2013 1:27 pm

Re: Coroutine couldn't be started Error

Post 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?
yakster
Posts: 12
Joined: Mon Apr 03, 2023 3:03 am

Re: Coroutine couldn't be started Error

Post by yakster »

Hi Tony,
thanks for the response. Ok, I've just updated, it's still doing it.
User avatar
Tony Li
Posts: 21684
Joined: Thu Jul 18, 2013 1:27 pm

Re: Coroutine couldn't be started Error

Post 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.
User avatar
Tony Li
Posts: 21684
Joined: Thu Jul 18, 2013 1:27 pm

Re: Coroutine couldn't be started Error

Post 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.
yakster
Posts: 12
Joined: Mon Apr 03, 2023 3:03 am

Re: Coroutine couldn't be started Error

Post 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.
User avatar
Tony Li
Posts: 21684
Joined: Thu Jul 18, 2013 1:27 pm

Re: Coroutine couldn't be started Error

Post by Tony Li »

Hi,

In the Console, what "Dialogue System: Sequencer..." commands appear after the "Dialogue System: <actor> says ..." line?
yakster
Posts: 12
Joined: Mon Apr 03, 2023 3:03 am

Re: Coroutine couldn't be started Error

Post 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.
User avatar
Tony Li
Posts: 21684
Joined: Thu Jul 18, 2013 1:27 pm

Re: Coroutine couldn't be started Error

Post by Tony Li »

Glad you got it working!
Post Reply