Civ4EraInfos

From Civilization Modding Wiki
Jump to: navigation, search

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>


GlobalDefinesGlobalDefinesAltGlobalTypesPythonCallbackDefines

Art:

Civ4ArtDefines_BonusCiv4ArtDefines_BuildingCiv4ArtDefines_CivilizationCiv4ArtDefines_FeatureCiv4ArtDefines_ImprovementCiv4ArtDefines_InterfaceCiv4ArtDefines_LeaderheadCiv4ArtDefines_MiscCiv4ArtDefines_MovieCiv4ArtDefines_TerrainCiv4ArtDefines_UnitCiv4MainMenusCiv4RiverModelInfosCiv4RouteModelInfos

Audio; Buildings:

Audio2DScriptsAudio3DScriptsAudioDefinesAudioSoundscapeScriptsCiv4BuildingClassInfosCiv4BuildingInfosCiv4CityLSystemCiv4PlotLSystemCiv4SpecialBuildingInfos

BasicInfos:

Civ4AttitudeInfosCiv4BasicInfosCiv4CalendarInfosCiv4CityTabInfosCiv4DenialInfosCiv4DomainInfosCiv4InvisibleInfosCiv4MemoryInfosCiv4MonthInfosCiv4NewConceptInfosCiv4SeasonInfosCiv4UnitAIInfosCiv4UnitCombatInfos

Civilizations; Events:

Civ4CivilizationInfosCiv4LeaderHeadInfosCiv4TraitInfosCiv4UnitArtStyleTypeInfosCiv4EventInfosCiv4EventTriggerInfos

GameInfo:

Civ4CivicInfosCiv4CivicOptionInfosCiv4ClimateInfoCiv4CommerceInfoCiv4CorporationInfoCiv4CultureLevelInfoCiv4CursorInfoCiv4DiplomacyInfosCiv4EmphasizeInfosCiv4EspionageMissionInfoCiv4EraInfosCiv4ForceControlInfosCiv4GameOptionInfosCiv4GameSpeedInfoCiv4GoodyInfoCiv4GraphicOptionInfosCiv4HandicapInfoCiv4HintsCiv4MPOptionInfosCiv4PlayerOptionInfosCiv4ProcessInfoCiv4ReligionInfoCiv4SeaLevelInfoCiv4SpecialistInfosCiv4TurnTimerInfoCiv4UpKeepInfoCiv4VictoryInfoCiv4VoteInfoCiv4VoteSourceInfosCiv4WorldInfo

Interface:

Civ4AdvisorInfosCiv4CameraInfosCiv4ColorValsCiv4InterfaceModeInfosCiv4PlayerColorInfosCiv4SlideShowInfosCiv4SlideShowRandomInfosCiv4SpaceShipInfosCiv4ThroneRoomeInfosCiv4ThroneRoomCameraInfosCiv4ThroneRoomStyleInfosCiv4WorldPickerInfos

Misc:

Civ4AttachableInfosCiv4CameraOverlayInfosCiv4DetailManagerCiv4EffectInfosCiv4QuestInfosCiv4RiverInfosCiv4RouteInfosCiv4TerrainPlainInfosCiv4TutorialInfosCiv4WaterPlaneInfos

Technologies:

Civ4TechInfos

Terrain:

Civ4BonusClassInfosCiv4BonusInfosCiv4FeatureInfosCiv4ImprovementInfosCiv4SymbolMeshPathsCiv4TerrainInfosCiv4TerrainSettingsCiv4YieldInfos

Units:

Civ4AnimationInfosCiv4AnimationPathInfosCiv4AutomateInfosCiv4BuildInfosCiv4CommandInfosCiv4ControlInfosCiv4EntityEventInfosCiv4FormationInfosCiv4MissionInfosCiv4PromotionInfosCiv4SpecialUnitInfosCiv4UnitClassInfosCiv4UnitInfos

Schemas:

Civ4GlobalDefinesSchemaCiv4GlobalTypesSchemaCiv4ArtDefinesSchemaAudioDefinesSchemaAudioScriptSchemaCiv4BasicInfoSchemaCiv4BuildingSchemaCiv4LSystemSchemaCiv4CivilizationSchemaCiv4EventSchemaCiv4GameInfoSchemaCiv4InterfaceSchemaCiv4MiscSchemaCiv4TutorialSchemaCiv4DetailManagerSchemaCiv4TechnologiesSchemaCiv4TerrainSchemaCiv4FormationSchemaCiv4UnitSchema

Italics: Beyond the Sword only