NPC conversation doesn't show up
-
- Posts: 76
- Joined: Wed Sep 25, 2024 11:26 pm
- Location: New York City
- Contact:
NPC conversation doesn't show up
I saw this problem in another thread and your advice was to use a fresh Dialogue Manager and UI prefab and I tried that to no result in my case.
I'm using very short conversations just to get things to work. First node is Hello. Second node which would be the player is Goodbye. That shows up fine. First node (gray one) for npc doesn't.
I've tried various things.
Any help is appreciated. I know you need more information but not sure what. I'm using the WRPG UI prefab but tried the Basic Standard, no change. Thanks. If I play test it in the conversation editor in the database, it works fine.
By the way, I got this working in a test file before and it was fine. I was following your getting started example. These NPCs are a little more complicated. I have a sequencer in the Dialogue Manager so they turn to face you. I tried taking that out and no change.
I'm using very short conversations just to get things to work. First node is Hello. Second node which would be the player is Goodbye. That shows up fine. First node (gray one) for npc doesn't.
I've tried various things.
Any help is appreciated. I know you need more information but not sure what. I'm using the WRPG UI prefab but tried the Basic Standard, no change. Thanks. If I play test it in the conversation editor in the database, it works fine.
By the way, I got this working in a test file before and it was fine. I was following your getting started example. These NPCs are a little more complicated. I have a sequencer in the Dialogue Manager so they turn to face you. I tried taking that out and no change.
Re: NPC conversation doesn't show up
Hi,
Temporarily set the Dialogue Manager's Other Settings > Debug Level to Info. Then reproduce the issue.
Look for a line in the Console window that starts with:
"Dialogue System: Starting conversation..."
Would you please post that line here? Also include any errors or warnings reported in the Console.
Temporarily set the Dialogue Manager's Other Settings > Debug Level to Info. Then reproduce the issue.
Look for a line in the Console window that starts with:
"Dialogue System: Starting conversation..."
Would you please post that line here? Also include any errors or warnings reported in the Console.
-
- Posts: 76
- Joined: Wed Sep 25, 2024 11:26 pm
- Location: New York City
- Contact:
Re: NPC conversation doesn't show up
I don't see a Starting Conversation anywhere. The yellow and red errors are:
(Yelow warning) Dialogue System: UsableUnityUI is deprecated and will be removed in the next version.
To supress this message, add the scripting define symbol SUPPRESS_DEPRECATION_WARNINGS
UnityEngine.Debug:LogWarning (object,UnityEngine.Object)
PixelCrushers.DialogueSystem.Tools:DeprecationWarning (UnityEngine.MonoBehaviour,string) (at Assets/Plugins/Pixel Crushers/Dialogue System/Scripts/Utility/Tools.cs:24)
PixelCrushers.DialogueSystem.UsableUnityUI:Awake () (at Assets/Plugins/Pixel Crushers/Dialogue System/Scri
(Red error) NullReferenceException: Object reference not set to an instance of an object
PixelCrushers.DialogueSystem.CharacterInfo.RegisterActorTransform (System.String actorName, UnityEngine.Transform actorTransform) (at Assets/Plugins/Pixel Crushers/Dialogue System/Scripts/MVC/Model/Logic/Shared/CharacterInfo.cs:236)
PixelCrushers.DialogueSystem.DialogueActor.OnEnable () (at Assets/Plugins/Pixel Crushers/Dialogue System/Scripts/MVC/Actor/DialogueActor.cs:155)
(Yellow warning) Dialogue System: UsableUnityUI is deprecated and will be removed in the next version.
To supress this message, add the scripting define symbol SUPPRESS_DEPRECATION_WARNINGS
UnityEngine.Debug:LogWarning (object,UnityEngine.Object)
PixelCrushers.DialogueSystem.Tools:DeprecationWarning (UnityEngine.MonoBehaviour,string) (at Assets/Plugins/Pixel Crushers/Dialogue System/Scripts/Utility/Tools.cs:24)
PixelCrushers.DialogueSystem.UsableUnityUI:Awake () (at Assets/Plugins/Pixel Crushers/Dialogue System/Scripts/UI/Unity UI/Selector/UsableUnityUI.cs:58)
Red error) NullReferenceException: Object reference not set to an instance of an object
PixelCrushers.DialogueSystem.CharacterInfo.RegisterActorTransform (System.String actorName, UnityEngine.Transform actorTransform) (at Assets/Plugins/Pixel Crushers/Dialogue System/Scripts/MVC/Model/Logic/Shared/CharacterInfo.cs:236)
PixelCrushers.DialogueSystem.DialogueActor.OnEnable () (at Assets/Plugins/Pixel Crushers/Dialogue System/Scripts/MVC/Actor/DialogueActor.cs:155)
(Red error) NullReferenceException: Object reference not set to an instance of an object
PixelCrushers.DialogueSystem.CharacterInfo.RegisterActorTransform (System.String actorName, UnityEngine.Transform actorTransform) (at Assets/Plugins/Pixel Crushers/Dialogue System/Scripts/MVC/Model/Logic/Shared/CharacterInfo.cs:236)
PixelCrushers.DialogueSystem.DialogueActor.OnEnable () (at Assets/Plugins/Pixel Crushers/Dialogue System/Scripts/MVC/Actor/DialogueActor.cs:155)
(Yellow warning) Dialogue System: SelectorUseStandardUIElements can't find a StandardUISelectorElements component in the scene.
UnityEngine.Debug:LogWarning (object,UnityEngine.Object)
PixelCrushers.DialogueSystem.SelectorUseStandardUIElements:Start () (at Assets/Plugins/Pixel Crushers/Dialogue System/Scripts/UI/Standard/Selector/SelectorUseStandardUIElements.cs:69)
There are three NPCs.
Thanks for your help.
(Yelow warning) Dialogue System: UsableUnityUI is deprecated and will be removed in the next version.
To supress this message, add the scripting define symbol SUPPRESS_DEPRECATION_WARNINGS
UnityEngine.Debug:LogWarning (object,UnityEngine.Object)
PixelCrushers.DialogueSystem.Tools:DeprecationWarning (UnityEngine.MonoBehaviour,string) (at Assets/Plugins/Pixel Crushers/Dialogue System/Scripts/Utility/Tools.cs:24)
PixelCrushers.DialogueSystem.UsableUnityUI:Awake () (at Assets/Plugins/Pixel Crushers/Dialogue System/Scri
(Red error) NullReferenceException: Object reference not set to an instance of an object
PixelCrushers.DialogueSystem.CharacterInfo.RegisterActorTransform (System.String actorName, UnityEngine.Transform actorTransform) (at Assets/Plugins/Pixel Crushers/Dialogue System/Scripts/MVC/Model/Logic/Shared/CharacterInfo.cs:236)
PixelCrushers.DialogueSystem.DialogueActor.OnEnable () (at Assets/Plugins/Pixel Crushers/Dialogue System/Scripts/MVC/Actor/DialogueActor.cs:155)
(Yellow warning) Dialogue System: UsableUnityUI is deprecated and will be removed in the next version.
To supress this message, add the scripting define symbol SUPPRESS_DEPRECATION_WARNINGS
UnityEngine.Debug:LogWarning (object,UnityEngine.Object)
PixelCrushers.DialogueSystem.Tools:DeprecationWarning (UnityEngine.MonoBehaviour,string) (at Assets/Plugins/Pixel Crushers/Dialogue System/Scripts/Utility/Tools.cs:24)
PixelCrushers.DialogueSystem.UsableUnityUI:Awake () (at Assets/Plugins/Pixel Crushers/Dialogue System/Scripts/UI/Unity UI/Selector/UsableUnityUI.cs:58)
Red error) NullReferenceException: Object reference not set to an instance of an object
PixelCrushers.DialogueSystem.CharacterInfo.RegisterActorTransform (System.String actorName, UnityEngine.Transform actorTransform) (at Assets/Plugins/Pixel Crushers/Dialogue System/Scripts/MVC/Model/Logic/Shared/CharacterInfo.cs:236)
PixelCrushers.DialogueSystem.DialogueActor.OnEnable () (at Assets/Plugins/Pixel Crushers/Dialogue System/Scripts/MVC/Actor/DialogueActor.cs:155)
(Red error) NullReferenceException: Object reference not set to an instance of an object
PixelCrushers.DialogueSystem.CharacterInfo.RegisterActorTransform (System.String actorName, UnityEngine.Transform actorTransform) (at Assets/Plugins/Pixel Crushers/Dialogue System/Scripts/MVC/Model/Logic/Shared/CharacterInfo.cs:236)
PixelCrushers.DialogueSystem.DialogueActor.OnEnable () (at Assets/Plugins/Pixel Crushers/Dialogue System/Scripts/MVC/Actor/DialogueActor.cs:155)
(Yellow warning) Dialogue System: SelectorUseStandardUIElements can't find a StandardUISelectorElements component in the scene.
UnityEngine.Debug:LogWarning (object,UnityEngine.Object)
PixelCrushers.DialogueSystem.SelectorUseStandardUIElements:Start () (at Assets/Plugins/Pixel Crushers/Dialogue System/Scripts/UI/Standard/Selector/SelectorUseStandardUIElements.cs:69)
There are three NPCs.
Thanks for your help.
Re: NPC conversation doesn't show up
Hi,
To clear the yellow errors, I recommend getting rid of the GameObject with the UsableUnityUI component. It's obsolete. Use StandardUsableUI instead, such as the prefab Assets > Plugins > Pixel Crushers > Dialogue System > Prefabs > Standard UI Prefabs > Templates > Basic > Basic Standard Usable UI.
The red errors:
To clear the yellow errors, I recommend getting rid of the GameObject with the UsableUnityUI component. It's obsolete. Use StandardUsableUI instead, such as the prefab Assets > Plugins > Pixel Crushers > Dialogue System > Prefabs > Standard UI Prefabs > Templates > Basic > Basic Standard Usable UI.
The red errors:
suggest that your scene is missing a Dialogue Manager GameObject, or that a dialogue database isn't assigned to its Initial Database field.(Red error) NullReferenceException: Object reference not set to an instance of an object
PixelCrushers.DialogueSystem.CharacterInfo.RegisterActorTransform (System.String actorName, UnityEngine.Transform actorTransform) (at Assets/Plugins/Pixel Crushers/Dialogue System/Scripts/MVC/Model/Logic/Shared/CharacterInfo.cs:236)
-
- Posts: 76
- Joined: Wed Sep 25, 2024 11:26 pm
- Location: New York City
- Contact:
Re: NPC conversation doesn't show up
The Dialogue Manager is in the Main Menu scene. I only need that one. Right?
The Database is assigned because the Player's conversation shows up but in every instance of an NPC dialogue, it skips the NPC dialogue which is the first node.
Unless I'm misunderstanding what isn't assigned to it's field means
Thanks.
The Database is assigned because the Player's conversation shows up but in every instance of an NPC dialogue, it skips the NPC dialogue which is the first node.
Unless I'm misunderstanding what isn't assigned to it's field means
Thanks.
Re: NPC conversation doesn't show up
Hi,
Are you using the current version of the Dialogue System?
If so, then the red error indicates that there's no Dialogue Manager present at the time that the Dialogue Actor component initializes itself.
How are you starting the conversation? Are you using a Dialogue System Trigger component?
Just checking -- did you set the Dialogue Manager's Other Settings > Debug Level to Info?
Are you using the current version of the Dialogue System?
If so, then the red error indicates that there's no Dialogue Manager present at the time that the Dialogue Actor component initializes itself.
How are you starting the conversation? Are you using a Dialogue System Trigger component?
Just checking -- did you set the Dialogue Manager's Other Settings > Debug Level to Info?
-
- Posts: 76
- Joined: Wed Sep 25, 2024 11:26 pm
- Location: New York City
- Contact:
Re: NPC conversation doesn't show up
Hi, yes. I updated the Dialogue System. Yes, I have the Dialogue Manager Debug Level set to info.
Starting the conversation with Trigger component On Use.
The Player conversation shows up perfectly. Just not the NPC conversation
I'm going to try taking out Dialogue System completely and reimporting.
Starting the conversation with Trigger component On Use.
The Player conversation shows up perfectly. Just not the NPC conversation
I'm going to try taking out Dialogue System completely and reimporting.
Re: NPC conversation doesn't show up
Hi,
After you reimport the Dialogue System, play DemoScene1 to make sure it works. Then go through the Quick Start tutorial to make sure that works, too. If they both work, try setting up your own scene again. If you get stuck, please feel free to send a reproduction project to tony (at) pixelcrushers.com
After you reimport the Dialogue System, play DemoScene1 to make sure it works. Then go through the Quick Start tutorial to make sure that works, too. If they both work, try setting up your own scene again. If you get stuck, please feel free to send a reproduction project to tony (at) pixelcrushers.com
-
- Posts: 76
- Joined: Wed Sep 25, 2024 11:26 pm
- Location: New York City
- Contact:
Re: NPC conversation doesn't show up
Thanks very much.
-
- Posts: 76
- Joined: Wed Sep 25, 2024 11:26 pm
- Location: New York City
- Contact:
Re: NPC conversation doesn't show up
I'm getting the file ready to send to you. I wasn't able to get any further. Thanks a lot for your help. I'll keep trying.