What's with the Comma?

cpt.tripps.2012

Warlord
Joined
May 25, 2012
Messages
176
This is a quick XML question. I noticed that sometimes what there is a file location (such as in the art definitions) that there is sometimes a comma at the beginning of the directory path. does anyone know what this is?
 
I think that it is called a "comma separated list" in XML, which has a variety of uses that I am none to sure about.
The button entry in Civ basically means take from location a, if not then take from location b.
The buttons in civ are in two separate locations, the reason for that is discussed here
Location a is where the single button icons are stored and b is the atlas. if you are just using one of the locations you drop the comma at the front and list the single location.
 
additionally: In case you use only a single button and don't remove the comma, the game will crash if you want to build that unit/building/whatever.
And if you never experienced that, you're not a real modder :D.
(not really serious :D, but that's probably the most common newbie problem here)
 
Thanks! that makes a lot of sense. But it does lead to another question. Why would you want more then one button for a single item?
 
additionally: In case you use only a single button and don't remove the comma, the game will crash if you want to build that unit/building/whatever.
And if you never experienced that, you're not a real modder :D.
(not really serious :D, but that's probably the most common newbie problem here)

Oh wow, that's just ridiculous. I was beating my head for days trying to fix that crash, trying to think of what I changed.

So thanks for this!
 
Back
Top Bottom