That being said, I am new to modding factorio, and new to lua (though I have extensive experience in java and C#, lua is a bit different).
I'm trying to figure out how to make a new Surface that uses custom world generation. By this I mean I want to be able to replace the ground and water tiles with my own defined tiles. If I'm not wrong, the function I need to use is lua-api.factorio.com/0.15.21/LuaGameScript.html#LuaGameScript.create_surface. There isn't a problem making the surface, but the problem with the MapGenSettings, lua-api.factorio.com/0.15.21/Concepts.html#MapGenSettings, is that the autoplace_settings field appears to be used for things like ores etc. (with the frequency and richness modifiers being specified). The other settings don't have anything to do with world generation, so I must be missing something. Here I stand on my custom Surface, that is nothing but an ordinary world. On a side note, how do I correctly specify the autoplace_settings in MapGenSettings? What I used for generating my surface was some code in my control.lua
Code: Select all
game.create_surface("Custom",{terrain_segmentation="none",water="none",autoplace_controls={copper_ore={frequency="very-high",size="very-high",richness="very-high"}},seed=542342,{0,0},width=0,height=0,starting_area="normal",peaceful_mode=true})
If what I am trying to do isn't possible, that's fine, but if there's even an obscure or cheaty way of doing it, I'm up for it. Thanks in advance!