Help! Keep getting an XML error

RulerOfDaPeople

Emperor
Joined
Mar 13, 2007
Messages
1,469
This is quite confusing to me because I had this certain leaderhead working perfectly before. But I went and attempted to make an entire new custom civilization to go along with Ekmek's great leaderhead and for some reason now I'm getting an error and can't figure out why.

The Error reads..

Tag: LEADER_CONSTANTINE in Info class was incorrect
Current XML file is: xml\Civilizations/CIV4CivilizationInfos.xml

Can any one please help me trouble shoot this problem and try to fix it? Honestly, I only know the basics from what I read in the tutorials and reference section when it comes to modding. Though I prefer to use the custom assets directory instead of modulars because I've had better results that way.

Any assistance is greatly greatly appreciated.
 
OK, I've seen this before. Somehow your additions have caused the XML file to be out of sync with your InfoSchema file. At least this is how I remember it. Now *why* its been put out of sync is a mystery to me, but I suspect you've added or replicated a line somewhere. Just double check your XML file with your InfoSchema file. If that doesn't help-I suggest double checking that your original Schema is properly formatted. Hope this helps.

Aussie.
 
That's not a schema error. It means that the file specifies LEADER_CONSTANTINE, but the game can't find LEADER_CONSTANTINE in Civ4LeaderHeadInfos. There are three possibilities:
1. Constantine is called something else in Civ4LeaderHeadInfos
2. Constantine does not exist in Civ4LeaderHeadInfos and needs to be created
3. There is a typo either in Civ4LeaderHeadInfos or Civ4CivilizationInfos
 
Oops, My apologies. deanej is right of course-I tend to get the two mixed up (funnily enough, I had a message exactly like this one because I was using the wrong XML file).

Aussie.
 
Thanks a million guys! It's fixed! :D It turnes out that I had the wrong Civ4LeaderHeadInfos in there, and instead of Civ4LeaderHeadInfos, I had CTG_Civ4LeaderHeadInfos. So it was just a minor mix up with the files.

Option number 2 is what sparked the thought process that made me realize this, deanej. :)

Thanks again guys! I really appreciate your help!
 
Top Bottom