Git Product home page Git Product logo

b3-plugin-votemapbf3's Introduction

VoteMap Battlefield 3/4 for Big Brother Bot

Description

This plugin brings new commands to B3 for allowing players to vote for the next map on Battlefield 3 & 4 servers.

In-game screenshot

Requirements

  • This plugin only works for BF3 and BF4 servers
  • B3 v1.8.2dev2 or later

Installation

  • copy the votemapbf3 directory into b3/extplugins
  • copy the plugin_votemapbf3.ini config file to your config folder
  • add to the plugins section of your main b3 config file:

    <plugin name="votemapbf3" config="@b3/extplugins/conf/plugin_votemapbf3.ini" />

Commands

!votemap or /votemap

Start a vote proposing maps as defined in the config. Players reply with the number of the map.

!cancelvote or /cancelvote

Cancel current vote

!v or /v

Display maps you can vote for

!# or /# where # is the number for a map

Vote for one of the suggested map

Support

Support is only provided on www.bigbrotherbot.net forums on the following topic : http://bit.ly/JhIPy2

Changelog

1.0

First release

1.1

Python 2.6 compatibility

1.1.1
  • Fixes bug that made impossible to use the random strategy to pick the map options
  • Fixes command error when the map rotation list is empty and using the !votemap command
  • Fixes bug that prevented default messages to be considered if not present in config
1.2
  • Add a new config option (maplist_file) to list the maps that can be voted in a text file
  • Fixes nextmap_display_interval that was not working at all
  • Maps options are now announced with their gamemode
1.2.1
1.2.2
  • Fixes bug preventing the plugin to load with B3 1.8.2
1.3
  • (Ozon) add support for all gametypes brought with DLC
1.4
  • Add support for Battlefield 4

Contrib

  • features can be discussed on the B3 forums
  • documented and reproducible bugs can be reported on the issue tracker
  • patches are welcome. Send me a pull request. It is best if your patch provides tests.

Build Status

b3-plugin-votemapbf3's People

Contributors

ozon avatar thomasleveil avatar

Watchers

 avatar

Forkers

manishas zerqahh

b3-plugin-votemapbf3's Issues

wrong option order when displaying options higher than 10

