Route threshold

Post Reply
Lysimachos
Colonel - Fallschirmjäger
Colonel - Fallschirmjäger
Posts: 1415
Joined: Tue Dec 08, 2009 9:38 am
Location: Italy

Route threshold

Post 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.
"Audentis fortuna iuvat"
- Virgilius

(Good luck favours the brave)
rbodleyscott
Field of Glory 2
Field of Glory 2
Posts: 28323
Joined: Sun Dec 04, 2005 6:25 pm

Re: Route threshold

Post 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.
Richard Bodley Scott

Image
Lysimachos
Colonel - Fallschirmjäger
Colonel - Fallschirmjäger
Posts: 1415
Joined: Tue Dec 08, 2009 9:38 am
Location: Italy

Re: Route threshold

Post by Lysimachos »

Thank's for the clarification.
But which is the folder that contains the rout threshold data?
"Audentis fortuna iuvat"
- Virgilius

(Good luck favours the brave)
rbodleyscott
Field of Glory 2
Field of Glory 2
Posts: 28323
Joined: Sun Dec 04, 2005 6:25 pm

Re: Route threshold

Post 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.
Richard Bodley Scott

Image
Lysimachos
Colonel - Fallschirmjäger
Colonel - Fallschirmjäger
Posts: 1415
Joined: Tue Dec 08, 2009 9:38 am
Location: Italy

Re: Route threshold

Post by Lysimachos »

I would be interested in modding just the campaign data, Richard.
"Audentis fortuna iuvat"
- Virgilius

(Good luck favours the brave)
rbodleyscott
Field of Glory 2
Field of Glory 2
Posts: 28323
Joined: Sun Dec 04, 2005 6:25 pm

Re: Route threshold

Post 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.
Richard Bodley Scott

Image
Lysimachos
Colonel - Fallschirmjäger
Colonel - Fallschirmjäger
Posts: 1415
Joined: Tue Dec 08, 2009 9:38 am
Location: Italy

Re: Route threshold

Post 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
"Audentis fortuna iuvat"
- Virgilius

(Good luck favours the brave)
Post Reply

Return to “Field of Glory II: Modding”