multiple special units for one civ problem

Mellian

.......
Joined
May 16, 2002
Messages
74
Location
Montreal, Quebec, Canada
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



PHP:
			<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>
 
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
 
Aranor said:
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
 
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
 
Back
Top Bottom