View Full Version : Need help! Error when trying to load my mod


Thunder11
Apr 21, 2007, 07:59 PM
When i try to load my mod i have a problem with the xml/text/gametextinfos_myciv.xml. An error pops up and says the top level of the document is invalid. The part where it says <?xml version="1.0"encoding="utf-8"?>. IF anyone knows how to fix this please post. Thanks.

cool3a2
Apr 22, 2007, 03:41 AM
Let me guess: you followed the "MY add a civ" tutorial. There's a link to a premade file where you only have to make your changes for your mod. You use that, right? When I made my experiments with these xml-files I did the same. The problem is: that file is corrupt somehow. This problem is descripted in one of the two tutorials, but it is hard to find there so I couldn't post you the link. But as far as I remember you have to create a totally new file (totally empy). You can do this with windows' editor if you want. Now you should copy everything from your xml except the first line and paste it in the new file. In the first line of your file you have to retype the same that is written in the old file. So in the end your file should look like the old one. Save that as an .xml and try out. You should remove the corrupt file or if you stlll need it cut-and-paste it to somewhere outside your mod folder. It worked for me. Don't ask me why the file posted there is corrupt while it looks exactly like the new one we have generated here...

Thunder11
Apr 27, 2007, 04:46 PM
thanks a lot i will try that