[mod] More advanced area protection [tyrant_denaid] [1.3]

User avatar
orwell
Member
 
Posts: 467
Joined: Wed Jun 24, 2015 18:45
GitHub: orwell96
In-game: orwell

[mod] More advanced area protection [tyrant_denaid] [1.3]

by orwell » Mon Jul 06, 2015 14:37

This mod is now dependent of the tyrant mod, which i split from it to provide unified area protection checking. Nothing changed regarding area setup and handling, all old areas are kept.
------------------
This mod is an advanced area management and protection tool. It is not only restricting on build protection.

Administrators (denaid_admin privilege) can create and edit areas, their bounds and their owner. The owner is then able to:
-prohibit players from entering his area
-stop players from building in his area
-prohibit griefing and spamming(any type of inventory interaction) inside his area
These restrictions are managed in rulesets that can apply to specific players or to all players. Of course, the owner and admins are still able to bypass the restrictions.

Further area owners can:
-disable monster spawning in his area (target mod must support this, as I know, no one does.)
-disable PvP in his area (0.4.13 only)
This is handled area-wide.

Areas can intersect, a priority number is used to determine which area is more important. This is okay because that number can only be edited by admins. self-protected areas will have a fixed priority. I think implementing a parent-child relation is not useful.
(the priority number is a feature of tyrant, but denaid is the only integration that actively uses it, most other mods just keep a fixed priority. see their code or documentation)

self-protection has been removed, an alternate solution can be found with tyrant_claim. If anyone wishes, I can reinclude it into the code, just ask inside this thread.

The non-admin stuff should be self-explaining.
See readme for further explanation.

License: WTFPL

