Inconsistent error.
Posted: Sat Apr 04, 2015 8:02 am
So we have an error popping up when we start a conversation. However it's very easy to make go away. Make any single change to anything in the inspector, even unrelated to dialogue, and it goes away. That is, it goes away until you reload the scene. Then the error persists thru many runs of the scene until I make any change in inspector. Changing player runspeed makes the error go away until I reload the scene, changing player class does the same. These are unrelated things that never touch dialogue system. The closest thing we have tracked it to is when we send the OnUse message for conversation trigger to catch. Everything involved is should be valid and not null as far as the message is concerned. The actors exist and have proper transforms which are able to be used without issues elsewhere.
NullReferenceException: Object reference not set to an instance of an object
PixelCrushers.DialogueSystem.SendMessageOnDialogueEvent.TryActions (.SendMessageAction[] actions, UnityEngine.Transform actor)
PixelCrushers.DialogueSystem.SendMessageOnDialogueEvent.TryStartActions (UnityEngine.Transform actor)
PixelCrushers.DialogueSystem.ActOnDialogueEvent.OnConversationStart (UnityEngine.Transform actor)
UnityEngine.Component:BroadcastMessage(String, Object, SendMessageOptions)
PixelCrushers.DialogueSystem.ConversationModel:InformParticipants(String)
PixelCrushers.DialogueSystem.ConversationController:.ctor(ConversationModel, ConversationView, Boolean, Action)
PixelCrushers.DialogueSystem.DialogueSystemController:StartConversation(String, Transform, Transform, Int32)
PixelCrushers.DialogueSystem.DialogueSystemController:StartConversation(String, Transform, Transform)
PixelCrushers.DialogueSystem.DialogueManager:StartConversation(String, Transform, Transform)
PixelCrushers.DialogueSystem.ConversationStarter:StartConversation(Transform)
PixelCrushers.DialogueSystem.ConversationStarter:TryStartConversation(Transform)
PixelCrushers.DialogueSystem.ConversationTrigger:OnUse(Transform)
UnityEngine.Component:SendMessage(String, Object, SendMessageOptions)
ActorComponent:StartDialogue() (at Assets/Code/Core/Components/ActorComponent.cs:470)
Really lost on this and the fact that any single change makes it vanish temporarily is making it really hard to track down any farther.
NullReferenceException: Object reference not set to an instance of an object
PixelCrushers.DialogueSystem.SendMessageOnDialogueEvent.TryActions (.SendMessageAction[] actions, UnityEngine.Transform actor)
PixelCrushers.DialogueSystem.SendMessageOnDialogueEvent.TryStartActions (UnityEngine.Transform actor)
PixelCrushers.DialogueSystem.ActOnDialogueEvent.OnConversationStart (UnityEngine.Transform actor)
UnityEngine.Component:BroadcastMessage(String, Object, SendMessageOptions)
PixelCrushers.DialogueSystem.ConversationModel:InformParticipants(String)
PixelCrushers.DialogueSystem.ConversationController:.ctor(ConversationModel, ConversationView, Boolean, Action)
PixelCrushers.DialogueSystem.DialogueSystemController:StartConversation(String, Transform, Transform, Int32)
PixelCrushers.DialogueSystem.DialogueSystemController:StartConversation(String, Transform, Transform)
PixelCrushers.DialogueSystem.DialogueManager:StartConversation(String, Transform, Transform)
PixelCrushers.DialogueSystem.ConversationStarter:StartConversation(Transform)
PixelCrushers.DialogueSystem.ConversationStarter:TryStartConversation(Transform)
PixelCrushers.DialogueSystem.ConversationTrigger:OnUse(Transform)
UnityEngine.Component:SendMessage(String, Object, SendMessageOptions)
ActorComponent:StartDialogue() (at Assets/Code/Core/Components/ActorComponent.cs:470)
Really lost on this and the fact that any single change makes it vanish temporarily is making it really hard to track down any farther.