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!

You are here: Big Brother Bot ForumAdd-OnsPlugins Discussion (Moderator: MordyT)plugin_adv not loading (including default xml)
Pages: [1]   Go Down
  Print  
Author Topic: plugin_adv not loading (including default xml)  (Read 391 times) Bookmark and Share
Newbie
*
OS: Windows
Type: Home user
Gameservers: CoD4
Posts: 3
Offline Offline
« on: December 05, 2011, 06:05:23 AM »

Hello! I'm having troubles loading B3 with the plugin_adv.xml configured to run.

I'm on a Windows 7 box, with MySQL 5.5.x and Python 2.7.x

Hoping someone here can help me figure this out...

Thank you!
-Dev

Quote
111205 07:57:33   BOT       'www.bigbrotherbot.net (b3) v1.7.1 [nt] [Myrthe] [Win32 standalone]'
111205 07:57:33   BOT       'Python: 2.6.1 (r261:67517, Dec  4 2008, 16:51:00) [MSC v.1500 32 bit (Intel)]'
111205 07:57:33   BOT       'Default encoding: ascii'
111205 07:57:33   BOT       'Starting Cod4Parser v1.3.4 for server 127.0.0.1:28960'
111205 07:57:33   BOT       '--------------------------------------------'
111205 07:57:33   BOT       'Attempting to connect to database mysql://root:******@localhost/b3...'
111205 07:57:34   BOT       'Connected to database [1 times]'
111205 07:57:34   BOT       'Game log C:\\Users\\Admin\\AppData\\Local\\VirtualStore\\Program Files (x86)\\Activision\\Call of Duty 4 - Modern Warfare\\main\\games_mp.log'
111205 07:57:34   BOT       'Starting bot reading file C:\\Users\\Admin\\AppData\\Local\\VirtualStore\\Program Files (x86)\\Activision\\Call of Duty 4 - Modern Warfare\\main\\games_mp.log'
111205 07:57:34   BOT       'rcon status Cache Expire Time: [2 sec] Type: [memory]'
111205 07:57:34   VERBOSE   "RCON sending (127.0.0.1:28960) 'status'"
111205 07:57:34   BOT       'Loading Plugins (external plugin directory: C:\\b3\\extplugins)'
111205 07:57:34   BOT       'Loading Plugin #1 adv [C:\\b3\\conf\\plugin_adv.xml]'
111205 07:57:34   BOT       'AdvPlugin: Loading config C:\\b3\\conf\\plugin_adv.xml for AdvPlugin'
111205 07:57:34   INFO   'AdvPlugin: adv rate is 2'
111205 07:57:34   CRITICAL   "Error loading plugin: 'NoneType' object has no attribute 'getSpam'"
Traceback (most recent call last):
  File "b3\parser.pyo", line 605, in loadPlugins
  File "b3\plugin.pyo", line 56, in __init__
  File "b3\plugin.pyo", line 115, in loadConfig
  File "b3\plugins\adv.pyo", line 148, in onLoadConfig
  File "b3\plugins\adv.pyo", line 213, in loadFromConfig
  File "b3\plugins\adv.pyo", line 222, in load
AttributeError: 'NoneType' object has no attribute 'getSpam'
Logged

Moderator
*
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 #1 on: December 05, 2011, 06:09:43 AM »

Can you post your plugin_adv.xml here?
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
Newbie
*
OS: Windows
Type: Home user
Gameservers: CoD4
Posts: 3
Offline Offline
« Reply #2 on: December 05, 2011, 06:16:35 AM »

Certainly, currently I'm trying to just get the default configuration file working.

Quote
<configuration plugin="adv">
   <!--
      Note: within ads, you can use the following variables : @nextmap @time
      or rules as defined in the admin plugin config file. ie: /spam#rule1
   -->
   <settings name="settings">
      <!-- rate in minutes.
        If you want a rate faster than once
        per minutes, then you can add a 's' as a suffix for seconds.
        i.e. : <set name="rate">30s</set>
      -->
      <set name="rate">2</set>
      <!--
         you can either set here a text file that will contain one ad per line
         or fill the <ads> section below
      -->
      <!-- <set name="ads">c:/somewhere/my_ads.txt</set> -->
   </settings>
  <settings name="newsfeed">
      <!--
         you can include newsitems in your adds by setting the section below
         you can add feeditems in the adds like this:
         @feed   (will pick the next newsitem each time it is included in the rotation,
               rotating until 'items' is reached and then start over.)
         @feed 0 (will pick the latest newsitem available from the feed and add it in the rotation)
         @feed 1 (will pick the second latest item in line)
         etc.
      -->
      <set name="url"><![CDATA[http://forum.bigbrotherbot.net/news-2/?type=rss;action=.xml]]></set>
      <set name="items">5</set>
      <set name="pretext">News: </set>
   </settings>
   <ads>
    <!-- you can use the following keywords in your messages :
      /spam#rule1 - rule 1 as defined in you admin plugin config file
      @time - the server time
      @feed - the next RSS feed item
      @feed 0 - the lastest RSS feed item
      @feed 1 - the 2nd lastest RSS feed item
      @nextmap - the next map in your game server rotation list (if available)
      @topstats - the top stats from XLRstats (if the plugin is enabled)
      @admins - connected admins' names. You can change the message format in your admin plugin config
    -->
      <ad>^2Big Brother Bot is watching you... www.BigBrotherBot.net</ad>
      <ad>@feed</ad>
      <ad>server watched by @admins</ad>
      <ad>/spam#rule1</ad>
      <ad>@time</ad>
      <ad>@admins</ad>
      <ad>@feed</ad>
      <ad>^2Do you like B3? Consider donating to the project at www.BigBrotherBot.net</ad>
      <ad>@nextmap</ad>
      <ad>@topstats</ad>
   </ads>
</configuration>
Logged
B3 Contrib/Support
*
OS: Linux
Type: Owner dedicated server(s)
Gameservers: UrT
Posts: 133
Offline Offline
WWW
« Reply #3 on: December 05, 2011, 07:44:14 AM »

you load the plugin adv before the admin plugin?

make sure you have in your b3.xml

<plugin config="@conf/plugin_admin.xml" name="admin" />
before
<plugin config="@conf/plugin_adv.xml" name="adv" />

Quote
plugin order is important. Plugins that add new in-game commands all depend on the admin plugin. Make sure to have the admin plugin before them
Logged
Newbie
*
OS: Windows
Type: Home user
Gameservers: CoD4
Posts: 3
Offline Offline
« Reply #4 on: December 05, 2011, 07:50:54 AM »

Thank you very much!

-Dev
Logged
Tags: adv failing loading crashing 
Pages: [1]   Go Up
  Print  
 
Jump to:  


Rate this page +1 at Google Search


SimplePortal 2.3.1 © 2008-2009, SimplePortal