How to disable garrisons?

Sengoku Jidai: Shadow of the Shogun is a turn-based tactical and strategic game set during this turbulent time; primarily focusing on the Japanese Warring States period and Japanese Invasion of Korea. Other armies from East Asia are also made available to simulate different conflicts across the region.
Post Reply
ReneTS
Lance Corporal - Panzer IA
Lance Corporal - Panzer IA
Posts: 18
Joined: Mon May 23, 2016 3:33 pm

How to disable garrisons?

Post by ReneTS »

Hi

Is it possible to mod the appearance of garrisons when a battle is joined, so they never show up, or in much lower strength?
rbodleyscott
Field of Glory 2
Field of Glory 2
Posts: 28287
Joined: Sun Dec 04, 2005 6:25 pm

Re: How to disable garrisons?

Post by rbodleyscott »

ReneTS wrote:Hi

Is it possible to mod the appearance of garrisons when a battle is joined, so they never show up, or in much lower strength?
It is possible to mod almost anything, but will require some scripting.

To do what you want, you would just need to alter the GetProvinceAvailableMilitiaPoints() function in CampaignTools.BSF.

We would recommend that you do not do this in the main installation.

What you should do is go into the Editor and make a clone of the campaign you want to mod. The clone can be found in \My Documents\My Games\SJIDAI\CAMPAIGNS

The file folder tree in custom campaigns is not exactly the same as in the main game. See the chart at the end of http://www.slitherinebravo.net/GameWiki ... tub_engine

If your cloned campaign is \My Documents\My Games\SJIDAI\CAMPAIGNS\ModdedCampaign

you need to make

\My Documents\My Games\SJIDAI\CAMPAIGNS\ModdedCampaign\Data\Battle\Scripts folders.

Copy into that folder:

$Default.BSF from the main installation \Data\Battle\Scripts

and

CampaignTools.BSF from the main installation \Data\scripts

You can then edit the GetProvinceAvailableMilitiaPoints() function in this file.

You just need to change 300 on line 7054 and 150 on line 7058 to lower figures. (These are the maximum number of points of militia for originally owned provinces and captured provinces).

Your cloned campaign will then use the modded script but otherwise be identical to the vanilla version of the campaign.
Richard Bodley Scott

Image
ReneTS
Lance Corporal - Panzer IA
Lance Corporal - Panzer IA
Posts: 18
Joined: Mon May 23, 2016 3:33 pm

Re: How to disable garrisons?

Post by ReneTS »

Thanks for the help. Can you recommend a program that can open and edit BSF files?
rbodleyscott
Field of Glory 2
Field of Glory 2
Posts: 28287
Joined: Sun Dec 04, 2005 6:25 pm

Re: How to disable garrisons?

Post by rbodleyscott »

ReneTS wrote:Thanks for the help. Can you recommend a program that can open and edit BSF files?
Notepad++ is free and pretty good. I myself use UltraEdit.
Richard Bodley Scott

Image
Post Reply

Return to “Sengoku Jidai: Shadow of the Shogun”