2
Donate to the B3 fund!

"even a small donation helps!"
Donate with PayPal!
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!

Author Topic: Show Awards XlrStats in Game (UrT)  (Read 7876 times)

Offline Beber888

  • Moderator
  • Sr. Member
  • *
  • Posts: 179
Show Awards XlrStats in Game (UrT)
« on: January 12, 2011, 01:10:32 AM »
I have release a plugin who will show (in pm,bigtext,console or server) the awards of player connecting.
The goal is to motive players work for awards and often go on my website and watch her stats...

Quote
This plugin is done for URT, it's calculate awards (the same as XrlStats Website)
and show it on the server if people connecting has awards.

Added Commands:
!refreshawards (!ra) - Refresh (Re-calculate) the awards
!awards [Empty or player)(!a) - Get the awards of you or player

XlrStats plugins for B3 (with tables) is required. (XlrStats Webfront not needed)

http://forum.bigbrotherbot.net/downloads/?sa=downfile&id=131
« Last Edit: December 12, 2011, 05:19:36 PM by Beber888 »
Python, Php, UrT SourceCode

Offline s2sh

  • Newbie
  • *
  • Posts: 4
Re: Show Awards XlrStats in Game (UrT)
« Reply #1 on: February 16, 2011, 09:33:23 AM »
hi!
i have error in module awardsxlrstats.

110216 10:13:46   BOT       Starting Plugin awardsxlrstats
110216 10:13:46   DEBUG   Register Event: Client Authenticated: AwardsxlrstatsPlugin
110216 10:13:46   INFO   STDOUT Error: invalid literal for int() with base 10: ')'
  File "/home/s2sh/b3.14/BigBrotherBot-big-brother-bot-9722011/b3/__init__.py", line 177, in start
  File "/home/s2sh/b3.14/b3/b3/parser.py", line 393, in start
  File "/home/s2sh/b3.14/b3/b3/parser.py", line 657, in startPlugins
  File "/home/s2sh/UrbanTerror/b3/extplugins/awardsxlrstats.py", line 144, in onStartup
    self.CalculAwards()
  File "/home/s2sh/UrbanTerror/b3/extplugins/awardsxlrstats.py", line 286, in CalculAwards
    (self.B1_ID, Nom) = self.MEF_Awards(StrReponse)
  File "/home/s2sh/UrbanTerror/b3/extplugins/awardsxlrstats.py", line 258, in MEF_Awards
    ID = int(Tableau[0].replace('L',''))

Offline Beber888

  • Moderator
  • Sr. Member
  • *
  • Posts: 179
Re: Show Awards XlrStats in Game (UrT)
« Reply #2 on: February 16, 2011, 07:13:28 PM »
Oups, you use Linux server ?
Because I have only tested my plugin on Windows Server. Maybe the answer from SQL request is not exactly the same as on windows server ???
My plugin is runing on only 3 servers and all are on Windows...
http://master.bigbrotherbot.net/?plugin=awardsxlrstats

I have to study how use SQL request via B3 function and not with python prog...
Python, Php, UrT SourceCode

Offline Sash

  • Jr. Member
  • **
  • Posts: 11
Re: Show Awards XlrStats in Game (UrT)
« Reply #3 on: May 11, 2011, 03:44:47 PM »
Would this work in BO too??

Offline Beber888

  • Moderator
  • Sr. Member
  • *
  • Posts: 179
Re: Show Awards XlrStats in Game (UrT)
« Reply #4 on: May 12, 2011, 12:09:08 AM »
I don't know try...but have have onky tested it on urban terror.
The medals aren't the same according to the game. So I only find UrT medals.
Python, Php, UrT SourceCode

Offline retro78

  • Newbie
  • *
  • Posts: 4
Re: Show Awards XlrStats in Game (UrT)
« Reply #5 on: January 13, 2013, 07:42:03 PM »
Any news of runnig this on a linux server?


Offline Beber888

  • Moderator
  • Sr. Member
  • *
  • Posts: 179
Re: Show Awards XlrStats in Game (UrT)
« Reply #6 on: January 13, 2013, 11:42:09 PM »
I've to work on this plugin, I hope that soon a new version will be release.
Python, Php, UrT SourceCode

Offline MordyT

  • Support Hero
  • Hero Member
  • *
  • Posts: 3644
  • Over $300 Donated to B3!
    • MordyT
Re: Show Awards XlrStats in Game (UrT)
« Reply #7 on: January 14, 2013, 04:55:52 PM »
can I ask for CoD4 compatibility please.
Help will be given to those with a b3.log

If drop off the map it is due to RL becoming busy :)

System: Python 2.7.3 - Deb 7 - B3 Source Code - 128MB RAM box (rented at $5 a year) - remote MySQL - Remote Web Services

Offline Beber888

  • Moderator
  • Sr. Member
  • *
  • Posts: 179
Re: Show Awards XlrStats in Game (UrT)
« Reply #8 on: January 15, 2013, 10:47:21 PM »
Yes but I haven't a COD4 server for test !!!
Python, Php, UrT SourceCode

