Strange XML errors

need my speed

Rex Omnium Imperarium
Joined
Oct 3, 2009
Messages
2,497
Location
European Union (Magna Batavia)
Hello,

For some reason, I'm getting an error while, as far as I can see, nothing is wrong. I've attached a screenshot of the error and the XML file in a .zip file.

Also, the game ignores the civlopedia entry for Smoke Jaguar, and instead uses no civlopedia entry (it shows up like TXT_KEY_LEADER_SMOKE_JAGUAR_PEDIA in the game). I copied Smoke Jaguar from Civ Gold (a mod), but I also copied Xerxes who worked fine, so... Here's his leaderhead (partly, otherwise, this post would be very long):

Code:
		<LeaderHeadInfo>
			<Type>LEADER_SMOKE_JAGUAR</Type>
			<Description>TXT_KEY_LEADER_SMOKE_JAGUAR</Description>
			<Civilopedia>TXT_KEY_LEADER_SMOKE_JAGUAR_PEDIA</Civilopedia>

Yet, his civlopedia entry is ignored. His civlopedia entry is named:

<Tag>TXT_KEY_LEADER_SMOKE_JAGUAR_PEDIA</Tag>

And is ignored... It's with the other civlopedia entries, all which work, so...

EDIT: None of the Beyond the Sword leaders, including the new ones which I've added, have a civlopedia entry, they all show up as TXT_KEY...

Thanks in advance,
need my speed
 

Attachments

You did not include the XML for the leaderhead and associated text files so we could look at it. You did include the diplomatic quotes and I can't see any error there.

One minor thing I have noticed when modding is that if I put game text in a new file it has to have "CIV4GameText" in the file name somewhere or it gets ignored. EG CIV4GameText_DiplomacyText_BTS.xml
 
Oh, sorry.
 

Attachments

The screen shot tells you the error - your XML file is not formatted properly, and it also tells you the exact location.
You can also check this by opening the XML file in a browser.

Specifically in your case - You're missing the <TEXT> opening tag for TXT_KEY_BTS_WONDERS_PEDIA.
 
Well, I used that function to jump to a line (in Notepad), but I couldn't find any error there. Now I see it, however. Stupid me. Thanks!
 
Sorry for the double post, but, I've had another (unrelated, as far as I know) error. It gives no error message like 'failed to load Civ4LeaderHeadInfos.xml' or things like that, it just crashes while the game is loading (that small screen appears, then the whole screens turns black, and then the game crashes). The ThemeParseLog says:

[Feb 16, 2011 - 20:08:33] Messages while processing 'Resource/Civ4.thm'

Error : Decl - ('Civ4Theme_Common.thm', Ln:401, Col:13) Assignment source propertyId 'SF_CtrlTheme_Civ4_Control_Font_Size3_Italic' not found
Error : Decl - ('Civ4Theme_Common.thm', Ln:402, Col:13) Assignment source propertyId 'SF_CtrlTheme_Civ4_Control_Font_Size3_BoldItalic' not found
Error : Decl - ('Civ4Theme_Common.thm', Ln:408, Col:13) Assignment source propertyId 'SF_CtrlTheme_Civ4_Control_Font_Size1_Bold' not found
Error : Decl - ('Civ4Theme_Window.thm', Ln:3048, Col:9) Assignment source propertyId 'SF_CtrlTheme_Civ4_Control_Font_Size1_Bold' not found
Error : Syntax - ('Civ4Theme_HUD.thm', Ln:887, Col:13) Unexpected '.' in the identifier assignment statement
Error : Syntax - ('Civ4Theme_HUD.thm', Ln:927, Col:13) Unexpected '.' in the identifier assignment statement

However, I've never edited those files, so how can they give me an error? And, more importantly, how to fix it? I can see there's something wrong with those files, but, since I've not touched them in any way (I didn't know they existed, so)...
 
No, only XML's. And the ones that could have caused it (thus, the ones I edited after I still could launch the game but before it crashed), don't cause it... Or, when I removed them and replaced them with their original variants, the game also crashed. Normal Beyond the Sword and Rhye's and Fall of Civilizations also don't work anymore, but that may (but not must) be because of something else. I haven't yet checked their error logs, and I am on a different PC now (a laptop, actually). That mod with that scenario with the Seleucids and Laptia and such, which is downloadable on this site, does work however.
 
