Civ4YieldInfos

From Civilization Modding Wiki
Jump to navigationJump to search

The Civ4YieldInfos file describes the three types of yields on the city screen (food, hammers, and commerce per turn), as well as various modifiers that affect their output.

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
YieldInfos This begins and ends the entire file.
YieldInfo This contains the info for each type of yield: food, hammers, and commerce.


Text

Tag Name Description
Type This is the name of the yield type, used internally by the game.
Description This is a tag referencing an entry in the text files, describing the particular type of yield.
ColorType This refers to a color specified in the Civ4ColorVals file (as expected, food and commerce are somewhat orange/yield in color and hammers are bluish).


Integers

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

Tag Name Description
iAIWeightPercent Used to control the AI's strategy and weighting of individual yields. For example, the AI weights hammers more than commerce.
iCityChange Unknown. Might affect the city center yields.
iGoldenAgeYield If the player enters a golden age and iGoldenAgeYieldThreshold is met, increases the output by this amount.
iGoldenAgeYieldThreshold The minimum number of yield per turn for the iGoldenAgeYield bonus to kick in (i.e. all tiles producing 1 or more hammers will produce an extra hammer during a golden age).
iHillsChange Increases the yield on hills by this amount (e.g. food has a value of -1, meaning hills produce less food).
iLakeChange Increases the yield on lake tiles by this amount (e.g. food has a value of 1, meaning lakes produce an extra food per turn).
iMinCity The minimum yield per turn that a city can have. For food, this is 2. For hammers and commerce, this is 1.
iPeakChange Default is 0. If not zero, increases the yield on peak/mountain tiles by this amount.
iTradeModifier Unknown exactly. Commerce has a value of 100, while food and hammers have values of 0. Might affect trade routes.


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
SymbolPaths This contains multiple uses of the SymbolPaths tag to list the various directory paths for yield icons.


Art

These tags are directly related to the rendering of art for the entry.

Tag Name Description
SymbolPath Each entry of this tag contains the directory path to a unique yield icon.


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.

<YieldInfos>
 <YieldInfo>
  <Type>YIELD_FOOD</Type>
  <Description>TXT_KEY_YIELD_FOOD</Description>
  <iHillsChange>-1</iHillsChange>
  <iPeakChange>0</iPeakChange>
  <iLakeChange>1</iLakeChange>
  <iCityChange>0</iCityChange>
  <iPopulationChangeOffset>0</iPopulationChangeOffset>
  <iPopulationChangeDivisor>0</iPopulationChangeDivisor>
  <iMinCity>2</iMinCity>
  <iTradeModifier>0</iTradeModifier>
  <iGoldenAgeYield>0</iGoldenAgeYield>
  <iGoldenAgeYieldThreshold>0</iGoldenAgeYieldThreshold>
  <iAIWeightPercent>100</iAIWeightPercent>
  <ColorType>COLOR_YIELD_FOOD</ColorType>
  <SymbolPaths>
   <SymbolPath>Art/Interface/Symbols/Food/Food01.nif</SymbolPath>
   <SymbolPath>Art/Interface/Symbols/Food/Food02.nif</SymbolPath>
   <SymbolPath>Art/Interface/Symbols/Food/Food03.nif</SymbolPath>
   <SymbolPath>Art/Interface/Symbols/Food/Food04.nif</SymbolPath>
   <SymbolPath>Art/Interface/Symbols/Food/Food05.nif</SymbolPath>
  </SymbolPaths>
 </YieldInfo>
</YieldInfos>


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