Offline MordyT

  • Support Hero
  • Hero Member
  • *
  • Posts: 3644
  • Over $300 Donated to B3!
    • MordyT
Re: Show Awards XlrStats in Game (UrT)
« Reply #9 on: January 15, 2013, 11:22:09 PM »
I can test :)
Help will be given to those with a b3.log

If drop off the map it is due to RL becoming busy :)

System: Python 2.7.3 - Deb 7 - B3 Source Code - 128MB RAM box (rented at $5 a year) - remote MySQL - Remote Web Services

Offline Beber888

  • Moderator
  • Sr. Member
  • *
  • Posts: 179
Re: Show Awards XlrStats in Game (UrT)
« Reply #10 on: January 19, 2013, 01:30:19 AM »
New release, Linux server can now use the plugin.

For the moment just compatibility with urt server...
Python, Php, UrT SourceCode

Offline retro78

  • Newbie
  • *
  • Posts: 4
Re: Show Awards XlrStats in Game (UrT)
« Reply #11 on: January 19, 2013, 03:39:27 PM »
New release, Linux server can now use the plugin.

For the moment just compatibility with urt server...

Will test this when the server is empty... don't want to restart B3 now ;)
I Think at late night it will be ok...

sorry can't replay to PMs yet....
 

Offline Beber888

  • Moderator
  • Sr. Member
  • *
  • Posts: 179
Re: Show Awards XlrStats in Game (UrT)
« Reply #12 on: January 19, 2013, 04:13:52 PM »
np thanks
Python, Php, UrT SourceCode

Offline retro78

  • Newbie
  • *
  • Posts: 4
Re: Show Awards XlrStats in Game (UrT)
« Reply #13 on: January 20, 2013, 08:31:56 PM »
tested it today...

but I got 2 awards shown and then an Error ("There was an error processing your command")...

There are many Errors in the log file....

Code: [Select]
130120 19:24:09 CONSOLE '8:44 say: 7 ^3|^2TSN^3|retro78: !awards'
130120 19:24:09 VERBOSE 'Client Found: |TSN|retro78 on slot 7'
130120 19:24:09 VERBOSE 'Queueing event Say !awards'
130120 19:24:09 VERBOSE 'Parsing Event: Say: AdminPlugin'
130120 19:24:09 DEBUG   'AdminPlugin: OnSay handle 5:"!awards"'
130120 19:24:09 DEBUG   'AdminPlugin: Handle command !awards'
130120 19:24:09 VERBOSE 'RCON sending (127.0.0.1:27960) "tell 7 ^0(^2b3^0)^7: ^3[pm]^7 You\'re the Best No Life"'
130120 19:24:09 ERROR   "handler AdminPlugin could not handle event Say: IndexError: list index out of range [('/home/urt/b3/b3/parser.py', 1008, 'handleEvents', 'hfunc.parseEvent(eve$
130120 19:24:09 VERBOSE 'Parsing Event: Say: CensorPlugin'
130120 19:24:09 VERBOSE 'Parsing Event: Say: ChatloggerPlugin'
130120 19:24:09 DEBUG   'ChatloggerPlugin: ALL, 397, |TSN|retro78, !awards'
130120 19:24:09 DEBUG   'ChatloggerPlugin: writing to file'
130120 19:24:09 DEBUG   'ChatloggerPlugin: rowcount: 1, id:13301'
130120 19:24:09 VERBOSE 'Parsing Event: Say: TranslatorPlugin'
130120 19:24:09 ERROR   'RCON: too much tries. Abording ("tell 7 ^0(^2b3^0)^7: ^3[pm]^7 You\'re the Best No Life")'
130120 19:24:09 DEBUG   'RCON: Did not send any data'
130120 19:24:10 VERBOSE 'RCON sending (127.0.0.1:27960) "tell 7 ^0(^2b3^0)^7: ^3[pm]^7 You\'re the Best Kill series"'
130120 19:24:10 ERROR   'RCON: too much tries. Abording ("tell 7 ^0(^2b3^0)^7: ^3[pm]^7 You\'re the Best Kill series")'
130120 19:24:10 DEBUG   'RCON: Did not send any data'
130120 19:24:11 VERBOSE "RCON sending (127.0.0.1:27960) 'tell 7 ^0(^2b3^0)^7: ^3[pm]^7 ^7There was an error processing your command'"
130120 19:24:11 ERROR   "RCON: too much tries. Abording ('tell 7 ^0(^2b3^0)^7: ^3[pm]^7 ^7There was an error processing your command')"
130120 19:24:11 DEBUG   'RCON: Did not send any data'

not sure how to handle this...


Offline Beber888

  • Moderator
  • Sr. Member
  • *
  • Posts: 179
Re: Show Awards XlrStats in Game (UrT)
« Reply #14 on: February 02, 2013, 12:43:56 PM »
What about my Urt and COD4 beta tester for my plugin ??
Can I release ?
Python, Php, UrT SourceCode

 


Rate this page +1 at Google Search