Improvements Outside Borders

The Improvements Outside Borders mod adds a new tag in the CIV4TerrainSchema.xml, , that lets mod makers indicate if a particular plot i...

Download

Uploading...
Do not refresh or leave this page!

File Description

The Improvements Outside Borders mod adds a new tag in the CIV4TerrainSchema.xml, , 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.

Read More

Download 'improvementsoutsidebordersv0.1.zip' (1.19MB)

Readme
Improvements Outside Borders v0.1
By: TheLopez

Patch Compatibility: v1.61
MP Compatible: ?

Description:
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 &quot;civ4_install_folder\Mods\&quot; 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>
	<Type>IMPROVEMENT_FORT</Type>
	<Description>TXT_KEY_IMPROVEMENT_FORT</Description>
	<Civilopedia>TXT_KEY_IMPROVEMENT_FORT_PEDIA</Civilopedia>
	...
	...
	<bBuildOutsideBorder>1</bBuildOutsideBorder>
	<iTilesPerGoody>1</iTilesPerGoody>
	...
	...
	
	<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:
	bool CvImprovementInfo::canBuildOutsideBorder() const
	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------

- 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 
	Composite Mod - readme.txt format
	
- Testers
	Jeckel

Read More

Comments on this File

There are no comments yet. Be the first!

TheLopez


50 XP


Registered 6th March 2006

69 Files Uploaded

Share This File
Embed File