Problem with conditional node ordering on articy imports

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
gewl
Posts: 5
Joined: Mon Sep 14, 2020 7:03 pm

Problem with conditional node ordering on articy imports

Post by gewl »

Hi,

I'm importing dialogues from articy using Dialogue System. I've been using what's basically a switch/case format in ordering: I set up (what articy calls) a Dialogue containing all of a given NPC's conversations, each of which are themselves articy Dialogues, arranged vertically and with conditionals so that Dialogue System will fall to either whichever Dialogue conditional evaluates to try, or to the default case. So the hierarchy goes parent Dialogue -> conditional children Dialogues -> lots of Dialogue Nodes.

So for example, here's the 'parent' dialogue that gets passed to Dialogue System:
day1.PNG
day1.PNG (39.31 KiB) Viewed 605 times
And here are that dialogue's contents:
insideday1.PNG
insideday1.PNG (132.86 KiB) Viewed 605 times
However, after importing articy's xml into Dialogue System, those children dialogues are not being ordered as they are in articy, but in the order in which I created them in articy:
indialoguesystem.PNG
indialoguesystem.PNG (19.59 KiB) Viewed 605 times
The page on importing from articy:draft says:
In articy:draft 2.4+, the Dialogue System will import the correct order of response nodes as indicated by the vertical position of the nodes on articy's canvas. Earlier versions of articy:draft (pre-2.4) do not export this information, so it's not possible to import it into the Dialogue System; instead, nodes will generally be ordered in the order they were created in articy.
I'm on articy v3.1.28 and the most recent Dialogue System on the asset store. I can manually reorder the nodes in Dialogue System, but they get ordered by time of creation again if I reimport articy xml. Am I misusing a tool? Do I have some import setting bungled?

Thank you!
User avatar
Tony Li
Posts: 21981
Joined: Thu Jul 18, 2013 1:27 pm

Re: Problem with conditional node ordering on articy imports

Post by Tony Li »

Hi,

I'll investigate that and reply back with a clearer answer by tomorrow. The importer observes the vertical position of dialogue fragments, but it may need to be updated to also observe the vertical position of linked dialogues.
User avatar
Tony Li
Posts: 21981
Joined: Thu Jul 18, 2013 1:27 pm

Re: Problem with conditional node ordering on articy imports

Post by Tony Li »

Hi,

This patch adds support for sorting sub-dialogues by vertical position:

DS_ArticyPatch_2020-12-09.unitypackage
gewl
Posts: 5
Joined: Mon Sep 14, 2020 7:03 pm

Re: Problem with conditional node ordering on articy imports

Post by gewl »

Great, thank you!
User avatar
Tony Li
Posts: 21981
Joined: Thu Jul 18, 2013 1:27 pm

Re: Problem with conditional node ordering on articy imports

Post by Tony Li »

Happy to help!
Post Reply