Issue starting new conversation when changing scenes
Issue starting new conversation when changing scenes
Hey there everyone! Development on this voice project that I'm working on is coming to a close, and I have one last tiny issue that I was wondering if I could get some help with!
I have an introductory scene set up to where when the player enters in a code to solve a puzzle, a brief conversation plays. At the end of this conversation, a "puzzle complete" Boolean is changed to true and the game transitions to the next scene. The only issue is that when the next scene loads, the conversation that's supposed to play at start doesn't play, and I receive an error saying that a conversation is already active. If I load into the second scene on its own, everything plays just fine, so I think the handoff is where the issue lies.
I've tried a few things to try and remedy this issue, like stopping all conversations before the next scene loads but nothing seems to work. I think I'm probably missing something silly again, loooool.
Thanks for your help everyone! Hopefully I wont bother yall too much after this!
I have an introductory scene set up to where when the player enters in a code to solve a puzzle, a brief conversation plays. At the end of this conversation, a "puzzle complete" Boolean is changed to true and the game transitions to the next scene. The only issue is that when the next scene loads, the conversation that's supposed to play at start doesn't play, and I receive an error saying that a conversation is already active. If I load into the second scene on its own, everything plays just fine, so I think the handoff is where the issue lies.
I've tried a few things to try and remedy this issue, like stopping all conversations before the next scene loads but nothing seems to work. I think I'm probably missing something silly again, loooool.
Thanks for your help everyone! Hopefully I wont bother yall too much after this!
Re: Issue starting new conversation when changing scenes
Hi,
Conversations can span multiple scenes, so make sure to end the previous conversation before the new one starts. For example, if you require the player to click a continue button to advance conversations, and if you're using the LoadLevel() sequencer command to change scenes, add a blank node at the end of the first conversation and set its Sequence to:
Alternatively, tick the Replace checkbox on the second scene's Dialogue System Trigger.
Conversations can span multiple scenes, so make sure to end the previous conversation before the new one starts. For example, if you require the player to click a continue button to advance conversations, and if you're using the LoadLevel() sequencer command to change scenes, add a blank node at the end of the first conversation and set its Sequence to:
Code: Select all
required LoadLevel(your-scene-name);
Continue()
Re: Issue starting new conversation when changing scenes
Hey there tony! We're heading in the right direction, but I've now run into a new issue... When the scene switches over, i get a new error that says "Can't find subtitle panel for NPC"... which is really strange because the scene still plays just fine on start when i load just the scene on it's own. Any ideas?
Re: Issue starting new conversation when changing scenes
Hi,
Set the Dialogue Manager's Other Settings > Debug Level to Info and check which GameObjects are being used for the actor and conversant. Is it different when you play straight in the scene versus when you come from another scene?
Set the Dialogue Manager's Other Settings > Debug Level to Info and check which GameObjects are being used for the actor and conversant. Is it different when you play straight in the scene versus when you come from another scene?
Re: Issue starting new conversation when changing scenes
That's the weird part. When i load straight into the scene, the dialogue plays normally. The issue is only when coming from the intro scene to this other scene that it gives me these errors.
One thing i noticed is that this "end of intro" conversation is triggered as apart of a script, and there is no assigned actor/conversant. Then, this "mansion" scene is triggered through a dialogue system trigger component set to "on start" and the proper info is shown If it's any help, in this game, the player doesn't really respond to the character. Each node plays in each conversation one by one in these two conversations without any player input, like the character is talking to the player.
Thanks again for the speedy reply, and let me know if I can provide any more info.
One thing i noticed is that this "end of intro" conversation is triggered as apart of a script, and there is no assigned actor/conversant. Then, this "mansion" scene is triggered through a dialogue system trigger component set to "on start" and the proper info is shown If it's any help, in this game, the player doesn't really respond to the character. Each node plays in each conversation one by one in these two conversations without any player input, like the character is talking to the player.
Thanks again for the speedy reply, and let me know if I can provide any more info.
Re: Issue starting new conversation when changing scenes
Hi,
When you leave the first scene, do you see this line in the Console:
If not, then the first conversation is still active. If so, what's the Sequence of the last node in the conversation?
When you leave the first scene, do you see this line in the Console:
Code: Select all
Dialogue System: Conversation ending.
Re: Issue starting new conversation when changing scenes
So, I Do see Dialogue System: Conversation ending.
There's nothing in the sequence of the last node of the conversation, but there is a bit of script that triggers that ticks a Boolean to true that sends the player to the next scene. Could that have something to do with it?
There's nothing in the sequence of the last node of the conversation, but there is a bit of script that triggers that ticks a Boolean to true that sends the player to the next scene. Could that have something to do with it?
Re: Issue starting new conversation when changing scenes
Hi,
Thanks for posting the screenshot. The issue is that yellow warning. The conversation in the new scene is starting, but it can't figure out what subtitle panel to use. Is the GameObject named "Character" your player? Does it have a Dialogue Actor component? If so, what are the component's Dialogue UI Settings?
Thanks for posting the screenshot. The issue is that yellow warning. The conversation in the new scene is starting, but it can't figure out what subtitle panel to use. Is the GameObject named "Character" your player? Does it have a Dialogue Actor component? If so, what are the component's Dialogue UI Settings?
Re: Issue starting new conversation when changing scenes
That's correct, the "character" is the player character, and in both scenes the character has a dialogue actor component, which looks as follows :
I haven't messed around with any of the dialogue UI settings yet, they're left at default, if that's any help.
I haven't messed around with any of the dialogue UI settings yet, they're left at default, if that's any help.
Re: Issue starting new conversation when changing scenes
Hi,
Can you try setting the player's Dialogue Actor component > Actor dropdown to Player? (Or whatever is the name of the player actor in your dialogue database -- that is, the actor whose Is Player checkbox is ticked.)
Can you try setting the player's Dialogue Actor component > Actor dropdown to Player? (Or whatever is the name of the player actor in your dialogue database -- that is, the actor whose Is Player checkbox is ticked.)