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: InfoServers Plugin  (Read 14024 times)

Offline PtitBigorneau

  • Moderator
  • Sr. Member
  • *
  • Posts: 194
    • www.ptitbigorneau.fr
InfoServers Plugin
« on: September 27, 2010, 01:03:40 AM »
Infoservers Plugin

lets see the status from a game server and the players connected with their scores of another game server

commands:

!addservers or !aserv <game,adress,gametype> ---> add new game server
exemple
!addservers Urban Terror,95.130.9.86:27960,-q3s
!addservers Smokin Guns,95.130.9.86:27965,-q3s

!delservers or !dserv <id server> ---> delete game server

!listservers or !lserv ---> list of game servers

!infoservers or iserv <id server> ---> status game server

!listplayersserver or !lpserv <id server> ---> list of players and their scores

need qstat (http://www.qstat.org)

infoservers plugin (v1.0) for B3

Installation:

1. Place the infoservers.py in your ../b3/extplugins and the
infoservers.xml in your ../b3/extplugins/conf folders.

2. Open infoservers.xml

modify command qstat

for linux                <set name="commandqstat">qstat</set>
or for debian / ubuntu   <set name="commandqstat">quakestat</set>
for windows (the path of the executable qstat.exe) exemple <set name="commandqstat">C:\qstat-2.11-win32\qstat.exe</set>

3. Open your B3.xml file (default in b3/conf) and add the next line in the
<plugins> section of the file:

<plugin name="infoservers" config="@b3/extplugins/conf/infoservers.xml"/>

4. Run the infoservers SQL script on your B3 database

5. add servers with command !addservers or !aserv <game,adress,gametype>

gametype :

-q3s for quake3 games (urban terror, tremulous, smokin guns, World of Padman ...)
-cods for call of duty games
-woets for Enemy Territory games
-a2s for hl2 games
...
see qstat gametype.txt

tested with game servers (urban terror, tremulous, smokin guns, cod, cod2, cod4, wop, counter strike source, l4d, l4d2)

download -> infoservers v1.0

Sorry for my English
« Last Edit: September 27, 2010, 01:18:15 AM by PtitBigorneau »
PtitBigorneau

Offline Haris2201

  • Full Member
  • ***
  • Posts: 108
  • Best Western-Game: Smokin' Guns
    • Haris2201 on X-Fire
Re: InfoServers Plugin
« Reply #1 on: September 27, 2010, 11:50:59 AM »
Hi PitBigorneau
I test it on my server and it doesn't work  :-[

Pls take a look into my config:
Code: [Select]
<configuration plugin="infoservers">
    <settings name="settings"> <set name="commandqstat">C:\qstat-2.11-win32\qstat.exe</set> <set name="commandqstat">quakestat</set>
<!--min level required to use the infoservers command -->       
    <set name="userserverslevel">1</set>
<!--min level required to use addservers and delservers command -->
<set name="admserverslevel">100</set>
     
</settings>


</configuration>


I think I've done something wrong...

I test it with Smokin' Guns.


Offline Haris2201

  • Full Member
  • ***
  • Posts: 108
  • Best Western-Game: Smokin' Guns
    • Haris2201 on X-Fire
Re: InfoServers Plugin
« Reply #2 on: September 27, 2010, 11:57:28 AM »
Sorry, I forgot to say before I add this plugin into my b3.xml it doesn't crashed.

Here you can see a part of my B3.log-File
Code: [Select]
100927 11:47:39	BOT    	www.BigBrotherBot.com (b3) v1.3.2 [nt] (Daniel) [Win32 standalone]
100927 11:47:39 BOT     Python: 2.6.1 (r261:67517, Dec  4 2008, 16:51:00) [MSC v.1500 32 bit (Intel)]
100927 11:47:39 BOT     Starting SmgParser v0.1.2 for server 127.0.0.1:27960
100927 11:47:39 BOT     --------------------------------------------
100927 11:47:39 BOT     Attempting to connect to database mysql://root:[email protected]/b3...
100927 11:47:39 BOT     Connected to database [1 times]
100927 11:47:39 BOT     Game log C:\Program Files (x86)\Smokin' Guns\smokinguns\server.log
100927 11:47:39 BOT     Starting bot reading file C:\Program Files (x86)\Smokin' Guns\smokinguns\server.log
100927 11:47:39 BOT     Loading Plugins (external plugin directory: C:\Program Files (x86)\BigBrotherBot_1.3.2\extplugins)
100927 11:47:39 BOT     Loading Plugin #1 infoservers [C:\Program Files (x86)\BigBrotherBot_1.3.2\extplugins\conf\infoservers.xml]
100927 11:47:39 INFO Could not load built in plugin infoservers (No module named infoservers)
100927 11:47:39 INFO trying external plugin directory : C:\Program Files (x86)\BigBrotherBot_1.3.2\extplugins
100927 11:47:39 CRITICAL Error loading plugin: 'module' object has no attribute 'plugin'
Traceback (most recent call last):
  File "b3\parser.pyo", line 497, in loadPlugins
  File "b3\parser.pyo", line 565, in pluginImport
  File "C:\Program Files (x86)\BigBrotherBot_1.3.2\extplugins\infoservers.py", line 10, in <module>
AttributeError: 'module' object has no attribute 'plugin'
100927 11:47:39 INFO STDOUT 220
100927 11:47:39 INFO STDOUT

If you don't know how to get this plugin running it isn't terrible because I only want to test it for you in Smokin' Guns.

Sorry for my bad English


Offline PtitBigorneau

  • Moderator
  • Sr. Member
  • *
  • Posts: 194
    • www.ptitbigorneau.fr
Re: InfoServers Plugin
« Reply #3 on: September 27, 2010, 12:10:13 PM »
in infoservers.xml

this is not good
Code: [Select]
  <settings name="settings">		<set name="commandqstat">C:\qstat-2.11-win32\qstat.exe</set>		<set name="commandqstat">quakestat</set>

delete

Code: [Select]
 <set name="commandqstat">quakestat</set>

and verify the path of  qstat.exe





« Last Edit: September 27, 2010, 12:21:37 PM by PtitBigorneau »
PtitBigorneau

Offline Haris2201

  • Full Member
  • ***
  • Posts: 108
  • Best Western-Game: Smokin' Guns
    • Haris2201 on X-Fire
Re: InfoServers Plugin
« Reply #4 on: September 27, 2010, 12:14:18 PM »
I did.
Nothing changed.
Code: [Select]
100927 12:13:22	BOT    	Loading Plugins (external plugin directory: C:\Program Files (x86)\BigBrotherBot_1.3.2\extplugins)
100927 12:13:22 BOT    Loading Plugin #1 infoservers [C:\Program Files (x86)\BigBrotherBot_1.3.2\extplugins\conf\infoservers.xml]
100927 12:13:22 INFO Could not load built in plugin infoservers (No module named infoservers)
100927 12:13:22 INFO trying external plugin directory : C:\Program Files (x86)\BigBrotherBot_1.3.2\extplugins
100927 12:13:22 CRITICAL Error loading plugin: 'module' object has no attribute 'plugin'
Traceback (most recent call last):
  File "b3\parser.pyo", line 497, in loadPlugins
  File "b3\parser.pyo", line 565, in pluginImport
  File "C:\Program Files (x86)\BigBrotherBot_1.3.2\extplugins\infoservers.py", line 10, in <module>
AttributeError: 'module' object has no attribute 'plugin'
100927 12:13:22 INFO STDOUT 220
100927 12:13:22 INFO STDOUT


Offline PtitBigorneau

  • Moderator
  • Sr. Member
  • *
  • Posts: 194
    • www.ptitbigorneau.fr
Re: InfoServers Plugin
« Reply #5 on: September 27, 2010, 12:21:54 PM »
the plugin is installed in 'C:\Program Files \BigBrotherBot_1.3.2\extplugins\'

copy infoservers.py in 'C:\Program Files \BigBrotherBot_1.3.2\extplugins\conf\'

and infoservers.xml in 'C:\Program Files \BigBrotherBot_1.3.2\extplugins\'
PtitBigorneau

Offline Haris2201

  • Full Member
  • ***
  • Posts: 108
  • Best Western-Game: Smokin' Guns
    • Haris2201 on X-Fire
Re: InfoServers Plugin
« Reply #6 on: September 27, 2010, 12:26:57 PM »
Hi again.

I think you mean that I must copy the inofserver.xml into /extplugins/conf and not the *.py-File.

But I did it like that what you've sayed.

The error changed:
Code: [Select]
100927 12:24:43	BOT    	Loading Plugins (external plugin directory: C:\Program Files (x86)\BigBrotherBot_1.3.2\extplugins)
100927 12:24:43 BOT    Loading Plugin #1 infoservers [C:\Program Files (x86)\BigBrotherBot_1.3.2\extplugins\conf\infoservers.xml]
100927 12:24:43 INFO Could not load built in plugin infoservers (No module named infoservers)
100927 12:24:43 INFO trying external plugin directory : C:\Program Files (x86)\BigBrotherBot_1.3.2\extplugins
100927 12:24:43 CRITICAL Error loading plugin: No module named infoservers
Traceback (most recent call last):
  File "b3\parser.pyo", line 497, in loadPlugins
  File "b3\parser.pyo", line 562, in pluginImport
ImportError: No module named infoservers
100927 12:24:43 INFO STDOUT 220
100927 12:24:43 INFO STDOUT


Offline PtitBigorneau

  • Moderator
  • Sr. Member
  • *
  • Posts: 194
    • www.ptitbigorneau.fr
Re: InfoServers Plugin
« Reply #7 on: September 27, 2010, 12:32:14 PM »
oups !!!!

copy infoservers.py in 'C:\Program Files \BigBrotherBot_1.3.2\extplugins\'

and infoservers.xml in 'C:\Program Files \BigBrotherBot_1.3.2\extplugins\conf\'
PtitBigorneau

Offline Haris2201

  • Full Member
  • ***
  • Posts: 108
  • Best Western-Game: Smokin' Guns
    • Haris2201 on X-Fire
Re: InfoServers Plugin
« Reply #8 on: September 27, 2010, 12:35:45 PM »
Ok, but I've did this at first before I write a post in this  topic...

But I did it again.

Code: [Select]
100927 12:33:48	BOT    	Loading Plugins (external plugin directory: C:\Program Files (x86)\BigBrotherBot_1.3.2\extplugins)
100927 12:33:48 BOT     Loading Plugin #1 infoservers [C:\Program Files (x86)\BigBrotherBot_1.3.2\extplugins\conf\infoservers.xml]
100927 12:33:48 INFO Could not load built in plugin infoservers (No module named infoservers)
100927 12:33:48 INFO trying external plugin directory : C:\Program Files (x86)\BigBrotherBot_1.3.2\extplugins
100927 12:33:48 CRITICAL Error loading plugin: 'module' object has no attribute 'plugin'
Traceback (most recent call last):
  File "b3\parser.pyo", line 497, in loadPlugins
  File "b3\parser.pyo", line 565, in pluginImport
  File "C:\Program Files (x86)\BigBrotherBot_1.3.2\extplugins\infoservers.py", line 10, in <module>
AttributeError: 'module' object has no attribute 'plugin'
100927 12:33:48 INFO STDOUT 220
100927 12:33:48 INFO STDOUT


If it helps: I use B3 and Smokin' Guns Server on my Notebook (localhost)
« Last Edit: September 27, 2010, 12:38:50 PM by Haris2201 »


Offline PtitBigorneau

  • Moderator
  • Sr. Member
  • *
  • Posts: 194
    • www.ptitbigorneau.fr
Re: InfoServers Plugin
« Reply #9 on: September 27, 2010, 12:49:21 PM »
I do not understand this error

it works with BigBrotherBot_1.3.3 (windows ans linux ) , not test with BigBrotherBot_1.3.2


PtitBigorneau

Offline Haris2201

  • Full Member
  • ***
  • Posts: 108
  • Best Western-Game: Smokin' Guns
    • Haris2201 on X-Fire
Re: InfoServers Plugin
« Reply #10 on: September 27, 2010, 12:52:02 PM »
I use 1.3.2 it think...  ;D

Does it work on your system?


Offline Haris2201

  • Full Member
  • ***
  • Posts: 108
  • Best Western-Game: Smokin' Guns
    • Haris2201 on X-Fire
Re: InfoServers Plugin
« Reply #11 on: September 27, 2010, 01:08:35 PM »
I've installed the new one (1.3.3)!

But the problem doesn't changed after install your plugin again...


Offline PtitBigorneau

  • Moderator
  • Sr. Member
  • *
  • Posts: 194
    • www.ptitbigorneau.fr
Re: InfoServers Plugin
« Reply #12 on: September 27, 2010, 01:33:05 PM »
any other plugin you use?

PtitBigorneau

Offline Courgette

  • Senior Dev.
  • Hero Member
  • *
  • Posts: 4883
    • Github repository
Re: InfoServers Plugin
« Reply #13 on: September 27, 2010, 01:38:32 PM »
Quote
Traceback (most recent call last):
  File "b3\parser.pyo", line 497, in loadPlugins
  File "b3\parser.pyo", line 565, in pluginImport
  File "C:\Program Files (x86)\BigBrotherBot_1.3.2\extplugins\infoservers.py", line 10, in <module>
AttributeError: 'module' object has no attribute 'plugin'

line 10 is
Code: python [Select]
class InfoserversPlugin(b3.plugin.Plugin):


maybe adding
Code: python [Select]
import b3.plugin
to the import will help (just a guess)

Offline PtitBigorneau

  • Moderator
  • Sr. Member
  • *
  • Posts: 194
    • www.ptitbigorneau.fr
Re: InfoServers Plugin
« Reply #14 on: September 27, 2010, 01:49:36 PM »
thank you again Courgette

Haris2201 you can try with this version, I have added import b3.plugin

download -> infoservers
PtitBigorneau

 


Rate this page +1 at Google Search

anything