Page 1 of 1

how to change map generation to 0.17 on old 0.16 map?

Posted: Sun Apr 14, 2019 12:43 pm
by Dixi
I have a map originally generated in 0.15
When client was upgraded to 0.16 new chunks were generated using 0.16 algorithm (the one we all hate).
Now I continue to play this map in 0.17, but new chunks are still getting generated using 0.16. :cry:
I suppose client preserve old generation method for some reason.

How to change map generation method for new chunks to 0.17?

And to enable research queue?

Re: how to change map generation to 0.17 on old 0.16 map?

Posted: Mon Apr 15, 2019 8:42 am
by Dixi
I've found so far:

File in client data\map-gen-settings.example.json
has a comment
Use '0_16-elevation' to reproduce terrain from 0.16."
I've checked in two saves: in older maps this field is "0_16-elevation" and "nil" in new 0.17 generated maps.

I can print that value in console:
/c game.player.print( game.player.surface.map_gen_settings.property_expression_names.elevation )
report 0_16-elevation

But when I do
/c game.player.surface.map_gen_settings.property_expression_names.elevation = nil
it gives no error, but value does not change - when I print it again it still 0_16-elevation

Update:

Seems, following code works:
/c local surface = game.player.surface
local mgs = surface.map_gen_settings
mgs.property_expression_names.elevation = nil

mgs.property_expression_names["control-setting:moisture:bias"] = 0.5
mgs.property_expression_names["control-setting:moisture:frequency:multiplier"] = 0.5
surface.map_gen_settings = mgs


Found explanation in https://lua-api.factorio.com/latest/Con ... enSettings