Author Topic: [M] Madmin - Open Source, Native Compatible Admin Tools  (Read 32830 times)

0 Members and 1 Guest are viewing this topic.

MadocComadrin

  • Water-Borne Annelid
  • Grandmaster Knight
  • *
  • My legend begins in the 12th Century...
    • Steam - MadocComadrin
    • View Profile
  • Faction: Neutral
  • MP nick: TMW_MadocComadrin
  • M&BWBWF&S
[M] Madmin - Open Source, Native Compatible Admin Tools
« on: June 03, 2011, 02:26:47 AM »

Sophisticated Tools for Responsible Admins


Version: 0.6 Beta
Download: http://www.mbrepository.com/file.php?id=2937

Features

Madmin has many features that make administrating your Warband
server much easier. Many can be accessed in the Escape Menu while
playing, but others work with certain keys.

Automatic Features


Various features in Madmin happen automatically! Here are all of
them.
   
  • Auto-kicks and Auto-temp bans - Players who teamkill or teamwound too many times per round will be automatically kicked from the server. Players who are auto-kicked too many times will be auto-temp banned.
  • Removing Stray Horses - too many stray horses can lag your server. The feature removes stray horses every 60 seconds.
  • Fixed spawns in Siege Mode for custom maps - Siege mode is a finicky game-mode when it comes to spawning players. In Native, sometimes attackers spawn in what are normally defender spawn-points and vice-versa. While Native maps are balanced for this phenomenon, your custom maps may not be, so Madmin makes sure defenders spawn only in defender spawn-points and attackers spawn only in attacker spawn-points.
  • Server Messages - you can create custom server messages that can be shown at an interval of your choosing during play.
  • Admin Tiers - have an admin that you don't feel is ready to handle some of the features in Madmin? Add his player id to madmin_config.py and he or she will only be able to kick, ban and display admin messages.   
Escape menu features

All of these features can be accessed through the normal Escape
Menu while playing as an admin
   
  • Madmin Options - opens the Madmin Options panel. See the Madmin Options section below.
  • Send a PM to all Admins - allows you to send a chat message to all admins on the server.
  • Autobalance - activates the game's autbalance script, balancing teams according to the server settings.
  • Force All to Spectator - forces every player to go spectator; useful for events.
  • Force Player to Spectator - forces a single player to go spectator; useful for disciplining players without kicking them.
  • Swap Player's Team - switches a player from his current team to the other team; useful for events or manual balancing.
  • Kill Player - kills the selected player; useful for disciplining players without kicking them, killing afk players, or rescuing stuck players.
  • Temporarily Ban Player - Bans a player for 1 hour.

A note on the player list:

Madmin's player list differs quite a bit from Natives. When selecting a player to kick, ban, etc, you can see how much team-damage they caused, how many tks they have, what team they are on, and their ping -- even if you aren't playing as an admin!

Madmin Options

This menu allows you to change in-game many of the default
settings you made before compiling.

   
  • Class limits - allows you to turn class limits on or off and set how many troops of each class can be on a team. Note the Khergit Lancers count as Infantry.
  • Don't auto-kick players - allows you to turn off auto-kicking players for teamkilling or team-wounding.
  • Teamkill and team wounding limits - allows you to set how many tks or how much team damage a player can accumulate before being auto-kicked.
  • Don't automatically kill horses - allows you to turn off auto-killing of horses.
  • Kill All Horses Now - removes all stray horses immediately.
  • Banhammer Settings - allows you to set how the banhammer should work (kill, kick, temp ban, or ban).  *Note that this effects the banhammer for every admin on the server.
  • Player Browser - shows information about a single player, including score, kills, teamkills, equipment, and more. You can also kick, temp ban, ban, etc. a player from the player browser.
Keyboard Activated Features

Some features in Madmin are activated by a key-press. These
features an their default keys are listed below. Note, re-assigning
keys is not implemented at the moment (Version 0.5), but is planned
for future versions.

   
  • Admin Message (u) - allows you to send a Server message to all players.
  • Force-push (o) - Knocks all players within a small radius around you to the ground and creates a cloud of smoke; useful for stopping teamkillers without kicking them or breaking up team fights when you don't know who started it.
  • Customizable Admin Armor (i) - After pressing this key, you will spawn with admin armor you chose in the config file next time you spawn.
  • Banhammer (; semicolon) - Sometimes players need a little tough love, and sometimes, you want to deliver that personally. The banhammer is a super-fast weapon that will temporarily ban players when they are hit.
  • Fade out (k) - fades your player out and respawns you somewhere else. Useful for respawning with admin armor.
  • Cheer (m) - Makes your player cheer; not very useful, but fun!
  • Taunt (, comma) - Makes your player cheer; not very useful, but fun!
