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: follow users plugin  (Read 26541 times)

Offline Garreth

  • Sr. Member
  • ****
  • Posts: 279
Re: follow users plugin
« Reply #30 on: May 04, 2011, 05:04:50 PM »
Hello!

I've been reviewing logs from B3 and i noticed that fragment http://www.pastie.org/private/sfmcsqtjtpwuroqiy2qmw . The follow plugin seems to work without any problems in game, but I'm worried about this line:
Code: [Select]
AttributeError: FollowPlugin instance has no attribute 'client'

Can I fix it somehow? Or it's normal behavior of the plugin? This error occures several times in my log file. I'm using plugin in version 1.1.4.

Thanks in advance:)

Offline Courgette

  • Senior Dev.
  • Hero Member
  • *
  • Posts: 4883
    • Github repository
Re: follow users plugin
« Reply #31 on: May 04, 2011, 05:43:23 PM »
Hi, could you post a full b3.log showing B3 starting and that line please ?

Offline Garreth

  • Sr. Member
  • ****
  • Posts: 279
Re: follow users plugin
« Reply #32 on: May 04, 2011, 06:20:48 PM »
Sure: http://pastebin.com/h0bZD0Bs

I hope that's what you want, because its over 2000 lines of log. The error occures at line 2155.

Offline Courgette

  • Senior Dev.
  • Hero Member
  • *
  • Posts: 4883
    • Github repository
Re: follow users plugin
« Reply #33 on: May 04, 2011, 06:50:19 PM »
Here is a quick fix for you to try :

in follow.py, search for :
Code: python [Select]
self.console.queueEvent(self.console.getEvent('EVT_FOLLOW_CONNECTED', (client.var(self, 'follow_data').value,), self.client))
replace with :
Code: python [Select]
self.console.queueEvent(self.console.getEvent('EVT_FOLLOW_CONNECTED', (client.var(self, 'follow_data').value,), client))
« Last Edit: May 04, 2011, 06:52:19 PM by Courgette »

Offline BetterDeadThanZed

  • Beta Testers
  • Hero Member
  • *
  • Posts: 681
    • Killin Zeds
