Civ4EraInfos: Difference between revisions

From Civilization Modding Wiki
Jump to navigationJump to search
(Created page with "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 g...")
 
Line 180: Line 180:
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.
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>
<EraInfo>
<Type>ERA_ANCIENT</Type>
  <Type>ERA_ANCIENT</Type>
<Description>TXT_KEY_ERA_ANCIENT</Description>
  <Description>TXT_KEY_ERA_ANCIENT</Description>
<Strategy>TXT_KEY_ERA_ANCIENT_STRATEGY</Strategy>
  <Strategy>TXT_KEY_ERA_ANCIENT_STRATEGY</Strategy>
<bNoGoodies>0</bNoGoodies>
  <bNoGoodies>0</bNoGoodies>
<bNoAnimals>0</bNoAnimals>
  <bNoAnimals>0</bNoAnimals>
<bNoBarbUnits>0</bNoBarbUnits>
  <bNoBarbUnits>0</bNoBarbUnits>
<bNoBarbCities>0</bNoBarbCities>
  <bNoBarbCities>0</bNoBarbCities>
<iAdvancedStartPoints>600</iAdvancedStartPoints>
  <iAdvancedStartPoints>600</iAdvancedStartPoints>
<iStartingUnitMultiplier>1</iStartingUnitMultiplier>
  <iStartingUnitMultiplier>1</iStartingUnitMultiplier>
<iStartingDefenseUnits>0</iStartingDefenseUnits>
  <iStartingDefenseUnits>0</iStartingDefenseUnits>
<iStartingWorkerUnits>0</iStartingWorkerUnits>
  <iStartingWorkerUnits>0</iStartingWorkerUnits>
<iStartingExploreUnits>1</iStartingExploreUnits>
  <iStartingExploreUnits>1</iStartingExploreUnits>
<iStartingGold>0</iStartingGold>
  <iStartingGold>0</iStartingGold>
<iFreePopulation>0</iFreePopulation>
  <iFreePopulation>0</iFreePopulation>
<iStartPercent>0</iStartPercent>
  <iStartPercent>0</iStartPercent>
<iGrowthPercent>100</iGrowthPercent>
  <iGrowthPercent>100</iGrowthPercent>
<iTrainPercent>100</iTrainPercent>
  <iTrainPercent>100</iTrainPercent>
<iConstructPercent>100</iConstructPercent>
  <iConstructPercent>100</iConstructPercent>
<iCreatePercent>100</iCreatePercent>
  <iCreatePercent>100</iCreatePercent>
<iResearchPercent>100</iResearchPercent>
  <iResearchPercent>100</iResearchPercent>
<iBuildPercent>100</iBuildPercent>
  <iBuildPercent>100</iBuildPercent>
<iImprovementPercent>100</iImprovementPercent>
  <iImprovementPercent>100</iImprovementPercent>
<iGreatPeoplePercent>100</iGreatPeoplePercent>
  <iGreatPeoplePercent>100</iGreatPeoplePercent>
<iCulturePercent>100</iCulturePercent>
  <iCulturePercent>100</iCulturePercent>
<iAnarchyPercent>50</iAnarchyPercent>
  <iAnarchyPercent>50</iAnarchyPercent>
<iEventChancePerTurn>1</iEventChancePerTurn>
  <iEventChancePerTurn>1</iEventChancePerTurn>
<iSoundtrackSpace>0</iSoundtrackSpace>
  <iSoundtrackSpace>0</iSoundtrackSpace>
<bFirstSoundtrackFirst>0</bFirstSoundtrackFirst>
  <bFirstSoundtrackFirst>0</bFirstSoundtrackFirst>
<EraInfoSoundtracks>
  <EraInfoSoundtracks>
<EraInfoSoundtrack>AS2D_ANCIENT_SOUNDTRACK_1</EraInfoSoundtrack>
  <EraInfoSoundtrack>AS2D_ANCIENT_SOUNDTRACK_1</EraInfoSoundtrack>
<EraInfoSoundtrack>AS2D_ANCIENT_SOUNDTRACK_2</EraInfoSoundtrack>
  <EraInfoSoundtrack>AS2D_ANCIENT_SOUNDTRACK_2</EraInfoSoundtrack>
<EraInfoSoundtrack>AS2D_ANCIENT_SOUNDTRACK_3</EraInfoSoundtrack>
  <EraInfoSoundtrack>AS2D_ANCIENT_SOUNDTRACK_3</EraInfoSoundtrack>
<EraInfoSoundtrack>AS2D_ANCIENT_SOUNDTRACK_4</EraInfoSoundtrack>
  <EraInfoSoundtrack>AS2D_ANCIENT_SOUNDTRACK_4</EraInfoSoundtrack>
</EraInfoSoundtracks>
  </EraInfoSoundtracks>
<CitySoundscapes>
  <CitySoundscapes>
<CitySoundscape>
  <CitySoundscape>
<CitySizeType>CITYSIZE_SMALL</CitySizeType>
    <CitySizeType>CITYSIZE_SMALL</CitySizeType>
<SoundscapeScript>ASSS_CITY_ANCIENT_SMALL_SELECT_AMB</SoundscapeScript>
    <SoundscapeScript>ASSS_CITY_ANCIENT_SMALL_SELECT_AMB</SoundscapeScript>
</CitySoundscape>
  </CitySoundscape>
<CitySoundscape>
    <CitySoundscape>
<CitySizeType>CITYSIZE_MEDIUM</CitySizeType>
    <CitySizeType>CITYSIZE_MEDIUM</CitySizeType>
<SoundscapeScript>ASSS_CITY_ANCIENT_SMALL_SELECT_AMB</SoundscapeScript>
    <SoundscapeScript>ASSS_CITY_ANCIENT_SMALL_SELECT_AMB</SoundscapeScript>
</CitySoundscape>
  </CitySoundscape>
<CitySoundscape>
  <CitySoundscape>
<CitySizeType>CITYSIZE_LARGE</CitySizeType>
    <CitySizeType>CITYSIZE_LARGE</CitySizeType>
<SoundscapeScript>ASSS_CITY_ANCIENT_LARGE_SELECT_AMB</SoundscapeScript>
    <SoundscapeScript>ASSS_CITY_ANCIENT_LARGE_SELECT_AMB</SoundscapeScript>
</CitySoundscape>
  </CitySoundscape>
</CitySoundscapes>
  </CitySoundscapes>
<AudioUnitVictoryScript>AS2D_VICTORY_EARLY</AudioUnitVictoryScript>
  <AudioUnitVictoryScript>AS2D_VICTORY_EARLY</AudioUnitVictoryScript>
<AudioUnitDefeatScript>AS2D_LOSS_EARLY</AudioUnitDefeatScript>
  <AudioUnitDefeatScript>AS2D_LOSS_EARLY</AudioUnitDefeatScript>
</EraInfo>
</EraInfo>


{{Civ4_XML_Files}}
{{Civ4_XML_Files}}

Revision as of 03:48, 23 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.

iAdvancedStartPoints Number of points for advanced start
Tag Name Description
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 Unknown
iCreatePercent Unknown
iResearchPercent Percentage rate for researching technologies
iBuildPercent Unknown
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