Making a Unit Civ-specific, and how to delete a unit.

MorphineBoy

Chieftain
Joined
Jun 28, 2005
Messages
30
Location
The Beach, Florida
Well, I saw a lot of people having issues with these things, so I went about finding out how to do it right.

Okay. To make a unit civ-specific, Open Civ4UnitInfos.XML, and where you input your unit's information, DO NOT type the units name next to Unitclass

Example; I have made Germany-specificy Infantry, notice I kept "Infantry" for the unit-class.

<UnitInfo>
<Class>UNITCLASS_INFANTRY</Class>
<Type>UNIT_WEHRMACHT</Type>

Okay. So you've got the unit-info written in correctly, next you need to open up the XML file; Civ4CivilizationInfos, and you need to put your new units info into this area;



<Unit>
<UnitClassType>UNITCLASS_TANK</UnitClassType>
<UnitType>UNIT_GERMAN_PANZER</UnitType>
</Unit>
<Unit>
<UnitClassType>UNITCLASS_RIFLEMAN</UnitClassType>
<UnitType>UNIT_KAISER_RIFLEMAN</UnitType>
</Unit>
<Unit>
<UnitClassType>UNITCLASS_INFANTRY</UnitClassType>
<UnitType>UNIT_WEHRMACHT</UnitType>
</Unit>

<Unit>]
<UnitClassType>UNITCLASS_BATTLESHIP</UnitClassType>
<UnitType>UNIT_BISMARCKCLASS</UnitType>
</Unit>
<Unit>
<UnitClassType>UNITCLASS_TANK</UnitClassType>
<UnitType>UNIT_KING_TIGER</UnitType>
</Unit>
</Units>

Once you've done that, your unit is a UU!

To delete a unit, simply remove ALL TRACES OF the unit's information from ANY XML FILE IN WHICH IT IS MENTIONED.

WARNING! BACK UP YOUR XML FILES!

Unless of course you're using your Mod's copy of the xml files.


Anyway, just thought this might be useful. Lemme know if you need an elaboration.
 
Hello there! you obviously know what your doing, whereas the most i can change is for carriers to carry 4 fighters instead of three! So can I ask how to change UU's so everyone can build them? I'm looking to make the stealth bomber into America's UU and Make Navy Seals availible to everyone, but change their name to Special Forces, as most countries have a version of the Special Forces, British SAS for example. I dont want to have to add a Special Forces unit to every civ like the way you added the german infantary above. I would also like to limit the amount of Special Forces units to 4 or 5 like spys, infact i'd like the Special Forces unit to be similer to the spy in that it can pillage tile improvements, i'd be grateful for any help u could give me, cheers in advance! AljayBoy.
 
Will these changes make is so that my civ specific unit and the generic counterpart both don't show up in my civ's build menu?
 
This presents the unit on the non-uu civ's build menu, and the game crashes if you select it from that menu ...
also, the uu-civ gets 2 options for the base-non-uu unit on its build menu, selecting either crashes...

thoughts?
 
Back
Top Bottom