CSV Converter Import of Portrait and AltPortrait Images

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
mindwalker
Posts: 2
Joined: Tue Oct 13, 2015 9:50 am

CSV Converter Import of Portrait and AltPortrait Images

Post by mindwalker »

The CSV import documentation at http://www.pixelcrushers.com/dialogue_s ... erter.html lists "special" fields for Portrait, AltPortraits and "Files" field for Pictures, and provides the following example CSV for actors:

Actors
ID,Portrait,AltPortraits,Name,Pictures,Description,IsPlayer
Number,Special,Special,Text,Files,Text,Boolean
1,,[],Player,[../../Art/Portraits/Player.png],The player controls a sci-filieutenant.,True
2,,[],Private Hart,[../../Art/Portraits/Private Hart.png],"The squad's technical expert.",False

so it would seem the ability to import these fields exists. However, when I try to import them, they never show up for the actors portraits. I've tried using:

- Full path to image, without any enclosing quotes
- Full path to image, with enclosing single quotes
- Full path to image, with enclosing double quotes
- Only the filename, including extension, without full path, without any enclosing quotes
- Only the filename, including extension, without full path, with enclosing single quotes
- Only the filename, including extension, without full path, with enclosing double quotes
- Only the filename, without extension, without full path, without any enclosing quotes
- Only the filename, without extension, without full path, with enclosing single quotes
- Only the filename, without extension, without full path, with enclosing double quotes

yet none of these work to import the Portrait field or any Pictures.

My questions are:

1. How should the path for Portraits be specified?

2. How should the path for Pictures be specified?

3. For the example shown above, for the Pictures fields, where are these paths supposed to be relative to?I Is it the main project folder? Resources folder? Folder of import file?

4. If you have an example CSV that includes values for the Portraits, AltPortraits and Pictures fields, along with info about where each file referenced in the CSV should be located, that would be very helpful.

Thanks
User avatar
Tony Li
Posts: 22104
Joined: Thu Jul 18, 2013 1:27 pm

Re: CSV Converter Import of Portrait and AltPortrait Images

Post by Tony Li »

Hi,

All paths are relative to the Assets folder, since Unity assets can only access files within Assets.

For use in the Dialogue System, you should use Portraits and AltPortraits. Pictures only exists to maintain compatibility with Chat Mapper.

Support for Portraits and AltPortraits was added in 1.5.6. The Unity Asset Store folks haven't had a chance to put this version on the store yet. I just PM'ed you your access info for the customer download site where you can download the latest version.

After importing the latest (1.5.6.1), I suggest exporting Assets/Dialogue System/Examples/Feature Demo/Dialogue Database/Feature Demo. It should provide a good example of the CSV format.
mindwalker
Posts: 2
Joined: Tue Oct 13, 2015 9:50 am

Re: CSV Converter Import of Portrait and AltPortrait Images

Post by mindwalker »

Thanks, that worked!
Post Reply