Adam7Eight
Emperor
This post has now been edited appropriately. If you wish to edit some world sizes I've made this a little easier to understand than of having to read through the entire thread.
To edit XML files:
1. Make a backup of the original file.
2. Open up the file with either Wordpad or Notepad.
How to change/add map sizes...
To edit existing map sizes:
1. Open "CIV4WorldInfo.xml" file located in your "C:\Program Files\Firaxis Games\Sid Meier's Civilization 4\Assets\XML\GameInfo" folder.
2. Choose the existing map size you would like to change and find the appropriate tags to edit the grid heighth and width:
"<iGridWidth>32</iGridWidth>
<iGridHeight>20</iGridHeight>"
*Each grid cell consists of 4 tiles (plots), so a 32x20 map grid is actually 128x80 plots.
3. Enter desired grid values. I would recommend keeping the ratio to or around 1:6. Some people have not had problems throwing in random numbers, however, I have experienced crashes and lockups when trying to load a map that strays too far from this ratio.
4. Save the file and test it out.
Creating your own map from scratch involves a little more editing if you want it to appear a little more authentic.
To create a new map size:
1. Open "CIV4WorldInfo.xml" file located in your "C:\Program Files\Firaxis Games\Sid Meier's Civilization 4\Assets\XML\GameInfo" folder.
2. Copy an already existing map between the worldinfo tags (<worldinfo>bunch of text</worldinfo>)...
...and then paste it below the one you copied:
3 Edit the grid & heighth values:
"<iGridWidth>32</iGridWidth>
<iGridHeight>20</iGridHeight>"
As mentioned earlier, cach grid cell consists of 4 tiles (plots), and I recommend keeping the ratio to or around 1:6.
4. Change the first three tags to the desired name of your map size. Example, change this:
to this:
5. Other tags are optional if you want to change them or not. I would suggest making a few small changes to keep them proportionate to the other map sizes. Just glance through at the map sizes and take note of what tags increase or decrease, while keeping the size of your map in mind.
6. Save file and close.
7. Now navigate to your "XML\Text" folder and open the "CIV4GameText_Help.xml" file.
8. Scroll about 1/4 of the way down until you see this:
Copy the above and then paste it right below it.
9. Now edit the line:
"<Tag>TXT_KEY_WORLDSIZE_HUGE_HELP</Tag>"
and change the name of the map to your new map name (as in this example "OMG"):
"<Tag>TXT_KEY_WORLDSIZE_OMG_HELP</Tag>"
10. Save file and close.
11. Now open up the "CIV4GameTextInfos_Objects.xml" file (located in XML\Text).
If you don't want to scroll all the way through this large file to find the right thing to copy, I'll just tell you what to add. I don't believe it will make a difference where the new code is added, just as long as it's in there.
12. Add the following to this file (without quotations of course and remember "OMG" is an example):
13. Save and close.
Finally, this last bit will make it things much better looking when setting up a game.
14. Navigate to your "XML\Interface" folder and open the "CIV4WorldPickerInfos.xml" file.
15. As you scroll through this file you'll see these lines of code added under a few of the different world types:
The "<Size>x.x</Size>" tag just tells you how big (or small) the world will appear on the world setup screen. So all we're going to do is add one line for our "OMG" map which we'll assume bigger than huge. So...
16. Add in the size, like this:
Add this new line for each time you see this list of sizes under each map (aDebugMap, Archipelago, Continents, Lakes, Pangaea, Ice_Age, and Terra)
17. Save and close.
It's now complete. It seems like a lot of work for a simple thing, but it's easy and quick once you know what you're doing. Start a game to make sure it all works correctly and that you have an option for a new map size. Keep in mind that the bigger the map you make the longer it will take to load and enter Worldbuilder.
To edit XML files:
1. Make a backup of the original file.
2. Open up the file with either Wordpad or Notepad.
How to change/add map sizes...
To edit existing map sizes:
1. Open "CIV4WorldInfo.xml" file located in your "C:\Program Files\Firaxis Games\Sid Meier's Civilization 4\Assets\XML\GameInfo" folder.
2. Choose the existing map size you would like to change and find the appropriate tags to edit the grid heighth and width:
"<iGridWidth>32</iGridWidth>
<iGridHeight>20</iGridHeight>"
*Each grid cell consists of 4 tiles (plots), so a 32x20 map grid is actually 128x80 plots.
3. Enter desired grid values. I would recommend keeping the ratio to or around 1:6. Some people have not had problems throwing in random numbers, however, I have experienced crashes and lockups when trying to load a map that strays too far from this ratio.
4. Save the file and test it out.
Creating your own map from scratch involves a little more editing if you want it to appear a little more authentic.
To create a new map size:
1. Open "CIV4WorldInfo.xml" file located in your "C:\Program Files\Firaxis Games\Sid Meier's Civilization 4\Assets\XML\GameInfo" folder.
2. Copy an already existing map between the worldinfo tags (<worldinfo>bunch of text</worldinfo>)...
Code:
<WorldInfo>
<Type>WORLDSIZE_HUGE</Type>
<Description>TXT_KEY_WORLD_HUGE</Description>
<Help>TXT_KEY_WORLD_HUGE_HELP</Help>
<iDefaultPlayers>11</iDefaultPlayers>
<iUnitNameModifier>0</iUnitNameModifier>
<iTargetNumCities>6</iTargetNumCities>
<iNumFreeBuildingBonuses>7</iNumFreeBuildingBonuses>
<iBuildingClassPrereqModifier>100</iBuildingClassPrereqModifier>
<iMaxConscriptModifier>75</iMaxConscriptModifier>
<iWarWearinessModifier>-50</iWarWearinessModifier>
<iGridWidth>32</iGridWidth>
<iGridHeight>20</iGridHeight>
<iTerrainGrainChange>1</iTerrainGrainChange>
<iFeatureGrainChange>1</iFeatureGrainChange>
<iResearchPercent>150</iResearchPercent>
<iTradeProfitPercent>30</iTradeProfitPercent>
<iDistanceMaintenancePercent>100</iDistanceMaintenancePercent>
<iNumCitiesMaintenancePercent>15</iNumCitiesMaintenancePercent>
<iNumCitiesAnarchyPercent>5</iNumCitiesAnarchyPercent>
</WorldInfo>
...and then paste it below the one you copied:
Code:
<WorldInfo>
<Type>WORLDSIZE_HUGE</Type>
<Description>TXT_KEY_WORLD_HUGE</Description>
<Help>TXT_KEY_WORLD_HUGE_HELP</Help>
<iDefaultPlayers>11</iDefaultPlayers>
<iUnitNameModifier>0</iUnitNameModifier>
<iTargetNumCities>6</iTargetNumCities>
<iNumFreeBuildingBonuses>7</iNumFreeBuildingBonuses>
<iBuildingClassPrereqModifier>100</iBuildingClassPrereqModifier>
<iMaxConscriptModifier>75</iMaxConscriptModifier>
<iWarWearinessModifier>-50</iWarWearinessModifier>
<iGridWidth>32</iGridWidth>
<iGridHeight>20</iGridHeight>
<iTerrainGrainChange>1</iTerrainGrainChange>
<iFeatureGrainChange>1</iFeatureGrainChange>
<iResearchPercent>150</iResearchPercent>
<iTradeProfitPercent>30</iTradeProfitPercent>
<iDistanceMaintenancePercent>100</iDistanceMaintenancePercent>
<iNumCitiesMaintenancePercent>15</iNumCitiesMaintenancePercent>
<iNumCitiesAnarchyPercent>5</iNumCitiesAnarchyPercent>
</WorldInfo>
<WorldInfo>
<Type>WORLDSIZE_HUGE</Type>
<Description>TXT_KEY_WORLD_HUGE</Description>
<Help>TXT_KEY_WORLD_HUGE_HELP</Help>
<iDefaultPlayers>11</iDefaultPlayers>
<iUnitNameModifier>0</iUnitNameModifier>
<iTargetNumCities>6</iTargetNumCities>
<iNumFreeBuildingBonuses>7</iNumFreeBuildingBonuses>
<iBuildingClassPrereqModifier>100</iBuildingClassPrereqModifier>
<iMaxConscriptModifier>75</iMaxConscriptModifier>
<iWarWearinessModifier>-50</iWarWearinessModifier>
<iGridWidth>32</iGridWidth>
<iGridHeight>20</iGridHeight>
<iTerrainGrainChange>1</iTerrainGrainChange>
<iFeatureGrainChange>1</iFeatureGrainChange>
<iResearchPercent>150</iResearchPercent>
<iTradeProfitPercent>30</iTradeProfitPercent>
<iDistanceMaintenancePercent>100</iDistanceMaintenancePercent>
<iNumCitiesMaintenancePercent>15</iNumCitiesMaintenancePercent>
<iNumCitiesAnarchyPercent>5</iNumCitiesAnarchyPercent>
</WorldInfo>
3 Edit the grid & heighth values:
"<iGridWidth>32</iGridWidth>
<iGridHeight>20</iGridHeight>"
As mentioned earlier, cach grid cell consists of 4 tiles (plots), and I recommend keeping the ratio to or around 1:6.
4. Change the first three tags to the desired name of your map size. Example, change this:
Code:
<Type>WORLDSIZE_HUGE</Type>
<Description>TXT_KEY_WORLD_HUGE</Description>
<Help>TXT_KEY_WORLD_HUGE_HELP</Help>
to this:
Code:
<Type>WORLDSIZE_OMG</Type>
<Description>TXT_KEY_WORLD_OMG</Description>
<Help>TXT_KEY_WORLD_OMG_HELP</Help>
5. Other tags are optional if you want to change them or not. I would suggest making a few small changes to keep them proportionate to the other map sizes. Just glance through at the map sizes and take note of what tags increase or decrease, while keeping the size of your map in mind.
6. Save file and close.
7. Now navigate to your "XML\Text" folder and open the "CIV4GameText_Help.xml" file.
8. Scroll about 1/4 of the way down until you see this:
Code:
<TEXT>
<Tag>TXT_KEY_WORLDSIZE_HUGE_HELP</Tag>
<English>If you are looking for a truly epic experience, this map size is for you. It has room for you and 10 opponents.</English>
<French>Si vous voulez vivre une véritable épopée, cette carte est faite pour vous. Elle est immense et oppose 10 adversaires.</French>
<German>Wenn Sie eine unvergessliche Erfahrung suchen, ist diese Karte Ihre erste Wahl. Immerhin treffen Sie hier auf bis zu 10 Gegner!</German>
<Italian>Se sei alla ricerca di un'esperienza davvero epica, la dimensione di questa mappa è quello che fa per te, poiché oltre a te c'è posto per altri dieci rivali.</Italian>
<Spanish>Si queréis una experiencia épica de verdad, el tamaño de este mapa es lo que andáis buscando. Tiene espacio suficiente para vos y para otros diez rivales.</Spanish>
</TEXT>
Copy the above and then paste it right below it.
9. Now edit the line:
"<Tag>TXT_KEY_WORLDSIZE_HUGE_HELP</Tag>"
and change the name of the map to your new map name (as in this example "OMG"):
"<Tag>TXT_KEY_WORLDSIZE_OMG_HELP</Tag>"
10. Save file and close.
11. Now open up the "CIV4GameTextInfos_Objects.xml" file (located in XML\Text).
If you don't want to scroll all the way through this large file to find the right thing to copy, I'll just tell you what to add. I don't believe it will make a difference where the new code is added, just as long as it's in there.
12. Add the following to this file (without quotations of course and remember "OMG" is an example):
Code:
<TEXT>
<Tag>TXT_KEY_WORLD_OMG</Tag>
<English>OMG</English>
</TEXT>
13. Save and close.
Finally, this last bit will make it things much better looking when setting up a game.
14. Navigate to your "XML\Interface" folder and open the "CIV4WorldPickerInfos.xml" file.
15. As you scroll through this file you'll see these lines of code added under a few of the different world types:
Code:
<Sizes>
<Size>1.0</Size> <!-- Random -->
<Size>0.3</Size> <!-- Duel -->
<Size>0.6</Size> <!-- Tiny -->
<Size>0.8</Size> <!-- Small -->
<Size>1.0</Size> <!-- Standard -->
<Size>1.4</Size> <!-- Large -->
<Size>2.0</Size> <!-- Huge -->
</Sizes>
The "<Size>x.x</Size>" tag just tells you how big (or small) the world will appear on the world setup screen. So all we're going to do is add one line for our "OMG" map which we'll assume bigger than huge. So...
16. Add in the size, like this:
Code:
<Sizes>
<Size>1.0</Size> <!-- Random -->
<Size>0.3</Size> <!-- Duel -->
<Size>0.6</Size> <!-- Tiny -->
<Size>0.8</Size> <!-- Small -->
<Size>1.0</Size> <!-- Standard -->
<Size>1.4</Size> <!-- Large -->
<Size>2.0</Size> <!-- Huge -->
<Size>2.4</Size> <!-- OMG -->
</Sizes>
Add this new line for each time you see this list of sizes under each map (aDebugMap, Archipelago, Continents, Lakes, Pangaea, Ice_Age, and Terra)
17. Save and close.
It's now complete. It seems like a lot of work for a simple thing, but it's easy and quick once you know what you're doing. Start a game to make sure it all works correctly and that you have an option for a new map size. Keep in mind that the bigger the map you make the longer it will take to load and enter Worldbuilder.