Need help to edit XML files

morchuflex

Emperor
Joined
Feb 19, 2004
Messages
1,389
Location
Paris
Hello.

I am trying to modify a few aspects of the game. After a few hours fiddling with xml files, I have already figured out a few things by myself. :)

However, I still don't know which file to edit to postpone whale obsolescence from combustion to a later tech. :confused:

I am sorry if there has already been such threads. Forum search returned nothing because "xml" is too short a word... :rolleyes:

On a side note, there once was a thread about players' favorite xml modifications, but I can't find it anymore.

Can anyone help me or point me to the right direction?
 
However, I still don't know which file to edit to postpone whale obsolescence from combustion to a later tech. :confused:

This sort of question might get faster answers in the customizations forums

The file you want to mod is almost certainly CIV4BonusInfos.xml

Standard warning: the game has a built in mechanism for replacing the original files with your customized copies, which is a superior alternative to editing the originals. If you haven't discovered that on your own :eek: , you should search for the instructions....
 
This sort of question might get faster answers in the customizations forums

The file you want to mod is almost certainly CIV4BonusInfos.xml

Standard warning: the game has a built in mechanism for replacing the original files with your customized copies, which is a superior alternative to editing the originals. If you haven't discovered that on your own :eek: , you should search for the instructions....
Thanks for your answer.
I'll have a look to the customization forum, then.

As for the whale, there has to be another file. The one you mentionned does not mention obsolescence.

And I'm not entirely sure I understand your last sentence. Does it mean there is another, easier way to edit the game than modifying the xml files?
 
BonusInfos it is.
Code:
		<BonusInfo>
			<Type>BONUS_WHALE</Type>
			<Description>TXT_KEY_BONUS_WHALE</Description>
			<Civilopedia>TXT_KEY_BONUS_WHALE_PEDIA</Civilopedia>
			<BonusClassType>BONUSCLASS_GENERAL</BonusClassType>
			<ArtDefineTag>ART_DEF_BONUS_WHALE</ArtDefineTag>
			<TechReveal>NONE</TechReveal>
			<TechCityTrade>NONE</TechCityTrade>
			[COLOR="SeaGreen"][B]<TechObsolete>TECH_COMBUSTION</TechObsolete>[/B][/COLOR]
At least on some versions of the game, the file is not present in BTS Terrain folder, as one would expect. It is then in the Warlords folder.

You need to edit the files, but you dont want to edit/overwrite the originals.
Instead you should create a mod-folder with copies of the original files you plan to change, or place the copy in the CustomAssets folder.
Then edit the copies.
 
Back
Top Bottom