Raised This Month: $252 Target: $400
 63% 

WarriorMod: Clanwar manager


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
MistaGee
Senior Member
Join Date: Aug 2004
Location: Germany (Fulda)
Old 12-02-2006 , 14:12   WarriorMod: Clanwar manager
Reply With Quote #1

WarriorMod is a serverside MetaMod plugin allowing you to very comfortably play a ClanWar and have it managed completely automatically.

This plugin is outdated, please use this version: http://forums.alliedmods.net/showthread.php?t=64768


This plugin allows an admin to focus what a ClanWar is really about: Gaming. You just have to type a single command (yes, one command!) to make your server exec the configs, record a demo, change sv_password, disable fadetoblack, run a complete ClanWar, and write the results into MySQL, depending on what you want. By choosing the command you type to start the war, you set what the plugin will do before it actually comes to gaming ;)


IMPORTANT
Do not misunderstand me: You do NOT need a MySQL server to be able to use this plugin. It's only a gimmick!

The plugin is available for download right here: Downloads

You can use the following commands on server console or via rcon:

war_start
  • The ESL Config will be loaded that fits best for the number of players who are on the server the moment this command is used. If war_record is set, a Demo will be recorded by SrcTV, and if war_chpassword is set, a random sv_password will be generated and said by Console.[/*]
  • Everyone will be asked: Is your team ready? In the menu that shows up in this stadium a summary of the current game settings is given, indicating:
    * MaxRounds: value can be freely selected between 1 and 500 ;)
    * FadeToBlack setting (will be set after executing ESL config)
    * sv_pausable setting (will be set after executing ESL config)
    * whether or not automatic demo recording is activated
    * What will happen when every team is ready (Knife or Live)[/*]
  • when everyone announced that they're ready, knife round will start. everyone will drop their stuff at the beginning of the round, and ppl that shoot with something other than the knife (even nades or the bomb!) will be slayed instantly. the team that won knife round will be shown a menu asking, "Stay or leave?".[/*]
  • if the winning team said "leave", all players will switch teams automatically.[/*]
  • The script does 3 restarts and goes live.[/*]
  • after a specific amount of rounds has been played (can be set in war_rounds), everyone switches teams automatically.[/*]
  • The script does 3 restarts and goes live again.[/*]
  • After all rounds have been played, the script displays the total score of all rounds (except knife ). If enabled, it writes the result into a MySQL database. Then it resets itself and waits for the next war to begin.[/*]
war_live
Like above, except that the knife round will be skipped.

war_go_knife
Like war_start, except the knife round starts immediately and no-one will be asked, "Are you ready?"

war_go_live
No asking, no knife round, immediately get to business ^_^

war_reset
If anyone messes sh!t up or ppl leave or whatever, use this command to tell my plugin that the war was cancelled. If you do not do this, starting another war will get a bit messy.

war_kickban_t / war_kickban_ct
Kicks and bans one of the two teams immediately by SteamID, so you don't have to walk through the whole mani menu for 5 players, but only use this command. What this does depends on the value set in war_bantime.

The plugin will count rounds during war, displaying the number of rounds played, number of rounds to play, and the current score. While in War, ppl will not be able to change teams, unless teamchange is needed. By that time, WarriorMod actually swaps people automatically to the opposite team, waits for everyone to choose their skin, and goes live again.



You can integrate my plugin into Mani Admin Plugin's menu. To do that, just copy and paste the following lines into $MOD/cfg/mani_admin_plugin/rconlist.txt:
Code:
"[WAR] Rdy? -> Knife" war_start
"[WAR] Rdy? -> Live" war_live
"[WAR] Knife" war_go_knife
"[WAR] Live" war_go_live
"[WAR] Reset" war_reset
After a map change, you will see those commands in the RCon Commands section of Mani Admin Plugin's menu



Config
There are the following CVars:

war_rounds
How many rounds do you want to play? For example, 12 means MR12, 15 means MR15. Freely decidable.
Default: 12

war_record
Set to 1 if you want a demo to be recorded, otherwise 0.
Default: 1

war_fadetoblack
ESL config sets mp_fadetoblack to 1. Most ppl don't like this, so my plugin sets mp_fadetoblack to the value that's given here, after ESL config was loaded, so set to 0 if you want FTB to be off.
Default: 0

war_pausable
Same as war_fadetoblack regarding sv_pausable.
Default: 0

war_AskRdyB4Live
Set this to 1 if you want the plugin to display the "Ready?" question once again before going Live.
Default: 0

war_changepassword
Set to 1 if you want sv_password changed during config. It will be replaced with a randomly generated string.
Default: 0

war_bantime
Defines what war_kickban_(c)t does. Set to:
  • -1: Don't ban ppl, just kick them[/*]
  • 0: Ban permanently[/*]
  • n > 0: Ban for n minutes[/*]
war_mysql_enable
Set to 1 if you want the results to be written to MySQL.
Default: 0

war_mysql_host
Set to your MySQL server's hostname. It will not appear in HLSW or something.
Default: none

war_mysql_user
Set to your MySQL username.
Default: none

war_mysql_pass
Set to your MySQL password.
Default: none

war_mysql_db
Set to your MySQL database.
Default: srcds

war_mysql_table
Two tables will be created, one with the name given here, one named <name>_players. Set the name here.
Default: wars


Those CVars have to be set in server.cfg in order to work correctly. Users will not be able to view the Mysql cvars through HLSW or something.


Downloads
You can download various compiles of the plugin and its Source Code here:
http://www.extreme-gaming-clan.de/in...te=files&cat=2

Greetz
__________________
Ich hab nie behauptet dass ich kein Genie bin!
Mumble-Django: A web interface for Mumble

Last edited by MistaGee; 10-03-2008 at 17:15.
MistaGee is offline
Send a message via ICQ to MistaGee
chumly
Senior Member
Join Date: Jul 2006
Old 12-03-2006 , 13:32   Re: WarriorMod: Clanwar manager
Reply With Quote #2

Looks nice, but I have a little problem..
It needs libmysqlclient.so.14
So I did a yum install, and it installed mysql5 ( libmysqlclient.so.15 )
hum.. ok, try a ln -s, and no go.
Made sure it was in the path, but still no good.
yum remove mysql
download mysql4.1, rpm -Uvh mysql server / client / compat... Check, and it installed .14. Meta refresh....
Failed to load plugin addons/WarriorMod/Warrior_mm /usr/lib/libmysqlclient.so.14 'mysql_4.1' not found.

So, does this really require the lib?
Could you recompile with 15?
Could you recompile without DB support?
Have any solutions for me to help getting it going as is?


Also, where is the config kept for the server settings in war mode?
Is it kept in a DB? How do I change the settings for different requirements?

Thanks!
Chumly
chumly is offline
MistaGee
Senior Member
Join Date: Aug 2004
Location: Germany (Fulda)
Old 12-03-2006 , 14:14   Re: WarriorMod: Clanwar manager
Reply With Quote #3

Quote:
Originally Posted by chumly View Post
So, does this really require the lib?
Could you recompile with 15?
Could you recompile without DB support?
Have any solutions for me to help getting it going as is?
You could ln -s /usr/lib/libmysqlclient.so.15 /usr/lib/libmysqlclient.so.14... it's a faked solution, but it should work
I need to update the Makefile indeed to compile against a later version. As I'm currently developing Version 1.6.8, having some internal changes, this will come in the next update.

Quote:
Originally Posted by chumly View Post
Also, where is the config kept for the server settings in war mode?
Is it kept in a DB? How do I change the settings for different requirements?

The Plugin simply exec's eslXonX.cfg, where X matches the number of players. in 4on4, esl5on5.cfg is used.
After this has been exec'ed, sv_pausable and mp_fadetoblack are set according to the values defined in the cvars. for now, you can only change these. I'm about to implement a config file where you can set all the commands you like, but that's going to take a little while

Greetz
__________________
Ich hab nie behauptet dass ich kein Genie bin!
Mumble-Django: A web interface for Mumble
MistaGee is offline
Send a message via ICQ to MistaGee
Knagg0
SourceMod Donor
Join Date: Dec 2005
Location: Germany
Old 12-03-2006 , 14:28   Re: WarriorMod: Clanwar manager
Reply With Quote #4

Quote:
Originally Posted by MistaGee View Post
I need to update the Makefile indeed to compile against a later version. As I'm currently developing Version 1.6.8, having some internal changes, this will come in the next update.
Mach es mit: -static /usr/lib/libmysqlclient.a
Dann wird keine libmysqlclient.so benötigt
Knagg0 is offline
MistaGee
Senior Member
Join Date: Aug 2004
Location: Germany (Fulda)
Old 12-03-2006 , 15:59   Re: WarriorMod: Clanwar manager
Reply With Quote #5

1337...

I intended to change the Stay/Leave and rdy "votes" a little to be real votes, but I guess I'll just release the version as it is right now to get these updates into the release version...

Greetz
__________________
Ich hab nie behauptet dass ich kein Genie bin!
Mumble-Django: A web interface for Mumble

Last edited by MistaGee; 12-03-2006 at 16:15.
MistaGee is offline
Send a message via ICQ to MistaGee
chumly
Senior Member
Join Date: Jul 2006
Old 12-03-2006 , 16:55   Re: WarriorMod: Clanwar manager
Reply With Quote #6

Yes, static linking is much better, and like I said, I already tried a symbolic link... didn't work.

Could you also include the esl config files, or at least post a link to them?

Have you already updated the download file? ( could you post a version number? )

Thanks!
Chumly
chumly is offline
MistaGee
Senior Member
Join Date: Aug 2004
Location: Germany (Fulda)
Old 12-03-2006 , 17:05   Re: WarriorMod: Clanwar manager
Reply With Quote #7

I've just updated

Greetz
__________________
Ich hab nie behauptet dass ich kein Genie bin!
Mumble-Django: A web interface for Mumble
MistaGee is offline
Send a message via ICQ to MistaGee
chumly
Senior Member
Join Date: Jul 2006
Old 12-03-2006 , 20:23   Re: WarriorMod: Clanwar manager
Reply With Quote #8

link doesn't seem to work.
Have another one?
chumly is offline
MistaGee
Senior Member
Join Date: Aug 2004
Location: Germany (Fulda)
Old 12-03-2006 , 20:46   Re: WarriorMod: Clanwar manager
Reply With Quote #9

I've updated the libmysqlclient version I used from 14 to 15. Please download and test the new package...

Quote:
Originally Posted by chumly View Post
Could you also include the esl config files, or at least post a link to them?
I've never managed to find these configs on the ESL home page... If I'll find a link, I'll gladly post it
I'll put the configs for download somewhere on my clan's home page tomorrow, and post the link here.

<edit>
Sorry
Testing the plugin lib myself, I found that in fact, it doesn't even load. So I've linked against the .so again instead of the .a, now it loads again. :/
If you have DLed the package since I've made this post, please donwload again... sorry for the inconvenience.
</edit>

Greetz
__________________
Ich hab nie behauptet dass ich kein Genie bin!
Mumble-Django: A web interface for Mumble

Last edited by MistaGee; 12-03-2006 at 21:18.
MistaGee is offline
Send a message via ICQ to MistaGee
chumly
Senior Member
Join Date: Jul 2006
Old 12-27-2006 , 22:08   Re: WarriorMod: Clanwar manager
Reply With Quote #10

Hi!

Ok, I'm back to messing around with this stuff again...

I have a fresh install, MM:S, Mani 1.2r, EST .417a, and eventscripts 1.3.0.006...

Everything working fine....

Now, I try to load the warrior mod bin file, and I get MM listing it as a fail. But I dont get any error messages to the console.

Any ideas?

Thanks!
Chumly
chumly is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 05:30.


Powered by vBulletin®
Copyright ©2000 - 2018, vBulletin Solutions, Inc.
Theme made by Freecode