[Mod] Protection mod library [tyrant]

User avatar
orwell
Member
 
Posts: 718
Joined: Wed Jun 24, 2015 18:45
Location: Raxacoricofallapatorius
In-game: orwell

[Mod] Protection mod library [tyrant]

by orwell » Sun May 29, 2016 16:33

Tyrant - an attempt to resolve conflicts between many area protection mods out there

This mod provides a library for area protection mods. It tries to exterminate conflicts caused by different area protection mods each behaving like the only one.
It does this by letting mods register a so-called integration.
- All areas you are in are displayed inside one HUD.
- tyrant automatically handles protection for entering, PvP, building, activating and modifying inventories and just asks integrations if this action can be performed by the player
- Area protection mods that allow players to self-protect areas can check if any other mod registered an area here, not just its own.
To see what can be done with integrations and how easy it should be to rewrite your mod into a tyrant integration, see the top of init.lua or one of my integrations.

License: WTFPL
Download: https://github.com/orwell96/tyrant/archive/master.zip
Rename folder to 'tyrant' after extracting.
Github: https://github.com/orwell96/tyrant/

You may want to download some integrations too:
tyrant_denaid: https://github.com/orwell96/tyrant_denaid/archive/master.zip
tyrant_claim: https://github.com/orwell96/tyrant_claim/archive/master.zip
I will post a tyrant-integrated fork of mg_villages soon. (without TM)
Lua is great!
List of my mods
I like singing. I like dancing. I like ... niyummm...
 

User avatar
TheReaperKing
Member
 
Posts: 529
Joined: Sun Nov 22, 2015 21:36

Re: [Mod] Protection mod library [tyrant]

by TheReaperKing » Sun Sep 25, 2016 17:18

This looks super interesting, I'm surprised no one else has responded. Is it possible to allow certain players for certain areas? Or even if a player sets an area, them having the ability to add other players that can help them build in their specific area. I'm trying to learn about protection mods today :) Thank you!

EDIT - I noticed you use wtfpl a lot. I'd really like to show my mods to your students and I was wondering, would you consider changing your wtfpl licenses to cc0? It protects you more too because it has the no warranty clause. I'll survive if you don't want to but it'd just make life easier and is also better for you too :)
Resources on happiness and life management - http://MikesHappyPlace.com
Project Lead of the Doom 3 Mod Last Man Standing - http://Doom3Coop.com
Project Lead of Platinum Arts Sandbox Free 3D Game Maker - http://SandboxGameMaker.com
Youtube Channel - https://www.youtube.com/user/PlatinumArtsKids
 

User avatar
orwell
Member
 
Posts: 718
Joined: Wed Jun 24, 2015 18:45
Location: Raxacoricofallapatorius
In-game: orwell

Re: [Mod] Protection mod library [tyrant]

by orwell » Sun Sep 25, 2016 20:51

A short summary on the tyrant mod suite:
tyrant: works
tyrant-denaid: works
tyrant-claim: does not work
I have changed mg_villages' protection.lua to work with tyrant but did not publish it yet.
There aren't any more mods that use tyrant, so it missed its purpose to unify protection systems.

Since, as you said, no one is interested, I just did nothing on this anymore. The system (meaning denaid+mg_villages) runs on my private server and just works. I just defined some 'spawn' and some 'no-pvp' a.s.o areas using denaid and have mg_villages running.
The denaid rulesets are a powerful tool.
Imagine:
- PlayerA may not even enter
- PlayerB may do everything
- PlayerC may enter and right-click nodes but not modify inventories and not build
- all others may nothing but enter
no problem
But denaid lays the definition of areas and their boundaries in the hands of the admin, the 'owner' can only edit the rulesets. So you would have to define the areas around your student's buildings yourself.
Since my main focus lays on my trains mod viewtopic.php?f=9&t=14726, I won't do anything on here unless there are bugs. If you want your players to define areas, maybe the 'areas' mod is better for you. It can't prohibit entering, right-click and inventory interactions, but else should fit your purpose. Try 'markers' with it, it simplifies the process of area setting a lot.
Lua is great!
List of my mods
I like singing. I like dancing. I like ... niyummm...
 

User avatar
TheReaperKing
Member
 
Posts: 529
Joined: Sun Nov 22, 2015 21:36

Re: [Mod] Protection mod library [tyrant]

by TheReaperKing » Sun Sep 25, 2016 20:59

Thanks so much for the great info! We'll be testing this mod and I definitely don't want to take you away from the trains mod, that is a favorite ours aka my students and I. I do a git pull for it every day :) Take care!
-Mike
Resources on happiness and life management - http://MikesHappyPlace.com
Project Lead of the Doom 3 Mod Last Man Standing - http://Doom3Coop.com
Project Lead of Platinum Arts Sandbox Free 3D Game Maker - http://SandboxGameMaker.com
Youtube Channel - https://www.youtube.com/user/PlatinumArtsKids
 


Return to Mod Releases



Who is online

Users browsing this forum: No registered users and 6 guests