need help with xml

Altantis24

Chieftain
Joined
Jun 24, 2006
Messages
43
when i try loading my mod i keep getting these errors on start up and dont know what they mean

Failed loading XML/test/civ4gametext_sw_misc.xml
and then something about Civ4gametext not match start tag text

and another
end tag does not match start tag spanish

one more
the following tags were not closed civ4unitclassinfos, unitclassinfos, unitclassinfo

last one
unitclass_prophet info is incorrect

can you help me solve these problems , this is the order they come up in.

thanxs
 
Altantis24 said:
when i try loading my mod i keep getting these errors on start up and dont know what they mean

Failed loading XML/test/civ4gametext_sw_misc.xml
and then something about Civ4gametext not match start tag text

and another
end tag does not match start tag spanish

one more
the following tags were not closed civ4unitclassinfos, unitclassinfos, unitclassinfo

last one
unitclass_prophet info is incorrect

can you help me solve these problems , this is the order they come up in.

thanxs


Chances are you're just missing some tags. So, you might have something like this:

Code:
	<TEXT>
		<Tag>TXT_KEY_MISC_DEFEAT</Tag>
		<English>You have been defeated!!!</English>
		<French>Vous essuyez une d&#233;faite !!!</French>
		<German>Wir wurden besiegt!!!</German>
		<Italian>Sei stato sconfitto!!!</Italian>
		[B]<Spanish>&#161;Os han derrotado![/B]
	</TEXT>

The problem here is that the "<Spanish>" tag is not closed (there is no "</Spanish>" tag at the end of the line). Something as simple as that will goof up much of your XML. That's what's typically wrong when you get an error complaining about a tag that doesn't end with it's start tag. When the XML file is read, it looks for a tag, finds "Spanish", reads the next few characters until it hits the end tag, but instead of finding "</Spanish>" it goes to the next line and finds "</TEXT>". Thus, it coughs up that error message.

If you think about it, each tag will then be "matched" with one tag farther than it should. Eventually, due to the missing tags, there will be some tags that aren't paired up with any (those are typically the tags at the very top of the file). That's what gives you the "the following tags were not closed" error. If you fix the problem with the one missing tag, you'll fix most of these problems as well.

As for the unitclass_prophet, we're going to need a bit more info. Exact error messages do wonders, especially since they typically point to specific lines of code.
 
great i will try those two things and then we can see if the unitclass_propoet fixes itself if not we can figure it out. I have some other things i need to do first and then i will try those things, and write back, in a few hours

thanxs for the help so far
 
i am still getting these errors can you see if you can find anything in this.

<Civ4UnitClassInfos xmlns="x-schema:CIV4UnitSchema.xml">
<UnitClassInfos>
<UnitClassInfo>
<Type>UNITCLASS_REBEL</Type>
<Description>TXT_KEY_UNIT_REBEL</Description>
<iMaxGlobalInstances>-1</iMaxGlobalInstances>
<iMaxTeamInstances>-1</iMaxTeamInstances>
<iMaxPlayerInstances>-1</iMaxPlayerInstances>
<DefaultUnit>UNIT_REBEL</DefaultUnit>
</UnitClassInfo>
<UnitClassInfo>
<Type>UNITCLASS_CLONE_COMMANDER</Type>
<Description>TXT_KEY_UNIT_CLONE_COMMANDER</Description>
<iMaxGlobalInstances>-1</iMaxGlobalInstances>
<iMaxTeamInstances>-1</iMaxTeamInstances>
<iMaxPlayerInstances>-1</iMaxPlayerInstances>
<DefaultUnit>UNIT_CLONE_COMMANDER</DefaultUnit>
</UnitClassInfo>
<UnitClassInfo>
<Type>UNITCLASS_KNIGHT_TEMPLAR</Type>
<Description>TXT_KEY_UNIT_KNIGHT_TEMPLAR</Description>
<iMaxGlobalInstances>-1</iMaxGlobalInstances>
<iMaxTeamInstances>-1</iMaxTeamInstances>
<iMaxPlayerInstances>-1</iMaxPlayerInstances>
<DefaultUnit>UNIT_KNIGHT_TEMPLAR</DefaultUnit>
</UnitClassInfo>
<UnitClassInfo>
<Type>UNITCLASS_STORMTROOPER</Type>
<Description>TXT_KEY_UNITSTORM_TROOPER</Description>
<iMaxGlobalInstances>-1</iMaxGlobalInstances>
<iMaxTeamInstances>-1</iMaxTeamInstances>
<iMaxPlayerInstances>-1</iMaxPlayerInstances>
<DefaultUnit>UNIT_STORMTROOPER</DefaultUnit>
<UnitClassInfos>
<UnitClassInfo>
<Type>UNITCLASS_ROYAL_IMPERIAL_GUARD</Type>
<Description>TXT_KEY_UNIT_ROYAL_IMPERIAL_GUARD</Description>
<iMaxGlobalInstances>-1</iMaxGlobalInstances>
<iMaxTeamInstances>-1</iMaxTeamInstances>
<iMaxPlayerInstances>-1</iMaxPlayerInstances>
<DefaultUnit>UNIT_ROYAL_IMPERIAL_GUARD</DefaultUnit>
</UnitClassInfo>
</UnitClassInfos>
</Civ4UnitClassInfos>
 
