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!

Pages: 1 ... 11 12 [13]   Go Down
  Print  
Author Topic: chatlogger plugin  (Read 33312 times) Bookmark and Share
Senior Dev.
*
OS: Linux
Type: Home user
Posts: 3484
Offline Offline
WWW
Support Specialty: B3-Core, UrT/SmG/BFBC2 parsers, Plugin development
« Reply #180 on: December 20, 2011, 05:25:01 AM »

it looks like your chatlog table is missing a column in the MySQL database.
Drop the chatlog table and re-create it using the sql script 'chatlogger.sql' you will find with the chatlogger plugin
Logged


Sr. Member
****
OS: Windows
Type: Renting Server with B3
Gameservers: CoD5
Posts: 251
Offline Offline
« Reply #181 on: December 20, 2011, 06:42:49 AM »

No, i'm sorry but i think there is a mystake in the plugin @line 278

        self.info('purge of commands older than %s days ...'%self._max_age_in_days)
        q = "DELETE FROM %s WHERE msg_time < %i"%(self._db_table_cmdlog, self.console.time() - (self._max_age_in_days*24*60*60))
        self.debug(q)

it  should be "cmd_time" instead of "msg_time" bcause it's the chatlog table..

Logged
Senior Dev.
*
OS: Linux
Type: Home user
Posts: 3484
Offline Offline
WWW
Support Specialty: B3-Core, UrT/SmG/BFBC2 parsers, Plugin development
« Reply #182 on: December 20, 2011, 08:26:27 AM »

You are right, sorry I overlooked it.

See https://github.com/courgette/b3-plugin-chatlogger/issues/2
fixed in chatlogger 1.1.3
Logged

Sr. Member
****
OS: Windows
Type: Renting Server with B3
Gameservers: CoD5
Posts: 251
Offline Offline
« Reply #183 on: December 21, 2011, 04:59:18 AM »

Works fine now..

Thx
Logged
Full Member
***
OS: Windows
Type: Gameserver Rental Co.
Gameservers: setup to run all b3 supported servers
Posts: 116
Offline Offline
WWW
« Reply #184 on: March 10, 2012, 03:56:03 AM »

hi i get following error from the chatlogger plugin

Code:
120310 11:50:29 VERBOSE Parsing Event: Say: ChatloggerPlugin
120310 11:50:29 DEBUG ChatloggerPlugin: ALL, 357, [3z$*]SkunP, oui
120310 11:50:29 DEBUG ChatloggerPlugin: writing to file
120310 11:50:29 ERROR handler ChatloggerPlugin could not handle event Say: Exception: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '%(time)s, %(type)s, %(client_id)s, %(client_name)s, %(client_team)s, %(msg)s, %(' at line 3") [('C:\\UserFiles\\xxxxxx\\GameServers\\TC14348801515003882578383\\b3\\parser.py', 921, 'handleEvents', 'hfunc.parseEvent(event)'), ('C:\\UserFiles\\xxxxxx\\GameServers\\TC14348801515003882578383\\b3\\plugin.py', 157, 'parseEvent', 'self.onEvent(event)'), ('C:\\UserFiles\\xxxxxx\\GameServers\\TC14348801515003882578383\\b3\\plugins\\chatlogger.py', 287, 'onEvent', 'chat.save()'), ('C:\\UserFiles\\xxxxxx\\GameServers\\TC14348801515003882578383\\b3\\plugins\\chatlogger.py', 427, 'save', 'self._save2db(data)'), ('C:\\UserFiles\\xxxxxx\\GameServers\\TC14348801515003882578383\\b3\\plugins\\chatlogger.py', 347, '_save2db', 'raise e')]

any idea why this is
Logged

Regards,

Cprl.Rst

Full Member
***
OS: Windows
Type: Gameserver Rental Co.
Gameservers: setup to run all b3 supported servers
Posts: 116
Offline Offline
WWW
« Reply #185 on: March 18, 2012, 01:53:03 PM »

any one got any ideas?
Logged

Regards,

Cprl.Rst

Support Hero
*
OS: Windows
Type: Gameserver Rental Co.
Gameservers: 2x CoD4, 1x BF3
Posts: 2627
Offline Offline
Owner of Host4B3.com - Over 70 bots hosted!
WWW
« Reply #186 on: March 19, 2012, 04:27:16 AM »

any one got any ideas?
I would drop and re-add the table...
Logged

Need B3 Bot hosting? Check out Host4B3.com
Check Twitter.com/Host4B3 for updates if the site it down.

Help will be given to those with a b3.log

System: Python 2.7.1 - B3 Source Code - Locally hosted MySQL & Apache - Win 2k3
Full Member
***
OS: Windows
Type: Gameserver Rental Co.
Gameservers: setup to run all b3 supported servers
Posts: 116
Offline Offline
WWW
« Reply #187 on: March 19, 2012, 06:44:25 AM »

i'll give that a try
Logged

Regards,

Cprl.Rst

Newbie
*
OS: Windows
Type: Owner dedicated server(s)
Gameservers: CoD4
Posts: 6
Online Online
« Reply #188 on: April 20, 2012, 01:51:22 AM »

I am trying to get the log files to uplaod to an FTP but what I get is this:

120420 11:34:04   INFO   'ChatloggerPlugin: chat log messages are kept forever'
120420 11:34:04   INFO   'ChatloggerPlugin: Using file (ftp:\\*****:*****@41.185.60.73\\Pub2\\chat.log) to store log'
120420 11:34:04   INFO   "ChatloggerPlugin: Using value 'D' for the file rotation rate"
120420 11:34:04   ERROR   "ChatloggerPlugin: cannot setup file chat logger. disabling logging to file ([Errno 22] invalid mode ('ab') or filename: 'C:\\\\UserFiles\\\\Tanka\\\\GameServers\\\\TC02452261181601642448184\\\\ftp:\\\\*****:*****@41.185.60.73\\\\Pub2\\\\chat.log')"
120420 11:34:04   DEBUG   'Register Event: Stop Process: ChatloggerPlugin'
120420 11:34:04   DEBUG   'Register Event: Program Exit: ChatloggerPlugin

Any reason why it should be doing that?
Logged
Tags: plugin 
Pages: 1 ... 11 12 [13]   Go Up
  Print  
 
Jump to:  


Rate this page +1 at Google Search


SimplePortal 2.3.1 © 2008-2009, SimplePortal