I'm working on a mod that takes over map generation and creates a maze. For this my data.lua contains:
Code: Select all
log("- cliffs and water")
local noise = require "noise"
local tne = noise.to_noise_expression
data.raw['noise-expression']['default-cliffiness'].expression =
noise.define_noise_function(function(x, y, tile, map)
return 0
end)
data.raw['noise-expression']['default-elevation'].expression =
noise.define_noise_function(function(x, y, tile, map)
return 100
end)
Problem 1: The water in the starting area is left behind. What am I missing there to get no water at all?
Problem 2: In the "Map generator" dialog the "Terrain settings" contain an entry for Water. I would like to have water appear under "Resource settings" instead.
The maze has narrow ways and any natural lake would block the way. So water is limited to dead ends (and maybe as lakes in larger caverns in the future). Given that you need water for steam engines and in mods for various other recipes it's more of a resource that needs to be found in the maze.
Problem 3: In the "Map generator" dialog the "Terrain settings" contain an entry for cliffs. How do I remove that?
The walkable spaces of the maze are bordered by cliffs to give a nicer looking border and the narrow passages must not have any cliffs or the player would quickly be blocked in. That's why I disabled the cliffs through the noise layer above. But that makes the cliff config in the map generator pointless.