<Civ4GameText xmlns="http://www.firaxis.com">
<TEXT>
<Tag>TXT_KEY_UNIT_KNIGHT_TEMPLAR</Tag>
<English>Knight Templar</English>
<French>in French</French>
<German>in German</German>
<Italian>in Italian</Italian>
<Spanish>in Spanish</Spanish>
</TEXT>
<TEXT>
<Tag>TXT_KEY_UNIT_CLONE_COMMANDER</Tag>
<English>Clone Commander</English>
<French>in French</French>
<German>in German</German>
<Italian>in Italian</Italian>
<Spanish>in Spanish</Spanish>
</TEXT>
<TEXT>
<Tag>TXT_KEY_UNIT_REBEL</Tag>
<English>Rebel</English>
<French>in French</French>
<German>in German</German>
<Italian>in Italian</Italian>
<Spanish>in Spanish</Spanish>
</TEXT>
<TEXT>
<Tag>TXT_KEY_UNIT_IMPERIAL_ROYAL_GUARD</Tag>
<English>Imperial Royal Guard</English>
<French>in French</French>
<German>in German</German>
<Italian>in Italian</Italian>
<Spanish>in Spanish</Spanish>
</TEXT>
<TEXT>
<Tag>TXT_KEY_UNIT_STORMTROOPER</Tag>
<English>Stormtrooper</English>
<French>in French</French>
<German>in German</German>
<Italian>in Italian</Italian>
<Spanish>in Spanish</Spanish>
</TEXT>

<!-- Unit Pedia Entries -->
<TEXT>
<Tag>TXT_KEY_UNIT_SETTLER_PEDIA</Tag>
<English> </English>
<French> </French>
<German> </German>
<Italian> </Italian>
<Spanish> </Spanish>
</TEXT>
<TEXT>
<Tag>TXT_KEY_UNIT_WORKER_PEDIA</Tag>
<English> </English>
<French> </French>
<German> </Italian>
<Spanish> </Spanish>
</TEXT>
<TEXT>
<Tag>TXT_KEY_UNIT_REBEL_PEDIA</Tag>
<English> </English>
<French> </French>
<German> </German>
<Italian> </Italian>
<Spanish> </Spanish>
</TEXT>
<TEXT>
<Tag>TXT_KEY_UNIT_KNIGHT_TEMPLAR_PEDIA</Tag>
<English> .</English>
<French> </French>
<German> </German>
<Italian> </Italian>
<Spanish> </Spanish>
</TEXT>
<TEXT>
<Tag>TXT_KEY_UNIT_CLONE_COMMANDER_PEDIA</Tag>
<English> </English>
<French> </French>
<German> </German>
<Italian> </Italian>
<Spanish> </Spanish>
</TEXT>
<TEXT>
<Tag>TXT_KEY_UNIT_STORMTROOPER_PEDIA</Tag>
<English> .</English>
<French> </French>
<German> </German>
<Italian> </Italian>
<Spanish> </Spanish>
</TEXT>
<TEXT>
<Tag>TXT_KEY_UNIT_ROYAL_IMPERIAL_GUARD_PEDIA</Tag>
<English> </English>
<French> </French>
<German> </German>
<Italian> </Italian>
<Spanish> </Spanish>

