[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: 165
Joined: Sat Jul 19, 2014 11:52
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
400 character limit? Am I writing a book?
I'm a Minetest player, 'learning' C++ and OpenGL, listening to Blind Guardian, Nightwish, Amon Amarth. Administrator on Craig's server. Likes cookies.
I live in Serbia.
 

Fixerol
Member
 
Posts: 633
Joined: Sun Jul 31, 2011 11:23
IRC: Fixer
In-game: Fixer

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

by Fixerol » Sun Aug 14, 2016 13:45

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

User avatar
DS-minetest
Member
 
Posts: 707
Joined: Thu Jun 19, 2014 19:49
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: 249
Joined: Wed Apr 23, 2014 09:38
GitHub: cx384
IRC: cx384

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

by cx384 » Mon Aug 15, 2016 10:54

1+
Can your read this?
 

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

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

by azekill_DIABLO » Mon Aug 15, 2016 12:24

awesome!
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
Hi, my username is azekill_DIABLO and i'm an exelent bug-maker(yeah...i know...i have a bad reputation)

azekill_DIABLO said: Mineyoshi+ABJ+Baggins= TOPIC HIJACKED.
My Mods and Stuff | Voxellar | VoxBox on GITHUB | M.I.L.A Monster engine
WEIRD MODDING CONTEST !!!
 

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: 3458
Joined: Wed Oct 29, 2014 20:05
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!
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
Hi, my username is azekill_DIABLO and i'm an exelent bug-maker(yeah...i know...i have a bad reputation)

azekill_DIABLO said: Mineyoshi+ABJ+Baggins= TOPIC HIJACKED.
My Mods and Stuff | Voxellar | VoxBox on GITHUB | M.I.L.A Monster engine
WEIRD MODDING CONTEST !!!
 

User avatar
XtremeHacker
Member
 
Posts: 89
Joined: Mon Aug 01, 2016 04:15
GitHub: XtremeHacker
In-game: XtremeHacker

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
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
function.name_of_thing_to_do
is impossible, then you didn't try hard enough. :P

Mods I work on: MicroExpansion
 


Return to WIP Mods

Who is online

Users browsing this forum: No registered users and 45 guests

cron