View Full Version : Unrelated request


Ahriman
Sep 27, 2009, 08:43 AM
Hey guys, just a quick unrelated question:
We're trying to put together an alpha of our newly revised Warhammer mod, and there is one XML error message on load that still keeps coming up:

Tag: 1 in Info class was incorrect.
Current XML file is: xml\Units/CIV4PromotionInfos.xml

Does anyone know what it probably means?

* * *
Edit: the suggestion was:
sounds like somewhere you were supposed to use something like >CIVILIZATION_BANNOR< and instead used >1<

Not an easy thing to find since MANY >1< will exist (all the boolean flags), so look carefully at what you have modified lately.

davidlallen
Sep 27, 2009, 10:36 AM
Have you run civcheck (http://forums.civfanatics.com/showthread.php?t=276286) on the mod?

EDIT: That is a good idea and you should do it, but for the specific case that "1" is used where a string is expected, I am not sure civcheck would catch that.

Assuming that all the xml names are well behaved, the only place a "1" value should occur is if the related variable name starts with "b" or "i". Unless your text editor is very simple, you should be able to do a search in that file, and find the problem directly. What you want is the string >1</ followed by any character which is not "b" or "i". In linux "grep" or "vi" syntax, you would search for ">1<\/[^bi]". (The front slash has to be escaped with a back slash first.)