Civ4ArtDefines Civilization: Difference between revisions
Ginger Ale (talk | contribs) mNo edit summary |
m (Unprotected "Civ4ArtDefines Civilization") |
||
(12 intermediate revisions by 7 users not shown) | |||
Line 1: | Line 1: | ||
The '''Civ4ArtDefines_Civilization''' file defines the icon and flag for each Civilization. | The '''Civ4ArtDefines_Civilization''' file defines the icon and flag for each Civilization. | ||
All tags must be opened and closed; the first is the "open", the second the "close" tag. If nothing goes inside a "list tag", then it should just be the opening tag with a "/" before the closing bracket. The following tables contain all available tags, as well as their purpose and accepted values. | |||
==Tags== | ==Tags== | ||
===Headers=== | ===Headers=== | ||
These tags typically bracket other tags, sometimes the entire file, and are generally used to specify more than one piece of data. | |||
{| border="1" style="text-align:left" cellpadding="3" cellspacing="0" | {| border="1" style="text-align:left" cellpadding="3" cellspacing="0" | ||
|- | |- | ||
Line 18: | Line 23: | ||
===Boolean=== | ===Boolean=== | ||
All of these can either be 1 (on, or true) or 0 (off, or false). Be careful, as you can wind up with a double-negative, which the game will interpret as "True". | |||
{| border="1" style="text-align:left" cellpadding="3" cellspacing="0" | {| border="1" style="text-align:left" cellpadding="3" cellspacing="0" | ||
|- | |- | ||
Line 29: | Line 37: | ||
===Art=== | ===Art=== | ||
These tags are directly related to the rendering of art for the entry. | |||
{| border="1" style="text-align:left" cellpadding="3" cellspacing="0" | {| border="1" style="text-align:left" cellpadding="3" cellspacing="0" | ||
|- | |- | ||
Line 36: | Line 47: | ||
!Button | !Button | ||
| World Builder Icon. <br> | | World Builder Icon. <br> | ||
,path to icon,path to | ,path to icon,path to corresponding Atlas,#,# <br> | ||
numbers are x,y location in the atlas. <br> | numbers are x,y location in the atlas. <br> | ||
|- | |- | ||
Line 45: | Line 56: | ||
==Example== | ==Example== | ||
In the following example of code, please note that there is a specific order of all of the tags. You ''must'' list the tags in this order for the game to properly interpret your file. | |||
<CivilizationArtInfo> | <CivilizationArtInfo> | ||
<Type>ART_DEF_CIVILIZATION_AMERICA</Type> | <Type>ART_DEF_CIVILIZATION_AMERICA</Type> | ||
Line 51: | Line 65: | ||
<bWhiteFlag>0</bWhiteFlag> | <bWhiteFlag>0</bWhiteFlag> | ||
</CivilizationArtInfo> | </CivilizationArtInfo> | ||
{ | |||
{{Civ4_XML_Files}} | |||
Latest revision as of 03:09, 3 October 2011
The Civ4ArtDefines_Civilization file defines the icon and flag for each Civilization.
All tags must be opened and closed; the first is the "open", the second the "close" tag. If nothing goes inside a "list tag", then it should just be the opening tag with a "/" before the closing bracket. The following tables contain all available tags, as well as their purpose and accepted values.
Tags
Headers
These tags typically bracket other tags, sometimes the entire file, and are generally used to specify more than one piece of data.
Tag Name | Description |
---|---|
CivilizationArtInfo | Main bracket which encases each entry. |
Type | Tells which Civilization goes with the files |
Boolean
All of these can either be 1 (on, or true) or 0 (off, or false). Be careful, as you can wind up with a double-negative, which the game will interpret as "True".
Tag Name | Description |
---|---|
bWhiteFlag | Defines whether or not a flag will have a white background; if set to 0 it will use the civ's primary and secondary colors. |
Art
These tags are directly related to the rendering of art for the entry.
Tag Name | Description |
---|---|
Button | World Builder Icon. ,path to icon,path to corresponding Atlas,#,# |
Path | Path to the art file for the flag that the civilization uses. |
Example
In the following example of code, please note that there is a specific order of all of the tags. You must list the tags in this order for the game to properly interpret your file.
<CivilizationArtInfo> <Type>ART_DEF_CIVILIZATION_AMERICA</Type> <Button>,Art/Interface/Buttons/Civilizations/America.dds,Art/Interface/Button/Civics_Civilizations_Religions_Atlas.dds,1,5</Button> <Path>Art/Interface/TeamColor/FlagDECAL_Star.dds</Path> <bWhiteFlag>0</bWhiteFlag> </CivilizationArtInfo>