• We are currently performing site maintenance, parts of civfanatics are currently offline, but will come back online in the coming days. For more updates please see here.

Possible to disable/remove unit?

nightstorms

Chieftain
Joined
Aug 23, 2009
Messages
9
I searched the forum for "remove unit from game" but I could not find what I was looking for, if it is even possible.

I installed the SDK, thinking it would be like a WYSIWYG-editor but instead it seems it's just another XML-editor. So I went back to UltraEdit. But, my issue is I am trying to remove the XCOM unit from the game. This is my first time modding Civ 5 so I am kind of fumbling a bit, please bear with me.

I've tried different codes, and this is my latest which I thought would work. I've also tried withough the update-tags for all the categories except the bottom one. Is it not possible to just rem-out the lines like this?

Code:
<?xml version="1.0" encoding="utf-8"?>

<GameData>

		<Update>
		<!-- <Row>
			<Class>UNITCLASS_XCOM_SQUAD</Class>
			<Type>UNIT_XCOM_SQUAD</Type>
			<PrereqTech>TECH_NANOTECHNOLOGY</PrereqTech>
			<Combat>110</Combat>
			<Cost>400</Cost>
			<FaithCost>800</FaithCost>
			<RequiresFaithPurchaseEnabled>true</RequiresFaithPurchaseEnabled>
			<Moves>2</Moves>
			<CombatClass>UNITCOMBAT_GUN</CombatClass>
			<Domain>DOMAIN_LAND</Domain>
			<DefaultUnitAI>UNITAI_PARADROP</DefaultUnitAI>
			<Description>TXT_KEY_UNIT_XCOM_SQUAD</Description>
			<Civilopedia>TXT_KEY_CIV5_XCOM_SQUAD_TEXT</Civilopedia>
			<Strategy>TXT_KEY_UNIT_XCOM_SQUAD_STRATEGY</Strategy>
			<Help>TXT_KEY_UNIT_HELP_XCOM_SQUAD</Help>
			<MilitarySupport>true</MilitarySupport>
			<MilitaryProduction>true</MilitaryProduction>
			<Pillage>true</Pillage>
			<AdvancedStartCost>50</AdvancedStartCost>
			<XPValueAttack>3</XPValueAttack>
			<XPValueDefense>3</XPValueDefense>
			<UnitArtInfo>ART_DEF_UNIT_XCOM_SQUAD</UnitArtInfo>
			<UnitFlagAtlas>EXPANSION2_UNIT_FLAG_ATLAS</UnitFlagAtlas>
			<UnitFlagIconOffset>15</UnitFlagIconOffset>
			<IconAtlas>EXPANSION2_UNIT_ATLAS</IconAtlas>
			<PortraitIndex>15</PortraitIndex>
			<MoveRate>QUADRUPED</MoveRate>
		</Row> -->
		</Update>

		<Update>
		<!-- <Row> -->
			<!-- <UnitType>UNIT_PARATROOPER</UnitType> -->
			<!-- <UnitClassType>UNITCLASS_XCOM_SQUAD</UnitClassType> -->
		<!-- </Row> -->
			<!-- <Row>
			<UnitType>UNIT_XCOM_SQUAD</UnitType>
			<UnitAIType>UNITAI_PARADROP</UnitAIType>
		</Row> -->
			<!-- <Row>
			<UnitType>UNIT_XCOM_SQUAD</UnitType>
			<FlavorType>FLAVOR_OFFENSE</FlavorType>
			<Flavor>16</Flavor>
		</Row>
		<Row>
			<UnitType>UNIT_XCOM_SQUAD</UnitType>
			<FlavorType>FLAVOR_DEFENSE</FlavorType>
			<Flavor>12</Flavor>
		</Row>
		<Row>
			<UnitType>UNIT_XCOM_SQUAD</UnitType>
			<FlavorType>FLAVOR_AIR</FlavorType>
			<Flavor>8</Flavor>
		</Row>
		<Row>
			<UnitType>UNIT_XCOM_SQUAD</UnitType>
			<FlavorType>FLAVOR_RECON</FlavorType>
			<Flavor>4</Flavor>
		</Row> -->
			<!-- <Row>
			<UnitType>UNIT_XCOM_SQUAD</UnitType>
			<PromotionType>PROMOTION_EXTENDED_PARADROP</PromotionType>
		</Row> -->
		</Update>

		<Update>
		<!-- <Row>
			<Type>UNITCLASS_XCOM_SQUAD</Type>
			<Description>TXT_KEY_UNIT_XCOM_SQUAD</Description>
			<DefaultUnit>UNIT_XCOM_SQUAD</DefaultUnit>
		</Row> -->
		</Update>

	<Language_en_US>
		<Update>
			<Where Tag="TXT_KEY_TECH_NANOTECHNOLOGY_HELP"/>
			<Set Text=Allows you to build the [COLOR_POSITIVE_TEXT]SS Stasis Chamber[ENDCOLOR], one of the Spaceship parts necessary to win a [COLOR_POSITIVE_TEXT]Science Victory[ENDCOLOR]./>
		</Update>
	</Language_en_US>
	
</GameData>
 
Is it not possible to just rem-out the lines like this?
No.

