Page 1 of 1

Placing Custom Tiles Near Water

Posted: Mon Jan 06, 2020 5:39 pm
by PeteTheLich
So i've been looking and i cant find a similar thread
I tried looking for the concrete/stone file in the factorio folder to see how it was done but I cant find where that is exactly

Basically my floor tiles wont place anywhere near water where the base tiles do

Image

I think it has something to do with the collision mask? but im not entirely sure
I'd really appreciate it if someone could help point me in the right direction!

Re: Placing Custom Tiles Near Water

Posted: Thu Jan 09, 2020 7:17 pm
by darkfrei

Re: Placing Custom Tiles Near Water

Posted: Thu Jan 09, 2020 9:03 pm
by PeteTheLich
darkfrei wrote: Thu Jan 09, 2020 7:17 pm https://wiki.factorio.com/Prototype/Tile
I appreciate you taking the time to reply but im not exactly sure what to be looking for.

I remember trying to tweak the transition but that just made the edges use use concrete (i copied the concrete transition) had no effect on the placeability near the water

im not sure what property to add to get things to place near water

Re: Placing Custom Tiles Near Water

Posted: Tue Jan 14, 2020 5:30 pm
by darkfrei
See item's condition_size:

Code: Select all

data.raw.item.concrete.place_as_tile.result = "concrete" 
data.raw.item.concrete.place_as_tile.condition_size = 1 
data.raw.item.concrete.place_as_tile.condition[1] = "water-tile"

Re: Placing Custom Tiles Near Water

Posted: Thu Jan 16, 2020 8:17 pm
by PeteTheLich
darkfrei wrote: Tue Jan 14, 2020 5:30 pm See item's condition_size:

Code: Select all

data.raw.item.concrete.place_as_tile.result = "concrete" 
data.raw.item.concrete.place_as_tile.condition_size = 1 
data.raw.item.concrete.place_as_tile.condition[1] = "water-tile"

Thank you! goes to show I had no idea what im doing haha

the code was already there but the data.raw.item.concrete.place_as_tile.condition_size = 1 was set to = 4

I really appreciate your help