thankyou
Donate to the B3 fund!

"even a small donation helps!"
Donate with PayPal!
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 ]

Author Topic: AdvPlugin: Save to XML config not supported  (Read 9696 times)

Offline eSpL

  • Newbie
  • *
  • Posts: 8
AdvPlugin: Save to XML config not supported
« on: July 28, 2009, 08:33:37 PM »
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: [Select]
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?

Offline Courgette

  • Senior Dev.
  • Hero Member
  • *
  • Posts: 4883
    • Github repository
Re: AdvPlugin: Save to XML config not supported
« Reply #1 on: July 28, 2009, 09:21:48 PM »
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: [Select]
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, 11:48:51 PM by Courgette »

Offline eSpL

  • Newbie
  • *
  • Posts: 8
Re: AdvPlugin: Save to XML config not supported
« Reply #2 on: July 28, 2009, 11:33:27 PM »
Thx! it works now.

Offline MordyT

  • Moderator
  • Hero Member
  • *
  • Posts: 3644
  • Over $300 Donated to B3!
    • MordyT
Re: AdvPlugin: Save to XML config not supported
« Reply #3 on: July 22, 2010, 08:00:11 AM »
I had the same issue. Funny thing is that it still added to the list until the bot restarted...

thanks for this!
Help will be given to those with a b3.log

If drop off the map it is due to RL becoming busy :)

System: Python 2.7.3 - Deb 7 - B3 Source Code - 128MB RAM box (rented at $5 a year) - remote MySQL - Remote Web Services

 


Rate this page +1 at Google Search

anything