Most of the plugins here are made by B3 users and the authors may not visit frequently. If you need support for plugins or if questions remain unanswered, you will have to contact the author directly. Read the full Support Disclaimer here
NOTE: Do not attach plugins to your forumtopics! Attachements are periodically removed by maintenance tasks. Upload your plugins to our Downloads section instead!

You are here: Big Brother Bot ForumAdd-OnsPlugins DiscussionPlugins by xlr8or (Moderator: Freelander)RotationManager [CoD|CoD:UO|CoD2|CoD4]
Pages: [1] 2 3 ... 6   Go Down
  Print  
Author Topic: RotationManager [CoD|CoD:UO|CoD2|CoD4]  (Read 11231 times) Bookmark and Share
[ www.xlrstats.com ]
Project Lead
*
OS: Linux
Type: Owner dedicated server(s)
Gameservers: CoD, CoD2, CoD5, UrT
Posts: 1999
Online Online
WWW
Support Specialty: B3-Core, CoD/UrT/WoP/ETPro parsers, Plugin development
« on: September 19, 2006, 12:46:44 PM »


This plugin adjusts your maprotation based on the current playercount.
The configuration holds 2 switchpoints and 3 rotations. It keeps track of your
playercount and sets a small, medium or large maprotation. The plugin will
automatically create a proper random maprotation to work with.

Quote
###################################################################################
#
# Plugin for B3 (www.bigbrotherbot.com)
# (c) 2006 www.xlr8or.com (mailto:xlr8or@xlr8or.com)
#
# This program is free software and licensed under the terms of
# the GNU General Public License (GPL), version 2.
#
# http://www.gnu.org/copyleft/gpl.html
###################################################################################

RotationManager (v1.3.0) for B3
###################################################################################

This plugin adjusts your maprotation based on the current playercount.
The configuration holds 2 switchpoints and 3 rotations. It keeps track of your
playercount and sets a small, medium or large maprotation. The plugin will
automatically create a proper random maprotation to work with.


Requirements:
###################################################################################

- Call of Duty server
- B3 version 1.1.0 or higher


Installation:
###################################################################################

1. Unzip the contents of this package into your B3 folder. It will
place the .py file in b3/extplugins and the config file .xml in
your b3/extplugins/conf folder.

2. Open the .xml file with your favorit editor and modify the
levels if you want them different. Do not edit the settingnames
for they will not function under a different name.

3. Open your B3.xml file (in b3/conf) and add the next line in the
<plugins> section of the file:

<plugin name="rotationmanager" priority="12" config="@b3/extplugins/conf/rotationmanager.xml"/>

The numer 12 in this just an example. Make sure it fits your
plugin list.


Changelog
###################################################################################
v1.3.0         : Added support for CoD4
v1.2.2 - v1.2.3: Introduced version 11 for UO; generate rotations with all gametypes
v1.2.1 - v1.2.2: Added another safety .strip() when storing _roundstart_mapRotationCurrent
v1.2.0 - v1.2.1: Bugfixversion
v1.1.6 - v1.2.0: Added hysteresis (switchpoint threshold) and internal restore
                 rotation functionality
v1.1.4 - v1.1.5: Bugfix in fast-restart section
v1.1.3 - v1.1.4: Fixed a bug where B3 was unresponsive while in restart-countdown
                 Added CoD1/CoD2 restartcompatibility
v1.1.2 - v1.1.3: Intro copy.deepcopy() to fix empty rotation dict.
v1.1.1 - v1.1.2: Added more debugging info
v1.1.0 - v1.1.1: Added Fallbackrotation and some errorchecking
v1.0.0 - v1.1.0: Added MapDelay and smart/random creation of rotations
v1.2.3 - v1.2.4: Added check for limitation of the maximum stringlength (capped at 980)
v1.0.0         : Initial release


###################################################################################
xlr8or - 28 nov 2007 - www.bigbrotherbot.com // www.xlr8or.com

Download the latest version here: http://ftp://ftp.snt.utwente.nl/pub/games/bigbrotherbot/plugins/rotationmanager-v1.3.0.zip

Dev. version: http://github.com/xlr8or/b3-plugin-rotationmanager/zipball/master
« Last Edit: November 12, 2010, 11:19:00 AM by xlr8or » Logged


[ www.xlrstats.com ]
Project Lead
*
OS: Linux
Type: Owner dedicated server(s)
Gameservers: CoD, CoD2, CoD5, UrT
Posts: 1999
Online Online
WWW
Support Specialty: B3-Core, CoD/UrT/WoP/ETPro parsers, Plugin development
« Reply #1 on: November 28, 2007, 12:04:36 PM »

Plugin is now compatible with CoD4
Logged

Full Member
***
Posts: 50
Offline Offline
« Reply #2 on: February 03, 2009, 07:23:58 AM »

Would there be a way to add a function to this so that it does not repeat a map that's been played in, say, the last hour?

I know that it is partly my fault because I have the same map in two or three rotations, but that is because some maps really are good to play with a small pop or a large pop on your server.  The problem is, we might play crash with 7 people and then get two more on the server which bumps up the plugin to the next map rotaion set...crash is in that one as well and it might get picked even though we just played it two maps ago.  We'd like to be able to make it so this plugin doesn't pick a map that was played within the past "X" amount of time.

COD4, btw.
Logged
[ www.xlrstats.com ]
Project Lead
*
OS: Linux
Type: Owner dedicated server(s)
Gameservers: CoD, CoD2, CoD5, UrT
Posts: 1999
Online Online
WWW
Support Specialty: B3-Core, CoD/UrT/WoP/ETPro parsers, Plugin development
« Reply #3 on: February 04, 2009, 05:23:39 AM »

