Page 1 of 1

Ability to protect a tile from modification

Posted: Tue Apr 07, 2020 8:40 pm
by MewMew
Players mine away or paint over the new colored concrete tiles that have been added recently.
If a custom map has a team spawn place, it can be easily removed or modified.

This could be solved by having the ability to set minable = false for a tile, protecting it from modifications.

Re: Ability to protect a tile from modification

Posted: Wed Apr 08, 2020 5:40 am
by ssilk
AFAIK that feature is already implemented and is called “teams”.

Edit: teams is not the right word, but I currently don’t remember what’s this feature is called in Factorio. I mean you are in one faction, and the enemies are in another and you can obviously not build on a biter nest.
Maybe someone can help...?

Re: Ability to protect a tile from modification

Posted: Wed Apr 08, 2020 5:48 am
by MewMew
Teams? How does that work?

Re: Ability to protect a tile from modification

Posted: Wed Apr 08, 2020 6:07 am
by ssilk
See my edit above.

Or - much simpler - you make a one-liner script to set non-mineable to the starting area. What I mean: the ability already exists but you will need either to script it yourself or use a mod.

Re: Ability to protect a tile from modification

Posted: Wed Apr 08, 2020 6:28 am
by MewMew
LuaTile does not have that ability.

Re: Ability to protect a tile from modification

Posted: Wed Apr 08, 2020 6:50 am
by darkfrei
Forces :idea:

Re: Ability to protect a tile from modification

Posted: Wed Apr 08, 2020 8:33 am
by ssilk
:lol: Thank you.

Re: Ability to protect a tile from modification

Posted: Wed Apr 08, 2020 8:59 am
by MewMew
Forces ?

Re: Ability to protect a tile from modification

Posted: Wed Apr 08, 2020 10:24 am
by posila
I changed the colored concrete prototypes to be non-mineable. So this kind of handles it.

You can always hook onto "on player mined tile" event and remove permission to mine tiles for players that mine lobby tiles :)

Re: Ability to protect a tile from modification

Posted: Wed Apr 08, 2020 4:50 pm
by MewMew
Was more thinking of only setting it for specific tiles.
Maybe even for example certain areas of water tiles, that can not be landfilled.
Making all of them not mineable wasn't really my intention.
Maybe would write some custom script instead that uses the events.

Re: Ability to protect a tile from modification

Posted: Wed Apr 08, 2020 5:01 pm
by MewMew
Already patched! That was quick :D
Tested it and it works out fine.

Mining the tiles isn't possible now and one can still build other tiles over them.
But they do not get deleted underneath anymore,
so this is fine enough!!