[R&F] Prevent Tundra/Snow from being generated

Joseph Zahnen

Chieftain
Joined
Jul 6, 2018
Messages
2
I've been toying around with the TerrainGenerator.lua file trying to generate maps with no Tundra or Snow. I don't want to adjust the amount of Desert, water, etc. I'd love to remove Ice too but that seems even more complicated so for now I'm just trying to drop all tundra/snow.

I tried setting the fSnowLatitude to values ranging from 0 to -999. I also tried changing the terrainTypes[index] from snow or tundra to just plains. For instance:

if(lat >= fSnowLatitude) then terrainTypes[index] = g_TERRAIN_TYPE_PLAINS;

I was hoping that if it still found a value within the latitude it would generate plains instead. No Joy.

It does seem to have reduced the amount of Tundra/Snow but not remove it entirely. I'm either doing something wrong in TerrainGenerator.lua OR there is another script that comes by after and is creating snow/tundra.

Anyone able to point me in the right direction?
 
Ice is actually super easy to remove from the game because it is a Feature and not a Terrain. You can just do this in SQL:

Code:
DELETE FROM Feature_ValidTerrains WHERE FeatureType='FEATURE_ICE' ;

Without any possible terrain to spawn on, the world becomes Ice-free.
 
Where do I put this line to accomplish this? Anywhere in the TerrainGenerator.lua?

BTW i figured out how to remove all Tundra/Snow. What I did above worked but I was putting it in the wrong file. Changing the g_Terrain_type_snow to g_Terrain_type_plains generates plains instead so that part is working great.
 
Where do I put this line to accomplish this? Anywhere in the TerrainGenerator.lua?

BTW i figured out how to remove all Tundra/Snow. What I did above worked but I was putting it in the wrong file. Changing the g_Terrain_type_snow to g_Terrain_type_plains generates plains instead so that part is working great.

It would go in a SQL file, not in Lua.
 
Back
Top Bottom