thankyou
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: chatlogger plugin  (Read 81816 times)

Offline eire.32

  • Echelon v2. Dev.
  • Former Dev. (senate)
  • Full Member
  • *****
  • Posts: 114
    • e32designs.com
Re: chatlogger plugin v0.2.0
« Reply #60 on: May 23, 2009, 10:23:03 PM »
While setting up my new b3 for a new serve rI tried setting up chatlogger and I got nothing.
Log.
Code: [Select]
090523 15:25:47	BOT    	Starting Cod4Parser server for 72.232.196.164:28930
090523 15:25:47 BOT    --------------------------------------------
090523 15:25:47 BOT    Attempting to connect to database mysql://b3:[email protected]/b3...
090523 15:25:47 BOT    Connected to database
090523 15:25:47 BOT    Game log /root/.callofduty4/main/games_mp.log
090523 15:25:47 BOT    Starting bot reading file /root/.callofduty4/main/games_mp.log
090523 15:25:47 BOT    Loading Plugin #1 chatlogger [/usr/lib/python2.4/site-packages/b3-1.1.2d_r103-py2.4.egg/b3/extplugins/conf/plugin_chatlogger.xml]
090523 15:25:47 INFO Could not find built in plugin chatlogger, trying external plugin directories.
No module named chatlogger
090523 15:25:47 CRITICAL Error loading plugin: No module named chatlogger
Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/b3-1.1.2d_r103-py2.4.egg/b3/parser.py", line 330, in loadPlugins
    pluginModule = self.pluginImport(p)
  File "/usr/lib/python2.4/site-packages/b3-1.1.2d_r103-py2.4.egg/b3/parser.py", line 352, in pluginImport
    fp, pathname, description = imp.find_module(name, [self.config.getpath('plugins', 'external_dir')])
ImportError: No module named chatlogger
Obviously this means that it could not find the files, doesn't it? Thats the weird thing, the files are in that exact location I proved it to myself in 3different ways. :( Sigh what idiotic mistake am I making this time.
Eire.32

Offline Courgette

  • Senior Dev.
  • Hero Member
  • *
  • Posts: 4883
    • Github repository
Re: chatlogger plugin v0.2.0
« Reply #61 on: May 23, 2009, 10:58:43 PM »
can you confirm the chatlogger.py file is in /usr/lib/python2.4/site-packages/b3-1.1.2d_r103-py2.4.egg/b3/extplugins/ and that the user used to run b3 has read permission on it ?

Offline eire.32

  • Echelon v2. Dev.
  • Former Dev. (senate)
  • Full Member
  • *****
  • Posts: 114
    • e32designs.com
Re: chatlogger plugin v0.2.0
« Reply #62 on: May 24, 2009, 01:26:39 AM »
Yup its there. I went and gave it chmod 777 and still got nothing. Ummm what is it.
Eire.32
Eire.32

Offline Courgette

  • Senior Dev.
  • Hero Member
  • *
  • Posts: 4883
    • Github repository
Re: chatlogger plugin v0.2.0
« Reply #63 on: May 24, 2009, 04:38:46 AM »
can you post your b3.xml (remove passwords)

Offline Bakes

  • B3 Contrib/Support
  • Hero Member
  • *
  • Posts: 1226
Re: chatlogger plugin v0.2.0
« Reply #64 on: May 24, 2009, 10:32:27 AM »
stick it in the 'plugins' folder, that usually works

Offline xlr8or

  • [ www.xlrstats.com ]
  • Project Lead
  • Hero Member
  • *
  • Posts: 2057
    • The Art of Tactical Gaming
Re: chatlogger plugin v0.2.0
« Reply #65 on: May 28, 2009, 10:48:12 AM »
On a sidenote: If you're still running version 1.1.2d, you might want to consider upgrading to version 1.1.4b (using easy_install). It has many bugfixes compared to version 1.1.2

Offline eire.32

  • Echelon v2. Dev.
  • Former Dev. (senate)
  • Full Member
  • *****
  • Posts: 114
    • e32designs.com
