Page 1 of 1

Concrete near coasts

Posted: Thu May 26, 2016 6:52 am
by Vulcan
I have been industriously carpeting my super-base in concrete, and it is irritating beyond belief that you can't place concrete or any other path within three tiles of water. Does anyone know how I can rid myself of the ugly bands of normal ground bordering every patch of water near me before I go mad?

Re: Concrete near coasts

Posted: Thu May 26, 2016 7:41 am
by MrDoomah
This was implemented because placing floors near water would mess up the terrain.

but if you go into your factorio folder -> Factorio\data\base\prototypes\item and open demo-item.lua.

in here (in version 12.33) you'll see right at the top:

Code: Select all

  {
    type = "item",
    name = "stone-brick",
    icon = "__base__/graphics/icons/stone-brick.png",
    flags = {"goes-to-main-inventory"},
    subgroup = "terrain",
    order = "a[stone-brick]",
    stack_size = 100,
    place_as_tile =
    {
      result = "stone-path",
      condition_size = 4,
      condition = { "water-tile" }
    }
  },
You want to set condition_size to 2 if you want to build right up to the water, to 1 if you want to include the coast tiles and 0 if you want to build on the water.

Now open item.lua and right at the bottom you'll see:

Code: Select all

  {
    type = "item",
    name = "concrete",
    icon = "__base__/graphics/icons/concrete.png",
    flags = {"goes-to-main-inventory"},
    subgroup = "terrain",
    order = "b[concrete]",
    stack_size = 100,
    place_as_tile =
    {
      result = "concrete",
      condition_size = 4,
      condition = { "water-tile" }
    }
  }
Again edit the condition_size but this time for concrete.