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 DiscussionPlugin Releases! (Moderator: MordyT)Map rating plugin available for review / testing
Pages: [1]   Go Down
  Print  
Author Topic: Map rating plugin available for review / testing  (Read 2143 times) Bookmark and Share
Rhidalin
Guest
« on: August 11, 2010, 08:57:58 PM »

This plugin was inspired by a rating system we use that's wholly web based forcing people who like a map to either leave to visit the website or remember to do it later. Storage of maps and ratings is done by adding two tables. SQL import script is included.

http://github.com/Rhidalin-Bytes/Ratemap-Plugin

Commands included:
!ratemap <1 - 10> available to all players by default
!/@maprating <?mapname> Displays rating of current map or mapname. Default level 20
!/@topmap Displays highest rated map, only as smart as the data so it takes time to be accurate. Default level 20
!resetrating <?mapname or all> Resets a map, either current, mapname or all of them. Default level 40
!mapreport <?filename> Creates text file of all map ratings either to location in XML or specified at command (some limitations)

This plugin adds a CRON to store map name after a map_rotate so that all maps will be in the report, whether rated or not. Maps are not deleted however maintenance functions will be in the next version. Many functions used in this can be called directly.


Feel free to move this post where appropriate.
« Last Edit: August 11, 2010, 10:33:21 PM by Courgette » Logged

Former Dev. (senate)
*****
OS: Linux
Type: Owner dedicated server(s)
Gameservers: OpenArena
Posts: 258
Offline Offline
« Reply #1 on: August 17, 2010, 08:09:15 AM »

Tested it, it works quite well Smiley

Only thing is that when user already voted, and revote, there's no message telling him that he must wait for his vote to be counted again. But maybe that's a good feature after all, people will never know when their votes are counted and it will avoid vote spamming Smiley

Uploaded to my game servers, we will see the result Wink
Logged
Former Dev. (senate)
*****
OS: Linux
Type: Owner dedicated server(s)
Gameservers: OpenArena
Posts: 258
Offline Offline
« Reply #2 on: September 22, 2010, 05:10:35 AM »

One error that spawns from time to time :

Code:
100922 12:59:40    VERBOSE    Queueing event Game Exit None
100922 12:59:40    VERBOSE    Parsing Event: Game Exit: RatemapPlugin
100922 12:59:40    ERROR    handler RatemapPlugin could not handle event Game Exit: NameError: global name 'checkratemap' is not defined [('/home/openarena/b3/b3/parser.py', 851, 'handleEvents', 'hfunc.parseEvent(event)'), ('/home/openarena/b3/b3/plugin.py', 157, 'parseEvent', 'self.onEvent(event)'), ('/home/openarena/b3/b3/plugin.py', 175, 'onEvent', 'self.handle(event)'), ('/home/openarena/b3/b3/extplugins/ratemap.py', 95, 'handle', 'checkratemap(mapnow())')]

Not really critical though, it doesn't do produce any issue to my knowledge.
Logged
Jr. Member
**
OS: Windows
Type: Owner dedicated server(s)
Gameservers: CoDUO, CoD5
Posts: 22
Offline Offline
WWW
« Reply #3 on: October 18, 2010, 11:36:02 AM »

We've been using it for a while.

There are two things that I think would make this much more useful.

1) on the map report have it indicate how many people have voted.

2) perhaps more interesting and telling would be to have a comment command.

    !mapcomment  This map is too big.
    !mapcomment  This map is totally awesome.  don't ever get rid of it.

Or even better you could parse the !maprate command to log both a rating and a comment.

   !maprate 7  pretty good map.  gets old after a while.

something like that.
Logged
Jr. Member
**
OS: Windows
Type: Owner dedicated server(s)
Gameservers: CoDUO, CoD5
Posts: 22
Offline Offline
WWW
« Reply #4 on: November 22, 2010, 09:24:11 AM »

I have been getting the following error and I don't know how to resolve it.  any ideas?


ERROR   handler RatemapPlugin could not handle event Game Exit: NameError: global name 'checkratemap' is not defined [('C:\\b3V1.4.0\\b3\\parser.py', 855, 'handleEvents', 'hfunc.parseEvent(event)'), ('C:\\b3V1.4.0\\b3\\plugin.py', 157, 'parseEvent', 'self.onEvent(event)'), ('C:\\b3V1.4.0\\b3\\plugin.py', 175, 'onEvent', 'self.handle(event)'), ('C:\\b3V1.4.0\\b3\\plugins\\ratemap.py', 95, 'handle', 'checkratemap(mapnow())')]
Logged
Beta Testers
*
OS: Windows
Type: Owner dedicated server(s)
Gameservers: Modern warfare 2
Posts: 64
Offline Offline
« Reply #5 on: February 17, 2011, 06:53:31 AM »

looks like a dead plugin..
i mean the developer(who made an awsome thing..) doesn't update it any more :S to bad..

and if the owner of this plugin reads this.
please fix the errors Cheesy
and release it again Smiley
« Last Edit: February 17, 2011, 07:10:37 AM by jorricks » Logged
Tags:
Pages: [1]   Go Up
  Print  
 
Jump to:  


Rate this page +1 at Google Search


SimplePortal 2.3.1 © 2008-2009, SimplePortal