Page 8 of 11

Re: [Mod] Protector Redo [2.0] [protector]

PostPosted: Mon May 01, 2017 20:32
by ratmix
Protector Stick issue:

Just downloaded the latest version. The protector wand is undefined...
Image

In the logs...
Code: Select all
ERROR[Server]: Item "protector:stick" not defined


I used the old mintest-protector before and the stick worked, if that's of any consequence.

Re: [Mod] Protector Redo [2.0] [protector]

PostPosted: Tue May 02, 2017 18:16
by Andrey01
What is protector stick that you said?Here are only protector logo, protector blocks, protector doors and protector chests.

Re: [Mod] Protector Redo [2.0] [protector]

PostPosted: Tue May 02, 2017 22:33
by ratmix
Sorry, I have two different protector mods running & conflicting.

Re: [Mod] Protector Redo [2.0] [protector]

PostPosted: Fri Jun 02, 2017 20:10
by TenPlus1
Notice:

- protector.drop feature has been disabled, can easily be exploited using lag.

Re: [Mod] Protector Redo [2.0] [protector]

PostPosted: Sun Jun 04, 2017 11:05
by redblade7
After upgrading to 0.4.16, the latest version of Protector Redo gives this error:

.../games/minetest_game/mods/protector/init.lua:655: 'end' expected (to close 'function' at line 265) near '<eof>'

Re: [Mod] Protector Redo [2.1] [protector]

PostPosted: Sun Jun 04, 2017 19:31
by TenPlus1
Updated to version 2.1:

- Added 'protector_night_pvp' setting which enables pvp in all areas at night time only, all except protected spawn.

Re: [Mod] Protector Redo [2.2] [protector]

PostPosted: Mon Jul 03, 2017 08:37
by TenPlus1
Updated to version 2.2:

- Protector Tool now works within 2 blocks of a protection node so you don't have to stand on top of it anymore :) It can also place vertically by looking up and down.
- Protector recipe changed, use gold ingot isntead of steel, place protector itself in crafting to switch between block and logo.

Re: [Mod] Protector Redo [2.2] [protector]

PostPosted: Fri Jul 07, 2017 19:07
by KzoneDD
Hiya; any idea why the server crashes with ... init.lua:159:find_nodes_in_area(): area volume exceeds allowed value of 551368?

Re: [Mod] Protector Redo [2.2] [protector]

PostPosted: Fri Jul 07, 2017 20:28
by auouymous
KzoneDD wrote:Hiya; any idea why the server crashes with ... init.lua:159:find_nodes_in_area(): area volume exceeds allowed value of 551368?


Is protector_radius greater than 40?

Re: [Mod] Protector Redo [2.2] [protector]

PostPosted: Sat Jul 08, 2017 12:49
by KzoneDD
It was. Then tried 30, still crashes. Then tried 16... no crash so far.

Re: [Mod] Protector Redo [2.2] [protector]

PostPosted: Sat Jul 08, 2017 17:55
by auouymous
KzoneDD wrote:It was. Then tried 30, still crashes. Then tried 16... no crash so far.


What was the crash message at 30?

551368 = 82^3 (diameter = 82)
A radius of 40 should have a diameter of 81 (40+40+1) and be within that limit.

Re: [Mod] Protector Redo [2.2] [protector]

PostPosted: Tue Jul 18, 2017 18:38
by Animetrom
Hello!
I can not craft the Protection Logo (protector: protect2).
Could you correct it, please?

Re: [Mod] Protector Redo [2.2] [protector]

PostPosted: Wed Jul 19, 2017 06:00
by TenPlus1
Place protector:protect (block) into crafting bench to give protector:protect2 (logo) and vide versa.

Re: [Mod] Protector Redo [2.2] [protector]

PostPosted: Sun Jul 23, 2017 18:54
by ektor
hi, I have a question about the protection of the spawn zone. How can I allow players to build or interact on it (spawn), without give them too much privilege and destroy other player's protection ?
I think about the priv "delprotect" but it seems too much to my taste... maybe "protection_bypass" ?

And there is no more the "protector_drop = true" setting ?

Edit : sorry i miss this :
TenPlus1 wrote:Notice:

- protector.drop feature has been disabled, can easily be exploited using lag.

Re: [Mod] Protector Redo [2.2] [protector]

PostPosted: Sun Jul 23, 2017 19:49
by TenPlus1
Typically the server owner builds spawn first (with help) before using spawn protection... The 'delprotect' priv was deprecated and replaced with 'protection_bypass' which does the same, and protector_drop mode was removed as players misused it to cheat in duplicate items on occasion.

