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

Don't know how to use a machine? Looking for efficient setups? Stuck in a mission?
Post Reply
User avatar
Dixi
Long Handed Inserter
Long Handed Inserter
Posts: 80
Joined: Sat Nov 04, 2017 1:47 pm
Contact:

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

Post by Dixi » Sun Apr 14, 2019 12:43 pm

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?
Last edited by Dixi on Mon Apr 15, 2019 9:48 am, edited 1 time in total.

User avatar
Dixi
Long Handed Inserter
Long Handed Inserter
Posts: 80
Joined: Sat Nov 04, 2017 1:47 pm
Contact:

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

Post by Dixi » Mon Apr 15, 2019 8:42 am

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
Last edited by Dixi on Mon Apr 15, 2019 5:42 pm, edited 1 time in total.

Post Reply

Return to “Gameplay Help”

Who is online

Users browsing this forum: Google [Bot], Porter65