Latest version (1.3.2) should do that already:
Code:
# 1.3.2        : only add maps that have not been added in the last 4 passes, no more double maps
Line 68 in the plugin makes it 4:
Code:
  _hmm = 4                              # HowManyMaps to keep as a maphistory
You may change that at your own risk. Just never make it as big as your shortest rotation (or bigger)
Logged

Full Member
***
Posts: 50
Offline Offline
« Reply #4 on: February 04, 2009, 05:28:59 AM »

Ah, you are right..never noticed that.  Spent too much time arguing over which maps to put in which rotations, I guess!

Thanks!
Logged
Full Member
***
Posts: 50
Offline Offline
« Reply #5 on: February 05, 2009, 10:13:51 AM »

I thought maybe I had seen this line before, and then I thought I had an older version....but only version 1.3.0 is up on your repository.

Can I add this line to the .py?

Logged
B3 Contrib/Support
*
OS: --No B3 installed--
Type: --No B3 installed--
Posts: 1225
Offline Offline
Support Specialty: B3-Core, CoD/BFBC2 parsers, FTP-functionality, Plugin development
« Reply #6 on: February 05, 2009, 10:20:51 AM »

Try http://xlr8or.snt.utwente.nl/hg/rotationmanager?ca=4a4b24fcc612;type=zip
that's the latest version in the repository Smiley
Logged

Full Member
***
Posts: 50
Offline Offline
« Reply #7 on: February 05, 2009, 10:43:26 AM »

When I upload the new version, I get this error:

Quote
File "b3/extplugins/rotationmanager.py", line 246
     for m in self._recentmaps
                                             ^
 SyntaxError: invalid syntax

EDIT:  The ^ symbol is messed up, it should be right under the space after the "s" in "recentmaps"
« Last Edit: February 05, 2009, 10:53:00 AM by Lolzumad » Logged
B3 Contrib/Support
*
OS: --No B3 installed--
Type: --No B3 installed--
Posts: 1225
Offline Offline
Support Specialty: B3-Core, CoD/BFBC2 parsers, FTP-functionality, Plugin development
« Reply #8 on: February 06, 2009, 02:12:25 AM »

add a : after the s.
Logged

Full Member
***
Posts: 50
Offline Offline
« Reply #9 on: February 06, 2009, 05:07:48 AM »

Thanks, that worked perfect!

In case anyone else is having this problem, you will also have to add another ":" at the end of line 247.
Logged
B3 Contrib/Support
*
OS: --No B3 installed--
Type: --No B3 installed--
Posts: 1225
Offline Offline
Support Specialty: B3-Core, CoD/BFBC2 parsers, FTP-functionality, Plugin development
« Reply #10 on: February 06, 2009, 05:48:54 AM »

good to hear Smiley

*cough* update it in the repo xlr8or! */cough*
Logged

[ www.xlrstats.com ]
Project Lead
*
OS: Linux
Type: Owner dedicated server(s)
Gameservers: CoD, CoD2, CoD5, UrT
Posts: 1999
Online Online
WWW
Support Specialty: B3-Core, CoD/UrT/WoP/ETPro parsers, Plugin development
« Reply #11 on: February 07, 2009, 07:34:38 AM »

got it...
Logged

Full Member
***
Posts: 53
Offline Offline
« Reply #12 on: March 04, 2009, 02:50:13 AM »

I have installed too Smiley
Nice plugin, meanwhile i am testing it's random "creativity" Smiley
Of course i have to inform you that the current 246-247 lines of rotationmanager.py has...

Code:
            for m in self._recentmaps
              if maplist[c-1] == m

which is mispelled and need to be

Code:
            for m in self._recentmaps:
              if maplist[c-1] == m:
(added : at the end of each line)


Now my idea...
I would like to propose something even better, if it's an easy task.
What if b3 could record which maps and in which gametypes, the hourly-daily even monthly rotation was ?
I mean, an sql table in which the played rotations should be placed ... so the admin knows exactly which maps were played, which times etc...
This could be as fascinating as in some circumstances some Cod4 mods use end map voting, so...administrators could possibly know which maps people love most... Wink

I know...this maybe will be too hard to be true, but i suppose impossible is nothing Smiley
« Last Edit: March 04, 2009, 02:55:08 AM by leonpadi » Logged
[ www.xlrstats.com ]
Project Lead
*
OS: Linux
Type: Owner dedicated server(s)
Gameservers: CoD, CoD2, CoD5, UrT
Posts: 1999
Online Online
WWW
Support Specialty: B3-Core, CoD/UrT/WoP/ETPro parsers, Plugin development
« Reply #13 on: March 04, 2009, 06:18:36 AM »

The repo was already updated. Look for that version here: http://xlr8or.snt.utwente.nl/hg/

Your idea is not impossible, but if you install XLRstats and the webfront you can already see how many rounds have been played in what map... and how many kills were made in it.

Example: http://gs2.snt.utwente.nl/xlr/xlrstats/index.php?func=show&page=5
Logged

Full Member
***
Posts: 53
Offline Offline
« Reply #14 on: March 04, 2009, 09:41:15 AM »

It should be even better if you see timestamps about when played each map in which gametype and so on...
Thanks for reading my req Smiley
Logged
Tags:
Pages: [1] 2 3 ... 6   Go Up
  Print  
 
Jump to:  


Rate this page +1 at Google Search


SimplePortal 2.3.1 © 2008-2009, SimplePortal