Re: [Mod] Protector Redo [2.2] [protector]

PostPosted: Mon Jul 24, 2017 07:00
by ektor
TenPlus1 wrote:Typically the server owner builds spawn first (with help) before using spawn protection...

OK, It's what I do in the first server I put inline. So, we try to prepare a spawn-zone to put it after with Worldedit.

TenPlus1 wrote:The 'delprotect' priv was deprecated and replaced with 'protection_bypass' which does the same, and protector_drop mode was removed as players misused it to cheat in duplicate items on occasion.

OK, thanks fot those explanations.

Re: [Mod] Protector Redo [2.3] [protector]

PostPosted: Sun Sep 03, 2017 09:57
by TenPlus1
Updated to version 2.3:

- Localise many of the global functions used inside mod
- Tidy code
- Update readme file with protector tool instructions

Re: [Mod] Protector Redo [2.3] [protector]

PostPosted: Sun Sep 24, 2017 11:35
by acidzebra
Cool mod, does exactly what it says on the tin and does it very well. Thanks!

As an experiment I made a change in the pvp.lua script
Code: Select all
if minetest.is_protected(pos, hitter:get_player_name()) then

to
Code: Select all
if not minetest.is_protected(pos, hitter:get_player_name()) then


This inverts pvp - people can only pvp inside the area of a protection block (with some weirdness where owners can be hit but they can't hit others while two non-owners can go ham on each other as expected, I think that will disappear once I create specialized "pvp blocks" for these areas)

My general idea is to have a largely non-pvp world with dedicated pvp arenas and areas (like warcraft PVE servers), possibly granting people specific weapons and armor upon entering and removing them when leaving. Maybe even have tournaments - last man standing etc.

Re: [Mod] Protector Redo [2.4] [protector]

PostPosted: Mon Oct 09, 2017 13:00
by TenPlus1
Updated to version 2.4:

- Using newer functions, requires Minetest 0.4.16 and above to run.

Re: [Mod] Protector Redo [2.5] [protector]

PostPosted: Sat Nov 11, 2017 13:00
by TenPlus1
Updated to version 2.5:

- Added HUD text to show when inside protected area (5 second update)

Re: [Mod] Protector Redo [2.5] [protector]

PostPosted: Mon Nov 20, 2017 17:06
by Lone_Wolf
Love the mod and the update!

Re: [Mod] Protector Redo [2.5] [protector]

PostPosted: Fri Dec 15, 2017 23:42
by Sokomine
The protector mod(s) and I, we just never get along. Trying to add something that is smaller than one protector or overlaps with another protected area does not work well (to say it mildly).

Idea to fix that: Add a command that takes a volume (i.e. as defined by WorldEdit), lists the positions of protectors that are either in this volume or at least active there, and that allows to add or remove a player from all your protectors that affect that volume. Protectors are after all no easter eggs. People have better things to do then hunt down the last forgotten protector that interferes with a project.

A command to check if all inside the marked volume is actually protected by the player would also be very helpful.

Re: [Mod] Protector Redo [2.5] [protector]

PostPosted: Sat Dec 16, 2017 07:07
by auouymous
Sokomine wrote:Add a command that takes a volume (i.e. as defined by WorldEdit), lists the positions of protectors that are either in this volume or at least active there, and that allows to add or remove a player from all your protectors that affect that volume.


It would probably need to be an admin/mod only feature because a large area might need to add numerous forceloaders, find all protectors in that area and then remove the forceloaders. Iterating over the list of found protectors and adding players is easy at this point.

Sokomine wrote:A command to check if all inside the marked volume is actually protected by the player.


This requires the same code as above but each protector cuts away at the volume in something like an octree, the report the uncut regions. A little bit more intensive than the first feature.

Re: [Mod] Protector Redo [2.5] [protector]

PostPosted: Sun Dec 17, 2017 20:16
by Sokomine
auouymous wrote:It would probably need to be an admin/mod only feature because a large area might need to add numerous forceloaders, find all protectors in that area and then remove the forceloaders. Iterating over the list of found protectors and adding players is easy at this point.

You're right - even a smaller area might need forceloading. The volume the command is able to check could depend on weather it's a normal player (-> only check a small volume) or someone with an appropriate priv.

Re: [Mod] Protector Redo [2.5] [protector]

PostPosted: Mon Jan 08, 2018 17:12
by SaKeL
Hi, how can i override is_protected with my mod so protector.flip will be disabled only from my mod - normally its enabled. Right now im flipping every time i check for is_protected :/