Page 1 of 1

Lua/MapGenFrequency wiki info

Posted: Sun Oct 25, 2015 8:10 pm
by matjojo
so, I am trying to create a new surface, but I don't want water in it.
The solution I thought of was setting the water parameter given on the forum here. The wiki states it can be set to the different states of mapgenfrequency, the wiki says this:
MapGenFrequency has the following available Types/string values:
* none
* very-low
* low
* normal
* high
* very-high

BUT, when setting water to none like this:

Code: Select all

game.create_surface("FOO", {terrain_segmentation = "none", water = "none", autoplace_controls = {frequency = "none", size = "none", richness = "very-poor"}, seed = 0 , shift = 0, width = 0, height = 0, starting_area = "none", peaceful_mode = true})
the game starts. but when opening a map. this appears:

Code: Select all

none isn't valid frequency value
so, what is up with the documentation on it. Is it outdated? or am I doing something wrong?

thanks,

Matjojo

Re: Lua/MapGenFrequency wiki info

Posted: Sun Oct 25, 2015 8:33 pm
by prg
Water isn't the problem there, but terrain_segmentation can't be none. Also, shift must be a table containing x and y.

Re: Lua/MapGenFrequency wiki info

Posted: Mon Oct 26, 2015 8:36 am
by matjojo
thanks, that worked.