Difference between revisions of "Civ4TechInfos"

From Civilization Modding Wiki
Jump to: navigation, search
Line 75: Line 75:
 
! style="background:#efefef;" | Tag Name
 
! style="background:#efefef;" | Tag Name
 
! style="background:#efefef;" | Description
 
! style="background:#efefef;" | Description
 +
|-
 +
!iAdvancedStartCost
 +
|
 +
|-
 +
!iAdvancedStartCostIncrease
 +
|
 
|-
 
|-
 
!iAITradeModifier  
 
!iAITradeModifier  
Line 166: Line 172:
 
|-
 
|-
 
!bRepeat  
 
!bRepeat  
 +
|
 +
|-
 +
!bRiverTrade
 
|
 
|
 
|-
 
|-
Line 172: Line 181:
 
|-
 
|-
 
!bTrade  
 
!bTrade  
 +
|
 +
|-
 +
!bVassalTrade
 
|
 
|
 
|-
 
|-
Line 208: Line 220:
 
!TerrainTrades  
 
!TerrainTrades  
 
|
 
|
|}
 
 
 
===Art===
 
 
These tags are directly related to the rendering of art for the entry.
 
 
{| border="1" style="text-align:left" cellpadding="3" cellspacing="0"
 
|-
 
! style="background:#efefef;" | Tag Name
 
! style="background:#efefef;" | Description
 
|-
 
! ArtDefineTag
 
| Reference the graphic set to be used for that civilization (his symbol and his flag). The possible values are defined in the Assets\XML\Art\CIV4ArtDefines_Civilization.xml file.
 
|-
 
! ArtStyleType
 
| Sets the art style for that civilization. This is used when displaying cities, and allows, for example, China and Japan to be displayed as asiatic, while Egypt and Mali will be displayed as african. The possible values are defined in the Assets\XML\GlobalTypes.xml file, in the section "ArtStyleTypes".
 
|-
 
! UnitArtStyleType
 
| Sets the art style for that civilization. This is used when displaying units, and allows, for example, China and Japan to be displayed as asiatic, while Egypt and Mali will be displayed as african. The possible values are defined in the Assets\XML\Civilizations\CIV4UnitArtStyleTypeInfos.xml file.
 
 
|}
 
|}
  

Revision as of 00:19, 24 May 2009

The Civ4TechInfos file defines all of the information, basic and complex, about each of the game's technologies. Information in this file includes a tech's prerequisites, research cost, and benefits.

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
TechInfos This begins and ends the file. Everything must go in between these two, or it will not work.
TechInfo Encloses the entry for each civilization


Text

Tag Name Description
Advisor
Button
Civilopedia References the Text which contains the civilopedia content for that civilization. The text is specified in any of the Assets\XML\Text files.
Description References the Text which contains the civilization description (eg: "American empire", or "English empire"). The text is specified in any of the Assets\XML\Text files.
Era
FirstFreeUnitClass
Help
Quote
Sound
SoundMP
Strategy
Type The name that can be used in other files and in the SDK to refer to a particular civilization.


Integers

All of these tags have a numerical value. Though it sometimes can be negative, it usually is not.

Tag Name Description
iAdvancedStartCost
iAdvancedStartCostIncrease
iAITradeModifier
iAIWeight
iAsset
iCost
iFeatureProductionModifier
iFirstFreeTechs
iGridX
iGridY
iHappiness
iHealth
iPower
iTradeRoutes
iWorkerSpeedModifier


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
bBridgeBuilding
bDefensivePactTrading
bDisable
bExtraWaterSeeFrom
bGoldTrading
bGoodyTech
bIgnoreIrrigation
bIrrigation
bMapCentering
bMapTrading
bMapVisible
bOpenBordersTrading
bPermanentAllianceTrading
bRepeat
bRiverTrade
bTechTrading
bTrade
bVassalTrade
bWaterWork


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
AndPreReqs
DomainExtraMoves
CommerceFlexible
Flavors
OrPreReqs
SpecialBuilding
TerrainTrades


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.

<TechInfos>
 <TechInfo>
  <Type>TECH_MYSTICISM</Type>
  <Description>TXT_KEY_TECH_MYSTICISM</Description>
  <Civilopedia>TXT_KEY_TECH_MYSTICISM_PEDIA</Civilopedia>
  <Help/>
  <Strategy>TXT_KEY_TECH_MYSTICISM_STRATEGY</Strategy>
  <Advisor>ADVISOR_RELIGION</Advisor>
  <iAIWeight>0</iAIWeight>
  <iAITradeModifier>0</iAITradeModifier>
  <iCost>50</iCost>
  <iAdvancedStartCost>100</iAdvancedStartCost>
  <iAdvancedStartCostIncrease>0</iAdvancedStartCostIncrease>
  <Era>ERA_ANCIENT</Era>
  <FirstFreeUnitClass>NONE</FirstFreeUnitClass>
  <iFeatureProductionModifier>0</iFeatureProductionModifier>
  <iWorkerSpeedModifier>0</iWorkerSpeedModifier>
  <iTradeRoutes>0</iTradeRoutes>
  <iHealth>0</iHealth>
  <iHappiness>0</iHappiness>
  <iFirstFreeTechs>0</iFirstFreeTechs>
  <iAsset>8</iAsset>
  <iPower>0</iPower>
  <bRepeat>0</bRepeat>
  <bTrade>1</bTrade>
  <bDisable>0</bDisable>
  <bGoodyTech>1</bGoodyTech>
  <bExtraWaterSeeFrom>0</bExtraWaterSeeFrom>
  <bMapCentering>0</bMapCentering>
  <bMapVisible>0</bMapVisible>
  <bMapTrading>0</bMapTrading>
  <bTechTrading>0</bTechTrading>
  <bGoldTrading>0</bGoldTrading>
  <bOpenBordersTrading>0</bOpenBordersTrading>
  <bDefensivePactTrading>0</bDefensivePactTrading>
  <bPermanentAllianceTrading>0</bPermanentAllianceTrading>
  <bVassalTrading>0</bVassalTrading>
  <bBridgeBuilding>0</bBridgeBuilding>
  <bIrrigation>0</bIrrigation>
  <bIgnoreIrrigation>0</bIgnoreIrrigation>
  <bWaterWork>0</bWaterWork>
  <iGridX>1</iGridX>
  <iGridY>11</iGridY>
  <DomainExtraMoves/>
  <CommerceFlexible/>
  <TerrainTrades/>
  <bRiverTrade>0</bRiverTrade>
  <Flavors>
   <Flavor>
    <FlavorType>FLAVOR_RELIGION</FlavorType>
    <iFlavor>9</iFlavor>
   </Flavor>
   <Flavor>
    <FlavorType>FLAVOR_GOLD</FlavorType>
    <iFlavor>1</iFlavor>
   </Flavor>
   <Flavor>
    <FlavorType>FLAVOR_CULTURE</FlavorType>
    <iFlavor>8</iFlavor>
   </Flavor>
   <Flavor>
    <FlavorType>FLAVOR_GROWTH</FlavorType>
    <iFlavor>2</iFlavor>
   </Flavor>
  </Flavors>
  <OrPreReqs/>
  <AndPreReqs/>
  <Quote>TXT_KEY_TECH_MYSTICISM_QUOTE</Quote>
  <Sound>AS2D_TECH_MYSTICISM</Sound>
  <SoundMP>AS2D_TECH_MP_MYSTICISM</SoundMP>
  <Button>,Art/Interface/Buttons/TechTree/Mysticism.dds,Art/Interface/Buttons/TechTree_Atlas.dds,4,11</Button>
 </TechInfo>
</TechInfos>