You will actually need to delete the unit from the database. There are several mods that you can use as an example - including one in the SDK called "Example_RemovingUnit" (C:\Program Files (x86)\Steam\SteamApps\common\Sid Meier's Civilization V SDK\ModBuddy Examples\Example_RemovingUnit)
 
No.

You will actually need to delete the unit from the database. There are several mods that you can use as an example - including one in the SDK called "Example_RemovingUnit" (C:\Program Files (x86)\Steam\SteamApps\common\Sid Meier's Civilization V SDK\ModBuddy Examples\Example_RemovingUnit)

That mod is the exact same thing that was posted in Nutty's link.

Here's the example


<?xml version="1.0" encoding="UTF-8"?>

<!-- Created by ModBuddy on 9/4/2010 12:18:41 PM -->
-<GameData>
<!-- Remove the Giant Death Robot from the Units table. -->

<!-- This pains me very much :( -->
-<Units> <Delete Type="UNIT_MECH"/> </Units>
<!-- Remove any entries that reference the mech in Units. -->
-<UnitClasses> <Delete Type="UNITCLASS_MECH"/> </UnitClasses> -<Unit_AITypes> <Delete UnitType="UNIT_MECH"/> </Unit_AITypes> -<Unit_FreePromotions> <Delete UnitType="UNIT_MECH"/> </Unit_FreePromotions> -<Unit_Flavors> <Delete UnitType="UNIT_MECH"/> </Unit_Flavors> -<Unit_ResourceQuantityREquirements> <Delete UnitType="UNIT_MECH"/> </Unit_ResourceQuantityREquirements> -<UnitGameplay2DScripts> <Delete UnitType="UNIT_MECH"/> </UnitGameplay2DScripts> </GameData>

Here's what I did


<?xml version="1.0" encoding="UTF-8"?>

<!-- Created by ModBuddy on 9/4/2010 12:18:41 PM -->
-<GameData>
<!-- Remove the XCom Squad from the Units table. -->

<!-- This pains me very much :( -->
-<Units> <Delete Type="UNIT_XCOM_SQUAD"/> </Units>
<!-- Remove any entries that reference the mech in Units. -->
-<UnitClasses> <Delete Type="UNITCLASS_XCOM_SQUAD"/> </UnitClasses> -<Unit_AITypes> <Delete UnitType="UNIT_XCOM_SQUAD"/> </Unit_AITypes> -<Unit_FreePromotions> <Delete UnitType="UNIT_XCOM_SQUAD"/> </Unit_FreePromotions> -<Unit_Flavors> <Delete UnitType="UNIT_XCOM_SQUAD"/> </Unit_Flavors> -<Unit_ResourceQuantityREquirements> <Delete UnitType="UNIT_XCOM_SQUAD"/> </Unit_ResourceQuantityREquirements> -<UnitGameplay2DScripts> <Delete UnitType="UNIT_XCOM_SQUAD"/> </UnitGameplay2DScripts> </GameData>

I don't know what I'm doing wrong.
 
Did you build it in ModBuddy, enable it in the Mods Browser, NOT PRESS BACK, but started a game from the Next, Single Player, Setup Game menus
 
Did you build it in ModBuddy, enable it in the Mods Browser, NOT PRESS BACK, but started a game from the Next, Single Player, Setup Game menus

After fudging around in ModBuddy three or four times, I finally got it to work. No idea what exactly I did to make it work, but I'm not arguing. Thank you for your help.
 
I tried to do same.. and same thing happen.. it dont work.

any info of what you did to make it work ?
 
Zaniez,
You haven't provided enough information for anyone to help meaningfully. Why don't you zip up your mod (the one in your mods folder, not your ModBuddy project--if you're using ModBuddy) and attach it to a post here?
 
Hi, i am having similar trouble with removing xcoms squads in my games. i have little to no modding experience, however i have watched modding tutorials for civ 5 but have had no luck with the xcoms. i have used the example remove Giant Death Robot "template" that comes in Modbuddy, and have replaced "MECH" with "XCOM_SQUAD" however it does not seem to work when i test it in civ 5 games. I also check other mods that remove both giant Death Robot and Xcoms , and removed the Giant death robot entries but again nothing appears to happen.
He what i've done so far......
Spoiler :

<?xml version="1.0" encoding="utf-8"?>
<!-- Created by ModBuddy on 3/27/2014 12:53:53 AM -->
<GameData>
<UnitClasses>
<Delete DefaultUnit="UNIT_XCOM_SQUAD"/>
</UnitClasses>
<Units>
<Delete Type="UNIT_XCOM_SQUAD"/>
</Units>
<Unit_AITypes>
<Delete UnitType="UNIT_XCOM_SQUAD"/>
</Unit_AITypes>
<Unit_Flavors>
<Delete UnitType="UNIT_XCOM_SQUAD"/>
</Unit_Flavors>
<Unit_FreePromotions>
<Delete UnitType="UNIT_XCOM_SQUAD"/>
</Unit_FreePromotions>
<Unit_ClassUpgrades>
<Delete UnitClassType="UNITCLASS_XCOM_SQUAD"/>
</Unit_ClassUpgrades>
<Language_en_US>
<Update>
<Set Text="Allows you to build the [COLOR_NEGATIVE_TEXT]XCOM Squad (Currently Locked)[ENDCOLOR], and the [COLOR_POSITIVE_TEXT]SS Stasis Chamber[ENDCOLOR], one of the Spaceship parts necessary to win a [COLOR_POSITIVE_TEXT]Science Victory[ENDCOLOR]."/>
<Where Tag="TXT_KEY_TECH_NANOTECHNOLOGY_HELP"/>
</Update>
</Language_en_US>
</GameData>
[/Any help would be much appreciated.
 
Back
Top Bottom