Civ4WorldInfo: Difference between revisions

From Civilization Modding Wiki
Jump to navigationJump to search
(Created page with "The '''Civ4WorldInfo''' file defines the different world sizes available. All tags must be opened and closed; the first is the "open", the second the "close" tag. If nothing goe...")
 
No edit summary
 
(3 intermediate revisions by the same user not shown)
Line 36: Line 36:
|-
|-
!Help
!Help
|Unknown
|Optional text tag, which allows you to display information, which does not have to come from the XML files
|}
|}


Line 56: Line 56:
|-
|-
!iTargetNumCities
!iTargetNumCities
|Unknown
|Number of cities which is needed to build national wonders
|-
|-
!iNumFreeBuildingBonuses
!iNumFreeBuildingBonuses
|Unknown
|The default number of resources, which e.g. Hollywood provide
|-
|-
!iBuildingClassPrereqModifiers
!iBuildingClassPrereqModifiers
|Unknown
|The number of buildings which is needed before some wonders, e.g. Statue of Zeus, Great Library, can be build
|-
|-
!iMaxConscriptModifier
!iMaxConscriptModifier
Line 71: Line 71:
|-
|-
!iGridWidth
!iGridWidth
|Width of the map; units unknown
|Width of the map; the value is actually only a quarter of the map width in tiles
|-
|-
!iGridHeight
!iGridHeight
|Height of the map; units unknown
|Height of the map; the value is actually only a quarter of the map height in tiles
|-
|-
!iTerrainGrainChange
!iTerrainGrainChange
Line 83: Line 83:
|-
|-
!iResearchPercent
!iResearchPercent
|Unknown
|A modifier applied to your overall research
|-
|-
!iTradeProfitPercent
!iTradeProfitPercent
|Unknown
|A factor, which scales the trade profit from trade routes according to the world size
|-
|-
!iDistanceMaintenacePercent
!iDistanceMaintenacePercent
|Unknown
|A modifier applied to the city maintenance based on the distance to the capital
|-
|-
!iNumCitiesMaintenancePercent
!iNumCitiesMaintenancePercent
|Unknown
|A modifier applied to the city maintenance based on the number of cities
|-
|-
!iColonyMaintenancePercent
!iColonyMaintenancePercent
|Unknown
|A modifier applied to the maintenance of oversee colonies (NOT the vassal; the cities, before they are freed, are meant)
|-
|-
!iCorporationMaintenancePercent
!iCorporationMaintenancePercent
|Unknown
|A modifier applied to the corporation maintenance
|-
|-
!iNumCitiesAnarchyPercent
!iNumCitiesAnarchyPercent

Latest revision as of 20:16, 6 March 2013

The Civ4WorldInfo file defines the different world sizes available.

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
WorldInfo Main bracket for each entry
Type Name used in other files


Text

Tag Name Description
Description Text displayed in game
Help Optional text tag, which allows you to display information, which does not have to come from the XML files


Integers

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

Tag Name Description
iDefaultPlayers Default number of players
iUnitNameModifier Unknown
iTargetNumCities Number of cities which is needed to build national wonders
iNumFreeBuildingBonuses The default number of resources, which e.g. Hollywood provide
iBuildingClassPrereqModifiers The number of buildings which is needed before some wonders, e.g. Statue of Zeus, Great Library, can be build
iMaxConscriptModifier Unknown
iWarWearinessModifier Unknown
iGridWidth Width of the map; the value is actually only a quarter of the map width in tiles
iGridHeight Height of the map; the value is actually only a quarter of the map height in tiles
iTerrainGrainChange Unknown
iFeatureGrainChange Unknown
iResearchPercent A modifier applied to your overall research
iTradeProfitPercent A factor, which scales the trade profit from trade routes according to the world size
iDistanceMaintenacePercent A modifier applied to the city maintenance based on the distance to the capital
iNumCitiesMaintenancePercent A modifier applied to the city maintenance based on the number of cities
iColonyMaintenancePercent A modifier applied to the maintenance of oversee colonies (NOT the vassal; the cities, before they are freed, are meant)
iCorporationMaintenancePercent A modifier applied to the corporation maintenance
iNumCitiesAnarchyPercent Unknown
iAdvancedStartPointsMod Unknown


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.

<WorldInfo>
 <Type>WORLDSIZE_DUEL</Type>
 <Description>TXT_KEY_WORLD_DUEL</Description>
 <Help>TXT_KEY_WORLD_DUEL_HELP</Help>
 <iDefaultPlayers>2</iDefaultPlayers>
 <iUnitNameModifier>50</iUnitNameModifier>
 <iTargetNumCities>4</iTargetNumCities>
 <iNumFreeBuildingBonuses>1</iNumFreeBuildingBonuses>
 <iBuildingClassPrereqModifier>0</iBuildingClassPrereqModifier>
 <iMaxConscriptModifier>-50</iMaxConscriptModifier>
 <iWarWearinessModifier>50</iWarWearinessModifier>
 <iGridWidth>10</iGridWidth>
 <iGridHeight>6</iGridHeight>
 <iTerrainGrainChange>-1</iTerrainGrainChange>
 <iFeatureGrainChange>-1</iFeatureGrainChange>
 <iResearchPercent>100</iResearchPercent>
 <iTradeProfitPercent>80</iTradeProfitPercent>
 <iDistanceMaintenancePercent>50</iDistanceMaintenancePercent>
 <iNumCitiesMaintenancePercent>45</iNumCitiesMaintenancePercent>
 <iColonyMaintenancePercent>67</iColonyMaintenancePercent>
 <iCorporationMaintenancePercent>400</iCorporationMaintenancePercent>
 <iNumCitiesAnarchyPercent>11</iNumCitiesAnarchyPercent>
 <iAdvancedStartPointsMod>80</iAdvancedStartPointsMod>
</WorldInfo>


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