Articy Draft converter: ArgumentOutOfRangeException

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
shredingskin
Posts: 18
Joined: Tue Dec 01, 2015 8:14 pm

Articy Draft converter: ArgumentOutOfRangeException

Post by shredingskin »

I was trying to import the xml file of a game I was writing on Articy Draft v2.4.4 but I get this error I was not getting after a long time of updating the database:

Code: Select all

ArgumentOutOfRangeException: Argument is out of range.
Parameter name: startIndex
System.String.Substring (Int32 startIndex) (at /Users/builduser/buildslave/mono-runtime-and-classlibs/build/mcs/class/corlib/System/String.cs:333)
PixelCrushers.DialogueSystem.Articy.ArticyConverter.FindPortraitTexture (PixelCrushers.DialogueSystem.Actor actor)
PixelCrushers.DialogueSystem.Articy.ArticyConverter.<ConvertEntities>m__7 (PixelCrushers.DialogueSystem.Actor a)
System.Collections.Generic.List`1[PixelCrushers.DialogueSystem.Actor].ForEach (System.Action`1 action) (at /Users/builduser/buildslave/mono-runtime-and-classlibs/build/mcs/class/corlib/System.Collections.Generic/List.cs:361)
PixelCrushers.DialogueSystem.Articy.ArticyConverter.ConvertEntities ()
PixelCrushers.DialogueSystem.Articy.ArticyConverter.Convert (PixelCrushers.DialogueSystem.Articy.ArticyData articyData, PixelCrushers.DialogueSystem.Articy.ConverterPrefs prefs, PixelCrushers.DialogueSystem.DialogueDatabase database)
PixelCrushers.DialogueSystem.Articy.ArticyConverter.ConvertArticyDataToDatabase (PixelCrushers.DialogueSystem.Articy.ArticyData articyData, PixelCrushers.DialogueSystem.Articy.ConverterPrefs prefs, PixelCrushers.DialogueSystem.DialogueDatabase database)
PixelCrushers.DialogueSystem.Articy.ArticyConverterWindow.ConvertArticyProject ()
PixelCrushers.DialogueSystem.Articy.ArticyConverterWindow.DrawConvertButton ()
PixelCrushers.DialogueSystem.Articy.ArticyConverterWindow.DrawConversionButtons ()
PixelCrushers.DialogueSystem.Articy.ArticyConverterWindow.OnGUI ()
System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at /Users/builduser/buildslave/mono-runtime-and-classlibs/build/mcs/class/corlib/System.Reflection/MonoMethod.cs:222)
Any idea what can be causing this ? I can import other articy xml files, but with this project I just don't know why it gives me this error.
User avatar
Tony Li
Posts: 21722
Joined: Thu Jul 18, 2013 1:27 pm

Re: Articy Draft converter: ArgumentOutOfRangeException

Post by Tony Li »

Hi,

Sorry about the inconvenience. This issue is fixed. I'll PM you access info for the customer download site where you can get the latest DLLs and source.

This issue occurs in 1.5.7 when a character is assigned a portrait image whose full file path doesn't contain an "Assets" folder. The portrait search method made a faulty assumption that the articy:draft project would reference images inside the Unity project.

The fix handles it more gracefully, but you'll still need to put your portrait images (or copies of them) inside your project if you want Unity to be able to use them.
Post Reply