Import all actors from custom database

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
juliusdays
Posts: 10
Joined: Thu Dec 20, 2018 4:41 am

Import all actors from custom database

Post by juliusdays »

Hi,
How to import actors from custom database?
User avatar
Tony Li
Posts: 21926
Joined: Thu Jul 18, 2013 1:27 pm

Re: Import all actors from custom database

Post by Tony Li »

Hi,

Would you please provide more details? What database format? Import at design time or runtime?
juliusdays
Posts: 10
Joined: Thu Dec 20, 2018 4:41 am

Re: Import all actors from custom database

Post by juliusdays »

I have actors database using google sheet then export it as json file and import it at design time.
User avatar
Tony Li
Posts: 21926
Joined: Thu Jul 18, 2013 1:27 pm

Re: Import all actors from custom database

Post by Tony Li »

If you're using Google Sheets, export as CSV. Then import it using the CSV Import window (Tools > Pixel Crushers > Dialogue System > Import > CSV).

The spreadsheet must be in a specific format. To see an example, export the demo database using the Dialogue Editor window:

Image

Then add your actors, assigning a unique ID number to each one. In the example below, I added a new actor named "Anime Guy":

Image

Then import it with overwrite, which will add it to your database:

Image
juliusdays
Posts: 10
Joined: Thu Dec 20, 2018 4:41 am

Re: Import all actors from custom database

Post by juliusdays »

Wow.. thank you :)
User avatar
Tony Li
Posts: 21926
Joined: Thu Jul 18, 2013 1:27 pm

Re: Import all actors from custom database

Post by Tony Li »

Glad to help!
Post Reply