Page 1 of 1

Aurora Toolset XML import error

Posted: Sun Jan 19, 2020 3:38 am
by harrynz
Hello Tony
I am new to your dialogue system, but I am trying to import some dialogues from an famous old Neverwinter Night mod.
I followed the manuals on your site, and got XML files ready. But Unity always give me these errors whenever it tried to read them. The XML is already in UTF-8.

Annotation 2020-01-19 212625.jpg
Annotation 2020-01-19 212625.jpg (16.37 KiB) Viewed 363 times

Here is the links to the original NWN mod,

https://neverwintervault.org/project/nw ... s-part-one

And here is one of the converted XML files for your inspection. (all the converted XML produce same error in unity)
terik_conv1.dlg.xml.zip
(8.99 KiB) Downloaded 41 times
What did I do wrong? I tried both nwn modpacker and ruby nwn-lib, there is no different from the results. And the same error appears in unity. Please help.

Cheers!

Re: Aurora Toolset XML import error

Posted: Sun Jan 19, 2020 9:46 am
by Tony Li
Hi,

You're doing everything correctly.

I'll provide a patch later today.

Newer versions of Unity use .NET4.6. Older versions of Unity (e.g., Unity 2017, 2018) use .NET3.5. The XML parser in .NET3.5 is able to read Aurora XML files just fine. The XML parser in .NET4.6 doesn't. I'll implement a solution and post the patch here when it's ready.

Re: Aurora Toolset XML import error

Posted: Sun Jan 19, 2020 6:31 pm
by harrynz
Tony Li wrote: Sun Jan 19, 2020 9:46 am Hi,

You're doing everything correctly.

I'll provide a patch later today.

Newer versions of Unity use .NET4.6. Older versions of Unity (e.g., Unity 2017, 2018) use .NET3.5. The XML parser in .NET3.5 is able to read Aurora XML files just fine. The XML parser in .NET4.6 doesn't. I'll implement a solution and post the patch here when it's ready.
Thanks for the reply. In that case, I installed Unity 2017 and imported dlg.xml with no problems. Then export back into 2019 seems to be working fine. But a patch would be nice.

Re: Aurora Toolset XML import error

Posted: Sun Jan 19, 2020 9:51 pm
by Tony Li

Re: Aurora Toolset XML import error

Posted: Sun Jan 19, 2020 10:59 pm
by harrynz
Patch works, thank you.

Re: Aurora Toolset XML import error

Posted: Mon Jan 20, 2020 8:13 am
by Tony Li
Glad to help, and thanks for alerting me to the .NET4 issue.