Lua/MapGenFrequency wiki info

Place to get help with not working mods / modding interface.
matjojo
Filter Inserter
Filter Inserter
Posts: 338
Joined: Wed Jun 17, 2015 6:08 pm
Contact:

Lua/MapGenFrequency wiki info

Post 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
User avatar
prg
Filter Inserter
Filter Inserter
Posts: 947
Joined: Mon Jan 19, 2015 12:39 am
Contact:

Re: Lua/MapGenFrequency wiki info

Post 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.
Automatic Belt (and pipe) Planner—Automate yet another aspect of constructing your factory!
matjojo
Filter Inserter
Filter Inserter
Posts: 338
Joined: Wed Jun 17, 2015 6:08 pm
Contact:

Re: Lua/MapGenFrequency wiki info

Post by matjojo »

thanks, that worked.
Post Reply

Return to “Modding help”