View Full Version : Problem with unit


Allein
Jun 01, 2006, 06:01 PM
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...

Amra
Jun 01, 2006, 06:36 PM
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.

Officer Reene
Jun 03, 2006, 04:24 AM
might want to try this tutorial...

it worked for me when I made two new civilizations with their own UU... ;)


http://forums.civfanatics.com/showthread.php?t=148507