[mod] More advanced area protection [tyrant_denaid] [1.3]
- orwell
- Member
- Posts: 958
- Joined: Wed Jun 24, 2015 18:45
- GitHub: orwell96
- IRC: orwell96_mt
- In-game: orwell
- Location: Raxacoricofallapatorius
[mod] More advanced area protection [tyrant_denaid] [1.3]
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_dena ... master.zip
Github: https://github.com/orwell96/tyrant_denaid
For those who are not happy with it: Remove the '-master' suffix on mod folders after extracting!
------------------
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_dena ... master.zip
Github: https://github.com/orwell96/tyrant_denaid
For those who are not happy with it: 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.
-
- Member
- Posts: 24
- Joined: Fri Oct 17, 2014 18:53
- GitHub: Snipie
- IRC: Niebieski
- In-game: Niebieski
Re: [mod] More advanced area protection [denaid]
Well done orwell. I didn't test it though. I think PVP protection is a good idea.
Good luck.
Good luck.
-
- Member
- Posts: 1233
- Joined: Tue Oct 23, 2012 12:59
- GitHub: Dragonop
- IRC: Dragonop
- In-game: Dragonop
- Location: Argentina
Re: [mod] More advanced area protection [denaid]
This mods looks like if you ruled your own communist country. Kinda cool tough.
- Diamond knight
- Member
- Posts: 475
- Joined: Sun Apr 19, 2015 19:50
- GitHub: Diamondknight
- In-game: Ferrumprinceps
- Location: Chilling in Constantinople
- Contact:
Re: [mod] More advanced area protection [denaid]
maybe also a pvp alowwed area for an arena on a server that u can only pvp in arenas
My modding team: https://github.com/basilea-rhomaion
- orwell
- Member
- Posts: 958
- Joined: Wed Jun 24, 2015 18:45
- GitHub: orwell96
- IRC: orwell96_mt
- In-game: orwell
- Location: Raxacoricofallapatorius
Re: [mod] More advanced area protection [denaid]
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.
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.
- orwell
- Member
- Posts: 958
- Joined: Wed Jun 24, 2015 18:45
- GitHub: orwell96
- IRC: orwell96_mt
- In-game: orwell
- Location: Raxacoricofallapatorius
Re: [mod] More advanced area protection [denaid]
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....)
Looking forward for Minetest version 0.4.13 (please release it soon....)
EDIT: Now it's out! Will work in 0.4.13 or laterlua_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
- swordpaint12
- Member
- Posts: 191
- Joined: Sat Aug 22, 2015 00:50
- In-game: [swordpaint12][Belching_Balladeer]
- Location: Foobass, isle of Atlantis, castle of Bardvendelle
Re: [mod] More advanced area protection [denaid]
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!
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.
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.
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.
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.
- orwell
- Member
- Posts: 958
- Joined: Wed Jun 24, 2015 18:45
- GitHub: orwell96
- IRC: orwell96_mt
- In-game: orwell
- Location: Raxacoricofallapatorius
Re: [mod] More advanced area protection [denaid] [1.3]
read this recently. will do that now.celeron55 wrote:(in Forum information and guidelines)
also post a release notice in the topic.
Hello, World! There is a new version.
-
- Member
- Posts: 20
- Joined: Thu Mar 19, 2015 18:11
- IRC: luizrpgluiz
- In-game: luizinho
Re: [mod] More advanced area protection [denaid] [1.3]
anti pvp is not working even in the most current version of minetest, I leave turned on the pvp in minetest.conf
cdb_HTWLEyTsySH8
- orwell
- Member
- Posts: 958
- Joined: Wed Jun 24, 2015 18:45
- GitHub: orwell96
- IRC: orwell96_mt
- In-game: orwell
- Location: Raxacoricofallapatorius
Re: [mod] More advanced area protection [denaid] [1.3]
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)
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)
Re: [mod] More advanced area protection [denaid] [1.3]
This mod crashes with 0.4.14 somehow when pipeworks is used. See:
viewtopic.php?f=11&t=2155&p=218598#p218560
- what is the license of this code?
- can you use github?
viewtopic.php?f=11&t=2155&p=218598#p218560
- what is the license of this code?
- can you use github?
- orwell
- Member
- Posts: 958
- Joined: Wed Jun 24, 2015 18:45
- GitHub: orwell96
- IRC: orwell96_mt
- In-game: orwell
- Location: Raxacoricofallapatorius
Re: [mod] More advanced area protection [denaid] [1.3]
Lejo wrote:I update the denaid mod and now it works fine.
Thanks a lot
1. whoops, WTFPLsofar wrote: - what is the license of this code?
- can you use github?
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.
Re: [mod] More advanced area protection [tyrant_denaid] [1.3
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:
Please help me I need the mod.
-If I want to set a ruleset the server crashes.
-If I punch a player the server crashes Here the Error:
Please help me I need the mod.
- orwell
- Member
- Posts: 958
- Joined: Wed Jun 24, 2015 18:45
- GitHub: orwell96
- IRC: orwell96_mt
- In-game: orwell
- Location: Raxacoricofallapatorius
Re: [mod] More advanced area protection [tyrant_denaid] [1.3
Sorry, i'm busy ATM. Next week.
- orwell
- Member
- Posts: 958
- Joined: Wed Jun 24, 2015 18:45
- GitHub: orwell96
- IRC: orwell96_mt
- In-game: orwell
- Location: Raxacoricofallapatorius
Re: [mod] More advanced area protection [tyrant_denaid] [1.3
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?
Please re-download tyrant.
and, can you post the error log from the first error, if it still appears?
Re: [mod] More advanced area protection [tyrant_denaid] [1.3
Here is the second Error: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?
It is only if I want to set a Ruleset and if it is a new map.
I hope it is to fix to. :)
- orwell
- Member
- Posts: 958
- Joined: Wed Jun 24, 2015 18:45
- GitHub: orwell96
- IRC: orwell96_mt
- In-game: orwell
- Location: Raxacoricofallapatorius
Re: [mod] More advanced area protection [tyrant_denaid] [1.3
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.
this time you need to update tyrant-denaid.
Re: [mod] More advanced area protection [tyrant_denaid] [1.3
The first Error appears still.
The Name of the Area is:
The id is:
Can the Problem be the name of my area?
Here the Error:
Please help me.
The Name of the Area is:
Code: Select all
Get Down
Code: Select all
29
Here the Error:
Please help me.
- orwell
- Member
- Posts: 958
- Joined: Wed Jun 24, 2015 18:45
- GitHub: orwell96
- IRC: orwell96_mt
- In-game: orwell
- Location: Raxacoricofallapatorius
Re: [mod] More advanced area protection [tyrant_denaid] [1.3
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.
Maybe try the zip included in the first post, with this it should work.
Re: [mod] More advanced area protection [tyrant_denaid] [1.3
Yes I really update it, so it is a other Error.
- orwell
- Member
- Posts: 958
- Joined: Wed Jun 24, 2015 18:45
- GitHub: orwell96
- IRC: orwell96_mt
- In-game: orwell
- Location: Raxacoricofallapatorius
Re: [mod] More advanced area protection [tyrant_denaid] [1.3
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'.Lejo wrote:Yes I really update it, so it is a other Error.
Please re-download tyrant_denaid.
Who is online
Users browsing this forum: SkyBuilder1717 and 39 guests