View Full Version : multiple special units for one civ problem


Mellian
Sep 02, 2006, 08:03 AM
Okay, added some extra special units for my civs which I added in CivUnitInfos.xml by just copy and pasting something else and just rename and changing the stats for my civ as I am not interested in creating new graphics or entire new civlopedia entries. Apart from the Macky Warrior, the game doesn't seem to accept the rest of them and then doesn't load them when the game starts. Can't see anything I have done wrong nor in the UnitInfos. The errors are coming from civilizationsinfos, nowhere else.

The error is:

"Tag: UNIT_MACKY_RIFLEMAN in Info class was incorrect
Current XML file is: Civilizations/Civ4CiviliazationsInfos.xml"

Any ideas in what is going on?

-mellian




<Units>
<Unit>
<UnitClassType>UNITCLASS_RIFLEMAN</UnitClassType>
<UnitType>UNIT_MACKY_RIFLEMAN</UnitType>
</Unit>
<Unit>
<UnitClassType>UNITCLASS_WARRIOR</UnitClassType>
<UnitType>UNIT_MACKY_WARRIOR</UnitType>
</Unit>
<Unit>
<UnitClassType>UNITCLASS_SWORDSMAN</UnitClassType>
<UnitType>UNIT_MACKY_LEGION</UnitType>
</Unit>
<Unit>
<UnitClassType>UNITCLASS_CAVALRY</UnitClassType>
<UnitType>UNIT_MACKY_CALVARY</UnitType>
</Unit>
<Unit>
<UnitClassType>UNITCLASS_SPEARMAN</UnitClassType>
<UnitType>UNIT_MACKY_PHALANX</UnitType>
</Unit>
</Units>

Aranor
Sep 02, 2006, 08:30 AM
I sounds to me like you have misspelled the unit name so when it goes toceearch for the unit in the Unit infos xml it cant find any unit with that spelling. I would suggest opening both the unit infos xml and civilizations infos xml and check the spelling if they are incorrect copy and pate the units infos spelling into the civ infos xml and that SHOULD solve the error.

Hope this helps

Aranor

Mellian
Sep 02, 2006, 08:42 AM
I sounds to me like you have misspelled the unit name so when it goes toceearch for the unit in the Unit infos xml it cant find any unit with that spelling. I would suggest opening both the unit infos xml and civilizations infos xml and check the spelling if they are incorrect copy and pate the units infos spelling into the civ infos xml and that SHOULD solve the error.

Hope this helps

Aranor

That is the first thing I did and all the spellings are correct. This happening to all of them except the Macky Warrior, no matter in which order I put it, just goes over it and complains about the rest.

-mellian

Mellian
Sep 02, 2006, 08:45 AM
Grrr, I just carefully went through the UnitInfos, especially after the Warrior and notice all the new units I accidently place them after the </UnitInfos> tag, hence they were not loaded properlly and the CivilizationInfos couldn't find them.

-mellian

Aranor
Sep 02, 2006, 07:21 PM
Yea its always something simple! Good luck with all your future modding!