Resource icon

Improvements Outside Borders v0.1.1 2016-10-05

The Improvements Outside Borders mod adds a new tag in the
CIV4TerrainSchema.xml, <bBuildOutsideBorder>, that lets mod makers indicate if
a particular plot improvement can be built by a worker outside of a players
civilization's cultural borders. By using this mod, forts can now be built in
neutral and enemy territory, improvements can be built on resources prior to
culture borders expanding to include them, etc.

Installation Instructions:

1) Unzip this into the "civ4_install_folder\Mods\" folder.
2) Open the CivilizationIV.ini configuration file
3) Change the Mod line to read: Mod = Mods\Improvements Outside Borders
4) Load the game.
5) Then play as normal.


-----Notes to Modmakers-----

If you want to use this mod component in your mod I have tried to make things
as easy as possible for you. In the XML files I have added
<!-- Improvements Outside Borders Start --> and
<!-- Improvements Outside Borders End --> in all of the places where changes
were made. The only exception to this is the CIV4TerrainSchema.XML file where
this isn't possible. In the SDK files I have added
// < Improvements Outside Borders Start > and
// < Improvements Outside Borders End > in all of the places where changes
were made.

All that needs to be done to allow an improvement to be built outside a
civilization's cultural borders is for:
<bBuildOutsideBorder>1<bBuildOutsideBorder> to be added before the
<iTilesPerGoody> tag in a improvement info definition. The following sample
would enable forts to be built outside of a civilization's cultural border:
<ImprovementInfo>
[TAB]<Type>IMPROVEMENT_FORT</Type>
[TAB]<Description>TXT_KEY_IMPROVEMENT_FORT</Description>
[TAB]<Civilopedia>TXT_KEY_IMPROVEMENT_FORT_PEDIA</Civilopedia>
[TAB]...
[TAB]...
[TAB]<bBuildOutsideBorder>1</bBuildOutsideBorder>
[TAB]<iTilesPerGoody>1</iTilesPerGoody>
[TAB]...
[TAB]...
[TAB]
[TAB]<bGraphicalOnly>0</bGraphicalOnly>
</ImprovementInfo>

As part of the changes to the SDK files I have also included two new methods in
the CvImprovementInfo class and exposed them to python they are:
[TAB]bool CvImprovementInfo::canBuildOutsideBorder() const
[TAB]void CvImprovementInfo::setBuildOutsideBorder(bool bBuild)
This way any improvement in the game can be updated via python so it can be
built outside a civilization's cultural border.


-----Version Information-----

-----v0.1.1------

- Added the fix suggested by Chinese American so the improvement mission info
is displayed correctly. It was still showing the "Must be within our
Cultural Borders" message

Spoiler :

-----v0.1------

- Setup the Improvements Outside Borders mod infrastructure

- Added the code needed in the SDK to enable building improvements outside of
civilization cultural borders.

- Updated the CIV4TerrainSchema.xml file with the new XML tag to allow players
to indicate that an improvement should be allowed to be built outside of
civilization cultural borders.

- Updated the fort improvement info definition so it can be built outside of
a civilization's cultural border.


-----===Credits & Thanks===-----

- Exavier
[TAB]Composite Mod - readme.txt format

- Testers
[TAB]
[TAB]Jeckel
Author
TheLopez
Downloads
411
Views
411
First release
Last update
Rating
0.00 star(s) 0 ratings

More resources from TheLopez

Top Bottom