autoplace_settings does not work with landfill prototype?
Posted: Thu Aug 20, 2020 8:50 pm
This works as expected, the whole surface filled with dirt-6
This does NOT work, the whole surface is filled with default grass tiles
Code: Select all
local newSurface = game.create_surface(surfaceName, {
starting_area = "none",
water = "none",
cliff_settings = { cliff_elevation_0 = 1024 },
default_enable_all_autoplace_controls = false,
autoplace_controls = autoplace_controls,
autoplace_settings = {
decorative = { treat_missing_as_default = false },
entity = { treat_missing_as_default = false },
tile = {
treat_missing_as_default = false,
settings = {
["dirt-6"] = {
frequency = "normal",
size = "normal",
}
}
},
}
})

Code: Select all
local newSurface = game.create_surface(surfaceName, {
starting_area = "none",
water = "none",
cliff_settings = { cliff_elevation_0 = 1024 },
default_enable_all_autoplace_controls = false,
autoplace_controls = autoplace_controls,
autoplace_settings = {
decorative = { treat_missing_as_default = false },
entity = { treat_missing_as_default = false },
tile = {
treat_missing_as_default = false,
settings = {
["landfill"] = {
frequency = "normal",
size = "normal",
}
}
},
}
})