I have a small balance mod that has been working like a charm for quite a while.
Last night, I came with the brilliant idea that Water Mills would be a lot more useful if they added Production rather than Food to farmable bonus resources.
So off I went and wrote the following:
code to update the Water Mill modifiers to add production rather than food
code to update the localized text for the Water Mill
And just for clarity, here is my mod setup
My mod continues to work 100% just fine EXCEPT for this new change, neither the localized text nor the modifier argument changes are taking effect. I can't find any failure in database.log, so I am at a loss as to why this is a problem.
Last night, I came with the brilliant idea that Water Mills would be a lot more useful if they added Production rather than Food to farmable bonus resources.
So off I went and wrote the following:
code to update the Water Mill modifiers to add production rather than food
Code:
UPDATE ModifierArguments
SET
Value = 'YIELD_PRODUCTION'
WHERE
Name = 'YieldType'
AND (
ModifierId = 'WATERMILL_ADDRICEFOOD'
OR ModifierId = 'WATERMILL_ADDWHEATYIELD'
OR ModifierId = 'WATERMILL_ADDMAIZEYIELD'
);
code to update the localized text for the Water Mill
Code:
UPDATE LocalizedText
SET
Text = 'Bonus resources improved by Farms gain +1 [ICON_Production] Production each. City must be adjacent to a River.'
WHERE
Language = 'en_US'
AND Tag = 'LOC_BUILDING_WATER_MILL_DESCRIPTION';
And just for clarity, here is my mod setup
Code:
<FrontEndActions>
<UpdateText id="RunLocalization">
<File>Core/Localization.sql</File>
</UpdateText>
</FrontEndActions>
<InGameActions>
<UpdateDatabase id="RunCode">
<File>Core/Code.sql</File>
</UpdateDatabase>
</InGameActions>
My mod continues to work 100% just fine EXCEPT for this new change, neither the localized text nor the modifier argument changes are taking effect. I can't find any failure in database.log, so I am at a loss as to why this is a problem.