Removing Mechanized Infantry

Kudos123

Chieftain
Joined
Nov 22, 2008
Messages
10
I couldnt find a better section for technical questions (Im not having problems with civ 4, I just want to mod it). Anyways, I was sitting around staring at a wall one day when I realised that mechanized infantry tend to ruin the game for me. By far my favorite unit is the navy seal/marine, which is really useless because it soon gets replaced by mechanized infantry.

Anyway, is there anyway I can mod my civ 4 (I dont have any expansion packs at the moment) so that I, nor NPCS can create mechanized infantry? If that cant be done, perhaps removing the robitcs technology?

Thanks for the help.
 
Perhaps this could be better placed in the main customization forum? Just saying...

Anyway, disabling a unit is relatively simple:

1. Copy CIV4UnitInfos.xml from Program Files\Sid Meier's Civilization 4\Assets\XML\Units\ to My Documents\My Games\Civilization 4\CustomAssets\XML\units\ (This protects the original CIV4UnitInfos.xml)

2. Open CIV4UnitInfos.xml in MS Notepad.

3. Press Control-F to open the Find window. Search for <Class>UNITCLASS_MECHANIZED_INFANTRY</Class>

4. Find the first <iCost> after the tag in step 3.

5. Replace <iCost>200</iCost> (or whatever the cost of M. Infantry is in Vanilla) with <iCost>-1</iCost>

6. Save, and you're done.

In you want the original rules back, just delete the CIV4UnitInfos.xml you created, not the original in your main CivIV folder!

*oops, looks like this was not as simple as I had thought. You'll have to change upgrade tags since, even though you will not be able to build Mech. Inf, Infantry will be able to upgrade to them...

In CIV4UnitInfos.xml Find any and all:

<UnitClassUpgrades>
<UnitClassUpgrade>
<UnitClassUpgradeType>UNITCLASS_MECHANIZED_INFANTRY</UnitClassUpgradeType>
<bUnitClassUpgrade>1</bUnitClassUpgrade>
</UnitClassUpgrade>
</UnitClassUpgrades>

Change all this to just:
<UnitClassUpgrades/>

Remember to do this in your My Doc/ CIV4UnitInfos.xml!

*It looks like the indentation is lost here...
 
ALright that worked for mechanised infantry, now im trying to do the same for modern armor, I replace <iCost>180<iCost> with <iCost>-1<iCost> yet I can still create modern armor. Anyway help on that? Thanks.
 
Back
Top Bottom