Version History

  • Madmin 0.6 BETA released
    • Added Banhammer settings
    • Added anonymous admin messages
    • Added Player Browser
    • Added Auto-Temp Bans
    • Added Auto-kicking for teamwounding
    • Added Taunts
    • Added healing players (under player browser)
    • Fixed bug preventing the player selection screen from updating for non-admins making a poll
    • Various small bugfixes
       
  • Madmin 0.5 BETA released

Special Thanks

I'd like to give a special thanks to the following people or groups
  • Taleworlds and Armagan - for developing such a great, moddable game
  • The Golden Kingdom - for being a great clan and keeping me interested enough to make this mod
  • GK Admins - for testing various features of Madmin
  • Deaf Blind Dave - for being a great Cheif Admin for GK and helping test various things in Madmin
  • JaXmthemirc - for being a great Cheif Admin for GK and helping test various things in Madmin
  • Denizens of the Forge - for answering any questions I had
  • Theoris and Swyter - for making the Module System Command Database
  • cmpxchg8b - for answering various questions on the innards of the Warband Engine and for WSE (which will be incorporated into a seperate version of Madmin in the future)
  • The makers of Notepad++ and jEdit -  for increasing productivity with their great programs.
  • The Malion Mercenaries - for copper and love!
« Last Edit: November 08, 2011, 07:07:08 PM by MadocComadrin »
(⊙︿⊙✿)

Outlawed

  • Sergeant Knight
  • *
  • Mobil Guard - Mutaharikee Al-Talee'a
    • View Profile
  • Faction: Sarranid
  • MP nick: GK_ORA_Salahudin
  • WB
Re: [WB][MP] Madmin - Open Source, Native Compatible Admin Tools
« Reply #1 on: June 03, 2011, 02:56:38 AM »
This is quite fantastic Madoc.
Well done =3

Ariel of Yalen

  • Grandmaster Knight
  • *
  • Knight Banneret of the Paladins of the Round Table
    • View Profile
  • Faction: Rhodok
  • MP nick: PRT_Ariel
Re: [WB][MP] Madmin - Open Source, Native Compatible Admin Tools
« Reply #2 on: June 03, 2011, 03:03:32 AM »
Wow, looks impressive. I anticipate PRT putting this to good use! ;)

Trevty

  • Belieber Man
  • Grandmaster Knight
  • *
  • <3 Bieber
    • Skype - Trevty1995
    • Steam - trevty
    • View Profile
  • Faction: Neutral
  • MP nick: Hoboknight_Trevty
  • M&BWBWF&SNW
Re: [WB][MP] Madmin - Open Source, Native Compatible Admin Tools
« Reply #3 on: June 03, 2011, 03:36:02 AM »
Awesome!  If I can get my hands on a spare Windows computer, this will definitely be going up.

Trevty

  • Belieber Man
  • Grandmaster Knight
  • *
  • <3 Bieber
    • Skype - Trevty1995
    • Steam - trevty
    • View Profile
  • Faction: Neutral
  • MP nick: Hoboknight_Trevty
  • M&BWBWF&SNW
Re: [WB][MP] Madmin - Open Source, Native Compatible Admin Tools
« Reply #4 on: June 03, 2011, 03:41:11 AM »
Then download and install it.

Trevty

  • Belieber Man
  • Grandmaster Knight
  • *
  • <3 Bieber
    • Skype - Trevty1995
    • Steam - trevty
    • View Profile
  • Faction: Neutral
  • MP nick: Hoboknight_Trevty
  • M&BWBWF&SNW
Re: [WB][MP] Madmin - Open Source, Native Compatible Admin Tools
« Reply #5 on: June 03, 2011, 03:43:23 AM »
You can put them anywhere.  But you have to install Python as well.

Logain

  • Recruit
  • *
  • Carai an Caldazar!
    • View Profile
  • Faction: Swadian
  • WBWF&S
Re: [WB][MP] Madmin - Open Source, Native Compatible Admin Tools
« Reply #6 on: June 03, 2011, 03:44:46 AM »
The Automatic Horse Kill is awesome.

Me and my mates play on arena as Swadia for Jousting matches, we normally have to call truce to kill the fifty billion horses that are chilling around the map.
"Tia mi aven Moridin isainde vadin."

Trevty

  • Belieber Man
  • Grandmaster Knight
  • *
  • <3 Bieber
    • Skype - Trevty1995
    • Steam - trevty
    • View Profile
  • Faction: Neutral
  • MP nick: Hoboknight_Trevty
  • M&BWBWF&SNW
