Page 6 of 9

Re: [Mod] Advanced area protection [areas]

PostPosted: Tue Feb 09, 2016 02:01
by ShadowNinja
MangleFox70 wrote:Having added areas.self_protection = true to my conf file, users still get the error that they don't have self protection ability (can't protect).


There are a few things involved in self-protection.
First it has to be enabled of course, but there are still a few restrictions on it. Only players with the "interact" privilege (or whatever "areas.self_protection_privilege" is) can use self protection. There is also a size limitation (max 64 wide, 128 high by default) and a maximum number of areas per player (4 by default).

If you exceed any of these limitations you have to ask a moderator to protect new areas for you. This is to prevent abuse of the protection system to protect overly large areas or too many areas. Your players are probably protecting overly large areas or too many of them.

If you want to change these limitations on your server you can change the size with something like "areas.self_protection_max_size = (128, 256, 128)" or "areas.self_protection_max_areas = 8".

Also, if you want a few players to be able to have more/bigger areas while applying a lower limit to the general population just grant these people the "areas_high_limit" privilege. The specific limits can be configured with the "areas.self_protection_max_size_high" and "areas.self_protection_max_areas_high" settings (which default to "(512, 512, 512)" and "32" respectively, as of this writing).

It's also possible that the areas the players are trying to add overlap with another area. This would happen if you've protected a large area around spawn or even the whole map.

MangleFox70 wrote:I'm having to add the "areas" priv temporarily, let them protect, and then revoke the privilege.


You shouldn't do that, it temporarily gives them access to all areas administrative functionality, including the ability to remove or reassign any area. You can protect areas for other players by using the "/set_owner" command.

If it still won't work after you've tried this, please tell me the exact error message that your players are getting, or login with a test account and try it yourself (make sure to give the test account "interact"). Also provide the last few lines in the server's log after you run these commands, if there's anything relevant in them.

Re: [Mod] Advanced area protection [areas]

PostPosted: Tue Feb 09, 2016 14:50
by MangleFox70
Thanks ShadowNinja. This is a lot of good information. We'll have to spend a Saturday tinkering with this. Much appreciated!

Re: [Mod] Advanced area protection [areas]

PostPosted: Wed Feb 10, 2016 03:13
by MangleFox70
Hey ShadowNinja,
Okay here is my testing...
1) My loaded conf file contains: areas.self_protect = true
2) Mod is enabled and working... known because if I have "areas" perm, it works.
3) Login as new account, attempt to protect something and receive: "You can't protect that area. Self protection is disabled or you do not have the necessary privilege." This area is only 4 blocks in size so does not exceed a maximum. Player has "interact" priv.

Any ideas? Thanks!!

UPDATE: I edited settings.lua manually and changed this line to true:
setting("boolean", "self_protection", false)

I thought the conf overrode that, but I guess not. So, it is working now, but not thanks to the conf file.

Re: [Mod] Advanced area protection [areas]

PostPosted: Wed Feb 10, 2016 04:22
by ShadowNinja
MangleFox70 wrote:My loaded conf file contains: areas.self_protect = true
[...]
I edited settings.lua manually and changed this line to true:
Code: Select all
setting("boolean",  "self_protection", false)



Notice the difference? You set "areas.self_protect", but the mod is looking for "areas.self_protection". That must be the issue.
I wouldn't recommend editing the mod, as that makes it harder to update the mod, and if it's harder you're less likely to do it often.

Re: [Mod] Advanced area protection [areas]

PostPosted: Wed Feb 10, 2016 12:06
by MangleFox70
Good catch -- I'll verify that! However I had originally done it as per https://forum.minetest.net/viewtopic.php?p=206808#p206808 so the current iteration is in fact my 3rd attempt (had tried self_protection, self_protect_privilege, then self_protect). I will definitely try the correct one again and let you know.

Thanks!

Re: [Mod] Advanced area protection [areas]

