View Full Version : A question about an XML error
Head Serf Jan 02, 2007, 09:59 AM The European Middle Ages Mod is currently at version 0.45 and runs perfectly. The only snag is this XML error that comes up when the game is loaded:
http://forums.civfanatics.com/uploads/61289/Error_Screen.JPG
The XML error first started appearing when I was adding in some new UUs. I've spent hours searching for the error, but I can't for the life of me figure it out! Everything in the mod works despite the error, but I still need to have it fixed since it is very annoying and makes the mod seem messy. It would have had to of come from something UU related since that's the only thing I touched between tests. If anyone has any ideas as to what kind error I made, I'd be grateful.
ClassicThunder Jan 02, 2007, 02:24 PM Attach CIV4UnitInfos.xml and I'll look at it.
Head Serf Jan 02, 2007, 02:35 PM Here they are. These are from exactly the time I found out about the error.
Head Serf Jan 03, 2007, 01:56 PM Would it necasarily be from the UnitInfos.xml? Any ideas would be great, even if they're just guesses.
hamtastic Jan 03, 2007, 02:44 PM Here's an idea: In at least one place you have the following:
<TechTypes>
</TechTypes>
I bet if you get rid of the Tab marks and put the second part on the same line as the first, your problem will disappear (since it's only in your new units that this exists.)
hamtastic Jan 03, 2007, 03:55 PM Bump! Did that work?
hamtastic Jan 04, 2007, 12:32 PM Changed my mind on that. Maybe it's more likely the spaces you have in some spots - like in the <PrereqBonuses> area. Curious to see if either of these work.
Head Serf Jan 04, 2007, 03:12 PM Sorry I didn't answer your question, I've been really busy. I'll try removing like all of the spaces in the file tonight. Some of the files hr_oskar left with are really messy.
Head Serf Jan 04, 2007, 04:40 PM Checked them all out, the problem is not being caused by a space.
Craig_Sutter Jan 05, 2007, 08:15 PM Is there some way that the XML loading could generate some sort of log file so errors are more easily traced? Maybe an actual XML program rather than using wordpad may show the error.
I don't know much about XML but there really ought to be some sort of log creation utility if there isn't, even if one needs to be created specifically for the Civ XML files. If an error report can be generated saying there is an error, then a log should be creatable.
This is also a bump, as I, in all my ignorance, have been going through the files to find the error as well, and some expert advice would be helpful.
strategyonly Jan 05, 2007, 10:39 PM EDIT Read # 14.
Drtad Jan 06, 2007, 12:40 AM The mod doesn't crash with this error, it starts normally and plays fine, with all of the components functioning normally. That is the odd part. He said in the first post that before the error he was editting the UU's.
Drtad Jan 06, 2007, 12:43 AM Also, I just had an idea, the error is saying what's wrong I think. It says "Tag: is incorrect." I think that it means that there is a tag missing when it just says tag: "blank" is incorrect, so I think that is the problem, not a space. I could be wrong though.
strategyonly Jan 06, 2007, 12:51 AM I figured it out, it is the GOTH_UU1, i deleted every unit and this is the only one that causes problems, it has to do with the FreePromotion:
i deleted this <FreePromotions>
<FreePromotion>
<PromotionType>PROMOTION_SHIELDWALL</PromotionType>
<bFreePromotion>1</bFreePromotion>
</FreePromotion>
</FreePromotions>
and everything worked correctly after that!!:p
I copied axeman over it then placed the GOTH_UU1 back in place.
Now i hope you can help me sometime??:p
Craig_Sutter Jan 06, 2007, 01:20 AM Wow. Thank-you, and I'm certain Head Serf will be grateful as well.
And in the unlikely event that you need my help, of course.
Head Serf Jan 06, 2007, 12:45 PM strategyonly, I love you, thank you so much!!! If you ever need anything from the mod, just take it, don't worry about asking. If you have any xml or similar files in need of some help, just tell me and I will help with whatever you need! Thank you so much!!!
Drtad Jan 06, 2007, 04:48 PM Great work Strategyonly!:goodjob: Wonderful isolation job on the error, I am just too lazy to do all of that testing.;)
Head Serf Jan 06, 2007, 08:24 PM :jesus: I just made the changes to the xml and the error is gone! :viking: [pimp] :yeah: :worship: :worship: :worship: :worship: :worship:
Roamty Jan 06, 2007, 10:05 PM I figured it out, it is the GOTH_UU1, i deleted every unit and this is the only one that causes problems, it has to do with the FreePromotion:
Would you like a pedia entry for GOTH_UUI and THE GOTHS:
GOTH_UU1
Housecarls were household troops, personal warriors and equivalent to a royal bodyguard to
Scandinavian kings. The anglicized term comes from the Old Norse term huskarl or huscarl
(literally, 'house man', i.e., armed man in the service of a specific house.) They were also
called hirth ('household') that referred to household troops. The term later came to cover
armed soldiers of the household. They were often the only professional soldiers in the
kingdom, the rest of the army being made up of militia, peasant levy, and occasionally
mercenaries. They were usually armed with long Danish axe. A kingdom would have fewer than
2000 Housecarls.
The term entered the English language when Canute the Great conquered and occupied
Anglo-Saxon England.
In England, there may have been as many as 3000 royal housecarls, and a special tax was
levied to provide pay in coin. They were housed and fed at the king's expense. They formed a
standing army of professional soldiers, and also had some administrative duties in peacetime
as the Kings representatives. The term was often used in contrast to the non-professional
fyrd.
Certainly the vast majority of English housecarls died at the Battle of Hastings. Survivors,
along with King Harold's thegns, crossed to Continental Europe as mercenary troops. Some of
these reached Byzantium and along with other Saxons joined the Varangian Guard. By the 12th
century, the Varangian Guard contained so many Saxons that the entire unit was sometimes
called "the English Guard." -Wikipedia
CIV_GOTH
The Goths were an East Germanic tribe who according to their own traditions left
Scandinavia, settled close to the Vistula mouth (in present day Poland), and from the 2nd
century settled Scythia, Dacia and Pannonia. In the 3rd and 4th centuries, they harried the
Byzantine Empire and later adopted Arianism. In the 5th and 6th centuries, dividing into the
Visigoths and the Ostrogoths, they established powerful follower-states of the Roman Empire
in Iberia and Italy. -Wikipedia
Craig_Sutter Jan 07, 2007, 07:05 AM Assuming Head Serf is watching this thread, I'm certain he'll welcome these pedia entries.
Thanks.
Head Serf Jan 07, 2007, 09:50 AM Thank you Roamty for the civilopedia entries. I'm glad someone wrote out new ones. I previously had made Visigothic and Ostrogothic pedia entries, but after combining them into just plain old Goths, I needed a new enty.
|
|