Error with Duplicate Conversation IDs when Adding Databases
Posted: Tue Jan 21, 2020 10:17 am
Hi!
I have a lot of characters who will have their own conversations (over 30) and my plan is to store each person's conversations in their own database for sake of keeping organization a bit more reasonable.
I'm adding Databases via code using DialogueManager.AddDatabase() and I've run into a little problem.
All conversations are being added with their original ID. When I use StartConversation(string title) to start the conversation, Dialogue System actually tries to start the correct conversation, but when AddLink starts parsing through, it uses the Integer ID.
The problem is, those int IDs are duplicates. So when I try to play the conversation Gertrude_Interrupt from the added Database for Gertrude, I end up getting dialogue from my Intro conversation from the Main database.
Is there a way to ensure that new IDs are created or that conflicting IDs are changed when adding databases via code? An automatic process is far preferable here since I can't manually change int IDs and even if I could, keeping track of used IDs sounds like a nightmare. Keeping all the conversations in one database is going to be an organizational nightmare since it's like to end up being hundreds of conversations, at least a few dozen per character so hopefully something can be done.
Thanks!
I have a lot of characters who will have their own conversations (over 30) and my plan is to store each person's conversations in their own database for sake of keeping organization a bit more reasonable.
I'm adding Databases via code using DialogueManager.AddDatabase() and I've run into a little problem.
All conversations are being added with their original ID. When I use StartConversation(string title) to start the conversation, Dialogue System actually tries to start the correct conversation, but when AddLink starts parsing through, it uses the Integer ID.
The problem is, those int IDs are duplicates. So when I try to play the conversation Gertrude_Interrupt from the added Database for Gertrude, I end up getting dialogue from my Intro conversation from the Main database.
Is there a way to ensure that new IDs are created or that conflicting IDs are changed when adding databases via code? An automatic process is far preferable here since I can't manually change int IDs and even if I could, keeping track of used IDs sounds like a nightmare. Keeping all the conversations in one database is going to be an organizational nightmare since it's like to end up being hundreds of conversations, at least a few dozen per character so hopefully something can be done.
Thanks!