Updating existing social policy description

igorsrs

Chieftain
Joined
Sep 28, 2016
Messages
36
Location
Brazilian Empire
I'm building a mod to the "Rationalism" social policy, to make scaling bonuses.
I found no big issues for the machanics of the mod itself, but I got no success into updating its description text.
Tried Delete followed by insert "Row"... tried separating delete and insert into different files....
Tried an update....
Nothing works... the old text is still there.

This was my last try...

Code:
<GameData>
    <LocalizedText>
        <Update>
            <Where Tag="LOC_POLICY_RATIONALISM_DESCRIPTION"/>
            <Set>
                <Text>Extra [ICON_Science] Science from buildings in Campuses: +5% for each population (up to +150%), +10% for each adjacency bonus (up to +50%).</Text>
            </Set>
        </Update>
    </LocalizedText>
</GameData>
 
Are you running either of the two Expansions, and if so, do you have a LoadOrder value in your UpdateText action ?

Both Expansions first delete the LOC_POLICY_RATIONALISM_DESCRIPTION Tag and then recreate it as needed for the Expansion.

If you have no LoadOrder value for your action, then your changes may be getting over-written by the Expansions.

The other common solution to these sorts of problems is to re-direct the Tag the game uses for the Ingame Text
Code:
<GameData>
	<Policies>
		<Update>
			<Where PolicyType="POLICY_RATIONALISM" />
			<Set Description="LOC_POLICY_RATIONALISM_DESCRIPTION_NEW" />
		</Update>
	</Policies>
</GameData>
You then define the new Tag in <LocalizedText>. Your UpdateDatabase action that re-drects the Tag to be used still needs to have a LoadOrder setting of at least 300 to ensure it loads into the game after both Expansions load.
 
Back
Top Bottom