View Full Version : XML loading order?


jefmart1
Jan 07, 2008, 08:23 PM
I am working on creating a new mod and I modified a bunch of XML files, mostly removing the techs, units, buildings, and civilizations I'm not going to use. I have eliminated all of the XML error popups when the mod loads, however, it just CTDs toward the end of loading.

What is the order of the XML files it loads? I figure maybe I can replace or correct the file if I can deduce which one, since I know that it crashed before after loading the civicinfos file.

And/Or how can I tell what is crashing it?

I did have it loading but with the XML errors. During cleaning them up I deleted or changed something that is causing the CTD.

Thanks in advance.

jefmart1
Jan 07, 2008, 08:34 PM
Nevermind,

Its in the civartsdefines_unit xml file. Something I deleted or changed is causing the CTD during loading...

primordial stew
Jan 07, 2008, 09:54 PM
It's bound to happen again, so this will help at that time :o

The xml load order is easy to get, just enable xml logging and then load any working game. Except for text/*xml the list is always the same, it's only a matter of where the file comes from. For example RFRE doesn't have a custom version of XML\Misc/Civ4TutorialInfos.xml, but it gets loaded anyway and reports that there is no UNITCOMBAT_HELICOPTER type in the game :)

And for missing art CTDs, maybe try using this: http://forums.civfanatics.com/showthread.php?p=6243908#post6243908

jefmart1
Jan 08, 2008, 07:00 AM
How I enable xml logging and where does the output file go?

zyphyr
Jan 08, 2008, 02:17 PM
XML Logging is controlled in the CivilizationIV.ini

The logs go to their own directory, which you can find a convenient link to in your Civ4 directory : _Civ4Logs