</TEXT>
</Civ4GameText>
 
<Civ4GameText xmlns="http://www.firaxis.com">
<Civ4GameText>
<TEXT>
<Tag>TXT_KEY_ERA_ANCIENT</Tag>
<English>The Ancient Era</English>
<French>The Ancient Era</French>
<German>The Ancient Era</German>
<Italian>The Ancient Era</Italian>
<Spanish>The Ancient Era</Spanish>
<Russian>The Ancient Era</Russian>
<Japanese>The Ancient Era</Japanese>
<Chinese>The Ancient Era</Chinese>
</TEXT>
<TEXT>
<Tag>TXT_KEY_ERA_MEDIEVAL</Tag>
<English>The Medival Era</English>
<French>The Medival Era</French>
<German>The Medival Era</German>
<Italian>The Medival Era</Italian>
<Spanish>The Medival Era</Spanish>
<Russian>The Medival Era</Russian>
<Japanese>The Medival Era</Japanese>
<Chinese>The Medival Era</Chinese>
</TEXT>
<TEXT>
<Tag>TXT_KEY_ERA_RENAISSANCE</Tag>
<English>The Renaissance Era</English>
<French>The Renaissance Era</French>
<German>The Renaissance Era</German>
<Italian>The Renaissance Era</Italian>
<Spanish>The Renaissance Era</Spanish>
<Russian>The Renaissance Era</Russian>
<Japanese>The Renaissance Era</Japanese>
<Chinese>The Renaissance Era</Chinese>
</TEXT>
<TEXT>
<Tag>TXT_KEY_ERA_INDUSTRIAL</Tag>
<English>The Industrial Era</English>
<French>The Industrial Era</French>
<German>The Industrial Era</German>
<Italian>The Industrial Era</Italian>
<Spanish>The Industrial Era</Spanish>
<Russian>The Industrial Era</Russian>
<Japanese>The Industrial Era</Japanese>
<Chinese>The Industrial Era</Chinese>
</TEXT>
<TEXT>
<Tag>TXT_KEY_ERA_MODERN</Tag>
<English>The Modern Era</English>
<French>The Modern Era</French>
<German>The Modern Era</German>
<Italian>The Modern Era</Italian>
<Spanish>The Modern Era</Spanish>
<Russian>The Modern Era</Russian>
<Japanese>The Modern Era</Japanese>
<Chinese>The Modern Era</Chinese>
</TEXT>
<TEXT>
<Tag>TXT_KEY_ERA_FUTURE</Tag>
<English>The Future Era</English>
<French>The Future Era</French>
<German>The Future Era</German>
<Italian>The Future Era</Italian>
<Spanish>The Future Era</Spanish>
<Russian>The Future Era</Russian>
<Japanese>The Future Era</Japanese>
<Chinese>The Future Era</Chinese>
</TEXT>
<TEXT>
<Tag>TXT_KEY_UNIT_MUSICIAN</Tag>
<English>Musician</English>
<French>Musician</French>
<German>Musician</German>
<Italian>Musician</Italian>
<Spanish>Musician</Spanish>
<Russian>Musician</Russian>
<Japanese>Musician</Japanese>
<Chinese>Musician</Chinese>
</TEXT>
<TEXT>
<Tag>TXT_KEY_UNIT_SCIENTIST</Tag>
<English>Scientist</English>
<French>Scientist</French>
<German>Scientist</German>
<Italian>Scientist</Italian>
<Spanish>Scientist</Spanish>
<Russian>Scientist</Russian>
<Japanese>Scientist</Japanese>
<Chinese>Scientist</Chinese>
</TEXT>
<TEXT>
<Tag>TXT_KEY_UNIT_GREAT_DANCER</Tag>
<English>Dancer</English>
<French>Dancer</French>
<German>Dancer</German>
<Italian>Dancer</Italian>
<Spanish>Dancer</Spanish>
<Russian>Dancer</Russian>
<Japanese>Dancer</Japanese>
<Chinese>Dancer</Chinese>
</TEXT>
<TEXT>
<Tag>TXT_KEY_UNIT_GREAT_MECHANIC</Tag>
<English>Mechanic</English>
<French>Mechanic</French>
<German>Mechanic</German>
<Italian>Mechanic</Italian>
<Spanish>Mechanic</Spanish>
<Russian>Mechanic</Russian>
<Japanese>Mechanic</Japanese>
<Chinese>Mechanic</Chinese>
</TEXT>
<TEXT>
<Tag>TXT_KEY_RELIGION_JUDAISM</Tag>
<English>Judaism</English>
<French>Judaism</French>
<German>Judaism</German>
<Italian>Judaism</Italian>
<Spanish>Judaism<Spanish>
<Russian>Judaism</Russian>
<Japanese>Judaism</Japanese>
<Chinese>Judaism</Chinese>
</TEXT>
<TEXT>
<Tag>TXT_KEY_RELIGION_CHRISTIANITY</Tag>
<English>Christianity</English>
<French>Christianity</French>
<German>Christianity</German>
<Italian>Christianity</Italian>
<Spanish>Christianity</Spanish>
<Russian>Christianity</Russian>
<Japanese>Christianity</Japanese>
<Chinese>Christianity</Chinese>
</TEXT>
<TEXT>
<Tag>TXT_KEY_RELIGION_ISLAM</Tag>
<English>Islam</English>
<French>Islam</French>
<German>Islam</German>
<Italian>Islam</Italian>
<Spanish>Islam</Spanish>
<Russian>Islam</Russian>
<Japanese>Islam</Japanese>
<Chinese>Islam</Chinese>
</TEXT>
<TEXT>
<Tag>TXT_KEY_RELIGION_HINDUISM</Tag>
<English>Hinduism</English>
<French>Hinduism</French>
<German>Hinduism</German>
<Italian>Hinduism</Italian>
<Spanish>Hinduism</Spanish>
<Russian>Hinduism</Russian>
<Japanese>Hinduism</Japanese>
<Chinese>Hinduism</Chinese>
</TEXT>
<TEXT>
<Tag>TXT_KEY_RELIGION_BUDDHISM</Tag>
<English>Buddhism</English>
<French>Buddhism</French>
<German>Buddhism</German>
<Italian>Buddhism</Italian>
<Spanish>Buddhism</Spanish>
<Russian>Buddhism</Russian>
<Japanese>Buddhism</Japanese>
<Chinese>Buddhism</Chinese>
</TEXT>
<TEXT>
<Tag>TXT_KEY_RELIGION_CONFUCIANISM</Tag>
<English>Confucianism</English>
<French>Confucianism</French>
<German>Confucianism</German>
<Italian>Confucianism</Italian>
<Spanish>Confucianism</Spanish>
<Russian>Confucianism</Russian>
<Japanese>Confucianism</Japanese>
<Chinese>Confucianism</Chinese>
</TEXT>
<TEXT>
<Tag>TXT_KEY_RELIGION_TAOISM</Tag>
<English>Taoism</English>
<French>Taoism</French>
<German>Taoism</German>
<Italian>Taoism</Italian>
<Spanish>Taoism</Spanish>
<Russian>Taoism</Russian>
<Japanese>Taoism</Japanese>
<Chinese>Taoism</Chinese>
</TEXT>
</Civ4GameText>
</Civ4GameText>
 
