MorphineBoy
Chieftain
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.
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.