[Mod] Factions [0.8][factions]

Post Reply
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 » Post

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
GitHub: lisacvuk
IRC: lisac
In-game: lisacvuk
Location: Serbia, Užice

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

by lisacvuk » Post

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: 904
Joined: Sun Jul 31, 2011 11:23
IRC: Fixer
In-game: Fixer
Location: Ukraine

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

by Fixer » Post

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

User avatar
Desour
Member
Posts: 1472
Joined: Thu Jun 19, 2014 19:49
GitHub: Desour
IRC: Desour
In-game: DS
Location: I'm scared that if this is too exact, I will be unable to use my keyboard.

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

by Desour » Post

Looks nice. For war servers its a good mod!
he/him; Codeberg; GitHub; ContentDB; public personal TODO list; "DS" is preferred (but often too short)

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 » Post

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: 655
Joined: Wed Apr 23, 2014 09:38
GitHub: cx384
IRC: cx384

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

by cx384 » Post

Nice mod!
Last edited by cx384 on Sun Mar 10, 2019 10:37, edited 2 times in total.
Can your read this?

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

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

by azekill_DIABLO » Post

awesome!
Gone, but not dead. Contact me on discord: azekill_DIABLO#6565
DMs are always open if you want to get in touch!

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

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

by kaen » Post

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 » Post

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: 7507
Joined: Wed Oct 29, 2014 20:05
GitHub: azekillDIABLO
In-game: azekill_DIABLO
Location: OMICRON
Contact:

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

by azekill_DIABLO » Post

i just watched it... he is true! the code is very nicely written! well presented; easy to read; light; simple... great job!
Gone, but not dead. Contact me on discord: azekill_DIABLO#6565
DMs are always open if you want to get in touch!

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

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

by XtremeHacker » Post

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: 47
Joined: Tue Jul 18, 2017 21:01
Contact:

.

by usename » Post

.
Last edited by usename on Fri Aug 03, 2018 02:26, edited 1 time in total.
Play my game at https://protop.link/rock-it-to-space! Visit my site for information, posts, and games at https://protop.link!

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 » Post

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 viewtopic.php?f=14&t=18137

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

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

by Stix » Post

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.

Grandolf
Member
Posts: 41
Joined: Sun Mar 26, 2017 23:23
GitHub: Grandolf
IRC: Grandolf
In-game: Grandolf
Location: USA
Contact:

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

by Grandolf » Post

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
My server, Metropolis viewtopic.php?f=10&t=19191

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

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

by Fixer » Post

Git repo no longer available

User avatar
BirgitLachner
Member
Posts: 393
Joined: Thu May 05, 2016 10:18
In-game: Bibs

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

by BirgitLachner » Post

Is there an other mod I can use to define teams or factions?

Coder12
Member
Posts: 162
Joined: Sat Sep 30, 2017 00:15

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

by Coder12 » Post

BirgitLachner wrote:Is there an other mod I can use to define teams or factions?
viewtopic.php?f=9&t=20949

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 8 guests