The first thing I did was remove all tiles autoplace, by looping through data.raw.tile and setting the autoplace to nil. I then add my own tiles in using the same function as vanilla seems to use.
Code: Select all
local autoplace_utils = require("autoplace_utils")
local function autoplace_settings(noise_layer, rectangles)
  local ret = {}
  if noise_layer then
    ret = {
      {
        influence = 0.1,
        noise_layer = noise_layer,
        noise_persistence = 0.7,
        octaves_difference = -1
      }
    }
  end
  autoplace_utils.peaks(rectangles, ret)
  return { peaks = ret }
endCode: Select all
--customfillertile
autoplace = autoplace_settings("fillertile", {{{10, 10}, {0, 0}}}),Code: Select all
--customgroundtile
autoplace = autoplace_settings("walkabletile", {{{2, 2}, {0, 0}}}),