[Mod] Factions [0.8][factions]

DoctorFool
Member
 
Posts: 20
Joined: Sat May 04, 2013 20:49
GitHub: shamoanjac
IRC: shamoanjac
In-game: shamoanjac

[Mod] Factions [0.8][factions]

by DoctorFool » Sun Aug 14, 2016 13:22

At last a real factions plug-in for Minetest, easily extensible and easy to use.
Code: WTFPL
Assets: no assets at the moment.
Mod dependencies: banners (though this one can be easily removed)
Source+download: https://github.com/shamoanjac/factions
This mod at last brings real factions to Minetest servers, with faction wars (still a WIP but almost done), claiming based on power, faction chat, customizable ranks, etc.

Basic use:
  • /f : shows the faction you're in.
  • /f create <name>: create a faction with yourself as the leader.
  • /f claim : claim the parcel you're on, provided that you've got enough power.
  • /f disband : disband your faction
  • /f join <faction>: join an existing faction, provided that you are invited (or the faction is open).
  • /f invite <player>: invite a player (feature warning: the player has to be online) to your faction.
  • /f help: lists all available commands, including the many that are not included here.

Some features:
  • Doing stuff within factions require different permissions, which are given to different ranks (see commands /f newrank, /f promote, /f ranks, etc.)
  • Default ranks are "leader", "moderator" and "member", but you can add new ones with custom privileges
  • Factions can be free-to-join (see commands /f close and /f open)
  • Power is given by crafting power banners (by default, each one of them gives 10 power)
  • Claiming a parcel costs, by default, 0.5 power (customizable with a single variable in factions.lua)
  • You can claim parcels from a faction which has negative power
  • War banners can be placed on an enemy parcel, allowing editing in it for your team until it is removed (WIP, still not working)

Additional notes:
  • Parcels are 16x16 columns of nodes.
  • Testing MP modes in SP isn't easy, bugs are to be expected.
  • As a design decision (though this can be overriden with a single variable), parcel protection only works down to Y=-512.
Last edited by DoctorFool on Mon Aug 15, 2016 10:40, edited 2 times in total.
 

User avatar
lisacvuk
Member
 
Posts: 274
Joined: Sat Jul 19, 2014 11:52
Location: Serbia, Užice
GitHub: lisacvuk
IRC: lisac
In-game: lisacvuk

Re: [Mod] Factions [0.7][factions]

by lisacvuk » Sun Aug 14, 2016 13:33

Seems awesome. I can't wait to see a server using it :D
It's lisac, not lisa.
400 character limit? Am I writing a book?
Administrator on Craig's server. Minetest player.
"The enemy pales when they see the face of Dazzle!" ~ Dazzle obviously.
I live in Serbia.
Steam | OpenDOTA
My mods:
Tool ranks
I appreciate donations in TF2 items. :)
 

User avatar
Fixer
Member
 
Posts: 866
Joined: Sun Jul 31, 2011 11:23
Location: Ukraine
IRC: Fixer
In-game: Fixer

Re: [Mod] Factions [0.7][factions]

by Fixer » Sun Aug 14, 2016 13:45

Awesome! Can't wait to see it on servers.
 

User avatar
DS-minetest
Member
 
Posts: 1026
Joined: Thu Jun 19, 2014 19:49
Location: in front of my pc (which is at home)
GitHub: DS-Minetest
In-game: DS

Re: [Mod] Factions [0.7][factions]

by DS-minetest » Mon Aug 15, 2016 10:05

Looks nice. For war servers its a good mod!
Do not call me -minetest.
Call me DS or DS-minetest.
I am German, so you don't have to pm me English if you are also German.
The background is a lie.
 

DoctorFool
Member
 
Posts: 20
Joined: Sat May 04, 2013 20:49
GitHub: shamoanjac
IRC: shamoanjac
In-game: shamoanjac

Re: [Mod] Factions [0.8][factions]

by DoctorFool » Mon Aug 15, 2016 10:41

Update:
- Power banners now don't increase power, but rather maximum power
- Power is slowly regenerated over time (settings in factions.lua) until it reaches the maximum power value
- Power is lost by dying
 

User avatar
cx384
Member
 
