In our support boards we aim to provide support for the B3 core in its current state. Older releases of B3 are NOT supported. Check our front page for the latest version. You may post feature requests in our General Discussion board. Modifications and Hacks of the core B3 code are NOT supported.
Before you ask for support: [ Read the Support Instructions ] - More info: [ Full Support Disclaimer ]

You are here: Big Brother Bot ForumSupport ForumsGeneral Usage Support (Moderator: MordyT)AdvPlugin: Save to XML config not supported
Pages: [1]   Go Down
  Print  
Author Topic: AdvPlugin: Save to XML config not supported  (Read 3590 times) Bookmark and Share
Newbie
*
Posts: 8
Offline Offline
« on: July 28, 2009, 10:33:37 AM »

Ive been searching for solution on forums, for a good 3 hours... and wasnt able to find anything.
I have server on solidgamers.com, i registered as owner(super admin [100]) on my server thru command (iamgod), and everything seems to be working fine...
except when i try to use !advadd, im receiving message saying: There was an error processing your command.
In log its look like this:

Code:
090728 13:16:03 VERBOSE StatusPlugin: Building XML status
090728 13:16:03 DEBUG StatusPlugin: Writing XML status to /home/espl/status.xml
090728 13:16:03 VERBOSE RCON sending (208.xxx.xx.xx:28960) say ^0(^2b3^0)^7: ^3Rule #1: No racism of any kind
090728 13:16:13 CONSOLE 0:14 J;9b1c72215cf6de70eb65241188a74bcf;0;espl
090728 13:16:22 CONSOLE 0:23 say;9b1c72215cf6de70eb65241188a74bcf;0;espl;!advadd test
090728 13:16:22 VERBOSE Queueing event Say !advadd test
090728 13:16:22 VERBOSE Parsing Event: Say: CensorPlugin
090728 13:16:22 VERBOSE Parsing Event: Say: SpamcontrolPlugin
090728 13:16:22 VERBOSE Parsing Event: Say: AdminPlugin
090728 13:16:22 DEBUG AdminPlugin: OnSay handle 5:"!advadd test"
090728 13:16:22 DEBUG AdminPlugin: Handle command !advadd test
090728 13:16:22 VERBOSE AdvPlugin: Save to XML config not supported
090728 13:16:22 VERBOSE RCON sending (208.xxx.xx.xxx:28960) tell 0 ^0(^2b3^0)^7: ^3[pm]^7 ^3Adv: ^7"test^7" added
090728 13:16:22 ERROR handler AdminPlugin could not handle event Say: Exception: Save to XML config not supported [('/home/espl/b3bot/b3/parser.py', 521, 'handleEvents', 'hfunc.parseEvent(event)'), ('/home/espl/b3bot/b3/plugin.py', 129, 'parseEvent', 'self.onEvent(event)'), ('/home/espl/b3bot/b3/plugin.py', 147, 'onEvent', 'self.handle(event)'), ('/home/espl/b3bot/b3/plugins/admin.py', 120, 'handle', 'self.OnSay(event)'), ('/home/espl/b3bot/b3/plugins/admin.py', 252, 'OnSay', 'results = command.execute(data, event.client)'), ('/home/espl/b3bot/b3/plugins/admin.py', 2058, 'execute', 'self.func(data, client, copy.copy(self))'), ('/home/espl/b3bot/b3/plugins/adv.py', 165, 'cmd_advadd', 'self.save()'), ('/home/espl/b3bot/b3/plugins/adv.py', 129, 'save', "raise Exception('Save to XML config not supported')")]
090728 13:16:23 VERBOSE RCON sending (208.100.24.198:28960) tell 0 ^0(^2b3^0)^7: ^3[pm]^7 ^7There was an error processing your command
090728 13:16:30 VERBOSE RCON sending (208.100.24.198:28960) status
090728 13:16:31 ERROR getPlayerList() = Line did not match :map: mp_backlot
090728 13:16:31 ERROR getPlayerList() = Line did not match :num score ping guid                             name            lastmsg address    

What am i doing wrong?
Logged

Senior Dev.
*
OS: Linux
Type: Home user
Posts: 3347
Offline Offline
WWW
Support Specialty: B3-Core, UrT/SmG/BFBC2 parsers, Plugin development
« Reply #1 on: July 28, 2009, 11:21:48 AM »

you did nothing wrong, but at the moment the bot is not able to write to xml config files, hence not able to write your new adv to the adv.xml config file.

Here's a workaround :

edit your adv.xml config file like this :
Quote
<configuration plugin="adv">
   <settings name="settings">
      <!-- rate in minutes -->
      <set name="rate">10</set>
    <set name="ads">/home/ubuteam/ubu-conf/tuxjumpers_ads.txt</set>
   </settings>
   <ads></ads>
</configuration>   

then create the /home/ubuteam/ubu-conf/tuxjumpers_ads.txt file with one add per line like :
Code:
visit our forums : http://blabla
VoIP: mumble://blabla.com
etc

the bot is able to write to txt files, so the !advadd command should work
« Last Edit: July 28, 2009, 01:48:51 PM by Courgette » Logged

Newbie
*
Posts: 8
Offline Offline
« Reply #2 on: July 28, 2009, 01:33:27 PM »

Thx! it works now.
Logged
Moderator
*
OS: Windows
Type: Gameserver Rental Co.
Gameservers: 3x CoD4, 1x CoD6, 1x BF3
Posts: 2372
Offline Offline
Owner of Host4B3.com - Over 70 bots hosted!
WWW
« Reply #3 on: July 21, 2010, 10:00:11 PM »

I had the same issue. Funny thing is that it still added to the list until the bot restarted...

thanks for this!
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
Tags:
Pages: [1]   Go Up
  Print  
 
Jump to:  


Rate this page +1 at Google Search


SimplePortal 2.3.1 © 2008-2009, SimplePortal