editing XML- indipendent program needed?

Xen

Magister
Joined
Feb 10, 2003
Messages
16,004
Location
Formosa
I cant seem to be able to actually edit the XML; perhaps I'm going to the wrong files, or dont have a program in which to edit it with, but when i go to the XML folder, in the assets section, and open up the unit infos, the stuff cant be edited I can highlight and copy it all I want, but I cant get into it to actually edit anything.
 
awesoem thanks for that; before I do anything drastic, if I wanted to stop aunit from upgradeing to somthing, what do I specificlly take out, or delete, and what if anything, do I leave in?
 
Look at another Unit that does not upgrade and find the proper property and copy and paste onto the thing you want to change.

If you give me a minute I'll show you exactly what you need to do.
 
vbraun, I belive now is the time to tell you that I love you :)
 
Here is the part that says what the Warrior upgrades to:
Code:
			<UnitClassUpgrades>
				<UnitClassUpgrade>
					<UnitClassUpgradeType>UNITCLASS_AXEMAN</UnitClassUpgradeType>
					<bUnitClassUpgrade>1</bUnitClassUpgrade>
				</UnitClassUpgrade>
				<UnitClassUpgrade>
					<UnitClassUpgradeType>UNITCLASS_SPEARMAN</UnitClassUpgradeType>
					<bUnitClassUpgrade>1</bUnitClassUpgrade>
				</UnitClassUpgrade>
			</UnitClassUpgrades>

If you wanted to add another upgrade just add another <UnitClassUpgrade> thing.

Ex.
Code:
			<UnitClassUpgrades>
				<UnitClassUpgrade>
					<UnitClassUpgradeType>UNITCLASS_AXEMAN</UnitClassUpgradeType>
					<bUnitClassUpgrade>1</bUnitClassUpgrade>
				</UnitClassUpgrade>
				<UnitClassUpgrade>
					<UnitClassUpgradeType>UNITCLASS_SPEARMAN</UnitClassUpgradeType>
					<bUnitClassUpgrade>1</bUnitClassUpgrade>
				</UnitClassUpgrade>
				<UnitClassUpgrade>
					<UnitClassUpgradeType>UNITCLASS_SAM_INFANTRY</UnitClassUpgradeType>
					<bUnitClassUpgrade>1</bUnitClassUpgrade>
				</UnitClassUpgrade>
                           </UnitClassUpgrades>

If you wanted to get rid of an upgrade so that there is only one upgrade left. Just delete one of the <UnitClassUpgrade> things. Ex.
Code:
			<UnitClassUpgrades>
				<UnitClassUpgrade>
					<UnitClassUpgradeType>UNITCLASS_AXEMAN</UnitClassUpgradeType>
					<bUnitClassUpgrade>1</bUnitClassUpgrade>
				</UnitClassUpgrade>
                           </UnitClassUpgrades>

Now if you want no upgrades at all change the entire <UnitClassUpgrades> to this:
Code:
			<UnitClassUpgrades/>

Forgot to mention but this is in the Assests\XML\Units\CIV4UnitInfos.xml just open using Notepad
 
Xen said:
vbraun, I belive now is the time to tell you that I love you :)

same thing, but exponentially more now ;)

Thank you VB, youve made my day! :D
 
Back
Top Bottom