Depends on:
tyrant (https://github.com/orwell96/tyrant/archive/master.zip)

Download: https://github.com/orwell96/tyrant_denaid/archive/master.zip
Github: https://github.com/orwell96/tyrant_denaid

For those who are not happy with it:
denaid_1_3.zip
Latest version of denaid before the switch to tyrant was done. still includes self-protection. if you are not happy with tyrant-denaid, go back to this.
(15.4 KiB) Downloaded 83 times


Remove the '-master' suffix on mod folders after extracting!
Last edited by orwell on Sat Aug 20, 2016 16:07, edited 16 times in total.
Lua is great!
List of my mods
I like singing. I like dancing. I like ... niyummm...
 

Niebieski
Member
 
Posts: 21
Joined: Fri Oct 17, 2014 18:53
GitHub: Snipie
IRC: Niebieski
In-game: Niebieski

Re: [mod] More advanced area protection [denaid]

by Niebieski » Mon Jul 06, 2015 23:20

Well done orwell. I didn't test it though. I think PVP protection is a good idea.
Good luck.
 

Dragonop
Member
 
Posts: 1178
Joined: Tue Oct 23, 2012 12:59
GitHub: Dragonop
IRC: Dragonop
In-game: Dragonop

Re: [mod] More advanced area protection [denaid]

by Dragonop » Tue Jul 07, 2015 00:24

This mods looks like if you ruled your own communist country. Kinda cool tough.
 

Diamond knight
Member
 
Posts: 262
Joined: Sun Apr 19, 2015 19:50
In-game: Diamondknight or diamond_knight

Re: [mod] More advanced area protection [denaid]

by Diamond knight » Wed Jul 08, 2015 20:00

maybe also a pvp alowwed area for an arena on a server that u can only pvp in arenas
I can never get enough MESE!!!!!!!!!

my subgame: https://forum.minetest.net/viewtopic.php?f=50&t=11901
 

User avatar
orwell
Member
 
Posts: 467
Joined: Wed Jun 24, 2015 18:45
GitHub: orwell96
In-game: orwell

Re: [mod] More advanced area protection [denaid]

by orwell » Thu Jul 30, 2015 13:18

EDIT: This post is outdated, see below.

Actually I need help.
I just can't find a way to make players receive no damage from other players while still receiving damage from monsters.
A simple way would be to make players completely invulnerable.

If someone has an idea how to implement, please post. In the meantime, PvP protection will remain unimplemented.
Last edited by orwell on Tue Aug 18, 2015 08:08, edited 1 time in total.
Lua is great!
List of my mods
I like singing. I like dancing. I like ... niyummm...
 

User avatar
orwell
Member
 
Posts: 467
Joined: Wed Jun 24, 2015 18:45
GitHub: orwell96
In-game: orwell

Re: [mod] More advanced area protection [denaid]

by orwell » Mon Aug 10, 2015 12:52

In latest development version, register_on_punchplayer was integrated. Callbacks can return true if no damage should be dealt. That is what i will use. I will push a new version soon with the API and PvP-Protection enabled IF register_on_punchplayer exists. (for the ones that compiled minetest on their own from github)
Looking forward for Minetest version 0.4.13 (please release it soon....)
lua_api.txt wrote:minetest.register_on_punchplayer(func(player, hitter, time_from_last_punch, tool_capabilities, dir, damage))`
* Called when a player is punched
...
* should return `true` to prevent the default damage mechanism


EDIT: Now it's out! Will work in 0.4.13 or later
Lua is great!
List of my mods
I like singing. I like dancing. I like ... niyummm...
 

User avatar
swordpaint12
Member
 
Posts: 187
Joined: Sat Aug 22, 2015 00:50
In-game: [swordpaint12][Belching_Balladeer]

Re: [mod] More advanced area protection [denaid]

by swordpaint12 » Fri Sep 18, 2015 20:34

Nice mod, just downloaded the latest version. Looks great, I can hardly wait to try it! I've been looking for a protection mod a while now, but this afternoon I looked seriously, not just on the side of what I was doing. Thank you for putting time into this!
Winter Cumicles
God's not dead; remember that!
Yay for MT! No MC here!
I am a human. I'm younger than 100 years old.
I've been playing Minetest since December 2014.
Fruit!

I'm amazed that I haven't been on here in so long! My latest minetest accomplishment was mining by hand (well, as close as you can get in a computer game) a circle 30 blocks in diameter. It took forever but it's pretty cool.
 

User avatar
orwell
Member
 
Posts: 467
Joined: Wed Jun 24, 2015 18:45
GitHub: orwell96
In-game: orwell

Re: [mod] More advanced area protection [denaid] [1.3]

by orwell » Thu Nov 26, 2015 10:33

celeron55 wrote:(in Forum information and guidelines)
also post a release notice in the topic.


read this recently. will do that now.
Hello, World! There is a new version.
Lua is great!
List of my mods
I like singing. I like dancing. I like ... niyummm...
 

User avatar
luizrpgluiz
Member
 
Posts: 17
Joined: Thu Mar 19, 2015 18:11
IRC: luizrpgluiz
In-game: luizinho

Re: [mod] More advanced area protection [denaid] [1.3]

by luizrpgluiz » Fri Nov 27, 2015 23:24

anti pvp is not working even in the most current version of minetest, I leave turned on the pvp in minetest.conf
 

User avatar
orwell
Member
 
Posts: 467
Joined: Wed Jun 24, 2015 18:45
GitHub: orwell96
In-game: orwell

Re: [mod] More advanced area protection [denaid] [1.3]

by orwell » Sat Nov 28, 2015 22:23

It is working.
Please check that you:
- created an area around your spawn point (to see if it is configured properly, see if the bottom left corner of the screen shows the name of that area)
- created a ruleset that allows all players to at least enter this area (don't forget this step, it could cause unwanted results when players join!)
- un-ticked the pvp checkbox.
Then it should work.
If you don't know how to do the things I described, see the readme.txt. To administer areas, you need to have the denaid_admin and denaid_bypass privileges. (denaid_bypass to ensure you do not bug around when you get thrown out of the spawn area)
Lua is great!
List of my mods
I like singing. I like dancing. I like ... niyummm...
 

sofar
Member
 
Posts: 781
Joined: Fri Jan 16, 2015 07:31
GitHub: sofar
IRC: sofar
In-game: sofar

Re: [mod] More advanced area protection [denaid] [1.3]

by sofar » Tue May 24, 2016 16:47

This mod crashes with 0.4.14 somehow when pipeworks is used. See:

https://forum.minetest.net/viewtopic.php?f=11&t=2155&p=218598#p218560

- what is the license of this code?
- can you use github?
 

User avatar
orwell
Member
 
Posts: 467
Joined: Wed Jun 24, 2015 18:45
GitHub: orwell96
In-game: orwell

Re: [mod] More advanced area protection [denaid] [1.3]

by orwell » Wed May 25, 2016 10:07

Lejo wrote:I update the denaid mod and now it works fine.
Thanks a lot


sofar wrote:- what is the license of this code?
- can you use github?

1. whoops, WTFPL
2. yes, i will move all my mods to github soon(TM)

I will post tyrant, denaid's successor, probably this weekend. tyrant tries to unify different independent protection mods into one framework. I will write further stuff on it when I post it.
Lua is great!
List of my mods
I like singing. I like dancing. I like ... niyummm...
 

Lejo
Member
 
Posts: 92
Joined: Mon Oct 19, 2015 16:32
GitHub: Lejo1
In-game: Lejo

Re: [mod] More advanced area protection [tyrant_denaid] [1.3

by Lejo » Wed Oct 12, 2016 10:28

I had on my server two problems with your new tyrant_denaid mod:
-If I want to set a ruleset the server crashes.
-If I punch a player the server crashes Here the Error:
Image

Please help me I need the mod.
Enjoy my Minigameserver Subgames for all!
https://forum.minetest.net/viewtopic.php?f=10&t=14480
 

User avatar
orwell
Member
 
Posts: 467
Joined: Wed Jun 24, 2015 18:45
GitHub: orwell96
In-game: orwell

Re: [mod] More advanced area protection [tyrant_denaid] [1.3

by orwell » Thu Oct 13, 2016 10:03

Sorry, i'm busy ATM. Next week.
Lua is great!
List of my mods
I like singing. I like dancing. I like ... niyummm...
 

User avatar
orwell
Member
 
Posts: 467
Joined: Wed Jun 24, 2015 18:45
GitHub: orwell96
In-game: orwell

Re: [mod] More advanced area protection [tyrant_denaid] [1.3

by orwell » Sun Oct 16, 2016 14:11

Second problem fixed, the error lies in 'tyrant'
Please re-download tyrant.
and, can you post the error log from the first error, if it still appears?
Lua is great!
List of my mods
I like singing. I like dancing. I like ... niyummm...
 

Lejo
Member
 
Posts: 92
Joined: Mon Oct 19, 2015 16:32
GitHub: Lejo1
In-game: Lejo

Re: [mod] More advanced area protection [tyrant_denaid] [1.3

by Lejo » Mon Oct 17, 2016 15:26

orwell wrote:Second problem fixed, the error lies in 'tyrant'
Please re-download tyrant.
and, can you post the error log from the first error, if it still appears?

Here is the second Error:
Image
It is only if I want to set a Ruleset and if it is a new map.

I hope it is to fix to. :)
Enjoy my Minigameserver Subgames for all!
https://forum.minetest.net/viewtopic.php?f=10&t=14480
 

User avatar
orwell
Member
 
Posts: 467
Joined: Wed Jun 24, 2015 18:45
GitHub: orwell96
In-game: orwell

Re: [mod] More advanced area protection [tyrant_denaid] [1.3

by orwell » Mon Oct 17, 2016 18:30

just my fault (both errors). of course it is to fix. thx for pointing this out, i wonder why this never showed up to me...
this time you need to update tyrant-denaid.
Lua is great!
List of my mods
I like singing. I like dancing. I like ... niyummm...
 

Lejo
Member
 
Posts: 92
Joined: Mon Oct 19, 2015 16:32
GitHub: Lejo1
In-game: Lejo

Re: [mod] More advanced area protection [tyrant_denaid] [1.3

by Lejo » Wed Oct 19, 2016 14:03

The first Error appears still.
The Name of the Area is:
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
Get Down

The id is:
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
29

Can the Problem be the name of my area?
Here the Error:
Image

Please help me.
Enjoy my Minigameserver Subgames for all!
https://forum.minetest.net/viewtopic.php?f=10&t=14480
 

User avatar
orwell
Member
 
Posts: 467
Joined: Wed Jun 24, 2015 18:45
GitHub: orwell96
In-game: orwell

Re: [mod] More advanced area protection [tyrant_denaid] [1.3

by orwell » Wed Oct 19, 2016 17:21

No, it can't. did you really update tyrant-denaid from github?
Maybe try the zip included in the first post, with this it should work.
Lua is great!
List of my mods
I like singing. I like dancing. I like ... niyummm...
 

Lejo
Member
 
Posts: 92
Joined: Mon Oct 19, 2015 16:32
GitHub: Lejo1
In-game: Lejo

Re: [mod] More advanced area protection [tyrant_denaid] [1.3

by Lejo » Wed Oct 19, 2016 17:46

Yes I really update it, so it is a other Error.
Enjoy my Minigameserver Subgames for all!
https://forum.minetest.net/viewtopic.php?f=10&t=14480
 

User avatar
orwell
Member
 
Posts: 467
Joined: Wed Jun 24, 2015 18:45
GitHub: orwell96
In-game: orwell

Re: [mod] More advanced area protection [tyrant_denaid] [1.3

by orwell » Thu Oct 20, 2016 11:30

Lejo wrote:Yes I really update it, so it is a other Error.

You're right. Same line, but different error. This time it should work. I named the function parameter 'player' but i should have called it 'pname'.
Please re-download tyrant_denaid.
Lua is great!
List of my mods
I like singing. I like dancing. I like ... niyummm...
 

Lejo
Member
 
Posts: 92
Joined: Mon Oct 19, 2015 16:32
GitHub: Lejo1
In-game: Lejo

Re: [mod] More advanced area protection [tyrant_denaid] [1.3

by Lejo » Sat Oct 22, 2016 17:28

Now all works thanks a lot.
Enjoy my Minigameserver Subgames for all!
https://forum.minetest.net/viewtopic.php?f=10&t=14480
 


Return to Mod Releases

Who is online

Users browsing this forum: No registered users and 20 guests

cron