Problem with unit

Allein

Warlord
Supporter
Joined
Mar 3, 2004
Messages
168
Location
Quebec
I'm creating my own mods in Civ4 but I have a problem with unique unit. I've done some unit for example I have an Infantry for general team and I have a Wehrmacht Infantry, and a Soviet Infantry that I want to be unique. They say that it replace the Infantry but when I do the tech even if I'm not German or Russian I can do the 3 unit ... what I must do to just have one of these three unit... and for your information I've put their unitclass and unit type in the civilization info...
 
Allein said:
I'm creating my own mods in Civ4 but I have a problem with unique unit. I've done some unit for example I have an Infantry for general team and I have a Wehrmacht Infantry, and a Soviet Infantry that I want to be unique. They say that it replace the Infantry but when I do the tech even if I'm not German or Russian I can do the 3 unit ... what I must do to just have one of these three unit... and for your information I've put their unitclass and unit type in the civilization info...
I had a similar problem when I first started my mod. Maybe my solution will work for you.

Did you create any new entries for these units in the CIV4UnitClassInfos.xml file? If so, that may be where the problem is. When I add a new unique unit, I do NOT create a new UNITCLASS for it in the CIV4UnitClassInfos.xml file. Instead, I use an existing class for it in the CIV4UnitInfos.xml file.

The one time I created a new Unit Class was when I had the problem you are describing.
 
Back
Top Bottom