PDA

View Full Version : some characters in comments in XML files lead to error



JMessmer
October 30th, 2019, 21:56
Testing on my custom DSA (Dark Eye) ruleset:

Code:
<!--
-- Please see the readme.txt file included with this distribution for
-- attribution and copyright information.
-->

throws this error:

[10/30/2019 9:47:14 PM] [<color="red">ERROR</color>] Error loading ruleset XML file (DSA_DZ_4.1WE) (graphics/graphics_portraitsets.xml): An XML comment cannot contain '--', and '-' cannot be the last character. Line 4, position 3.
[10/30/2019 9:47:14 PM] [NOTICE] Tabletop scene exiting.

The same also leads to problems with nested comments. In FGC I did not have issues with this.

LordEntrails
October 30th, 2019, 23:33
The xml parser for FGU is stricter than the one in FGC. The one used in FGU is from a 3rd party library and is not maintained or configurable by SmiteWorks. You will have to update your comments to use strict comments (i.e. "<--" every line)

Moon Wizard
November 2nd, 2019, 08:52
Or you can just leave out the extra -- in the middle of the comment. That's what I have done.

Regards,
JPG