LuaSurface map_gen_settings width and height cannot be changed
- SupplyDepoo
- Filter Inserter
- Posts: 286
- Joined: Sat Oct 29, 2016 8:42 pm
- Contact:
LuaSurface map_gen_settings width and height cannot be changed
I wanted to increase the surface width/height but it doesn't work, even though the description of map_gen_settings says "these can be modified after surface generation".
Re: LuaSurface map_gen_settings width and height cannot be changed
Cannot confirm. It works fine for me:
Code: Select all
/c
local s = game.surfaces.nauvis.map_gen_settings
s.width = 123
s.height = 123
game.surfaces.nauvis.map_gen_settings = s
- SupplyDepoo
- Filter Inserter
- Posts: 286
- Joined: Sat Oct 29, 2016 8:42 pm
- Contact:
Re: LuaSurface map_gen_settings width and height cannot be changed
That exact snippet has no effect for me in 1.1.101. I can see that the width and height is written without error, but that's it.
Re: LuaSurface map_gen_settings width and height cannot be changed
Map generator settings are primarily affecting generations of new chunks, if a chunk was already generated then it will not magically decide to switch from out-of-map tiles to grass or something. You are not providing too many details about your issue. When i increased the width and height a lot then new generated chunks are correctly being generated with non out-of-map tiles.
- SupplyDepoo
- Filter Inserter
- Posts: 286
- Joined: Sat Oct 29, 2016 8:42 pm
- Contact:
Re: LuaSurface map_gen_settings width and height cannot be changed
Ok, it works perfectly. I didn't realize that those chunks were generated with out-of-map tiles.
Re: LuaSurface map_gen_settings width and height cannot be changed
Moved to modding help.
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.