<criteria> doesn't work in <FrontEndActions>

skalozubio

Chieftain
Joined
Dec 30, 2021
Messages
12
Hello.
I'm making a mod that translates other mods into russian language.
It's all okay when I localize mods in <InGameActions>. All works fine.
But, if I need translate a mod, that change something in <FrontEndActions>, I can't do it right.
1) If I put <Criteria> and <ModinUse> - my translation won't be loaded.
2) If I remove <Creiteria>, then translation will be load always, even if mod disabled.
For example, now I'm translating JNR's District Expansion - Aqueduct. It changes Rome description in the list of leaders.
If I put <Updatetext> with <Criteria> in <FronEndActions>, my translation won't load. And there will be JNR's english text.
If I remove <Criteria> translation, there will be my russian text. But always! Even if I disable JNR's Aqueduct mod.
I want the <FronEndActions> to work like the <InGameActions>, depending on whether the mod is enabled or not.
Who can tell how to solve this problem?
 
Try adding a LoadOrder to your UpdateText action that is higher than the mod you're translating.
It doesn't matter what values LoadOrder takes.
It just doesn't load files.
Seems like in FrontEndActions mod can't see which mods are enabled. It works only in InGameActions.
 
Top Bottom