kayler-renslow / arma-dialog-creator

A dialog/GUI creation tool for Arma 3.
MIT License
76 stars 12 forks source link

Cant open project again if put "&" in structured text #13

Closed tuntematonjr closed 6 years ago

tuntematonjr commented 7 years ago

Version and Build

Latest 1.0.2

Summary

Cant open project again if put "&" in structured text

Detail

So if you put & mark in structured text field. Save and close program. You cant open this project again. Until you remove "&" in project.xml Here is my test project. test.zip

kayler-renslow commented 7 years ago

I think that you are not supposed to use standalone & and instead do & (as mentioned here).

The reason this is failing is because XML expects more stuff after &. Structured text should be able to handle special character codes.

I'll still fix this though because a single character shouldn't break an entire save file.

tuntematonjr commented 7 years ago

Ok I was actually using &#160

But good to hear that you are going to fix it. im liking this tool and it is making life so much easier. Going to use this more when i have time and report more bugs if i find some.

kayler-renslow commented 7 years ago

You'll want to be sure to include the ; as well ( ). Both & and   should be supported because all of the XML parsing is done with a library.

tuntematonjr commented 7 years ago

Ok looks like you are right. I did have ; but some reason i didint copy that. But tested more with your info and looks like my first problem was wrong and nothing about  

The thing what broke my saves was actually one ä in text

kayler-renslow commented 6 years ago

This was fixed in https://github.com/kayler-renslow/arma-dialog-creator/commit/1bb311843d4625e9e0c8a6b83bfb687b7a3a5ffd

kayler-renslow commented 6 years ago

fix applied in version 1.0.3