It was [reported](http://forum.bigbrotherbot.net/plugins-by-courgette/vote-map-(bf3%29/msg34494/#msg34494) that vote options are not ordered correctly when more than 10 options are to be displayed.

120513 02:12:33 DEBUG   "getCommand: ('admin.say', '(B3_Bot): Type: /1, /2, ... in chat to vote for the next map', 'all')"
120513 02:12:33 VERBOSE u"RCON :\t ('admin.say', '(B3_Bot): Type: /1, /2, ... in chat to vote for the next map', 'all')"
120513 02:12:33 CONSOLE "['player.onChat', 'Server', '(B3_Bot): Type: /1, /2, ... in chat to vote for the next map', 'all']"
120513 02:12:33 VERBOSE u'RCON response:\t []'
120513 02:12:33 VERBOSE u"RCON :\t ('admin.say', ' /1 Grand Bazaar (SQDM)    | /10 Gulf of Oman (SQDM) ', 'all')"
120513 02:12:33 CONSOLE "['player.onChat', 'Server', ' /1 Grand Bazaar (SQDM)    | /10 Gulf of Oman (SQDM) ', 'all']"
120513 02:12:33 VERBOSE u'RCON response:\t []'
120513 02:12:33 VERBOSE u"RCON :\t ('admin.say', ' /11 Sharqi Peninsula (SQDM) | /12 Wake Island (SQDM)   ', 'all')"
120513 02:12:33 CONSOLE "['player.onChat', 'Server', ' /11 Sharqi Peninsula (SQDM) | /12 Wake Island (SQDM)   ', 'all']"
120513 02:12:33 VERBOSE u'RCON response:\t []'
120513 02:12:33 VERBOSE u"RCON :\t ('admin.say', ' /2 Tehran Highway (SQDM) | /3 Caspian Border (SQDM)', 'all')"
120513 02:12:33 CONSOLE "['player.onChat', 'Server', ' /2 Tehran Highway (SQDM) | /3 Caspian Border (SQDM)', 'all']"
120513 02:12:33 VERBOSE u'RCON response:\t []'
120513 02:12:33 VERBOSE u"RCON :\t ('admin.say', ' /4 Operation Firestorm (SQDM) | /5 Damavand Peak (SQDM)', 'all')"
120513 02:12:33 CONSOLE "['player.onChat', 'Server', ' /4 Operation Firestorm (SQDM) | /5 Damavand Peak (SQDM)', 'all']"
120513 02:12:33 VERBOSE u'RCON response:\t []'
120513 02:12:33 VERBOSE u"RCON :\t ('admin.say', ' /6 Noshahar Canals (SQDM) | /7 Kharg Island (SQDM)    ', 'all')"
120513 02:12:33 CONSOLE "['player.onChat', 'Server', ' /6 Noshahar Canals (SQDM) | /7 Kharg Island (SQDM)    ', 'all']"
120513 02:12:33 VERBOSE u'RCON response:\t []'
120513 02:12:33 VERBOSE u"RCON :\t ('admin.say', ' /8 Operation Metro (SQDM) | /9 Strike At Karkand (SQDM)', 'all')"
120513 02:12:34 CONSOLE "['player.onChat', 'Server', ' /8 Operation Metro (SQDM) | /9 Strike At Karkand (SQDM)', 'all']"
120513 02:12:34 VERBOSE u'RCON response:\t []'
120513 02:12:34 DEBUG   "getCommand: ('admin.say', '(B3_Bot): [pm] New vote session started', 'player', 'C7_4K')"
120513 02:12:34 VERBOSE u"RCON :\t ('admin.say', '(B3_Bot): [pm] New vote session started', 'player', 'C7_4K')"
120513 02:12:34 VERBOSE 'Parsing Event: Say: CensorPlugin'
120513 02:12:34 VERBOSE 'Parsing Event: Say: SpamcontrolPlugin'
120513 02:12:34 CONSOLE "['player.onChat', 'Server', '(B3_Bot): [pm] New vote session started', 'player', 'C7_4K']"
120513 02:12:34 VERBOSE u'RCON response:\t []'
120513 02:12:45 CONSOLE "['player.onChat', 'C7_4K', '@die', 'all']"
120513 02:12:33 DEBUG   "getCommand: ('admin.say', '(B3_Bot): Type: /1, /2, ... in chat to vote for the next map', 'all')"
120513 02:12:33 VERBOSE u"RCON :\t ('admin.say', '(B3_Bot): Type: /1, /2, ... in chat to vote for the next map', 'all')"
120513 02:12:33 CONSOLE "['player.onChat', 'Server', '(B3_Bot): Type: /1, /2, ... in chat to vote for the next map', 'all']"
120513 02:12:33 VERBOSE u'RCON response:\t []'
120513 02:12:33 VERBOSE u"RCON :\t ('admin.say', ' /1 Grand Bazaar (SQDM)    | /10 Gulf of Oman (SQDM) ', 'all')"
120513 02:12:33 CONSOLE "['player.onChat', 'Server', ' /1 Grand Bazaar (SQDM)    | /10 Gulf of Oman (SQDM) ', 'all']"
120513 02:12:33 VERBOSE u'RCON response:\t []'
120513 02:12:33 VERBOSE u"RCON :\t ('admin.say', ' /11 Sharqi Peninsula (SQDM) | /12 Wake Island (SQDM)   ', 'all')"
120513 02:12:33 CONSOLE "['player.onChat', 'Server', ' /11 Sharqi Peninsula (SQDM) | /12 Wake Island (SQDM)   ', 'all']"
120513 02:12:33 VERBOSE u'RCON response:\t []'
120513 02:12:33 VERBOSE u"RCON :\t ('admin.say', ' /2 Tehran Highway (SQDM) | /3 Caspian Border (SQDM)', 'all')"
120513 02:12:33 CONSOLE "['player.onChat', 'Server', ' /2 Tehran Highway (SQDM) | /3 Caspian Border (SQDM)', 'all']"
120513 02:12:33 VERBOSE u'RCON response:\t []'
120513 02:12:33 VERBOSE u"RCON :\t ('admin.say', ' /4 Operation Firestorm (SQDM) | /5 Damavand Peak (SQDM)', 'all')"
120513 02:12:33 CONSOLE "['player.onChat', 'Server', ' /4 Operation Firestorm (SQDM) | /5 Damavand Peak (SQDM)', 'all']"
120513 02:12:33 VERBOSE u'RCON response:\t []'
120513 02:12:33 VERBOSE u"RCON :\t ('admin.say', ' /6 Noshahar Canals (SQDM) | /7 Kharg Island (SQDM)    ', 'all')"
120513 02:12:33 CONSOLE "['player.onChat', 'Server', ' /6 Noshahar Canals (SQDM) | /7 Kharg Island (SQDM)    ', 'all']"
120513 02:12:33 VERBOSE u'RCON response:\t []'
120513 02:12:33 VERBOSE u"RCON :\t ('admin.say', ' /8 Operation Metro (SQDM) | /9 Strike At Karkand (SQDM)', 'all')"
120513 02:12:34 CONSOLE "['player.onChat', 'Server', ' /8 Operation Metro (SQDM) | /9 Strike At Karkand (SQDM)', 'all']"
120513 02:12:34 VERBOSE u'RCON response:\t []'
120513 02:12:34 DEBUG   "getCommand: ('admin.say', '(B3_Bot): [pm] New vote session started', 'player', 'C7_4K')"
120513 02:12:34 VERBOSE u"RCON :\t ('admin.say', '(B3_Bot): [pm] New vote session started', 'player', 'C7_4K')"
120513 02:12:34 VERBOSE 'Parsing Event: Say: CensorPlugin'
120513 02:12:34 VERBOSE 'Parsing Event: Say: SpamcontrolPlugin'
120513 02:12:34 CONSOLE "['player.onChat', 'Server', '(B3_Bot): [pm] New vote session started', 'player', 'C7_4K']"
120513 02:12:34 VERBOSE u'RCON response:\t []'
120513 02:12:45 CONSOLE "['player.onChat', 'C7_4K', '@die', 'all']"

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.