Text Problem

philhellenismos

Chieftain
Joined
Nov 17, 2014
Messages
55
Hello,

So I've encountered a very strange error:

I am working on a mod, and for some very strange reasons, the unique unit's description and help text is set to 1, while everything else works fine. Even more intriguing is that when I test it out in a foreign language (in my case Korean), the text displays as it should.

To help, I have uploaded a zipped copy of the mod and a picture to demonstrate the problem.
 

Attachments

  • 20170326211536_1.jpg
    20170326211536_1.jpg
    223 KB · Views: 39
  • Castle Town.zip
    3.5 MB · Views: 67
  • Logs.zip
    23.4 KB · Views: 71
  • 20170319035244_1.jpg
    20170319035244_1.jpg
    325.2 KB · Views: 85
  • 20170326200537_1.jpg
    20170326200537_1.jpg
    217 KB · Views: 41
An odd issue with the XML parser is that it replaces any field that starts with true or false by 1 or 0 respectively.
So 'true friends' becomes 1, 'false friends' becomes 0, whereas 'friends true' would stay 'friends true' (as long as true/false is not the first word you're fine)
Code:
<Row Tag="TXT_KEY_UNIT_MATHALX_FRIENDS">
            <Text>True Friends</Text>
        </Row>
 
Top Bottom