1. We have added a Gift Upgrades feature that allows you to gift an account upgrade to another member, just in time for the holiday season. You can see the gift option when going to the Account Upgrades screen, or on any user profile screen.
    Dismiss Notice

[Help] No changes taking effect

Discussion in 'Civ5 - Creation & Customization' started by Angryr, Jul 12, 2014.

  1. Angryr

    Angryr Chieftain

    Joined:
    Jul 12, 2014
    Messages:
    39
    Gender:
    Male
    Location:
    Indiana, USA
    I'm trying to create a social policy mod.
    • Created the mod in ModBuddy named "SocialChoice"
    • Added the folders & file "XML/GameInfo/SocialChoice_Policies.xml"
    • Set the file to "UpdateDatabase" "OnModActivated"
    • Coded all my policy changes for the Honor Tree in XML
    • Validated the XML on multiple online validators (all checked out).
    • Even tried to set "Import into VFS" to "True"
    • Published the mod
    • Subscribed to the mod
    • Loaded the mod (no I never hit 'back')
    • Started game and none of the changes took effect. (Before I did my honor policy changes I experimented with adding the effect of gaining a settler upon accepting "Tradition" tree and had it working successfully. Afterwards I removed it and started on the honor changes.)
    Spoiler :
    Code:
    <?xml version="1.0" encoding="utf-8"?>
    <!-- Created by ModBuddy on 7/11/2014 10:27:08 PM -->
    <GameData>
    	<!--
    		 Honor: Openner 
    			"+33% combat bonus against barbarians. Notifications will be provided when new barbarian encampments spawn in revealed territory."
    			"Gain culture for each barbarian unit killed."
    		 Honor: Finisher 
    			"Gain gold for each enemy unit killed."
    			"A Great General appears outside the captial."
    			"Citadels now yield +1 Gold and +1 Culture."
    		
    		 Honor: Professional Army 
    			"Gold cost of upgrading Military Units reduced by 33%."
    			"All units become professional receiving a bonus to combat strength of 5%"
    		 Honor: Military Tradition 
    			"Construct Barracks, Armories, & Military Academies 50% faster" to "Military Tradition".
    			"+15% Production when training melee units"
    		 Honor: Military Caste 
    			"Each City with a garrison increases local city happiness by 1 and culture by 2."
    			"A Great General appears outside the capital and Great Generals are earned 50% faster."
    		 Honor: Discipline 
    			"+15% combat strength for melee units which have another military unit in an adjacent tile."
    			"+15% ranged combat strength when stationed on hills (or mountains)."
    		 Honor: Warrior Code 
    			"Military Units gain 50% more experience from combat."
    			"Units heal +5 HP upon killing an enemy unit."
    	-->
    	<Policies>
    		<Update>
    			<Where Type="POLICY_HONOR" />
    			<Set BarbarianCombatBonus="33" />
    		</Update>
    		<Update>
    			<Where Type="POLICY_HONOR_FINISH" />
    			<Set IncludesOneShotFreeUnits="1" />
    		</Update>
    		<Update>
    			<Where Type="POLICY_WARRIOR_CODE" />
    			<Set ExpModifier="50" />
    		</Update>
    		<Update>
    			<Where Type="POLICY_MILITARY_CASTE" />
    			<Set 
    				GreatGeneralRateModifier="50"
    				IncludesOneShotFreeUnits="1" />
    		</Update>
    		<Update>
    			<Where Type="POLICY_MILITARY_TRADITION" />
    			<Set ExpModifier="0" />
    		</Update>
    		<Upgrade>
    			<Where Type="POLICY_PROFESSIONAL_ARMY" />
    			<Set UnitUpgradeCostMod="-33" />
    		</Upgrade>
    	</Policies>
    	<UnitPromotions>
    		<Row>
    			<Type>PROMOTION_PROFESSIONAL</Type>
    			<Description>TXT_KEY_PROMOTION_PROFESSIONAL</Description>
    			<Help>TXT_KEY_PROMOTION_PROFESSIONAL_HELP</Help>
    			<Sound>AS2D_IF_LEVELUP</Sound>
    			<CannotBeChosen>true</CannotBeChosen>
    			<CombatPercent>5</CombatPercent>
    			<PortraitIndex>59</PortraitIndex>
    			<IconAtlas>PROMOTION_ATLAS</IconAtlas>
    			<PediaType>PEDIA_SHARED</PediaType>
    			<PediaEntry>TXT_KEY_PROMOTION_PROFESSIONAL</PediaEntry>
    		</Row>
    		<Row>
    			<Type>PROMOTION_DISCIPLINED_RANGED_BONUS</Type>
    			<Description>TXT_KEY_PROMOTION_DISCIPLINED_RANGED</Description>
    			<Help>TXT_KEY_PROMOTION_DISCIPLINED_RANGED_HELP</Help>
    			<Sound>AS2D_IF_LEVELUP</Sound>
    			<CannotBeChosen>true</CannotBeChosen>
    			<PortraitIndex>59</PortraitIndex>
    			<IconAtlas>ABILITY_ATLAS</IconAtlas>
    			<PediaType>PEDIA_SHARED</PediaType>
    			<PediaEntry>TXT_KEY_PROMOTION_DISCIPLINE</PediaEntry>
    		</Row>
    		<Row>
    			<Type>PROMOTION_MINOR_HEAL_ON_KILL</Type>
    			<Description>TXT_KEY_PROMOTION_MINOR_HEAL_ON_KILL</Description>
    			<Help>TXT_KEY_PROMOTION_MINOR_HEAL_ON_KILL_HELP</Help>
    			<Sound>AS2D_IF_LEVELUP</Sound>
    			<HPHealedIfDestroyEnemy>5</HPHealedIfDestroyEnemy>
    			<CannotBeChosen>true</CannotBeChosen>
    			<PortraitIndex>59</PortraitIndex>
    			<IconAtlas>ABILITY_ATLAS</IconAtlas>
    			<PediaType>PEDIA_SHARED</PediaType>
    			<PediaEntry>TXT_KEY_PROMOTION_MINOR_HEAL_ON_KILL</PediaEntry>
    		</Row>
    		<Update>
    			<Where Type="PROMOTION_ADJACENT_BONUS" />
    			<Set AdjacentMod="15" />
    		</Update>
    	</UnitPromotions>
    	<Policy_FreeUnitClasses>
    		<Row>
    			<PolicyType>POLICY_HONOR_FINISH</PolicyType>
    			<UnitClassType>UNITCLASS_GREAT_GENERAL</UnitClassType>
    			<Count>1</Count>
    		</Row>
    		<Row>
    			<PolicyType>POLICY_MILITARY_CASTE</PolicyType>
    			<UnitClassType>UNITCLASS_GREAT_GENERAL</UnitClassType>
    			<Count>1</Count>
    		</Row>
    	</Policy_FreeUnitClasses>
    	<Policy_ImprovementYieldChanges>
    		<Row>
    			<PolicyType>POLICY_HONOR_FINISH</PolicyType>
    			<ImprovementType>IMPROVEMENT_CITADEL</ImprovementType>
    			<YieldType>YIELD_GOLD</YieldType>
    			<Yield>1</Yield>
    		</Row>
    	</Policy_ImprovementYieldChanges>
    	<Policy_ImprovementCultureChanges>
    		<Row>
    			<PolicyType>POLICY_HONOR_FINISH</PolicyType>
    			<ImprovementType>IMPROVEMENT_CITADEL</ImprovementType>
    			<CultureChange>1</CultureChange>
    		</Row>
    	</Policy_ImprovementCultureChanges>
    	<Policy_FreePromotions>
    		<Row>
    			<PolicyType>POLICY_PROFESSIONAL_ARMY</PolicyType>
    			<PromotionType>PROMOTION_PROFESSIONAL</PromotionType>
    		</Row>
    		<Row>
    			<PolicyType>POLICY_DISCIPLINE</PolicyType>
    			<PromotionType>PROMOTION_DISCIPLINED_RANGED_BONUS</PromotionType>
    		</Row>
    		<Row>
    			<PolicyType>POLICY_WARRIOR_CODE</PolicyType>
    			<PromotionType>PROMOTION_MINOR_HEAL_ON_KILL</PromotionType>
    		</Row>
    	</Policy_FreePromotions>
    	<Policy_BuildingClassProductionModifiers>
    		<Row>
    			<PolicyType>POLICY_MILITARY_TRADITION</PolicyType>
    			<BuildingClassType>BUILDINGCLASS_BARRACKS</BuildingClassType>
    			<ProductionModifier>50</ProductionModifier>
    		</Row>
    		<Row>
    			<PolicyType>POLICY_MILITARY_TRADITION</PolicyType>
    			<BuildingClassType>BUILDINGCLASS_ARMORY</BuildingClassType>
    			<ProductionModifier>50</ProductionModifier>
    		</Row>
    		<Row>
    			<PolicyType>POLICY_MILITARY_TRADITION</PolicyType>
    			<BuildingClassType>BUILDINGCLASS_MILITARY_ACADEMY</BuildingClassType>
    			<ProductionModifier>50</ProductionModifier>
    		</Row>
    	</Policy_BuildingClassProductionModifiers>
    	<Policy_UnitProductionModifiers> <!-- <Policy_UnitCombatProductionModifiers> -->
    		<Row>
    			<PolicyType>POLICY_MILITARY_TRADITION</PolicyType>
    			<UnitCombatType>UNITCOMBAT_MELEE</UnitCombatType>
    			<ProductionModifier>15</ProductionModifier>
    		</Row>
    	</Policy_UnitProductionModifiers> <!-- </Policy_UnitCombatProductionModifiers> -->
    	<UnitPromotions_Terrains>
    		<Row>
    			<PromotionType>PROMOTION_DISCIPLINED_RANGED_BONUS</PromotionType>
    			<FeatureType>FEATURE_HILL</FeatureType>
    			<Attack>15</Attack>
    		</Row>
    		<Row>
    			<PromotionType>PROMOTION_DISCIPLINED_RANGED_BONUS</PromotionType>
    			<FeatureType>FEATURE_MOUNTAIN</FeatureType>
    			<Attack>15</Attack>
    		</Row>
    	</UnitPromotions_Terrains>
    	<UnitPromotions_UnitCombats>
    		<Row>
    			<PromotionType>PROMOTION_DISCIPLINED_RANGED_BONUS</PromotionType>
    			<UnitCombatType>UNITCOMBAT_ARCHER</UnitCombatType>
    		</Row>
    	</UnitPromotions_UnitCombats>
    	<Language_en_US>
    		<Update>
    			<Where Tag="TXT_KEY_POLICY_HONOR_HELP" />
    			<Set Text="[COLOR_POSITIVE_TEXT]Honor[ENDCOLOR] improves the effectiveness of one's army in a variety of ways.[NEWLINE][NEWLINE]Adopting Honor gives a +33% combat bonus VS Barbarians, and notifications will be provided when new Barbarian Encampments spawn in revealed territory. Gain [ICON_CULTURE] Culture for the empire from each barbarian killed.[NEWLINE][NEWLINE]Adopting all policies in the Honor tree will grant [ICON_GOLD] Gold for each enemy unit killed and Citadels now yield +1 [ICON_GOLD] and +1 [ICON_CULTURE]." />
    		</Update>
    		<Row Tag="TXT_KEY_PROMOTION_PROFESSIONAL">
    			<Text>Professional</Text>
    		</Row>
    		<Row Tag="TXT_KEY_PROMOTION_PROFESSIONAL_HELP">
    			<Text>+5% [ICON_STRENGTH] Combat Strength.</Text>
    		</Row>
    		<Update>
    			<Where Tag="TXT_KEY_POLICY_PROFESSIONAL_ARMY_HELP" />
    			<Set Text="[COLOR_POSITIVE_TEXT]Professional Army[ENDCOLOR][NEWLINE][ICON_GOLD] Gold cost of upgrading Military Units reduced by 33% and all units become professional receiving a bonus to combat strength of 5%." />
    		</Update>
    		<Row Tag="TXT_KEY_PROMOTION_DISCIPLINED_RANGED">
    			<Text>Ranged Discipline</Text>
    		</Row>
    		<Row Tag="TXT_KEY_PROMOTION_DISCIPLINED_RANGED_HELP">
    			<Text>+15% [ICON_STRENGTH] Ranged Combat Strength when stationed on hills (or mountains).</Text>
    		</Row>
    		<Update>
    			<Where Tag="TXT_KEY_POLICY_DISCIPLINE_HELP" />
    			<Set Text="[COLOR_POSITIVE_TEXT]Discipline[ENDCOLOR][NEWLINE]+15% [ICON_STRENGTH] combat strength for military Units which have another military Unit in an adjacent tile and +15% ranged combat strength when stationed on hills (or mountains)." />
    		</Update>
    		<Update>
    			<Where Tag="TXT_KEY_PROMOTION_DISCIPLINE_HELP" />
    			<Set Text="+15% [ICON_STRENGTH] Combat Strength when adjacent to a friendly Unit." />
    		</Update>
    		<Update>
    			<Where Tag="TXT_KEY_POLICY_MILITARY_CASTE_HELP" />
    			<Set Text="[COLOR_POSITIVE_TEXT]Military Caste[ENDCOLOR][NEWLINE]Each City with a garrison increases empire [ICON_HAPPINESS_1] Happiness by 1 and [ICON_CULTURE] Culture by 2.[NEWLINE]A Great General appears outside the capital and Great Generals are earned 50% faster." />
    		</Update>
    		<Update>
    			<Where Tag="TXT_KEY_POLICY_MILITARY_TRADITION_HELP" />
    			<Set Text="[COLOR_POSITIVE_TEXT]Military Tradition[ENDCOLOR][NEWLINE]Construct Barracks, Armories, and Military Academies 50% faster and +15% Production when training melee units." />
    		</Update>
    		<Row Tag="TXT_KEY_PROMOTION_MINOR_HEAL_ON_KILL">
    			<Text>Minor Heal On-Kill</Text>
    		</Row>
    		<Row Tag="TXT_KEY_PROMOTION_MINOR_HEAL_ON_KILL_HELP">
    			<Text>Unit heals for 5 HP upon killing an enemy unit.</Text>
    		</Row>
    		<Update>
    			<Where Tag="TXT_KEY_POLICY_WARRIOR_CODE_HELP" />
    			<Set Text="[COLOR_POSITIVE_TEXT]Warrior Code[ENDCOLOR][NEWLINE]Military Units gain 50% more Experience from combat and units heal +5 HP upon killing an enemy unit." />
    		</Update>
    		<Update>
    			<Set Text="WHAT THE ."/>
    			<Where Tag="TXT_KEY_LEADER_ALEXANDER"/>
    		</Update>
    	</Language_en_US>
    </GameData>
    


    I event attempted to change "Alexander" to "WHAT THE ." and that's not even taking affect.

    Does anyone have any ideas on what could be going wrong?

    I'm new to Civ5 Modding but have been reading up on every guide I can find nothing is helping with this issue.
     

Share This Page