March 20, 2010, 03:57:55 PM
Home
Forums
Help
Search
Tags
Documentation
GitHub Wiki
Cheatsheet
Downloads
Source Code
Stable dev repo
XLR8or's dev repo
Login
Register
Activation Mail
You are here:
Big Brother Bot Forum
Add-Ons
Plugins
Releases!
chatlogger plugin v0.2.0
Pages:
1
[
2
]
3
4
...
7
Go Down
« previous
next »
Print
Author
Topic: chatlogger plugin v0.2.0 (Read 14122 times)
Anubis
Sr. Member
OS: Linux
Type: Owner dedicated server(s)
Gameservers:
COD4
Posts: 229
Offline
Re: chatlogger plugin v0.0.1
«
Reply #15 on:
August 02, 2008, 04:11:21 PM »
Hm... there are a lot of entries in the DB after one day of using this plugin. I think it would be better to delete some chat entries after a day. Currently this plugin does not cleaning anything, right?
Logged
http://g4g.pl/
flinkaflenkaflrsk
B3 Contributor
Sr. Member
Posts: 239
Offline
Re: chatlogger plugin v0.0.1
«
Reply #16 on:
August 03, 2008, 01:38:57 AM »
Quote from: Anubis on August 02, 2008, 04:11:21 PM
Hm... there are a lot of entries in the DB after one day of using this plugin. I think it would be better to delete some chat entries after a day. Currently this plugin does not cleaning anything, right?
but doesnt it then miss its goal since it supposed to be to search back instead of in the log?
Logged
Deathslap
Registered plugin
Mapcycle plugin
Anubis
Sr. Member
OS: Linux
Type: Owner dedicated server(s)
Gameservers:
COD4
Posts: 229
Offline
Re: chatlogger plugin v0.0.1
«
Reply #17 on:
August 03, 2008, 10:52:48 AM »
Well... I could store chat log files at the another machine. Just imagine size of your DB after six months or maybe one or two years.
Logged
http://g4g.pl/
xlr8or
[ www.xlrstats.com ]
Project leader
Hero Member
OS: Linux
Type: Owner dedicated server(s)
Gameservers:
CoD, CoD2, CoD5, UrT
Posts: 1219
Offline
Re: chatlogger plugin v0.0.1
«
Reply #18 on:
August 03, 2008, 11:31:02 AM »
Execute this SQL statement in your B3 database with ie. phpMyAdmin:
Code:
TRUNCATE 'chatlog';
But I have a strong feeling that a button will be added to Echelon within those two year...
Logged
Serving:
CoD2
|
CoD5
|
UrT4.1
Anubis
Sr. Member
OS: Linux
Type: Owner dedicated server(s)
Gameservers:
COD4
Posts: 229
Offline
Re: chatlogger plugin v0.0.1
«
Reply #19 on:
August 03, 2008, 01:11:40 PM »
Quote from: xlr8or on August 03, 2008, 11:31:02 AM
But I have a strong feeling that a button will be added to Echelon within those two year...
Sounds good
Logged
http://g4g.pl/
-Chaotic-
Full Member
Posts: 64
Offline
Re: chatlogger plugin v0.0.1
«
Reply #20 on:
August 04, 2008, 07:40:16 AM »
Currently can this plugin be used in conjuction with Echelon for webviewing or can you only read the lines through phpmyadmin?
Logged
xlr8or
[ www.xlrstats.com ]
Project leader
Hero Member
OS: Linux
Type: Owner dedicated server(s)
Gameservers:
CoD, CoD2, CoD5, UrT
Posts: 1219
Offline
Re: chatlogger plugin v0.0.1
«
Reply #21 on:
August 04, 2008, 09:20:00 AM »
Quote from: [-Chaotic-] on August 04, 2008, 07:40:16 AM
Currently can this plugin be used in conjuction with Echelon for webviewing or can you only read the lines through phpmyadmin?
http://www.bigbrotherbot.com/forums/index.php?topic=423.msg2812#msg2812
Logged
Serving:
CoD2
|
CoD5
|
UrT4.1
wurst
Jr. Member
Posts: 20
Offline
Re: chatlogger plugin v0.0.1
«
Reply #22 on:
August 12, 2008, 12:37:24 AM »
hey, theres some rudimentary php output. and i brought my forums headers around it.
here u can test:
http://www.dswp.de/player_chatlog.php
all is a bit klickomentary, if u need files just gimme a sign
im sry that i dont understand that much of php, we should bring some kind of column sorting into that etcetcetc.
btw: i just see xl8ors comment that they included. ui nice i check this evening!
@magoo:
ye, its a big table but compared to xlr opponents or bodyparts its relative small.
i could immagine that words exclusion could reduce the size. i have for example ca.38015 records, 5450 times its "gg" or "GG" or "Gg" or "gG"
b3 collects since july 29 (2weeks), average players online is 26.
regular cleanup would sure make it an install-and-forget. btw, hows that issue handeled in xlr/echelon? should be same to prevent dead links etc...
gg
«
Last Edit: August 12, 2008, 12:56:52 AM by wurst
»
Logged
Anubis
Sr. Member
OS: Linux
Type: Owner dedicated server(s)
Gameservers:
COD4
Posts: 229
Offline
Re: chatlogger plugin v0.0.1
«
Reply #23 on:
August 12, 2008, 09:03:21 AM »
Ye... it would be much better to have self cleanup chat's older than .... a week, 2 weeks, month... While performing truncate database I'll erase all the tables
IMO it's really worthy to have such feature.
..install-and-forget...
Logged
http://g4g.pl/
Courgette
Dev. Team
Hero Member
OS: Linux
Type: Owner dedicated server(s)
Gameservers:
UrT, SmG
Posts: 1161
Offline
Re: chatlogger plugin v0.0.1
«
Reply #24 on:
August 12, 2008, 10:13:38 AM »
I'll think of something for the next release of the plugin.
conf could be something like :
Code:
<configuration plugin="chatlogger">
<settings name="purge">
<!-- how long do you want the history to be kept for.
0 : keep chat log history for ever (default value)
1d : purge all chat older than one day
3m : three month
1y : one year
...
-->
<set name="max_age">1y</set>
<!-- The purge action takes place once a day at the time define below (default time is midnight) : -->
<set name="hour">3</set><!-- between 0 and 23 -->
<set name="min">45</set><!-- between 0 and 59 -->
</settings>
</configuration>
In this example, everyday at 3:45 am all chat messages older than a year would be erased.
Logged
Anubis
Sr. Member
OS: Linux
Type: Owner dedicated server(s)
Gameservers:
COD4
Posts: 229
Offline
Re: chatlogger plugin v0.0.1
«
Reply #25 on:
August 12, 2008, 01:46:21 PM »
Would be nice
Another issue. There is an error. For me it's a bit strange. I can't see the reason why it's appearing and what it causes:
Quote
080812 23:21:31 DEBUG AdminPlugin: OnSay handle 5:"do kolby""
080812 23:21:31 VERBOSE Parsing Event: Say: ChatloggerPlugin
080812 23:21:31 DEBUG ChatloggerPlugin: ALL, 25976, Czeluskin, do kolby"
080812 23:21:31 DEBUG ChatloggerPlugin: query: INSERT INTO chatlog (msg_time, msg_type, client_id, client_name, client_team, msg) VALUES (1218576091, "ALL", 25976, "Czeluskin", 3, "do kolby"")
080812 23:21:31 ERROR Query failed - <class '_mysql_exceptions.ProgrammingError'>: (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 \'"do kolby"")\' at line 1')
080812 23:21:31 ERROR handler ChatloggerPlugin could not handle event Say: AttributeError: 'NoneType' object has no attribute 'rowcount' [('/home/cod4/b3/b3/parser.py', 520, 'handleEvents', 'hfunc.parseEvent(event)'), ('/home/cod4/b3/b3/plugin.py', 130, 'parseEvent', 'self.onEvent(event)'), ('/home/cod4/b3/b3/plugins/chatlogger.py', 58, 'onEvent', 'chat.save()'), ('/home/cod4/b3/b3/plugins/chatlogger.py', 97, 'save', 'if (cursor.rowcount > 0):')]
like here:
Quote
080812 14:28:59 DEBUG AdminPlugin: OnSay handle 5:"sorki""
080812 14:28:59 VERBOSE Parsing Event: Say: ChatloggerPlugin
080812 14:28:59 DEBUG ChatloggerPlugin: ALL, 32751, Borol pl, sorki"
080812 14:28:59 DEBUG ChatloggerPlugin: query: INSERT INTO chatlog (msg_time, msg_type, client_id, client_name, client_team, msg) VALUES (1218544139, "ALL", 32751, "Borol pl", 3, "sorki"")
080812 14:28:59 ERROR Query failed - <class '_mysql_exceptions.ProgrammingError'>: (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 \'"sorki"")\' at line 1')
080812 14:28:59 ERROR handler ChatloggerPlugin could not handle event Say: AttributeError: 'NoneType' object has no attribute 'rowcount' [('/home/cod4/b3/b3/parser.py', 520, 'handleEvents', 'hfunc.parseEvent(event)'), ('/home/cod4/b3/b3/plugin.py', 130, 'parseEvent', 'self.onEvent(event)'), ('/home/cod4/b3/b3/plugins/chatlogger.py', 58, 'onEvent', 'chat.save()'), ('/home/cod4/b3/b3/plugins/chatlogger.py', 97, 'save', 'if (cursor.rowcount > 0):')]
Logged
http://g4g.pl/
Kellerkind
B3 Contributor
Jr. Member
Posts: 46
Offline
Re: chatlogger plugin v0.0.1
«
Reply #26 on:
August 12, 2008, 10:01:04 PM »
Quote from: Anubis on August 12, 2008, 01:46:21 PM
I can't see the reason why it's appearing and what it causes:
like here:
Looks like missing quotation mark escape.
do "kolby
"
" sorki"
Your Player should
not
Type
NULL" OR 1=1' --
and You should advise your player to write not " UNION update [...] set gid=128 where [...] too.
«
Last Edit: August 12, 2008, 10:04:18 PM by Kellerkind
»
Logged
B3 CoDII: 82.98.201.199:28960 (Jenny)
B3 CoDIV: 82.98.201.199:28961 (Nadja)
Used Plugins:
Xlrstats, Echolon, Pubbans, Pingkicker, Rotationsmgr, Chatplugin, Poweradmin2&4, Spreemsg, Configmgr, Clantag control
Anubis
Sr. Member
OS: Linux
Type: Owner dedicated server(s)
Gameservers:
COD4
Posts: 229
Offline
Re: chatlogger plugin v0.0.1
«
Reply #27 on:
August 13, 2008, 06:56:48 AM »
how to convince them to not use those words?
It's obvious if I tell somebody not to do smth, he will do it for sure.
Logged
http://g4g.pl/
wurst
Jr. Member
Posts: 20
Offline
Re: chatlogger plugin v0.0.1
«
Reply #28 on:
August 14, 2008, 03:12:28 AM »
ui.
Logged
Courgette
Dev. Team
Hero Member
OS: Linux
Type: Owner dedicated server(s)
Gameservers:
UrT, SmG
Posts: 1161
Offline
Re: chatlogger plugin v0.0.1
«
Reply #29 on:
August 14, 2008, 03:45:14 AM »
new release v0.1.0
see first message for new download link
Logged
Tags:
plugin
Pages:
1
[
2
]
3
4
...
7
Go Up
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
General Category
-----------------------------
=> Servers
=> News
=> General Discussion
-----------------------------
Support Forums
-----------------------------
=> Installation Support
=> General Usage Support
=> Game specific Support
===> CoD2
===> CoD4
===> CoD5
===> UrT
===> Other games
-----------------------------
Add-Ons
-----------------------------
=> Installers
=> Plugins
===> Releases!
=> XLR
===> XLR Releases!
=> Configurations
-----------------------------
Community Developers
-----------------------------
=> Plugin Developers
=> The Code Bin