[Mod] Protector Redo [3.4] [protector]

User avatar
ratmix
Member
Posts: 149
Joined: Mon May 01, 2017 19:45
In-game: ratmix
Contact:

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

by ratmix » Post

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.
King of the Hill :: Modern Warfare Server RATMIX.COM:30000 | King of the Hill Community Site

User avatar
Andrey01
Member
Posts: 2574
Joined: Wed Oct 19, 2016 15:18
GitHub: Andrey2470T
In-game: Andrey01
Location: Russia, Moscow

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

by Andrey01 » Post

What is protector stick that you said?Here are only protector logo, protector blocks, protector doors and protector chests.

User avatar
ratmix
Member
Posts: 149
Joined: Mon May 01, 2017 19:45
In-game: ratmix
Contact:

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

by ratmix » Post

Sorry, I have two different protector mods running & conflicting.
King of the Hill :: Modern Warfare Server RATMIX.COM:30000 | King of the Hill Community Site

User avatar
TenPlus1
Member
Posts: 3715
Joined: Mon Jul 29, 2013 13:38
In-game: TenPlus1
Contact:

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

by TenPlus1 » Post

Notice:

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

redblade7
Member
Posts: 316
Joined: Sun Feb 15, 2015 07:14
IRC: redneonglow redblade7
In-game: redblade7 redblade7_owner

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

by redblade7 » Post

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>'
-redblade7, admin of: THE CREATIVE GARDENS (creative), THE VALLEYS (sandbox), and THE DIGITAL FARMS (farming/hunger/shops)

User avatar
TenPlus1
Member
Posts: 3715
Joined: Mon Jul 29, 2013 13:38
In-game: TenPlus1
Contact:

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

by TenPlus1 » Post

Updated to version 2.1:

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

User avatar
TenPlus1
Member
Posts: 3715
Joined: Mon Jul 29, 2013 13:38
In-game: TenPlus1
Contact:

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

by TenPlus1 » Post

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.

KzoneDD
Member
Posts: 65
Joined: Wed Sep 17, 2014 09:29

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

by KzoneDD » Post

Hiya; any idea why the server crashes with ... init.lua:159:find_nodes_in_area(): area volume exceeds allowed value of 551368?

auouymous
Member
Posts: 195
Joined: Sun Dec 07, 2014 09:39
GitHub: auouymous
IRC: air
In-game: auouymous

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

by auouymous » Post

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?

KzoneDD
Member
Posts: 65
Joined: Wed Sep 17, 2014 09:29

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

by KzoneDD » Post

It was. Then tried 30, still crashes. Then tried 16... no crash so far.

auouymous
Member
Posts: 195
Joined: Sun Dec 07, 2014 09:39
GitHub: auouymous
IRC: air
In-game: auouymous

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

by auouymous » Post

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.

Animetrom
Member
Posts: 10
Joined: Fri Dec 30, 2016 19:15
In-game: Animetrom

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

by Animetrom » Post

Hello!
I can not craft the Protection Logo (protector: protect2).
Could you correct it, please?
wylYiMx1QBDrQuwa52tzXWqGgG91a2CA

User avatar
TenPlus1
Member
Posts: 3715
Joined: Mon Jul 29, 2013 13:38
In-game: TenPlus1
Contact:

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

by TenPlus1 » Post

Place protector:protect (block) into crafting bench to give protector:protect2 (logo) and vide versa.

ektor
Member
Posts: 79
Joined: Sat Sep 24, 2016 11:59
IRC: dtarcz
In-game: ektor
Contact:

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

by ektor » Post

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.
Last edited by ektor on Mon Jul 24, 2017 11:07, edited 1 time in total.
Vive Minetest!

User avatar
TenPlus1
Member
Posts: 3715
Joined: Mon Jul 29, 2013 13:38
In-game: TenPlus1
Contact:

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

by TenPlus1 » Post

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.

ektor
Member
Posts: 79
Joined: Sat Sep 24, 2016 11:59
IRC: dtarcz
In-game: ektor
Contact:

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

by ektor » Post

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.
Vive Minetest!

User avatar
TenPlus1
Member
Posts: 3715
Joined: Mon Jul 29, 2013 13:38
In-game: TenPlus1
Contact:

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

by TenPlus1 » Post

Updated to version 2.3:

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

User avatar
acidzebra
Member
Posts: 75
Joined: Sun Sep 10, 2017 09:11

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

by acidzebra » Post

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.

User avatar
TenPlus1
Member
Posts: 3715
Joined: Mon Jul 29, 2013 13:38
In-game: TenPlus1
Contact:

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

by TenPlus1 » Post

Updated to version 2.4:

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

User avatar
TenPlus1
Member
Posts: 3715
Joined: Mon Jul 29, 2013 13:38
In-game: TenPlus1
Contact:

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

by TenPlus1 » Post

Updated to version 2.5:

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

User avatar
Lone_Wolf
Member
Posts: 2576
Joined: Sun Apr 09, 2017 05:50
GitHub: LoneWolfHT
IRC: LandarVargan
In-game: LandarVargan

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

by Lone_Wolf » Post

Love the mod and the update!
My ContentDB -|- Working on CaptureTheFlag -|- Minetest Forums Dark Theme!! (You need it)

Sokomine
Member
Posts: 4276
Joined: Sun Sep 09, 2012 17:31
GitHub: Sokomine
IRC: Sokomine
In-game: Sokomine

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

by Sokomine » Post

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.
A list of my mods can be found here.

auouymous
Member
Posts: 195
Joined: Sun Dec 07, 2014 09:39
GitHub: auouymous
IRC: air
In-game: auouymous

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

by auouymous » Post

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.

Sokomine
Member
Posts: 4276
Joined: Sun Sep 09, 2012 17:31
GitHub: Sokomine
IRC: Sokomine
In-game: Sokomine

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

by Sokomine » Post

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.
A list of my mods can be found here.

User avatar
SaKeL
Member
Posts: 743
Joined: Tue Apr 14, 2015 18:39
GitHub: JurajVajda
IRC: SaKeL
In-game: SaKeL

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

by SaKeL » Post

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 :/

Post Reply

Who is online

Users browsing this forum: No registered users and 28 guests