Possible to mod terrain in Imjin campaign?

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
Bombax
Staff Sergeant - StuG IIIF
Staff Sergeant - StuG IIIF
Posts: 266
Joined: Sat Jul 02, 2016 1:44 pm

Possible to mod terrain in Imjin campaign?

Post by Bombax »

Hi folks, I'm wondering if it is possible to modify the terrain in the Imjin war campaign, specifically by reducing the percentage of forested terrain in the battles? This would obviously only be for personal use in single player mode!
Many thanks,
Jay.
rbodleyscott
Field of Glory 2
Field of Glory 2
Posts: 28376
Joined: Sun Dec 04, 2005 6:25 pm

Re: Possible to mod terrain in Imjin campaign?

Post by rbodleyscott »

No promises, but you could put a modified version of MapGenerateBattle.BSF in
/Campaigns/5ImjinWar/Data/Battle/Scripts

In the GenerateBattleMap() function, lines 82-92

Code: Select all

	if (region == 3) // Japan
		{
			if (terrain == 2)
				{
					open = 50;
				}
			else
				{
					open = 80;
				}
		}
is what controls the amount of non-wooded terrain on the map in Japan. I assume that Jayson probably used this also for Korea. To reduce the amount of woods, you would just need to increase the values for open.

terrain == 2 is actual wooded terrain.
Richard Bodley Scott

Image
Bombax
Staff Sergeant - StuG IIIF
Staff Sergeant - StuG IIIF
Posts: 266
Joined: Sat Jul 02, 2016 1:44 pm

Re: Possible to mod terrain in Imjin campaign?

Post by Bombax »

Brilliant, thanks Richard!
Cheers,
Jay
rbodleyscott
Field of Glory 2
Field of Glory 2
Posts: 28376
Joined: Sun Dec 04, 2005 6:25 pm

Re: Possible to mod terrain in Imjin campaign?

Post by rbodleyscott »

rbodleyscott wrote: Tue Feb 03, 2026 11:59 am No promises, but you could put a modified version of MapGenerateBattle.BSF in
/Campaigns/5ImjinWar/Data/Battle/Scripts
My mistake, this should be:

/Campaigns/2ImjinWarCampaign/Data/Battle/Scripts
Richard Bodley Scott

Image
Bombax
Staff Sergeant - StuG IIIF
Staff Sergeant - StuG IIIF
Posts: 266
Joined: Sat Jul 02, 2016 1:44 pm

Re: Possible to mod terrain in Imjin campaign?

Post by Bombax »

Thanks Richard! :D
Post Reply

Return to “Sengoku Jidai: Shadow of the Shogun”