Closed PeriBooty closed 4 years ago
Pipefoxe fails to parse custom text properties in Tiled maps. For example, the following object in a Tiled map fails to parse:
<object id="7" name="Sign" type="Interaction" x="260" y="80" width="40" height="20"> <properties> <property name="InteractionText">* This is a sign. * That's about it.</property> </properties> </object>
I've tracked down the possible culprit in XmlHelper.cs:25.
While other's custom properties use this value attribute, the custom text property does not, instead placing the value inside of itself, as seen in the example. This causes Pipefoxe to throw an exception while parsing.
value
I hate Tiled format so fucking much. : D It's exceptions upon exception upon exceptions. Either way, fixed the thing.
Pipefoxe fails to parse custom text properties in Tiled maps. For example, the following object in a Tiled map fails to parse:
I've tracked down the possible culprit in XmlHelper.cs:25.
While other's custom properties use this
value
attribute, the custom text property does not, instead placing the value inside of itself, as seen in the example. This causes Pipefoxe to throw an exception while parsing.