Page 1 of 1

Possible to mod terrain in Imjin campaign?

Posted: Tue Feb 03, 2026 10:25 am
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.

Re: Possible to mod terrain in Imjin campaign?

Posted: Tue Feb 03, 2026 11:59 am
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.

Re: Possible to mod terrain in Imjin campaign?

Posted: Tue Feb 03, 2026 12:38 pm
by Bombax
Brilliant, thanks Richard!
Cheers,
Jay

Re: Possible to mod terrain in Imjin campaign?

Posted: Tue Feb 03, 2026 5:36 pm
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

Re: Possible to mod terrain in Imjin campaign?

Posted: Tue Feb 03, 2026 6:41 pm
by Bombax
Thanks Richard! :D