HELP! with changing a unit to civ specific

Bratboy

Chieftain
Joined
Aug 3, 2002
Messages
39
:confused:I would like to change a unit to civ specific. Like Navy Seals are American. I would like to make Stealth Destroyers American only. How can i do this? Is there a step by step tutorial? Please help....

Thanks
Bratboy
 
i dont think there is a tutorial. The affected files would be Civ4UnitInfos.xml and Civ4CivilizationInfos.xml. Open up these, search for NAVY_SEAL. You will see how it is done.
 
Do you know XML? and if so, how well? As Refar said, it's in CIV4UnitClassInfos.xml, Civ4UnitInfos.xml and Civ4CivilizationInfos.xml. If you don't really know what that means, though, I can explain it.
 
I am familiar with XML files, just not sure what exactly needed to be changed. If you could explain it that would be great! Thanks Popcornlord....
 
Open up unitinfos, change stealth destroyer unit class to whatever unit it should be replacing. Open up unitclass info and delete stealth destroyer unitclass. Then open up civinfos and copy the navyseal part under units. Make sure you only go <unit> to </unit>, not <units> to </units>. Then replace unitclass marines with the unit stealth destroyer is replacing and replace the navyseal part with stealth destroyer.
 
I don't want to replace navy seals or any other unit I just want to be able to make stealth destroyers and say stealth bombers american only and I'm not sure how. Thanks
 
You copy the units part in civinfos so there are 2 navyseal entries and then edit the second one. If you still cant figure it out I'll do it for you.
 
To make a unit that is currently available to everyone limited to only certain civs, do the following..

In CIV4UnitClassInfos, find the UnitClass for the unit and change the DefaultUnit entry to NONE.

In CIV4CivilizationInfos, under the civ(s) you want to still be able to build it find the Units section
Code:
			<Units>
				<Unit>
					<UnitClassType>UNITCLASS_MARINE</UnitClassType>
					<UnitType>UNIT_AMERICAN_NAVY_SEAL</UnitType>
				</Unit>
			</Units>

Add a new Unit entry for each desired entry.
Code:
			<Units>
				<Unit>
					<UnitClassType>UNITCLASS_MARINE</UnitClassType>
					<UnitType>UNIT_AMERICAN_NAVY_SEAL</UnitType>
				</Unit>
				<Unit>
					<UnitClassType>UNITCLASS_STEALTH_DESTROYER</UnitClassType>
					<UnitType>UNIT_STEALTH_DESTROYER</UnitType>
				</Unit>
			</Units>
 
Hey zyphyr I tried doing exactly what you said and when the game loads I get mulltiple errors. Not sure why....
 
Here it is, it should work.
 
Back
Top Bottom