thankyou
Donate to the B3 fund!

"even a small donation helps!"
Donate with PayPal!

Author Topic: B3 Bot- Not registering commands  (Read 2300 times)

Offline Kemikool

  • Newbie
  • *
  • Posts: 9
B3 Bot- Not registering commands
« on: December 07, 2013, 01:43:45 PM »
Hey, B3 Bot doesn't seem to be working at all :(
This part works fine:
131207 06:49:05   VERBOSE   "RCON sending (103.18.206.220:28930) 'say ^7[^1Overlord^7]  ^8www.bigbrotherbot.net ^0(^8b3^0) ^9v1.9.1 [posix] ^9[^3PoisonIvy^9]^3 ^2[ONLINE]'"
I see it registering up ingame
but later on I see:
Code: [Select]
131207 06:49:05	INFO	'STDOUT "Error: \'admin\'"'
131207 06:49:05 INFO "STDOUT '\\n'"
131207 06:49:05 ERROR "STDERR 'Traceback (most recent call last):\\n'"
131207 06:49:05 ERROR 'STDERR \'  File "/home/b3/b3/b3/__init__.py", line 182, in start\\n\''
131207 06:49:05 ERROR "STDERR '    console.start()\\n'"
131207 06:49:05 ERROR 'STDERR \'  File "/home/b3/b3/b3/parser.py", line 520, in start\\n\''
131207 06:49:05 ERROR "STDERR '    self.startPlugins()\\n'"
131207 06:49:05 ERROR 'STDERR \'  File "/home/b3/b3/b3/parser.py", line 780, in startPlugins\\n\''
131207 06:49:05 ERROR 'STDERR "    start_plugin(\'admin\')\\n"'
131207 06:49:05 ERROR 'STDERR \'  File "/home/b3/b3/b3/parser.py", line 770, in start_plugin\\n\''
131207 06:49:05 ERROR "STDERR '    p = self._plugins[plugin_name]\\n'"
131207 06:49:05 ERROR 'STDERR "KeyError: \'admin\'\\n"'
131207 06:49:05 BOT    'Shutting down...'
131207 06:49:05 INFO 'StatusPlugin: B3 stop/exit.. updating status'
131207 06:49:05 DEBUG 'StatusPlugin: Writing XML status to /root/status.xml'
131207 06:49:05 BOT    'Shutting down database connections...'
Any suggestions?

Offline 82ndAB.Bravo17

  • Dev. Team
  • Hero Member
  • *
  • Posts: 2628
Re: B3 Bot- Not registering commands
« Reply #1 on: December 07, 2013, 04:08:03 PM »
Please post a full b3 log and your b3 xml - masking passwords first

Offline Kemikool

  • Newbie
  • *
  • Posts: 9
Re: B3 Bot- Not registering commands
« Reply #2 on: December 08, 2013, 10:14:02 AM »
The b3 log is at the original post.
B3.xml is here:
Code: [Select]
<?xml version="1.0" encoding="UTF-8"?>
<!--Created by BigBrotherBot Config File Generator at http://config.bigbrotherbot.net (07 Dec 2013 - Sat 12:06:00 CET)-->
<configuration>
  <settings name="b3">
    <set name="bot_name">b3</set>
    <set name="bot_prefix">^7[^1Overlord^7] </set>
    <set name="time_format">%I:%M%p %Z %m/%d/%y</set>
    <set name="time_zone">AEST</set>
    <set name="log_level">9</set>
    <set name="logfile">@conf/b3.log</set>
    <set name="parser">cod4</set>
    <set name="database">mysql://****:*****@localhost/b3</set>
  </settings>
  <settings name="server">
    <set name="rcon_password">******</set>
    <set name="port">28930</set>
    <set name="public_ip">103.18.206.220</set>
    <set name="rcon_ip">103.18.206.220</set>
    <set name="delay">0.33</set>
    <set name="lines_per_second">50</set>
    <set name="punkbuster">off</set>
    <set name="game_log">ftp://***:*****@*******/root/.callofduty4/mods/rsa_promod/games_mp.log</set>
  </settings>
  <settings name="autodoc">
    <set name="type">html</set>
    <set name="maxlevel">100</set>
    <set name="destination">@conf/b3_doc.html</set>
  </settings>
  <settings name="update">
    <set name="channel">stable</set>
  </settings>
  <settings name="messages">
    <set name="kicked_by">$clientname^7 was kicked by $adminname^7 $reason</set>
    <set name="kicked">$clientname^7 was kicked $reason</set>
    <set name="banned_by">$clientname^7 was banned by $adminname^7 $reason</set>
    <set name="banned">$clientname^7 was banned $reason</set>
    <set name="temp_banned_by">$clientname^7 was temp banned by $adminname^7 for $banduration^7 $reason</set>
    <set name="temp_banned">$clientname^7 was temp banned for $banduration^7 $reason</set>
    <set name="unbanned_by">$clientname^7 was un-banned by $adminname^7 $reason</set>
    <set name="unbanned">$clientname^7 was un-banned $reason</set>
  </settings>
  <settings name="plugins">
    <set name="external_dir">@b3/extplugins</set>
  </settings>
  <plugins>
    <plugin name="admin" config="@conf/plugin_admin.xml"/>
    <plugin name="stats" config="@conf/plugin_stats.xml"/>
    <plugin name="adv" config="@conf/plugin_adv.xml"/>
    <plugin name="status" config="@conf/plugin_status.xml"/>
    <plugin name="welcome" config="@conf/plugin_welcome.xml"/>
  </plugins>