PostPosted: Mon May 09, 2016 19:32
by iZacZip
ShadowNinja wrote:[*]Players that have a certain privilege will be able to protect a set number of areas within a size limit by themselves using the /protect command. (If the server administrator enables it)[/*]

• *Sometimes* you can protect large areas via markers. But not always, of course.

Re: [Mod] Advanced area protection [areas]

PostPosted: Mon Jul 25, 2016 17:16
by miloszs
how i can add player to my parotect area? and ow i can remove protected area?

Re: [Mod] Advanced area protection [areas]

PostPosted: Wed Sep 28, 2016 11:10
by amadin
Will be good if a players for set new area will need protection stick (instead a hand), which will disappear after setting "position 2" (areas_pos2) coordinate. This protection stick must be crafted by a player if he want protect area. Then will not be necessary to have limitations on the size and number of areas, and players will not ask every time to administrator due limitations for number of areas.

Re: [Mod] Advanced area protection [areas]

PostPosted: Wed Sep 28, 2016 15:20
by ShadowNinja
A "protection stick" would still require size limitations unless a number of sticks were consumed proportional to the size of the area.

The stick would have to be fairly difficult to craft for it to serve as an effective replacement for the area number limit, and if it was that hard it would be impossible for new players to protect any areas for a while. You could give players some protection sticks on first join, but then you could just make a bunch of throwaway accounts, dump the sticks on the ground, and then pick them up as your main player.

If you find the default settings too restrictive, you can just increase the number and size of allowed areas through the configuration.

Re: [Mod] Advanced area protection [areas]

PostPosted: Tue Feb 28, 2017 14:20
by mase
Maybe you could add support to prevent mobs spawning in protected areas.
When I build a fortress surrounded by walls, monsters can spawn inside.
Or is there another way to do this? Using special materials is not enough, as
mobs can spawn in a garden.

Re: [Mod] Advanced area protection [areas]

PostPosted: Tue Feb 28, 2017 14:50
by BrunoMine
mase wrote:Using special materials is not enough, as
mobs can spawn in a garden.

This may be a MOB-engine error (mobs_redo?)

Re: [Mod] Advanced area protection [areas]

PostPosted: Tue Feb 28, 2017 15:03
by mase
Yes, mobs redo. Mobs cannot spawn in protected areas? Did not notice yet.

Re: [Mod] Advanced area protection [areas]

PostPosted: Tue Feb 28, 2017 15:13
by BrunoMine
According to the documentation, there is a setting to prevent this.
https://github.com/tenplus1/mobs_redo/b ... pi.txt#L11

I do not know if this prevents mobs from invading a protected area, so you should mount a wall.

Re: [Mod] Advanced area protection [areas]

PostPosted: Tue Feb 28, 2017 15:16
by mase
Thx! I did not notice this setting.

Re: [Mod] Advanced area protection [areas]

PostPosted: Wed Mar 01, 2017 14:29
by mase
Could you please add protection of mesecons buttons and switches?

Re: [Mod] Advanced area protection [areas]

PostPosted: Wed Mar 01, 2017 16:50
by ShadowNinja
mase wrote:Could you please add protection of mesecons buttons and switches?

That would have to be done in mesecons.

Re: [Mod] Advanced area protection [areas]

PostPosted: Fri Mar 24, 2017 10:43
by Codesound
Hi,

sorry for my stupid question:

I'm the moderator of my private server; how you can give the area privileges to another/s user/s? (in my private server)

/grant user areas (is right?)

thanks for this beautiful mod

R

Re: [Mod] Advanced area protection [areas]

PostPosted: Fri Mar 24, 2017 15:24
by ShadowNinja
Yes.

Re: [Mod] Advanced area protection [areas]

PostPosted: Fri Mar 24, 2017 22:13
by Codesound
thanks again....

R

Re: [Mod] Advanced area protection [areas]

PostPosted: Wed Apr 26, 2017 15:02
by admicos
I am using this mod and a player can pass through walls by breaking a protected block. Also, chests can be opened inside protected areas. Is there any fixes for those?

Re: [Mod] Advanced area protection [areas]

PostPosted: Wed Apr 26, 2017 17:12
by Andrey01
admicos wrote:I am using this mod and a player can pass through walls by breaking a protected block. Also, chests can be opened inside protected areas. Is there any fixes for those?

You must have Protector Redo mod to protect your chests

Re: [Mod] Advanced area protection [areas]

PostPosted: Wed Apr 26, 2017 17:38
by admicos
Andrey01 wrote:
admicos wrote:I am using this mod and a player can pass through walls by breaking a protected block. Also, chests can be opened inside protected areas. Is there any fixes for those?

You must have Protector Redo mod to protect your chests

Thanks!

Re: [Mod] Advanced area protection [areas]

PostPosted: Thu Apr 27, 2017 20:50
by karahan117
I am using the mod in my server but It is a bit buggy isn't it? Players can easily wall through the blocks via breaking blocks and just moving towards. Also posted this problem in Github Issues, waiting for a solution :(

Re: [Mod] Advanced area protection [areas]

PostPosted: Thu Apr 27, 2017 22:47
by Sokomine
karahan117 wrote:I am using the mod in my server but It is a bit buggy isn't it? Players can easily wall through the blocks via breaking blocks and just moving towards. Also posted this problem in Github Issues, waiting for a solution :(

Protection mods - of which advanced area protection is one - protect player's buildings against unwanted modification, against griefing. It is not their purpose to keep players out of certain areas. Why would you want that anyway? Your items go into locked chests. Placed blocks are protected thanks to the areas mod.

Re: [Mod] Advanced area protection [areas]

PostPosted: Sun May 07, 2017 18:49
by ratmix
Is it, or could it be, possible to allow building in a protected area while making blocks in that area unbreakable?
Use case: PVP islands where players are given blocks to get between islands.