How to reduce the continent-boundary mountain ranges?

pokiehl

Moderator
Moderator
Joined
Mar 5, 2017
Messages
4,115
Mountain generation is really unpleasant to me. I hate how every continent boundary is just slammed with continents.

Is there a way to reduce this? From what I can gather, it's defined in TerrainGenerator but I just can't figure out what to do to reduce it.

@Gedemon - tagging you because you're a map whiz :)
 
I'm really not a specialist in using fractals to generate maps, mine are mostly fixed, but I think you're right for the file and could try to change line #346
Code:
if (TerrainBuilder.GetRandomNumber(100, "Mountain near boundary") < iMountainChance) then
try to divide iMountainChance per 2 or per 3

or just comment out the line below for confirming quickly it's that check.

numbers are hardcoded in the file, so you'll need to either replace it for an effect on all map scripts or override AddTerrainFromContinents with new values directly in specific map scripts

you could also lower the values in the table at the beginning of that function (line #260)
Code:
    local iMountainPercentByDistance:table = {42, 24, 6};
 
Back
Top Bottom