</configuration>

Offline storm_ss

  • Jr. Member
  • **
  • Posts: 48
Re: B3 Bot- Not registering commands
« Reply #3 on: December 08, 2013, 02:42:42 PM »
The b3 log is at the original post.
B3.xml is here:
Code: [Select]
<?xml version="1.0" encoding="UTF-8"?>
<!--Created by BigBrotherBot Config File Generator at http://config.bigbrotherbot.net (07 Dec 2013 - Sat 12:06:00 CET)-->
<configuration>
  <settings name="b3">
    <set name="bot_name">b3</set>
    <set name="bot_prefix">^7[^1Overlord^7] </set>
    <set name="time_format">%I:%M%p %Z %m/%d/%y</set>
    <set name="time_zone">AEST</set>
    <set name="log_level">9</set>
    <set name="logfile">@conf/b3.log</set>
    <set name="parser">cod4</set>
    <set name="database">mysql://****:*****@localhost/b3</set>
  </settings>
  <settings name="server">
    <set name="rcon_password">******</set>
    <set name="port">28930</set>
    <set name="public_ip">103.18.206.220</set>
    <set name="rcon_ip">103.18.206.220</set>
    <set name="delay">0.33</set>
    <set name="lines_per_second">50</set>
    <set name="punkbuster">off</set>
    <set name="game_log">ftp://***:*****@*******/root/.callofduty4/mods/rsa_promod/games_mp.log</set>
  </settings>
  <settings name="autodoc">
    <set name="type">html</set>
    <set name="maxlevel">100</set>
    <set name="destination">@conf/b3_doc.html</set>
  </settings>
  <settings name="update">
    <set name="channel">stable</set>
  </settings>
  <settings name="messages">
    <set name="kicked_by">$clientname^7 was kicked by $adminname^7 $reason</set>
    <set name="kicked">$clientname^7 was kicked $reason</set>
    <set name="banned_by">$clientname^7 was banned by $adminname^7 $reason</set>
    <set name="banned">$clientname^7 was banned $reason</set>
    <set name="temp_banned_by">$clientname^7 was temp banned by $adminname^7 for $banduration^7 $reason</set>
    <set name="temp_banned">$clientname^7 was temp banned for $banduration^7 $reason</set>
    <set name="unbanned_by">$clientname^7 was un-banned by $adminname^7 $reason</set>
    <set name="unbanned">$clientname^7 was un-banned $reason</set>
  </settings>
  <settings name="plugins">
    <set name="external_dir">@b3/extplugins</set>
  </settings>
  <plugins>
    <plugin name="admin" config="@conf/plugin_admin.xml"/>
    <plugin name="stats" config="@conf/plugin_stats.xml"/>
    <plugin name="adv" config="@conf/plugin_adv.xml"/>
    <plugin name="status" config="@conf/plugin_status.xml"/>
    <plugin name="welcome" config="@conf/plugin_welcome.xml"/>
  </plugins>
</configuration>


For starters you can try changing "xml" to "ini" for 4 of your plugins so it looks like this:

  <plugins>
    <plugin name="admin" config="@conf/plugin_admin.ini"/>
    <plugin name="stats" config="@conf/plugin_stats.ini"/>
    <plugin name="status" config="@conf/plugin_status.ini"/>
    <plugin name="welcome" config="@conf/plugin_welcome.ini"/>

Offline 82ndAB.Bravo17

  • Dev. Team
  • Hero Member
  • *
  • Posts: 2628
Re: B3 Bot- Not registering commands
« Reply #4 on: December 08, 2013, 05:57:03 PM »
The b3 log is at the original post.

That isn't a full log file.

 


Rate this page +1 at Google Search