View Full Version : Lost in the XML Badlands


Serenity42
Oct 01, 2008, 03:52 PM
Okay, I'm officially stuck. I've been going through the XML sheets, trying to remove the obsolescence trigger for monasteries and, dang it, it just isn't happening.

I've checked the Special Buildings sheets, and both have Obsolete entries of NONE - which says to me that they shouldn't be going obsolete at the discovery of Scientific Method or, in fact, anything else. Yet, they do. Could someone shed some light on A) which sheet contains B) which entry needs changing?

Actually, if someone really needs something to sop up their time, an XML roadmap for those of us who are, let's be honest, XML idiots like me, would be helpful. For example, which sheet contains upkeep data or happiness output for various buildings? Which one governs the effects of promotions? Which one determines the requirements for selecting the various outcome options in random events and explains those requirements? I've looked and, at one point or another, thought I'd found almost all of these, but no changes have ever done a single solitary thing.

I apologize for my stupidity, but could someone please help? :sad:

Wolfshanze
Oct 01, 2008, 10:48 PM
Good question... I thought it was in the Monastary buildinginfos.XML, but it isn't.

deanej
Oct 02, 2008, 05:02 PM
Did you check Civ4SpecialBuildingInfos like you said you did? The Monastery type is at the bottom of the file.

Serenity42
Oct 03, 2008, 11:16 AM
Did you check Civ4SpecialBuildingInfos like you said you did? The Monastery type is at the bottom of the file.

Sure did. It changed the Civilopedia text after a forced reload through the console, but the things were still unbuildable after Scientific Method.

deanej
Oct 03, 2008, 03:39 PM
Have you restarted the game? XML changes can't be done while civ is running like python changes can (and if you store anything about the game in python, python isn't reloadable either).

Serenity42
Oct 09, 2008, 03:58 PM
Restarted it and even used the console to force the reload of the XML files. It's perplexing, to say the least.

deanej
Oct 09, 2008, 05:24 PM
The only XML you can reload from the console is the text files. It's best to make XML changes when civ is not running, as the changes will not be applied until the next time the game is loaded. Sometimes you won't see the changes take affect because civ will load a cached version of the file - for that reason I disable the cache in the ini.

eukaliptus
Oct 12, 2008, 08:34 PM
yeah, probably here...
<SpecialBuildingInfo>
<Type>SPECIALBUILDING_MONASTERY</Type>
<Description>TXT_KEY_SPECIALBUILDING_MONASTERY</Description>
<ObsoleteTech>TECH_SCIENTIFIC_METHOD</ObsoleteTech>

which CIV4SpecialBuildingInfos.xml did u change? make sure that u change one in version of the game u play.. for instance not in
Civilization 4\Assets\XML\Buildings\
but in
Civilization 4\Beyond the Sword\Assets\XML\Buildings\

maybe thats the problem...