Re: chatlogger plugin v0.2.0
« Reply #66 on: May 30, 2009, 06:24:47 PM »
K heres the B3.xml.
Code: [Select]
<configuration>
<settings name="b3">
<set name="parser">cod4</set>
<set name="database">*************************</set>
<set name="bot_name">b3</set>
<set name="bot_prefix">^0(^1eGO^2Bot^0)^7:</set>
<set name="time_format">%I:%M%p %Z %m/%d/%y</set>
<set name="time_zone">CST</set>
<set name="log_level">10</set>
<set name="logfile">**************</set>
</settings>
<settings name="server">
<set name="rcon_password">**************</set>
<set name="port">28930</set>
<set name="game_log">*****************</set>
<set name="public_ip">72.232.196.164</set>
<set name="rcon_ip">72.232.196.164</set>
<set name="punkbuster">on</set>
</settings>
<settings name="messages">
<set name="kicked_by">%s^7 was kicked by %s^7 %s</set>
<set name="kicked">%s^7 was kicked %s</set>
<set name="banned_by">%s^7 was banned by %s^7 %s</set>
<set name="banned">%s^7 was banned %s</set>
<set name="temp_banned_by">%s^7 was temp banned by %s^7 for %s^7 %s</set>
<set name="temp_banned">%s^7 was temp banned for %s^7 %s</set>
<set name="unbanned_by">%s^7 was un-banned by %s^7 %s</set>
<set name="unbanned">%s^7 was un-banned %s</set>
</settings>
<settings name="plugins">
<set name="external_dir">@b3/extplugins</set>
</settings>
<plugins>
                <plugin name="chatlogger" priority="1" config="@b3/extplugins/conf/plugin_chatlogger.xml"/>
<plugin name="censor" priority="2" config="@b3/conf/plugin_censor.xml"/>
<plugin name="spamcontrol" priority="3" config="@b3/conf/plugin_spamcontrol.xml"/>
<plugin name="admin" priority="4" config="@b3/conf/plugin_admin.xml"/>
<plugin name="stats" priority="5" config="@b3/conf/plugin_stats.xml"/>
<plugin name="pingwatch" priority="6" config="@b3/conf/plugin_pingwatch.xml"/>
<plugin name="adv" priority="7" config="@b3/conf/plugin_advCRS.xml"/>
<plugin name="status" priority="8" config="@b3/conf/plugin_status_crs.xml"/>
<plugin name="punkbuster" priority="9" config="@b3/conf/plugin_punkbuster.xml"/>
<plugin name="xlrstats" priority="10" config="@b3/extplugins/conf/xlrstats.xml"/>
<plugin name="funnyfarm" priority="11" config="@b3/extplugins/conf/funnyfarm.xml"/>

<!--<plugin name="ctime" priority="12" config="@b3/conf/ctime.xml"/>-->


<!--
<plugin name="tk" priority="4" config="@b3/conf/plugin_tk.xml"/>
<plugin name="login" priority="12" config="@b3/conf/plugin_login.xml"/>
<plugin name="welcome" priority="9" config="@b3/conf/plugin_welcome.xml"/> -->
</plugins>
</configuration>

I'll update as soon as I can Xlr8or thats a good point.

Is B3 not told to look in the extplugins folder, so if it was added to the plugins folder would b3 even look there for it?

Ohh some other info that might be helpful. The server is linux, the game is cod4, the parser is cod4 and thats about it.

Eire.32
Eire.32

Offline Courgette

  • Senior Dev.
  • Hero Member
  • *
  • Posts: 4883
    • Github repository
Re: chatlogger plugin v0.2.0
« Reply #67 on: May 30, 2009, 06:54:20 PM »
I see nothing wrong with your config. That's weird.... don't what to think.
That's probably something stupid as always in thoses cases that make us loose our head  :P

Offline Elric666

  • Jr. Member
  • **
  • Posts: 21
    • SNL-CLAN
Re: chatlogger plugin v0.2.0
« Reply #68 on: June 22, 2009, 07:23:53 AM »
Hello,

happily I was able to get B3 and all the plugins running so far, but I struggle with this one.

I was looking for ages fo such a admin bot :D

I created one config XML per COD server and also created one plugin_chatlogger#.xml per server.
In each main config I pointed to the different chatlogger config.
In that config I uncommented the lines for the table, added the DB name and the new table name (chatlog2)

Testing it now, all chat is still stored in the standard table....

plugin_chatlogger2.xml:

        <settings name="b3">
        <set name="db_table">chatlog2</set>
        </settings>

Entry in server01.xml:

<plugin name="chatlogger" priority="12" config="@b3/extplugins/conf/plugin_chatlogger2.xml"/>

What am I missing here???
Can somebody help me?

Thanks for any help

Elric666

]

Offline Courgette

  • Senior Dev.
  • Hero Member
  • *
  • Posts: 4883
    • Github repository
Re: chatlogger plugin v0.2.0
« Reply #69 on: June 22, 2009, 07:36:36 AM »
Just to make sure I understand your situation, you are using one database for all your B3 instances. Is that right ?

It looks like your differents B3 instances are using the same chatlogger config. But that just a assumption. It is very difficult to know for sure what goes wrong without seing your B3 logs.

Offline Elric666

  • Jr. Member
  • **
  • Posts: 21
    • SNL-CLAN
Re: chatlogger plugin v0.2.0
« Reply #70 on: June 22, 2009, 12:48:36 PM »
OK, I see, yes I use one DB for COD2 and another one for COD4.

