Ability to protect a tile from modification

Place to ask discuss and request the modding support of Factorio. Don't request mods here.
Post Reply
User avatar
MewMew
Long Handed Inserter
Long Handed Inserter
Posts: 55
Joined: Thu May 19, 2016 11:02 am
Contact:

Ability to protect a tile from modification

Post 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.

User avatar
ssilk
Global Moderator
Global Moderator
Posts: 12715
Joined: Tue Apr 16, 2013 10:35 pm
Contact:

Re: Ability to protect a tile from modification

Post 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...?
Cool suggestion: Eatable MOUSE-pointers.
Have you used the Advanced Search today?
Need help, question? FAQ - Wiki - Forum help
I still like small signatures...

User avatar
MewMew
Long Handed Inserter
Long Handed Inserter
Posts: 55
Joined: Thu May 19, 2016 11:02 am
Contact:

Re: Ability to protect a tile from modification

Post by MewMew »

Teams? How does that work?

User avatar
ssilk
Global Moderator
Global Moderator
Posts: 12715
Joined: Tue Apr 16, 2013 10:35 pm
Contact:

Re: Ability to protect a tile from modification

Post 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.
Cool suggestion: Eatable MOUSE-pointers.
Have you used the Advanced Search today?
Need help, question? FAQ - Wiki - Forum help
I still like small signatures...

User avatar
MewMew
Long Handed Inserter
Long Handed Inserter
Posts: 55
Joined: Thu May 19, 2016 11:02 am
Contact:

Re: Ability to protect a tile from modification

Post by MewMew »

LuaTile does not have that ability.


User avatar
ssilk
Global Moderator
Global Moderator
Posts: 12715
Joined: Tue Apr 16, 2013 10:35 pm
Contact:

Re: Ability to protect a tile from modification

Post by ssilk »

:lol: Thank you.
Cool suggestion: Eatable MOUSE-pointers.
Have you used the Advanced Search today?
Need help, question? FAQ - Wiki - Forum help
I still like small signatures...

User avatar
MewMew
Long Handed Inserter
Long Handed Inserter
Posts: 55
Joined: Thu May 19, 2016 11:02 am
Contact:

Re: Ability to protect a tile from modification

Post by MewMew »

Forces ?

posila
Factorio Staff
Factorio Staff
Posts: 5147
Joined: Thu Jun 11, 2015 1:35 pm
Contact:

Re: Ability to protect a tile from modification

Post 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 :)

User avatar
MewMew
Long Handed Inserter
Long Handed Inserter
Posts: 55
Joined: Thu May 19, 2016 11:02 am
Contact:

Re: Ability to protect a tile from modification

Post 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.

User avatar
MewMew
Long Handed Inserter
Long Handed Inserter
Posts: 55
Joined: Thu May 19, 2016 11:02 am
Contact:

Re: Ability to protect a tile from modification

Post 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!!

Post Reply

Return to “Modding interface requests”