Posts: 492
Joined: Wed Apr 23, 2014 09:38
GitHub: cx384
IRC: cx384
 

User avatar
azekill_DIABLO
Member
 
Posts: 7460
Joined: Wed Oct 29, 2014 20:05
Location: OMICRON
GitHub: azekillDIABLO
In-game: azekill_DIABLO
 

kaen
New member
 
Posts: 9
Joined: Sun Aug 14, 2016 18:07

Re: [Mod] Factions [0.8][factions]

by kaen » Fri Aug 19, 2016 05:27

This is really badly needed, and is also exceedingly well written. Also lol: https://github.com/shamoanjac/factions/ ... ter/log#L4

Good work, it looks very extensible and easy to integrate into a larger framework.
 

DoctorFool
Member
 
Posts: 20
Joined: Sat May 04, 2013 20:49
GitHub: shamoanjac
IRC: shamoanjac
In-game: shamoanjac

Re: [Mod] Factions [0.8][factions]

by DoctorFool » Sat Aug 20, 2016 09:09

kaen wrote:This [...] is also exceedingly well written

Wow, this is the first time anyone compliments me on my code, thanks! :D
 

User avatar
azekill_DIABLO
Member
 
Posts: 7460
Joined: Wed Oct 29, 2014 20:05
Location: OMICRON
GitHub: azekillDIABLO
In-game: azekill_DIABLO

Re: [Mod] Factions [0.8][factions]

by azekill_DIABLO » Sat Aug 20, 2016 09:42

i just watched it... he is true! the code is very nicely written! well presented; easy to read; light; simple... great job!
 

User avatar
XtremeHacker
Member
 
Posts: 174
Joined: Mon Aug 01, 2016 04:15
Location: X -0, Y -0, Z -0
GitHub: MisterXtreme
IRC: MrXtreme
In-game: MrXtreme

Re: [Mod] Factions [0.8][factions]

by XtremeHacker » Wed Dec 21, 2016 05:43

A factions mod!
Wow, now all we need is some servers use it. :)
If you say that
Code: Select all
function.name_of_thing_to_do
is impossible, then you didn't try hard enough. :P

Mods I work on: MicroExpansion
 

usename
Member
 
Posts: 46
Joined: Tue Jul 18, 2017 21:01

.

by usename » Sat Aug 19, 2017 15:49

.
Last edited by usename on Fri Aug 03, 2018 02:26, edited 1 time in total.
 

User avatar
SonosFuer
Member
 
Posts: 104
Joined: Sun Jul 09, 2017 00:32
GitHub: apachano
IRC: SonosFuer
In-game: SonosFuer

Re: [Mod] Factions [0.8][factions]

by SonosFuer » Sat Aug 19, 2017 17:52

This looks amazing, I have been waiting for this.
Working on a content database for minetest mods, servers, and etc Check it out and give me feedback at https://forum.minetest.net/viewtopic.php?f=14&t=18137
 

User avatar
Stix
Member
 
Posts: 1303
Joined: Fri Aug 04, 2017 14:19
Location: USA
IRC: nil
In-game: Stix [+alts]

Re: [Mod] Factions [0.8][factions]

by Stix » Sat May 05, 2018 12:17

could you please add a readme file that explains the specifics of how this faction mod works?
Hey, what can i say? I'm the bad guy.
Next release of your favorite game? "Bugfixes" --Wuzzy
[OLD]The new Minetest-offtopic can be found here: https://minetestoftopic.createaforum.com/index.php
 

User avatar
Grandolf
Member
 
Posts: 38
Joined: Sun Mar 26, 2017 23:23
Location: USA
GitHub: Grandolf
IRC: Grandolf
In-game: Grandolf

Re: [Mod] Factions [0.8][factions]

by Grandolf » Thu Oct 18, 2018 02:24

its being used on Elkiens factions server, but people are having trouble with it not letting them build in their own land, despite them being the leader of their faction
 

User avatar
Fixer
Member
 
Posts: 866
Joined: Sun Jul 31, 2011 11:23
Location: Ukraine
IRC: Fixer
In-game: Fixer
 


Return to WIP Mods



Who is online

Users browsing this forum: No registered users and 0 guests