Re: follow users plugin
« Reply #34 on: June 09, 2011, 01:40:17 AM »
Nice plugin. I just found this. Works great on B3 1.5.0 (I haven't had time or desire to upgrade to 1.6.1).

One thing I noticed, when you use the !ckf command, it lists who is online that is being followed, and also seems to be able to give a reason for the follow, but when I tried adding a reason (!ff name reason), it didn't display with the !ckf command.

Offline Freelander

  • XLRstats dev.
  • Dev. Team
  • Hero Member
  • *
  • Posts: 1000
Re: follow users plugin
« Reply #35 on: July 08, 2011, 11:25:58 AM »
@sgt: do you have a github repo for this plugin?

Offline sgt

  • B3 Contrib/Support
  • Full Member
  • *
  • Posts: 82
Re: follow users plugin
« Reply #36 on: July 12, 2011, 02:59:49 PM »
Updated the plugin to the last version and added some fixes by Freelander.

Thank you.

Offline r4g3b0rn

  • Newbie
  • *
  • Posts: 3
Re: follow users plugin
« Reply #37 on: September 18, 2011, 06:25:47 AM »
I installed the plugin on my server and when i try to use the commands it says unrecognized command

Offline MordyT

  • Moderator
  • Hero Member
  • *
  • Posts: 3644
  • Over $300 Donated to B3!
    • MordyT
Re: follow users plugin
« Reply #38 on: September 19, 2011, 01:21:08 AM »
try !help and see if you see follow in the list.

Otherwise post a b3.log
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

Offline Oaker

  • Newbie
  • *
  • Posts: 8
Re: follow users plugin
« Reply #39 on: February 21, 2012, 10:49:03 PM »
Hello,

Being new to B3 and plugins I prepared to ask a very noobish question... :-[

Running B3 1.7.1 on a rented Windows system, for a CoD5 game.

How to install the "Follow" plugin.  I can see where the follow.py and follow.xml are placed in their respective folders within extplugins & /conf.  And I have tried placing addreason.sql and following.sql in both the sql folder, as well as the servers root... neither accomplished anything.

Being new I realize I'm missing some simple but critical steps, and have been unable to locate a how too regarding some of these plugins.

Any assistance would be greatly appreciated.

Oaker

Offline sgt

  • B3 Contrib/Support
  • Full Member
  • *
  • Posts: 82
Re: follow users plugin
« Reply #40 on: February 21, 2012, 10:53:25 PM »
Hello,

Being new to B3 and plugins I prepared to ask a very noobish question... :-[

Running B3 1.7.1 on a rented Windows system, for a CoD5 game.

How to install the "Follow" plugin.  I can see where the follow.py and follow.xml are placed in their respective folders within extplugins & /conf.  And I have tried placing addreason.sql and following.sql in both the sql folder, as well as the servers root... neither accomplished anything.

Being new I realize I'm missing some simple but critical steps, and have been unable to locate a how too regarding some of these plugins.

Any assistance would be greatly appreciated.

Oaker

First you need to know how to install plugins http://wiki.bigbrotherbot.net/support:plugins :)

Regarding the sql files, those scripts need to be executed in your b3 database (using phpmyadmin for example)

Once all done, restart your b3 bot.

Offline moosedrool

  • Newbie
  • *
  • Posts: 7
Re: follow users plugin
« Reply #41 on: June 15, 2012, 08:42:24 AM »
Using latest b3 1.8.1 with the latest follow plugin version 1.2.0

I get the following error in my logfiles whenever I try to follow a player. 


120615 02:37:42 CONSOLE '2166:23 say;916895;2;Moose;\x15!follow smart dumbass'
120615 02:37:42 DEBUG   u'AdminPlugin: OnSay handle 5:"!follow smart dumbass"'
120615 02:37:42 DEBUG   u'AdminPlugin: Handle command !follow smart dumbass'
120615 02:37:42 DEBUG   'Data was a string'
120615 02:37:42 ERROR   "handler AdminPlugin could not handle event Say: NameError: global name 'reason' is not defined [('/home/1.8.1/b3/parser.py', 1002, 'handleEvents', 'hfunc.parseEvent(event)'), ('/home/1.8.1/b3/plugin.py', 158, 'parseEvent', 'self.onEvent(event)'), ('/home/1.8.1/b3/plugin.py', 176, 'onEvent', 'self.handle(event)'), ('/home/1.8.1/b3/plugins/admin.py', 231, 'handle', 'self.OnSay(event)'), ('/home/1.8.1/b3/plugins/admin.py', 376, 'OnSay', 'results = command.execute(data, event.client)'), ('/home/1.8.1/b3/plugins/admin.py', 2034, 'execute', 'self.func(data, client, copy.copy(self))'), ('/home/1.8.1/b3/extplugins/follow.py', 392, 'cmd_follow', 'self.add_follow_client(sclient, client)'), ('/home/1.8.1/b3/extplugins/follow.py', 401, 'add_follow_client', 'cursor2 = self.console.storage.query(self._ADD_QUERY % (sclient.id, admin, self.console.time(), reason))')]"

Offline Courgette

  • Senior Dev.
  • Hero Member
  • *
  • Posts: 4883
    • Github repository
Re: follow users plugin
« Reply #42 on: June 15, 2012, 09:29:41 AM »
try that hack in follow.py :

Quote from: search for
        self.add_follow_client(sclient, client)
           
    def add_follow_client(self, sclient, client = None):

Quote from: replace with
        self.add_follow_client(sclient, client, reason=reason)
           
    def add_follow_client(self, sclient, client=None, reason=''):

Offline sgt

  • B3 Contrib/Support
  • Full Member
  • *
  • Posts: 82
Re: follow users plugin
« Reply #43 on: June 15, 2012, 12:24:45 PM »
It seems I uploaded a broken version, my bad  :-[

Please, get the correct one follow.zip

Offline Courgette

  • Senior Dev.
  • Hero Member
  • *
  • Posts: 4883
    • Github repository
Re: follow users plugin
« Reply #44 on: October 09, 2012, 09:45:18 PM »
Hey SGT, could you host your plugin code on github ? I'd like to submit you an update

 


Rate this page +1 at Google Search

anything