I have problem when I wanted load customized file “ResearchChooser.xml” into basic game and a little changed same file when expansion (Rise and Fall) was choosen.
I am used this code in “modinfo” file.
This code define two criteria for basic game and for expansion.
This code load file of one’s choice of ruleset on start game. Properties LoadOrder mean load file last.
How do it in MODBUDDY?
In ModBuddy tab InGameAction you add ID = KUV_UI_MOD_Import_Expansion” (your name) Type = ImportFiles.
Tab criteria press button “ADD”. This open window “Change action criteria”. Press button “New”.
This open window “Edit criteria”. In field “Id” write whichever name for example “RULESET_EXPANSION_1”.
Press button “ADD”. This open window “Edit criterion” (criterion is table in db “Mods.sqlite”).
For field “Type” select possibility “RuleSetInUse” (Type = CriterionType field in “Mods.sqlite”). Press button “ADD”. This open window “Edit property”. Window has two fields “Name” and “Value”. In field “Value” write exact name of ruleset (RULESET_STANDARD or RULESET_EXPANSION_1).
But what write in field Name? After some hours useless test I found solution in db “Mods.sqlite” in table “CriterionProperties”. In field “Name” you must write exactly Value!!! Press button “OK” .
Still choose into tab files your customized file.
You use the same method for "KUV_UI_MOD_Import_Standard"
Done.
I'm sorry for bad english.
I am used this code in “modinfo” file.
Code:
<ActionCriteria>
<Criteria id="KUV_Expansion1">
<RuleSetInUse>RULESET_EXPANSION_1</RuleSetInUse>
</Criteria>
<Criteria id="KUV_Standard">
<RuleSetInUse>RULESET_STANDARD</RuleSetInUse>
</Criteria>
</ActionCriteria>
This code define two criteria for basic game and for expansion.
Code:
<ImportFiles id="KUV_UI_MOD_Import_Expansion">
<Properties>
<LoadOrder>10</LoadOrder>
</Properties>
<Criteria>KUV_Expansion1</Criteria>
<File>Lua/Replacement/ResearchChooser.xml</File>
</ImportFiles>
<ImportFiles id="KUV_UI_MOD_Import_Standard">
<Properties>
<LoadOrder>10</LoadOrder>
</Properties>
<Criteria>KUV_Standard</Criteria>
<File>Lua/Choosers/ResearchChooser.xml</File>
</ImportFiles>
This code load file of one’s choice of ruleset on start game. Properties LoadOrder mean load file last.
How do it in MODBUDDY?
In ModBuddy tab InGameAction you add ID = KUV_UI_MOD_Import_Expansion” (your name) Type = ImportFiles.
Tab criteria press button “ADD”. This open window “Change action criteria”. Press button “New”.
This open window “Edit criteria”. In field “Id” write whichever name for example “RULESET_EXPANSION_1”.
Press button “ADD”. This open window “Edit criterion” (criterion is table in db “Mods.sqlite”).
For field “Type” select possibility “RuleSetInUse” (Type = CriterionType field in “Mods.sqlite”). Press button “ADD”. This open window “Edit property”. Window has two fields “Name” and “Value”. In field “Value” write exact name of ruleset (RULESET_STANDARD or RULESET_EXPANSION_1).
But what write in field Name? After some hours useless test I found solution in db “Mods.sqlite” in table “CriterionProperties”. In field “Name” you must write exactly Value!!! Press button “OK” .
Still choose into tab files your customized file.
You use the same method for "KUV_UI_MOD_Import_Standard"
Done.
I'm sorry for bad english.