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)Bug in admin plugin with !seen and forceteam addon
Pages: 1 [2]   Go Down
  Print  
Author Topic: Bug in admin plugin with !seen and forceteam addon  (Read 1158 times) Bookmark and Share
Senior Dev.
*
OS: Linux
Type: Home user
Posts: 3484
Offline Offline
WWW
Support Specialty: B3-Core, UrT/SmG/BFBC2 parsers, Plugin development
« Reply #15 on: August 14, 2010, 06:39:15 AM »

Nice move grosbedo, maybe you should give more visibility to your forceteam plugin by opening a new thead and uploading it to the download section
Logged


Former Dev. (senate)
*****
OS: Linux
Type: Owner dedicated server(s)
Gameservers: OpenArena
Posts: 258
Offline Offline
« Reply #16 on: August 14, 2010, 07:43:43 AM »

Will that work in cod 4?

Probably not, because I think the command is different, here I used /rcon forceteam. But if you supply me the right command, I can edit the plugin.

Nice move grosbedo, maybe you should give more visibility to your forceteam plugin by opening a new thead and uploading it to the download section

I choosed not to do so because it is really a draft of what it should be. Here the command sent is always /rcon forceteam, but in the end I would like to be able to edit the default command directly in parsers just like for kick command :

Code:
_commands['kick'] = 'clientkick %(cid)s'

But I don't know how to, if you could point me towards the right direction, I could update the plugin.
Logged
Senior Dev.
*
OS: Linux
Type: Home user
Posts: 3484
Offline Offline
WWW
Support Specialty: B3-Core, UrT/SmG/BFBC2 parsers, Plugin development
« Reply #17 on: August 14, 2010, 08:00:06 AM »

you're looking for
Code: python
_commands['moveToTeam'] = 'forceteam %(cid)s %(team)s'

self.write(self.getCommand('moveToTeam', cid=client, team='spectator'))

What I'm concerned here is the team parameter. I suppose all games don't have the same number of teams or do not name them the same way
Logged

Former Dev. (senate)
*****
OS: Linux
Type: Owner dedicated server(s)
Gameservers: OpenArena
Posts: 258
Offline Offline
« Reply #18 on: August 14, 2010, 11:40:35 AM »

Ok thank's a lot, that works. But since it's a plugin, I would like to set "forceteam" as a default command if none was set in the parser. Could you please tell me how can I verify that ?
Logged
Senior Dev.
*
OS: Linux
Type: Home user
Posts: 3484
Offline Offline
WWW
Support Specialty: B3-Core, UrT/SmG/BFBC2 parsers, Plugin development
« Reply #19 on: August 14, 2010, 11:45:54 AM »

try this :
Code: python
self.getCommand('nonexistingcommand', cid=client, team='spectator')
If this bit of code raise an exception then you could wrap a try/except around
Logged

Former Dev. (senate)
*****
OS: Linux
Type: Owner dedicated server(s)
Gameservers: OpenArena
Posts: 258
Offline Offline
« Reply #20 on: August 15, 2010, 12:28:41 AM »

Thank you a lot, I didn't think about it (Im stupid sometimes XD).

Here is the forceteam plugin v0.2.0 :

http://www.bigbrotherbot.net/forums/releases/forceteam/
Logged
Tags:
Pages: 1 [2]   Go Up
  Print  
 
Jump to:  


Rate this page +1 at Google Search


SimplePortal 2.3.1 © 2008-2009, SimplePortal