How to change Policy Name?

dartmor

Chieftain
Joined
Oct 23, 2010
Messages
55
Location
Russia
I need to re-work Policy Branches, and i've started by changing their names ( Policy Branches names ). But my script doesn't work.

This is a test script, set VFS true and OnModActivated/UpdateDataBase

<GameData>
<Language_en_US>
<Update>
<Where Tag="TXT_KEY_CIV5_POLICY_COMMERCE_HEADING"/>
<Set Text="Untradition"/>
</Update>
<Update>
<Where Tag="TXT_KEY_POLICY_COMMERCE_HELP"/>
<Set Text="Untradition"/>
</Update>
<Update>
<Where Tag="TXT_KEY_POLICY_COMMERCE_TEXT"/>
<Set Text="Untradition"/>
</Update>
<Update>
<Where Tag="TXT_KEY_SOCIALPOLICY_COMMERCE_HEADING3_BODY"/>
<Set Text="Untradition"/>
</Update>
<Update>
<Where Tag="TXT_KEY_SOCIALPOLICY_COMMERCE_HEADING3_TITLE"/>
<Set Text="Untradition"/>
</Update>
</Language_en_US>
</GameData>

I've also tried different approaches and i am not sure what's the problem. I have a guess, that because i have Gods&Kings + Brave New World, maybe the problem is in wrong path to game, is it possible?
 
What do the logs say (see 1st link in my sig)

Is the mod built and deployed? Are you sure UpdateDatabase is set? BTW you don't need VFS=true (see 3rd link in my sig)

Rather than pasting code, attach the actual mod the game is reading (see second link in my sig) - it saves us having to copy/paste the code into our own mod/test files
 
Ok, i enabled logging. I am also trying to change Warrior Code policy, so it gives not a General for free, but a Scout. I've tried to give Aristocracy extra 5 culture per turn, just to test, and it worked. So i guess my code writing is correct. But now with scout instead of general, it doesn't work.
 

Attachments

  • Advanced Civilization (v 1).zip
    3.5 KB · Views: 73
Oh, it worked. That's odd. I just separated WarriorCode.xml to 3 different xml files.
 
This is no good since UNIT_SCOUT is not a member of UnitCombatInfos:
Code:
<Set UnitCombatType="UNIT_SCOUT"/>
try
Code:
<Policy_UnitCombatProductionModifiers>
	<Delete PolicyType="POLICY_WARRIOR_CODE" />
	<Row>
		<PolicyType>POLICY_WARRIOR_CODE</PolicyType>
		<UnitCombatType>UNITCOMBAT_RECON</UnitCombatType>
		<ProductionModifier>100</ProductionModifier>
	</Row>
</Policy_UnitCombatProductionModifiers>
 
Top Bottom