The logs are clean, no error comes up.
What I have is one b3 installation using different xml's for the servers.
I also use different XML's for the chatlogger plugin.
(plugin_chatlogger.xml, plugin_chatlogger2.xml, etc.)

So I start from /b3 with different startscripts using different XML's for the different servers.
Code: [Select]
#! /bin/sh
screen -dmS b3pam python ./b3_run.py -c /b3/b3/conf/cod2pam.xml


You can see that I changed the different XML files to point to different chatlogger xml files.
Code: [Select]
  <plugin name="chatlogger" priority="12" config="@b3/extplugins/conf/plugin_chatlogger2.xml"/>

As said, nothing comes up in the logs, all looks fine, it just seems it ignore the changes in the chatlogger xml file.
It says it loaded chatlogger plugin successfull and that's it. All chat is logged in table "chatlog", as well in the chatlogger xml file I added "chatlog2" as table name.


Code: [Select]
090622 06:59:45 BOT     Connected to database
090622 06:59:45 BOT     Game log /home/codserver/server06/pam_pub_snl1/games_mp.log
090622 06:59:45 BOT     Starting bot reading file /home/codserver/server06/pam_pub_snl1/games_mp.log
090622 06:59:45 BOT     Loading Plugin #3 admin [/b3/b3/conf/plugin_admin.xml]
090622 06:59:45 BOT     AdminPlugin: Loading config /b3/b3/conf/plugin_admin.xml for AdminPlugin
090622 06:59:45 BOT     Plugin admin (1.3.4b0 - ThorN) loaded
090622 06:59:45 BOT     Loading Plugin #5 stats [/b3/b3/conf/plugin_stats.xml]
090622 06:59:45 BOT     StatsPlugin: Loading config /b3/b3/conf/plugin_stats.xml for StatsPlugin
090622 06:59:45 BOT     Plugin stats (1.2.3 - ThorN) loaded
090622 06:59:45 BOT     Loading Plugin #6 pingwatch [/b3/b3/conf/plugin_pingwatch.xml]
090622 06:59:45 BOT     PingwatchPlugin: Loading config /b3/b3/conf/plugin_pingwatch.xml for PingwatchPlugin
090622 06:59:45 BOT     Plugin pingwatch (1.1.4 - ThorN) loaded
090622 06:59:45 BOT     Loading Plugin #7 adv [/b3/b3/conf/plugin_adv.xml]
090622 06:59:45 BOT     AdvPlugin: Loading config /b3/b3/conf/plugin_adv.xml for AdvPlugin
090622 06:59:45 BOT     Plugin adv (1.1.2 - ThorN) loaded
090622 06:59:45 BOT     Loading Plugin #8 status [/b3/b3/conf/plugin_status.xml]
090622 06:59:45 BOT     StatusPlugin: Loading config /b3/b3/conf/plugin_status.xml for StatusPlugin
090622 06:59:45 BOT     Plugin status (1.2.5 - ThorN) loaded
090622 06:59:45 BOT     Loading Plugin #9 welcome [/b3/b3/conf/plugin_welcome.xml]
090622 06:59:45 BOT     WelcomePlugin: Loading config /b3/b3/conf/plugin_welcome.xml for WelcomePlugin
090622 06:59:45 BOT     Plugin welcome (1.0.2 - ThorN) loaded
090622 06:59:45 BOT     Loading Plugin #10 punkbuster [/b3/b3/conf/plugin_punkbuster_cod2pam.xml]
090622 06:59:45 BOT     PunkbusterPlugin: Loading config /b3/b3/conf/plugin_punkbuster_cod2pam.xml for PunkbusterPlugin
090622 06:59:45 BOT     Plugin punkbuster (1.0.8 - ThorN) loaded
090622 06:59:45 BOT     Loading Plugin #11 openbanter [/b3/b3/extplugins/conf/openbanter.xml]
090622 06:59:45 BOT     OpenbanterPlugin: Loading config /b3/b3/extplugins/conf/openbanter.xml for OpenbanterPlugin
090622 06:59:45 BOT     Plugin openbanter (0.2b - Bakes) loaded
090622 06:59:45 BOT     Loading Plugin #12 chatlogger [/b3/b3/extplugins/conf/plugin_chatlogger2.xml]
090622 06:59:45 BOT     ChatloggerPlugin: Loading config /b3/b3/extplugins/conf/plugin_chatlogger2.xml for ChatloggerPlugin
090622 06:59:45 BOT     Plugin chatlogger (0.2.0 - Courgette) loaded
090622 06:59:45 BOT     Loading Plugin #13 spree [/b3/b3/extplugins/conf/plugin_spree.xml]
090622 06:59:45 BOT     SpreePlugin: Loading config /b3/b3/extplugins/conf/plugin_spree.xml for SpreePlugin
090622 06:59:45 BOT     Plugin spree (Unknown Version - Unknown Author) loaded
090622 06:59:45 BOT     Client found in storage 1, welcome back World
090622 06:59:45 BOT     Starting Plugin admin
090622 06:59:45 BOT     Starting Plugin stats
090622 06:59:45 BOT     Starting Plugin pingwatch
090622 06:59:45 BOT     Starting Plugin adv
090622 06:59:45 BOT     Starting Plugin status
090622 06:59:45 BOT     Starting Plugin welcome
090622 06:59:45 BOT     Starting Plugin punkbuster
090622 06:59:45 BOT     Starting Plugin openbanter
090622 06:59:45 BOT     Starting Plugin chatlogger
090622 06:59:45 BOT     Starting Plugin spree
090622 06:59:45 BOT     Start reading...


