I have a question.

nokmirt

Emperor
Joined
Feb 14, 2009
Messages
5,088
Location
Iowa USA
I changed a few xml files, and backed all but one of them up. I made an oops.

How can I get an original xml file back without having to redownload the entire game?

The file I forgot to backup is the CIV5TacticalMoves.xml can someone send me the original, post it on here? Or, is there someplace I can download it? Thanks :help:
 
see the spoiler

Spoiler :
Code:
<?xml version="1.0" encoding="utf-8"?>
<!-- edited with XMLSPY v2004 rel. 2 U (http://www.xmlspy.com) by Ed Beach (Firaxis Games) -->
<GameData>
	<!-- Table definition -->
	<Table name="TacticalMoves">
		<Column name="ID" type="integer" primarykey="true" autoincrement="true"/>
		<Column name="Type" type="text" notnull="true" unique="true"/>
		<Column name="OperationsCanRecruit" type="boolean" default="true"/>
		<Column name="DominanceZoneMove" type="boolean" default="false"/>
		<Column name="OffenseFlavorWeight" type="integer"/>
		<Column name="DefenseFlavorWeight" type="integer"/>
		<Column name="Priority" type="integer"/>
	</Table>
	<!-- Table data -->
	<TacticalMoves>
		<Row>
			<ID>0</ID>
			<Type>TACTICAL_UNASSIGNED</Type>
			<OperationsCanRecruit>true</OperationsCanRecruit>
			<Priority>-1</Priority>
		</Row>
		<Row>
			<Type>TACTICAL_MOVE_NONCOMBATANTS_TO_SAFETY</Type>
			<OperationsCanRecruit>true</OperationsCanRecruit>
			<Priority>0</Priority>
		</Row>
		<Row>
			<Type>TACTICAL_CAPTURE_CITY</Type>
			<OperationsCanRecruit>false</OperationsCanRecruit>
			<OffenseFlavorWeight>100</OffenseFlavorWeight>
			<Priority>150</Priority>
		</Row>
		<Row>
			<Type>TACTICAL_DAMAGE_CITY</Type>
			<OperationsCanRecruit>true</OperationsCanRecruit>
			<OffenseFlavorWeight>100</OffenseFlavorWeight>
			<Priority>15</Priority>
		</Row>
		<Row>
			<Type>TACTICAL_DESTROY_HIGH_UNIT</Type>
			<OperationsCanRecruit>false</OperationsCanRecruit>
			<DefenseFlavorWeight>100</DefenseFlavorWeight>
			<Priority>140</Priority>
		</Row>
		<Row>
			<Type>TACTICAL_DESTROY_MEDIUM_UNIT</Type>
			<OperationsCanRecruit>false</OperationsCanRecruit>
			<DefenseFlavorWeight>100</DefenseFlavorWeight>
			<Priority>120</Priority>
		</Row>
		<Row>
			<Type>TACTICAL_DESTROY_LOW_UNIT</Type>
			<OperationsCanRecruit>true</OperationsCanRecruit>
			<DefenseFlavorWeight>100</DefenseFlavorWeight>
			<Priority>110</Priority>
		</Row>
		<Row>
			<Type>TACTICAL_TO_SAFETY</Type>
			<OperationsCanRecruit>false</OperationsCanRecruit>
			<DefenseFlavorWeight>100</DefenseFlavorWeight>
			<Priority>11</Priority>
		</Row>
		<Row>
			<Type>TACTICAL_ATTRIT_HIGH_UNIT</Type>
			<OperationsCanRecruit>true</OperationsCanRecruit>
			<DefenseFlavorWeight>100</DefenseFlavorWeight>
			<Priority>17</Priority>
		</Row>
		<Row>
			<Type>TACTICAL_ATTRIT_MEDIUM_UNIT</Type>
			<OperationsCanRecruit>true</OperationsCanRecruit>
			<DefenseFlavorWeight>100</DefenseFlavorWeight>
			<Priority>15</Priority>
		</Row>
		<Row>
			<Type>TACTICAL_ATTRIT_LOW_UNIT</Type>
			<OperationsCanRecruit>true</OperationsCanRecruit>
			<DefenseFlavorWeight>100</DefenseFlavorWeight>
			<Priority>12</Priority>
		</Row>
		<Row>
			<Type>TACTICAL_REPOSITION</Type>
			<OperationsCanRecruit>true</OperationsCanRecruit>
			<OffenseFlavorWeight>50</OffenseFlavorWeight>
			<DefenseFlavorWeight>50</DefenseFlavorWeight>
			<Priority>1</Priority>
		</Row>
		<Row>
			<Type>TACTICAL_BARBARIAN_CAMP</Type>
			<OperationsCanRecruit>false</OperationsCanRecruit>
			<OffenseFlavorWeight>100</OffenseFlavorWeight>
			<Priority>10</Priority>
		</Row>
		<Row>
			<Type>TACTICAL_PILLAGE</Type>
			<OperationsCanRecruit>false</OperationsCanRecruit>
			<OffenseFlavorWeight>100</OffenseFlavorWeight>
			<Priority>40</Priority>
		</Row>
		<Row>
			<Type>TACTICAL_SAFE_BOMBARDS</Type>
			<OperationsCanRecruit>false</OperationsCanRecruit>
			<OffenseFlavorWeight>100</OffenseFlavorWeight>
			<Priority>60</Priority>
		</Row>
		<Row>
			<Type>TACTICAL_HEAL</Type>
			<OperationsCanRecruit>true</OperationsCanRecruit>
			<DefenseFlavorWeight>100</DefenseFlavorWeight>
			<Priority>8</Priority>
		</Row>
		<Row>
			<Type>TACTICAL_ANCIENT_RUINS</Type>
			<OperationsCanRecruit>true</OperationsCanRecruit>
			<OffenseFlavorWeight>50</OffenseFlavorWeight>
			<DefenseFlavorWeight>50</DefenseFlavorWeight>
			<Priority>25</Priority>
		</Row>
		<Row>
			<Type>TACTICAL_GARRISON_TO_ALLOW_BOMBARD</Type>
			<OperationsCanRecruit>true</OperationsCanRecruit>
			<DefenseFlavorWeight>100</DefenseFlavorWeight>
			<Priority>20</Priority>
		</Row>
		<Row>
			<Type>TACTICAL_BASTION_ALREADY_THERE</Type>
			<OperationsCanRecruit>false</OperationsCanRecruit>
			<DefenseFlavorWeight>100</DefenseFlavorWeight>
			<Priority>7</Priority>
		</Row>
		<Row>
			<Type>TACTICAL_GARRISON_ALREADY_THERE</Type>
			<OperationsCanRecruit>false</OperationsCanRecruit>
			<DefenseFlavorWeight>100</DefenseFlavorWeight>
			<Priority>6</Priority>
		</Row>
		<Row>
			<Type>TACTICAL_GUARD_IMPROVEMENT_ALREADY_THERE</Type>
			<OperationsCanRecruit>false</OperationsCanRecruit>
			<DefenseFlavorWeight>100</DefenseFlavorWeight>
			<Priority>3</Priority>
		</Row>
		<Row>
			<Type>TACTICAL_BASTION_1_TURN</Type>
			<OperationsCanRecruit>true</OperationsCanRecruit>
			<DefenseFlavorWeight>100</DefenseFlavorWeight>
			<Priority>5</Priority>
		</Row>
		<Row>
			<Type>TACTICAL_GARRISON_1_TURN</Type>
			<OperationsCanRecruit>true</OperationsCanRecruit>
			<DefenseFlavorWeight>100</DefenseFlavorWeight>
			<Priority>4</Priority>
		</Row>
		<Row>
			<Type>TACTICAL_GUARD_IMPROVEMENT_1_TURN</Type>
			<OperationsCanRecruit>true</OperationsCanRecruit>
			<DefenseFlavorWeight>100</DefenseFlavorWeight>
			<Priority>2</Priority>
		</Row>
		<Row>
			<Type>TACTICAL_AIR_SWEEP</Type>
			<OperationsCanRecruit>false</OperationsCanRecruit>
			<OffenseFlavorWeight>100</OffenseFlavorWeight>
			<Priority>10</Priority>
		</Row>
		<Row>
			<Type>TACTICAL_AIR_INTERCEPT</Type>
			<OperationsCanRecruit>false</OperationsCanRecruit>
			<DefenseFlavorWeight>100</DefenseFlavorWeight>
			<Priority>20</Priority>
		</Row>
		<Row>
			<Type>TACTICAL_AIR_REBASE</Type>
			<OperationsCanRecruit>false</OperationsCanRecruit>
			<DefenseFlavorWeight>100</DefenseFlavorWeight>
			<Priority>1</Priority>
		</Row>
		<Row>
			<Type>TACTICAL_POSTURE_WITHDRAW</Type>
			<OperationsCanRecruit>false</OperationsCanRecruit>
			<DominanceZoneMove>true</DominanceZoneMove>
			<Priority>95</Priority>
		</Row>
		<Row>
			<Type>TACTICAL_POSTURE_SIT_AND_BOMBARD</Type>
			<OperationsCanRecruit>false</OperationsCanRecruit>
			<DominanceZoneMove>true</DominanceZoneMove>
			<Priority>105</Priority>
		</Row>
		<Row>
			<Type>TACTICAL_POSTURE_ATTRIT_FROM_RANGE</Type>
			<OperationsCanRecruit>false</OperationsCanRecruit>
			<DominanceZoneMove>true</DominanceZoneMove>
			<Priority>104</Priority>
		</Row>
		<Row>
			<Type>TACTICAL_POSTURE_EXPLOIT_FLANKS</Type>
			<OperationsCanRecruit>false</OperationsCanRecruit>
			<DominanceZoneMove>true</DominanceZoneMove>
			<Priority>107</Priority>
		</Row>
		<Row>
			<Type>TACTICAL_POSTURE_STEAMROLL</Type>
			<OperationsCanRecruit>false</OperationsCanRecruit>
			<DominanceZoneMove>true</DominanceZoneMove>
			<Priority>108</Priority>
		</Row>
		<Row>
			<Type>TACTICAL_POSTURE_SURGICAL_CITY_STRIKE</Type>
			<OperationsCanRecruit>false</OperationsCanRecruit>
			<DominanceZoneMove>true</DominanceZoneMove>
			<Priority>106</Priority>
		</Row>
		<Row>
			<Type>TACTICAL_POSTURE_HEDGEHOG</Type>
			<OperationsCanRecruit>false</OperationsCanRecruit>
			<DominanceZoneMove>true</DominanceZoneMove>
			<Priority>50</Priority>
		</Row>
		<Row>
			<Type>TACTICAL_POSTURE_COUNTERATTACK</Type>
			<OperationsCanRecruit>false</OperationsCanRecruit>
			<DominanceZoneMove>true</DominanceZoneMove>
			<Priority>103</Priority>
		</Row>
		<Row>
			<Type>TACTICAL_POSTURE_SHORE_BOMBARDMENT</Type>
			<OperationsCanRecruit>false</OperationsCanRecruit>
			<DominanceZoneMove>true</DominanceZoneMove>
			<Priority>100</Priority>
		</Row>
		<Row>
			<Type>TACTICAL_CLOSE_ON_TARGET</Type>
			<OperationsCanRecruit>false</OperationsCanRecruit>
			<DominanceZoneMove>true</DominanceZoneMove>
			<Priority>45</Priority>
		</Row>
		<Row>
			<Type>TACTICAL_MOVE_OPERATIONS</Type>
			<OperationsCanRecruit>false</OperationsCanRecruit>
			<DominanceZoneMove>false</DominanceZoneMove>
			<Priority>80</Priority>
		</Row>
		<Row>
			<Type>TACTICAL_EMERGENCY_PURCHASES</Type>
			<OperationsCanRecruit>false</OperationsCanRecruit>
			<DominanceZoneMove>true</DominanceZoneMove>
			<Priority>200</Priority>
		</Row>
		<Row>
			<Type>TACTICAL_ATTACK_EMBARKED_MILITARY_UNIT</Type>
			<OperationsCanRecruit>false</OperationsCanRecruit>
			<OffenseFlavorWeight>100</OffenseFlavorWeight>
			<Priority>110</Priority>
		</Row>
		<Row>
			<Type>TACTICAL_ATTACK_EMBARKED_CIVILIAN</Type>
			<OperationsCanRecruit>false</OperationsCanRecruit>
			<OffenseFlavorWeight>100</OffenseFlavorWeight>
			<Priority>70</Priority>
		</Row>
		<Row>
			<Type>TACTICAL_ATTACK_VERY_HIGH_PRIORITY_CIVILIAN</Type>
			<OperationsCanRecruit>false</OperationsCanRecruit>
			<OffenseFlavorWeight>100</OffenseFlavorWeight>
			<Priority>130</Priority>
		</Row>
		<Row>
			<Type>TACTICAL_ATTACK_HIGH_PRIORITY_CIVILIAN</Type>
			<OperationsCanRecruit>false</OperationsCanRecruit>
			<OffenseFlavorWeight>100</OffenseFlavorWeight>
			<Priority>100</Priority>
		</Row>
		<Row>
			<Type>TACTICAL_ATTACK_MEDIUM_PRIORITY_CIVILIAN</Type>
			<OperationsCanRecruit>false</OperationsCanRecruit>
			<OffenseFlavorWeight>100</OffenseFlavorWeight>
			<Priority>40</Priority>
		</Row>
		<Row>
			<Type>TACTICAL_ATTACK_LOW_PRIORITY_CIVILIAN</Type>
			<OperationsCanRecruit>false</OperationsCanRecruit>
			<OffenseFlavorWeight>100</OffenseFlavorWeight>
			<Priority>30</Priority>
		</Row>
	</TacticalMoves>
</GameData>
 
If you've modified a game file and want to restore it to its original state, all you need to do is delete the file, then go into Steam and tell it to verify your game files. It'll see that file is missing and restore it, no problems. The only way this doesn't work is if you pirated the game and so don't use Steam...

(And in case you haven't figured it out, this sort of situation is one of the many reasons you shouldn't be editing the core files directly. Make a mod, and then it's really easy to go back to the baseline game.)
 
If you've modified a game file and want to restore it to its original state, all you need to do is delete the file, then go into Steam and tell it to verify your game files. It'll see that file is missing and restore it, no problems. The only way this doesn't work is if you pirated the game and so don't use Steam...

(And in case you haven't figured it out, this sort of situation is one of the many reasons you shouldn't be editing the core files directly. Make a mod, and then it's really easy to go back to the baseline game.)

My copy is legit and thanks for the tip Spatzimaus. I am lost as far as modding CiV. Otherwise I would have added a biplane into my game already, it bugs me to no end that I don't know how. Especially, when I used to mod Civ 4.

@Historix69 thanks for the xml code I really appreciate it.

I am going to try to learn to mod before Gods and Kings comes out. At least how to add units. I know about downloading modbuddy and all that. After that I get lost as far as the procedure for adding a unit into CiV. And I get lost making my own personal mod with the tools. The only thing I can do is make maps, but I do not no how to make a mod for them and post them. I'll try to figure these things out.
 
I am going to try to learn to mod before Gods and Kings comes out. At least how to add units. I know about downloading modbuddy and all that. After that I get lost as far as the procedure for adding a unit into CiV. And I get lost making my own personal mod with the tools.

There's lots of tutorials on this site for you to follow, but the easiest thing to do is to look at other mods and take them apart. Adding a unit is pretty simple if you're going to reuse vanilla art defines. See Kael's modding guide.

If you ARE going to add custom unit art, realize Kael's guide is outdated, so it doesn't talk about ModBuddy's later builds and how they deal with the virtual file system. So you have to remember to go to the file properties in ModBuddy and set "Import into VFS" to "True" for the 4 art files (a .fxsxml, a .gr2, and 2 .dds's), and for civ5artdefines_units.xml and civ5artdefines_unitmembers.xml (which you'll have to copy in their entirety, then add your additions). Remember that as a result of this requirement, any mods that add unit art in this way will conflict with one another.

Good luck!
 
There's lots of tutorials on this site for you to follow, but the easiest thing to do is to look at other mods and take them apart. Adding a unit is pretty simple if you're going to reuse vanilla art defines. See Kael's modding guide.

If you ARE going to add custom unit art, realize Kael's guide is outdated, so it doesn't talk about ModBuddy's later builds and how they deal with the virtual file system. So you have to remember to go to the file properties in ModBuddy and set "Import into VFS" to "True" for the 4 art files (a .fxsxml, a .gr2, and 2 .dds's), and for civ5artdefines_units.xml and civ5artdefines_unitmembers.xml (which you'll have to copy in their entirety, then add your additions). Remember that as a result of this requirement, any mods that add unit art in this way will conflict with one another.

Good luck!

Thanks, I will give it a whirl. I'll start on this tomorrow and let you know how I do. I have a mod for a marine unit, I will disect that and learn.
 
Back
Top Bottom