Page 1 of 1

Route threshold

Posted: Sun Mar 18, 2018 4:37 pm
by Lysimachos
Is there a chance of modding the route threshold?
And, if it is possible, how can I mod it only for my SP games, without affecting the MP settings?
Thank's a lot for any hint.

Re: Route threshold

Posted: Sun Mar 18, 2018 5:24 pm
by rbodleyscott
Lysimachos wrote:Is there a chance of modding the route threshold?
And, if it is possible, how can I mod it only for my SP games, without affecting the MP settings?
Thank's a lot for any hint.
You would have to quarantine the mod in a custom folder, because any script changes in the main build, even if the script logic made the change only affect SP games, would register as a script change and hence cause the warning to appear in MP.

Re: Route threshold

Posted: Sun Mar 18, 2018 6:32 pm
by Lysimachos
Thank's for the clarification.
But which is the folder that contains the rout threshold data?

Re: Route threshold

Posted: Sun Mar 18, 2018 6:35 pm
by rbodleyscott
Lysimachos wrote:Thank's for the clarification.
But which is the folder that contains the rout threshold data?
For what? Custom Battles? Campaigns? Epic Battles?

It is held in different places for each of these.

Re: Route threshold

Posted: Sun Mar 18, 2018 8:04 pm
by Lysimachos
I would be interested in modding just the campaign data, Richard.

Re: Route threshold

Posted: Mon Mar 19, 2018 7:52 am
by rbodleyscott
Lysimachos wrote:I would be interested in modding just the campaign data, Richard.
1) Make a copy of

/Campaigns/2MPSRiseOfRome

in

/Documents/My Games/FieldOfGlory2/CAMPAIGNS

2) Change the IDS_CAMPAIGN_NAME string in Text1.txt in your custom folder.

3) Copy

/Data/Battles/Scripts/Slith_RandomMap2.bsf

into your custom folder in

/Data/Battles/Scripts/

4) Change the first 4 parameters in line 769 of the that file.

StandardCampaignVictoryConditions(60, 40, 60, 40, drawdecider, MPgame);

These numbers are the breakpoints in terms of Percent unrouted, not the percent routed, and they represent in order:

The lower breakpoint for the player side
The higher breakpoint for the player side
The lower breakpoint for the AI side
The higher breakpoint for the AI side

5) Add modified versions of the following string to the text1.txt file in your custom folder, to match your new breakpoints:

IDS_SCENUI_VC_STANDARD, "Rout the enemy army by:~a) Routing at least 40% of their troops and ",
IDS_SCENUI_VC_STANDARD1, "% more than you have lost, or~b) Routing 60% of their troops.",

6) If you find that your new breakpoints don't actually work, you may need to also copy

/Data/Battles/Scripts/$DEFAULT.BSF

into your custom folder in

/Data/Battles/Scripts/

to force the mod to read the Slith_RandomMap2.BSF file.

However, this hopefully will not be necessary. If it turns out you do need it, it will mean that you may have to copy the new version of this file across each time there is a game update.

Re: Route threshold

Posted: Mon Mar 19, 2018 11:36 pm
by Lysimachos
Thank's a lot Richard.

You're really a software wizard and an helpful developer!!!
In very few games is possible to find out so much kindness and courtesy ... :D