So I don't understand, why it is ignoring the changes in the chatlogger XMl file...

Thanks for you quick answer yet :)

Elric666
« Last Edit: June 22, 2009, 12:57:33 PM by Elric666 »

]

Offline Courgette

  • Senior Dev.
  • Hero Member
  • *
  • Posts: 4883
    • Github repository
Re: chatlogger plugin v0.2.0
« Reply #71 on: June 22, 2009, 12:58:23 PM »
can you search your b3 log for something similar to :

Quote
DEBUG    Using table (%s) to store log

where %s is the table name you defined in the chaloger config.

EDIT: and make sure you are using the v0.2.0 of chatloger

Offline Elric666

  • Jr. Member
  • **
  • Posts: 21
    • SNL-CLAN
Re: chatlogger plugin v0.2.0
« Reply #72 on: June 22, 2009, 04:12:21 PM »
As I see it is using standard table...

090622 15:40:53 BOT     Loading Plugin #12 chatlogger [/b3/b3/extplugins/conf/plugin_chatlogger2.xml]
090622 15:40:53 INFO    Could not find built in plugin chatlogger, trying external plugin directories.
No module named chatlogger
090622 15:40:53 BOT     ChatloggerPlugin: Loading config /b3/b3/extplugins/conf/plugin_chatlogger2.xml for ChatloggerPlugin
090622 15:40:53 DEBUG   ChatloggerPlugin: Using default value (chatlog) for db_table
090622 15:40:53 DEBUG   ChatloggerPlugin: max age : 4w => 28 days
090622 15:40:53 DEBUG   ChatloggerPlugin: 00:00 CET => 23:00 UTC
090622 15:40:53 INFO    ChatloggerPlugin: everyday at  0: 0 CET, chat messages older than 28 days will be deleted
090622 15:40:53 DEBUG   Register Event: Stop Process: ChatloggerPlugin
090622 15:40:53 DEBUG   Register Event: Program Exit: ChatloggerPlugin
090622 15:40:53 BOT     Plugin chatlogger (0.2.0 - Courgette) loaded


So I feel even more lost now... :(

Before you ask, here my full chatlogger2 xml...
Code: [Select]
        to store the log. Default is 'chatlog'. To do so, uncomment the
        following part: -->

        <settings name="b3">
        <set name="db_table">chatlog2</set>
        </settings>

        <settings name="purge">
                <!-- how long (in days) do you want the history to be kept for.
                                0 : keep chat log history for ever (default value)
                                You can use the following syntax as well
                                3d : purge all chat older than 3 days
                                2w : two weeks
                                6m : six month
                                1y : one year
                -->
                <set name="max_age">4w</set>

                <!-- The purge action takes place once a day at the time define below.
                Default time is midnight -->
                <set name="hour">0</set>
                <!-- hour between 0 and 23 -->
                <set name="min">0</set>
                <!-- min between 0 and 59 -->
        </settings>
</configuration>


Elric666

]

Offline Courgette

  • Senior Dev.
  • Hero Member
  • *
  • Posts: 4883
    • Github repository
Re: chatlogger plugin v0.2.0
« Reply #73 on: June 22, 2009, 05:17:47 PM »
Code: xml [Select]
<settings name="b3">
    <set name="db_table">chatlog2</set>
</settings>


should be

Code: xml [Select]
<settings name="database">
    <set name="db_table">chatlog2</set>
</settings>



Offline Elric666

  • Jr. Member
  • **
  • Posts: 21
    • SNL-CLAN
Re: chatlogger plugin v0.2.0
« Reply #74 on: June 22, 2009, 05:34:06 PM »
Code: xml [Select]
<settings name="b3">
    <set name="db_table">chatlog2</set>
</settings>


should be

Code: xml [Select]
<settings name="database">
    <set name="db_table">chatlog2</set>
</settings>




OMG, I really thought I need to enter the DB name there...

Now I really fell stupid :(

Thanks thousand times for this help...

Cheers

Elric666

]

 


Rate this page +1 at Google Search

anything