This was not the case for 0.16, and lua api does not mention any changes.
EDIT:
Steps to reproduce:
1. Start a new game with the NiceFill mod.
2. Place landfill anywhere in the starting area.
3. NiceFill mod creates a surface "NiceFill_nauvis" with starting area set to none, yet the new surface contains water in the starting area.
See mod "NiceFill" on the mod portal ( just update info to 0.17 )
Or this is the part of the code:
Code: Select all
local map_gen_settings = evtsurface.map_gen_settings
--map_gen_settings.autoplace_controls = nil
--map_gen_settings.autoplace_controls = {}
for k,v in pairs(map_gen_settings.autoplace_controls) do
if DEBUG then log( serpent.block( k ) ) end
if DEBUG then log( serpent.block( v ) ) end
end
map_gen_settings.autoplace_controls["enemy-base"] = {frequency="none",size="none",richness="none"}
map_gen_settings.autoplace_controls["trees"] = {frequency="none",size="none",richness="none"}
-- map_gen_settings.default_enable_all_autoplace_controls = false
map_gen_settings.autoplace_settings =
{
entity =
{
treat_missing_as_default = false,
settings =
{
frequency = "none",
size = "none",
richness = "none"
}
},
decorative =
{
treat_missing_as_default = false,
settings =
{
frequency = "none",
size = "none",
richness="none"
}
}
}
--printf( event.player_index, serpent.block( map_gen_settings.cliff_settings ) )
--printf( event.player_index, serpent.block( map_gen_settings.autoplace_settings ) )
if DEBUG then
log( serpent.block( map_gen_settings.cliff_settings ) )
log( serpent.block( map_gen_settings.autoplace_settings ) )
end
map_gen_settings.water = "none"
map_gen_settings.starting_area = "none"
map_gen_settings.peaceful_mode = true
map_gen_settings.cliff_settings = {
cliff_elevation_0 = 0,
cliff_elevation_interval = 0,
name = "cliff"
}
-- if not pcall(game.create_surface( "NiceFill", map_gen_settings )) then
-- log( "Failed to create surface " .. serpent.block( map_gen_settings ) )
-- end
log( serpent.block( map_gen_settings ) )
if pcall( game.create_surface,nicename, map_gen_settings ) then
if DEBUG then log( "NiceFill surface success." ) end
else
log( "NiceFill surface fail." )
force_debug( "NiceFill failed create surface. Did you disable or enable any mods mid-game ?" );
end