Civ4EraInfos: Difference between revisions
(One intermediate revision by the same user not shown) | |||
Line 45: | Line 45: | ||
{| border="1" style="text-align:left" cellpadding="3" cellspacing="0" | {| border="1" style="text-align:left" cellpadding="3" cellspacing="0" | ||
|- | |||
! style="background:#efefef;" | Tag Name | |||
! style="background:#efefef;" | Description | |||
|- | |- | ||
!iAdvancedStartPoints | !iAdvancedStartPoints | ||
|Number of points for advanced start | |Number of points for advanced start | ||
|- | |- | ||
!iStartingUnitMultiplier | !iStartingUnitMultiplier | ||
Line 80: | Line 80: | ||
|- | |- | ||
!iConstructPercent | !iConstructPercent | ||
| | |Percentage rate for building buildings | ||
|- | |- | ||
!iCreatePercent | !iCreatePercent | ||
| | |Percentage rate for creating projects | ||
|- | |- | ||
!iResearchPercent | !iResearchPercent | ||
Line 89: | Line 89: | ||
|- | |- | ||
!iBuildPercent | !iBuildPercent | ||
| | |Percentage rate for worker actions | ||
|- | |- | ||
!iImprovementPercent | !iImprovementPercent | ||
Line 109: | Line 109: | ||
|Unknown | |Unknown | ||
|} | |} | ||
===Boolean=== | ===Boolean=== |
Latest revision as of 02:01, 24 September 2012
The Civ4EraInfos file defines information about the eras of the game.
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 |
---|---|
EraInfo | Main bracket for each entry |
Type | Label that is used through other XML files |
Text
Tag Name | Description |
---|---|
Description | References the Text which contains the era description (eg: "Ancient Era", or "Modern Era"). The text is specified in any of the Assets\XML\Text files. |
Strategy | Unknown |
Integers
All of these tags have a numerical value. Though it sometimes can be negative, it usually is not.
Tag Name | Description |
---|---|
iAdvancedStartPoints | Number of points for advanced start |
iStartingUnitMultiplier | Multiplier used to increase the number of starting units for later eras |
iStartingDefenseUnits | Number of defense units civilizations start with |
iStartingWorkerUnits | Number of workers civilizations start with |
iStartingExploreUnits | Number of scouting units civilizations start with |
iStartingGold | Amount of gold civilizations start with |
iFreePopulation | Amount of extra population points to cities founded for this era start |
iStartPercent | Unknown |
iGrowthPercent | Percentage rate for city growth |
iTrainPercent | Percentage rate for training units |
iConstructPercent | Percentage rate for building buildings |
iCreatePercent | Percentage rate for creating projects |
iResearchPercent | Percentage rate for researching technologies |
iBuildPercent | Percentage rate for worker actions |
iImprovementPercent | Percentage rate for building improvements |
iGreatPeoplePercent | Percentage rate for great people generation |
iCulturePercent | Percentage rate for culture accumulation |
iAnarchyPercent | Percentage rate for how long anarchy lasts |
iEventChancePerTurn | Multiplier for random event chance |
iSoundtrackSpace | 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 |
---|---|
bNoGoodies | No tribal villages |
bNoAnimals | No animals |
bNoBarbUnits | No barbarian units |
bNoBarbCities | No barbarian cities |
bFirstSoundtrackFirst | 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 |
---|---|
EraInfoSoundtracks | A list of references to sound files used for the soundtrack of the era, stored in XML\Audio\Audio2DScripts.xml
<EraInfoSoundtrack>AS2D_ANCIENT_SOUNDTRACK_1</EraInfoSoundtrack> |
CitySoundscapes | References to sound files used near a city, stored in XML\Audio\AudioSoundscapeScripts.xml
<CitySoundscape> <CitySizeType>CITYSIZE_SMALL</CitySizeType> <SoundscapeScript>ASSS_CITY_ANCIENT_SMALL_SELECT_AMB</SoundscapeScript> </CitySoundscape> |
Audio
These tags are directly related to audio used for the entry.
Tag Name | Description |
---|---|
AudioUnitVictoryScript | Sound used when unit wins combat |
AudioUnitDefeatScript | Sound used when unit loses combat |
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.
<EraInfo> <Type>ERA_ANCIENT</Type> <Description>TXT_KEY_ERA_ANCIENT</Description> <Strategy>TXT_KEY_ERA_ANCIENT_STRATEGY</Strategy> <bNoGoodies>0</bNoGoodies> <bNoAnimals>0</bNoAnimals> <bNoBarbUnits>0</bNoBarbUnits> <bNoBarbCities>0</bNoBarbCities> <iAdvancedStartPoints>600</iAdvancedStartPoints> <iStartingUnitMultiplier>1</iStartingUnitMultiplier> <iStartingDefenseUnits>0</iStartingDefenseUnits> <iStartingWorkerUnits>0</iStartingWorkerUnits> <iStartingExploreUnits>1</iStartingExploreUnits> <iStartingGold>0</iStartingGold> <iFreePopulation>0</iFreePopulation> <iStartPercent>0</iStartPercent> <iGrowthPercent>100</iGrowthPercent> <iTrainPercent>100</iTrainPercent> <iConstructPercent>100</iConstructPercent> <iCreatePercent>100</iCreatePercent> <iResearchPercent>100</iResearchPercent> <iBuildPercent>100</iBuildPercent> <iImprovementPercent>100</iImprovementPercent> <iGreatPeoplePercent>100</iGreatPeoplePercent> <iCulturePercent>100</iCulturePercent> <iAnarchyPercent>50</iAnarchyPercent> <iEventChancePerTurn>1</iEventChancePerTurn> <iSoundtrackSpace>0</iSoundtrackSpace> <bFirstSoundtrackFirst>0</bFirstSoundtrackFirst> <EraInfoSoundtracks> <EraInfoSoundtrack>AS2D_ANCIENT_SOUNDTRACK_1</EraInfoSoundtrack> <EraInfoSoundtrack>AS2D_ANCIENT_SOUNDTRACK_2</EraInfoSoundtrack> <EraInfoSoundtrack>AS2D_ANCIENT_SOUNDTRACK_3</EraInfoSoundtrack> <EraInfoSoundtrack>AS2D_ANCIENT_SOUNDTRACK_4</EraInfoSoundtrack> </EraInfoSoundtracks> <CitySoundscapes> <CitySoundscape> <CitySizeType>CITYSIZE_SMALL</CitySizeType> <SoundscapeScript>ASSS_CITY_ANCIENT_SMALL_SELECT_AMB</SoundscapeScript> </CitySoundscape> <CitySoundscape> <CitySizeType>CITYSIZE_MEDIUM</CitySizeType> <SoundscapeScript>ASSS_CITY_ANCIENT_SMALL_SELECT_AMB</SoundscapeScript> </CitySoundscape> <CitySoundscape> <CitySizeType>CITYSIZE_LARGE</CitySizeType> <SoundscapeScript>ASSS_CITY_ANCIENT_LARGE_SELECT_AMB</SoundscapeScript> </CitySoundscape> </CitySoundscapes> <AudioUnitVictoryScript>AS2D_VICTORY_EARLY</AudioUnitVictoryScript> <AudioUnitDefeatScript>AS2D_LOSS_EARLY</AudioUnitDefeatScript> </EraInfo>