<Tag>TXT_KEY_RELIGION_JUDAISM</Tag>
<English>Judaism</English>
<French>Judaism</French>
<German>Judaism</German>
<Italian>Judaism</Italian>
<Spanish>Judaism<Spanish>
<Russian>Judaism</Russian>
<Japanese>Judaism</Japanese>
<Chinese>Judaism</Chinese>
</TEXT>

Look at the Spanish tag.
 
the only problem i am having is that the leader heads dont show up. The other errors are gone, but it comes up with Propet info incorrect. any ideas. It also goes threw some other characters nad has the same problems loading, after it loads, the leader dont show up.
 
Altantis24 said:
the only problem i am having is that the leader heads dont show up. The other errors are gone, but it comes up with Propet info incorrect. any ideas. It also goes threw some other characters nad has the same problems loading, after it loads, the leader dont show up.

well the leaderhead art tags are here in this file:

Civ4ArtDefines_Leaderhead.xml

so if your leader heads dont show... check that file....

now when you say "leader heads dont show up" are you talking about the diplomacy window (during the game) or the civilopedia info, or the buttons?


there are two different art folders for them ... so I need to know which one...

did you add a new leaderhead (using the an original leader head as a model) or did you make a "static" leaderhead?


CIV4 is very particular about image sizes and file types

