Difference between revisions of "Civ4UnitArtStyleTypeInfos"
m (Unprotected "Civ4UnitArtStyleTypeInfos")
|(One intermediate revision by the same user not shown)|
Latest revision as of 01:52, 3 October 2011
The Civ4UnitArtStyleTypeInfos file declares the directory paths for the display art of unit types with more than one possible appearance. This also handles the organization of various art styles, like Asian, Greco-Roman, and Middle Eastern, as some units have different game art depending on the civilization. Many early game units, including the settler and worker, have such flavor graphics.
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.
These tags typically bracket other tags, sometimes the entire file, and are generally used to specify more than one piece of data.
|UnitArtStyleTypeInfos||This begins and ends the entire file.|
|UnitArtStyleTypeInfo||This begins and ends the information for each specific art style (Asian, Greco-Roman, etc.).|
|Type||This declares the name of the art style used internally by the game.|
|UnitType||This tag defines what unit type the following tags refer to (e.g. UNIT_ARCHER).|
|EarlyArtDefineTag||This is a reference to an entry in the Civ4ArtDefines_Unit file, containing all the information about this unit's graphics in the early part of the game.|
|LateArtDefineTag||This is a reference to an entry in the Civ4ArtDefines_Unit file, containing all the information about this unit's graphics in the last part of the game (for example, all workers in the Modern Age have the same look, regardless of ethnicity).|
|MiddleArtDefineTag||This is a reference to an entry in the Civ4ArtDefines_Unit file, containing all the information about this unit's graphics in the middle part of the game.|
All List tags consist of an opening/closing tag, which is shown here, and then each entry within it is another tag with the same name as the parent tag, minus the "s" (i.e. singular, rather than plural).
|StyleUnits||This begins the listing of all units that have a particular ethnicity. Each individual unit's information begins with the subtag StyleUnit.|
|UnitMeshGroup||This contains the listing of the various ArtDefineTags (see above) for the given unit at different points in the game.|
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.
<UnitArtStyleTypeInfos> <UnitArtStyleTypeInfo> <Type>UNIT_ARTSTYLE_ASIAN</Type> <StyleUnits> <StyleUnit> <UnitType>UNIT_ARCHER</UnitType> <UnitMeshGroup> <EarlyArtDefineTag>ART_DEF_UNIT_ARCHER_ASIAN</EarlyArtDefineTag> <LateArtDefineTag>ART_DEF_UNIT_ARCHER_ASIAN</LateArtDefineTag> <MiddleArtDefineTag>ART_DEF_UNIT_ARCHER_ASIAN</MiddleArtDefineTag> </UnitMeshGroup> </StyleUnit> <StyleUnit> <UnitType>UNIT_CARAVEL</UnitType> <UnitMeshGroup> <EarlyArtDefineTag>ART_DEF_UNIT_ASIAN_WAR_GALLEY</EarlyArtDefineTag> <LateArtDefineTag>ART_DEF_UNIT_ASIAN_WAR_GALLEY</LateArtDefineTag> <MiddleArtDefineTag>ART_DEF_UNIT_ASIAN_WAR_GALLEY</MiddleArtDefineTag> </UnitMeshGroup> </StyleUnit> <StyleUnit> <UnitType>UNIT_CHARIOT</UnitType> <UnitMeshGroup> <EarlyArtDefineTag>ART_DEF_UNIT_CHARIOT_CHINESE</EarlyArtDefineTag> <LateArtDefineTag>ART_DEF_UNIT_CHARIOT_CHINESE</LateArtDefineTag> <MiddleArtDefineTag>ART_DEF_UNIT_CHARIOT_CHINESE</MiddleArtDefineTag> </UnitMeshGroup> </StyleUnit> </UnitArtStyleTypeInfo> </UnitArtStyleTypeInfos>