Bump. And for what it's worth, the above mentioned mod is the Giant Earth Map, which can be found in the projects subforum of creation & customization, here. Beyond the Sword (not my mod, just vanilla Beyond the Sword) gives the same error:

[Feb 18, 2011 - 21:30:05] Messages while processing 'Resource/Civ4.thm'

Error : Decl - ('Civ4Theme_Common.thm', Ln:401, Col:13) Assignment source propertyId 'SF_CtrlTheme_Civ4_Control_Font_Size3_Italic' not found
Error : Decl - ('Civ4Theme_Common.thm', Ln:402, Col:13) Assignment source propertyId 'SF_CtrlTheme_Civ4_Control_Font_Size3_BoldItalic' not found
Error : Decl - ('Civ4Theme_Common.thm', Ln:408, Col:13) Assignment source propertyId 'SF_CtrlTheme_Civ4_Control_Font_Size1_Bold' not found
Error : Decl - ('Civ4Theme_Window.thm', Ln:3048, Col:9) Assignment source propertyId 'SF_CtrlTheme_Civ4_Control_Font_Size1_Bold' not found
Error : Syntax - ('Civ4Theme_HUD.thm', Ln:887, Col:13) Unexpected '.' in the identifier assignment statement
Error : Syntax - ('Civ4Theme_HUD.thm', Ln:927, Col:13) Unexpected '.' in the identifier assignment statement
 
There really is no other way than removing everything by hand, right? What registry entries should I remove?
 
Sadly no...

[Feb 19, 2011 - 15:59:46] Messages while processing 'Resource/Civ4.thm'

Error : Decl - ('Civ4Theme_Common.thm', Ln:401, Col:13) Assignment source propertyId 'SF_CtrlTheme_Civ4_Control_Font_Size3_Italic' not found
Error : Decl - ('Civ4Theme_Common.thm', Ln:402, Col:13) Assignment source propertyId 'SF_CtrlTheme_Civ4_Control_Font_Size3_BoldItalic' not found
Error : Decl - ('Civ4Theme_Common.thm', Ln:408, Col:13) Assignment source propertyId 'SF_CtrlTheme_Civ4_Control_Font_Size1_Bold' not found
Error : Decl - ('Civ4Theme_Window.thm', Ln:3048, Col:9) Assignment source propertyId 'SF_CtrlTheme_Civ4_Control_Font_Size1_Bold' not found
Error : Syntax - ('Civ4Theme_HUD.thm', Ln:887, Col:13) Unexpected '.' in the identifier assignment statement
Error : Syntax - ('Civ4Theme_HUD.thm', Ln:927, Col:13) Unexpected '.' in the identifier assignment statement

Wait... Perhaps my ThemePareLog doesn't update itself and I'm displaying the wrong error? Because, the error copied from above was from 19-2-2011 15:59 (and from RevDCM, by the way, and, now, it's 23:14 (in the Netherlands)). Then, I launched the normal Civilization 4 Beyond The Sword, and the time and all were exactly the same. I just tried it now, once again, and it displayed the exact same time. It now is 23:16, so...
 
Where is this log anyway? I couldn't find this log in my Logs folder (or maybe it's only created when there are errors...)
 
I believe it's only created when an error has occured, it's in the main BTS folder (where you have Assets, Mods, Resources, the .exe, etc), and it's called ThemeParseLog. I think.
 
There really is no other way than removing everything by hand, right? What registry entries should I remove?

And, could my ThemeParseError somehow be messed up (look above)?
 
Well, while my previous post was meant to ask how I could reinstall Beyond the Sword, now however, with you saying that you have all those errors except for the last two... I guess those last two errors can easily be solved, if only I knew how (yeah...). I mean, removing a '.' shouldn't be that hard. Could someone perhaps upload the original Civ4Theme_HUD.thm?
 
Well, that is very strange, seeing as you don't have that error. Very strange...
 
Back
Top Bottom