also check your taglines to make sure they point to the right art files and make sure your art files have the correct name :crazyeye:

If you can post your MOD here... I can test it at my end and give you some advice where the corrections need to be made...;) (If of course I can solve your problems :mischief: )

you also might want to use Notepad+ to edit your XML files...

http://notepad-plus.sourceforge.net/uk/site.htm

its free and it has a basic XML tagline checker (its not perfect but it helps :goodjob: ) and it makes XML files easier to read! :D

if that link does not work... just search for it using any search engine and you can d/l it off any free service... :)
 
okay, the leader dont show up at all in the game or in the civilopedia.
 
Altantis24 said:
okay, the leader dont show up at all in the game or in the civilopedia.
um.. did you fix the problem... your pm said you did but your time stamp on this post was later than the pm :confused:


post your mod and I can help ya better ;) (I hope)
 
yeah that was my fault i was working on the leaderheads, and i got a different error, but i can probably fix easily it just a coding error.
 
<Civ4ArtDefines xmlns="x-schema:CIV4ArtDefinesSchema.xml">
<LeaderheadArtInfos>
<LeaderheadArtInfo>
<Type>ART_DEF_LEADER_ANAKIN_SKYWALKER</Type>
<Button>Art/interface/LeaderHeads/Anakin1.dds</Button>
<NIF>art/interface/LeaderHeads/Anakin.dds</NIF>
<KFM>
<NoShaderNIF>
<BackgroundKFM>
</LeaderheadArtInfo>
<LeaderheadArtInfo>

</LeaderheadArtInfo> this code is the end of the page
</LeaderheadArtInfos>
</Civ4ArtDefines>

if i delete this code there is no error message
 
Altantis24 said:
<Civ4ArtDefines xmlns="x-schema:CIV4ArtDefinesSchema.xml">
<LeaderheadArtInfos>
<LeaderheadArtInfo>
<Type>ART_DEF_LEADER_ANAKIN_SKYWALKER</Type>
<Button>Art/interface/LeaderHeads/Anakin1.dds</Button>
<NIF>art/interface/LeaderHeads/Anakin.dds</NIF>
<KFM>
<NoShaderNIF>
<BackgroundKFM>

</LeaderheadArtInfo>
<LeaderheadArtInfo>

</LeaderheadArtInfo> this code is the end of the page
</LeaderheadArtInfos>
</Civ4ArtDefines>

if that is how your code ends... then <LeaderheadArtInfo> is an extra tagline that should be removed


These lines:

<KFM>
<NoShaderNIF>
<BackgroundKFM>


should read:
<KFM/>
<NoShaderNIF/>
<BackgroundKFM/>


if you can post all your edited files I can help you better ;)
 
it's all good it is working great, thanks for all the help everyone.
 
Back
Top Bottom