How do I use multiple databases?

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
qordud55
Posts: 6
Joined: Thu Nov 17, 2022 12:56 am

How do I use multiple databases?

Post by qordud55 »

I want to show the another DB' Conversation
(not Dialouge Manager - Initial Database, Dialogue System Trigger - Reference Database)
I want to show the Conversation in Database
(Dialogue System Trigger - Conversation)

Or if you add a database, does the next database exist?
Attachments
ExtraDatabase.png
ExtraDatabase.png (50.44 KiB) Viewed 274 times
DialogueSystem Trigger.png
DialogueSystem Trigger.png (55.18 KiB) Viewed 274 times
Dialogue Manager.png
Dialogue Manager.png (74.71 KiB) Viewed 274 times
User avatar
Tony Li
Posts: 21959
Joined: Thu Jul 18, 2013 1:27 pm

Re: How do I use multiple databases?

Post by Tony Li »

Hello,

You have two databases: Director_Database and Director_Database2.

You do not need to add Director_Database to the Extra Databases component since it's already assigned to the Dialogue Manager's Initial Database.

When Extra Databases starts, it will create a combined database in memory containing the content of Director_Database and Director_Database.

I recommend setting the Extra Database's Remove Trigger to Nothing.

Also run the Unique ID Tool and/or set Base IDs in your databases as explained in Working With Multiple Databases.
qordud55
Posts: 6
Joined: Thu Nov 17, 2022 12:56 am

Re: How do I use multiple databases?

Post by qordud55 »

I looked at the manual and ran it, but it didn't work
What function should I call?
Attachments
UniqueIDs.png
UniqueIDs.png (23.79 KiB) Viewed 261 times
SyncFrom_data2.png
SyncFrom_data2.png (60.01 KiB) Viewed 261 times
SyncFrom_data1.png
SyncFrom_data1.png (56.69 KiB) Viewed 261 times
ExtraDatabase2.png
ExtraDatabase2.png (45.55 KiB) Viewed 261 times
DialogueManager.png
DialogueManager.png (95.99 KiB) Viewed 261 times
User avatar
Tony Li
Posts: 21959
Joined: Thu Jul 18, 2013 1:27 pm

Re: How do I use multiple databases?

Post by Tony Li »

Hi,

What's not working?

Also, in Dialogue_Database2, you don't need to sync from Dialogue_Database2.
qordud55
Posts: 6
Joined: Thu Nov 17, 2022 12:56 am

Re: How do I use multiple databases?

Post by qordud55 »

Hello,
I want the dialog manager's Initial database to be Director_Database2
and the reference database of the dialog system trigger to be Director_Database2
Attachments
Dialogue.png
Dialogue.png (90.71 KiB) Viewed 254 times
User avatar
Tony Li
Posts: 21959
Joined: Thu Jul 18, 2013 1:27 pm

Re: How do I use multiple databases?

Post by Tony Li »

That's fine; you can do that.

Keep in mind that the Dialogue System Trigger's Reference Database field is only a convenience for the inspector. It tells the Dialogue System Trigger's conversation dropdown which conversation titles to show. The Reference Database field is not used at all at runtime.
Post Reply