Re: [WB][MP] Madmin - Open Source, Native Compatible Admin Tools
« Reply #7 on: June 03, 2011, 03:49:37 AM »
* Trevty sighs
Go and do what this says.  Then copy the files from the .zip into the module system folder.  Tweak whatever you want in the config file and then compile it.

Trevty

  • Belieber Man
  • Grandmaster Knight
  • *
  • <3 Bieber
    • Skype - Trevty1995
    • Steam - trevty
    • View Profile
  • Faction: Neutral
  • MP nick: Hoboknight_Trevty
  • M&BWBWF&SNW
Re: [WB][MP] Madmin - Open Source, Native Compatible Admin Tools
« Reply #8 on: June 03, 2011, 03:51:29 AM »
That sounds painful, but good luck. :P

Trevty

  • Belieber Man
  • Grandmaster Knight
  • *
  • <3 Bieber
    • Skype - Trevty1995
    • Steam - trevty
    • View Profile
  • Faction: Neutral
  • MP nick: Hoboknight_Trevty
  • M&BWBWF&SNW
Re: [WB][MP] Madmin - Open Source, Native Compatible Admin Tools
« Reply #9 on: June 03, 2011, 04:03:52 AM »
You don't copy the module system files into native.  You should put them somewhere like the documents folder.  From there, you compile it.

Rhuarc

  • Knight
  • *
  • Knight, Paladins of the Round Table
    • View Profile
  • Faction: Swadian
  • MP nick: Rhuarc
  • WBM&BWF&S
Re: [WB][MP] Madmin - Open Source, Native Compatible Admin Tools
« Reply #10 on: June 03, 2011, 04:17:45 AM »
Very good Madoc! I am impressed!
Nemo me impune lacessit.

MadocComadrin

  • Water-Borne Annelid
  • Grandmaster Knight
  • *
  • My legend begins in the 12th Century...
    • Steam - MadocComadrin
    • View Profile
  • Faction: Neutral
  • MP nick: TMW_MadocComadrin
  • M&BWBWF&S
Re: [WB][MP] Madmin - Open Source, Native Compatible Admin Tools
« Reply #11 on: June 03, 2011, 05:15:12 AM »
Thanks for all the support you guys! For the people having trouble, I will upload a version with it plugged into Native (both compiled and source).
(⊙︿⊙✿)

Verzögern

  • Recruit
  • *
  • Permanently Banned
    • View Profile
  • Faction: Vaegir
  • MP nick: PowerMen_gaydemon
Re: [WB][MP] Madmin - Open Source, Native Compatible Admin Tools
« Reply #12 on: June 03, 2011, 05:31:46 AM »
Unlike other open-source mods, Madmin isn't very hard to install for Native or other mods. Just follow these steps:

Copy all of the Madmin files to your module system folder.
Open module_scripts.py and add the following lines at the bottom, OUTSIDE of the script definitions:
from madmin_utils import *
addMadminScripts(scripts)
Open module_items.py and add the following lines at the bottom, OUTSIDE of the item defintions:
from madmin_utils import *
addMadminItems(items)
Open module_mission_template.py and add the following lines at the bottom, OUTSIDE of the mission template definitions:
from madmin_utils import *
addMadminTriggers(mission_templates)
Open module_presentations and add the following lines at the bottom, OUTSIDE of the presentation definitions:
from madmin_utils import *
addMadminPresentations(presentations)
Open madmin_config.py and change the settings as you please.
Build your module. If you did everything correctly, it should compile normal



i did all of this but WHAT is 'definitions' ?? i put them at the very very bottom of these files and it built correctly but now i do not know what to do

Splintert

  • Grandmaster Knight
  • *
    • Steam - http://steamcommunity.com/id/splintert
    • View Profile
  • Faction: Neutral
  • MP nick: Splintert
  • M&BWB
Re: [WB][MP] Madmin - Open Source, Native Compatible Admin Tools
« Reply #13 on: June 03, 2011, 06:01:00 AM »
Would it be possible to add support for mod compatibility?

AKA An_Admin, Ivalis, Strange_Wanderer, Ala_Hakem, Taurus_Verres_Triarius, Abul_al_Khayr, Arccosine, Ytri, Lerath_of_Rivacheg, Sly_Pilgrim, Splintert_NAPW and GA_Splintert
"Giving the people what they want doesn't work if the people are retards...." - Droznig

Outlawed

  • Sergeant Knight
  • *
  • Mobil Guard - Mutaharikee Al-Talee'a
    • View Profile
  • Faction: Sarranid
  • MP nick: GK_ORA_Salahudin
  • WB
Re: [WB][MP] Madmin - Open Source, Native Compatible Admin Tools
« Reply #14 on: June 03, 2011, 06:38:52 AM »
Lol. I have not seen such a pigglettroll in a long time.