Civ4WorldInfo: Difference between revisions
(map size was wrong; added one other definition) |
No edit summary |
||
Line 36: | Line 36: | ||
|- | |- | ||
!Help | !Help | ||
| | |Optional text tag, which allows you to display information, which does not have to come from the XML files | ||
|} | |} | ||
Line 86: | Line 86: | ||
|- | |- | ||
!iTradeProfitPercent | !iTradeProfitPercent | ||
| | |A factor, which scales the trade profit from trade routes according to the world size | ||
|- | |- | ||
!iDistanceMaintenacePercent | !iDistanceMaintenacePercent |
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>