error when starting a conversation from code

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
hannah
Posts: 17
Joined: Mon Feb 22, 2016 10:42 pm

error when starting a conversation from code

Post by hannah »

The conversation starts fine but I receive the following error when it tries to display responses. It doesn't happen if the conversation is triggered from a 'conversation trigger' script.

ArgumentNullException: Argument cannot be null.
Parameter name: key
System.Collections.Generic.Dictionary`2[UnityEngine.Transform,PixelCrushers.DialogueSystem.OverrideUnityUIDialogueControls].ContainsKey (UnityEngine.Transform key) (at /Users/builduser/buildslave/mono-runtime-and-classlibs/build/mcs/class/corlib/System.Collections.Generic/Dictionary.cs:458)
PixelCrushers.DialogueSystem.UnityUIDialogueUI.FindActorOverride (UnityEngine.Transform actor) (at Assets/Tools/Dialogue System/Scripts/Supplemental/UI/Dialogue UI/UnityUIDialogueUI.cs:125)
PixelCrushers.DialogueSystem.UnityUIDialogueUI.ShowResponses (PixelCrushers.DialogueSystem.Subtitle subtitle, PixelCrushers.DialogueSystem.Response[] responses, Single timeout) (at Assets/Tools/Dialogue System/Scripts/Supplemental/UI/Dialogue UI/UnityUIDialogueUI.cs:219)
PixelCrushers.DialogueSystem.ConversationView.StartResponses (PixelCrushers.DialogueSystem.Subtitle subtitle, PixelCrushers.DialogueSystem.Response[] responses)
PixelCrushers.DialogueSystem.ConversationController.OnFinishedSubtitle (System.Object sender, System.EventArgs e)
PixelCrushers.DialogueSystem.ConversationView.FinishSubtitle ()
PixelCrushers.DialogueSystem.ConversationView.OnFinishedSubtitle ()
PixelCrushers.DialogueSystem.Sequencer.FinishSequence ()
PixelCrushers.DialogueSystem.Sequencer.Update ()
User avatar
Tony Li
Posts: 22104
Joined: Thu Jul 18, 2013 1:27 pm

Re: error when starting a conversation from code

Post by Tony Li »

Hi,

Can you update to version 1.6.0.1? It's the latest version of the Dialogue System on the Asset Store. It fixes this bug.
Post Reply