Civ4SpecialBuildingInfos
The Civ4SpecialBuildingInfos file defines what special building types exist in the game. Special buildings are essentially groups of buildings that can have traits (such as tech requirement) linked to each other.
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.
This page is missing information. Do not remove this notice until it is complete.
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 |
---|---|
SpecialBuildingInfo | Main bracket for each entry |
Type | Label that is used in other XML files |
Text
Tag Name | Description |
---|---|
Description | Name of the special building type |
ObsoleteTech | Tech that obsoletes all buildings with that special building type |
TechPrereq | Tech required to build all building with that special building type |
TechPrereqAnyone | unknown |
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 |
---|---|
bValid | unknown |
Lists (Multi-line)
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).
Tag Name | Description |
---|---|
Production Traits | Which traits get a production bonus when building buildings with this special building type
Example: civs with Spiritual get 100% boost to production <ProductionTrait> <ProductionTraitType>TRAIT_SPIRITUAL</ProductionTraitType> <iProductionTrait>100</iProductionTrait> </ProductionTrait> |
Art
These tags are directly related to the rendering of art for the entry.
Tag Name | Description |
---|---|
Button | The button used for the special building type |
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.
<SpecialBuildingInfo> <Type>SPECIALBUILDING_MONASTERY</Type> <Description>TXT_KEY_SPECIALBUILDING_MONASTERY</Description> <ObsoleteTech>TECH_SCIENTIFIC_METHOD</ObsoleteTech> <TechPrereq>TECH_MEDITATION</TechPrereq> <TechPrereqAnyone>NONE</TechPrereqAnyone> <bValid>1</bValid> <ProductionTraits/> <Button>Art/Interface/Buttons/Buildings/Monastery_Hindu.dds</Button> </SpecialBuildingInfo>