Aide concernant bot B3

Tout ce qui concerne la configuration et l'administration des serveurs.
Rendez-vous dans Outils de communication & communautaires pour la conception de sites Internet.
Avatar du membre
Courgette
Messages : 850
Enregistré le : 22 déc. 2007, 02:05
Localisation : Rennes

Message par Courgette » 08 mars 2009, 16:17

tu peux essayer avec cet installeur : http://www.bigbrotherbot.com/forums/ind ... opic=693.0
il permet d'installer les dépendences du bot (python, python elementtree, python mysql, mysql)
et télécharge la dernière version du code de B3

Tu cliques "Suivant" "Suivant" etc

Après il te faudra configurer ta base de donnée (créer un utilisateur, créer une base de donnée, importer le script .sql)
Puis configurer le bot (les différents fichiers .xml du répertoire conf)

cannardslayer
Messages : 69
Enregistré le : 17 déc. 2008, 21:50

Message par cannardslayer » 08 mars 2009, 19:03

Un grand merci courgette ;)
Fuck a duck and try to fly ;)

Sn0oper
Messages : 48
Enregistré le : 03 mars 2009, 11:28

Message par Sn0oper » 15 mai 2009, 11:05

Bonjour. J'avais installer auparavant kiwi sur mon serveur. Je voudrais aujourd'hui changer et passer sur du beaucoup plus performant
et donc installer b3. J'ai reussi à instaler les "depedencies" puis b3. J'ai configurer le fichier b3.xml ainsi que la base de donnée. mais lorsque je lance dans ma consol la commande suivante :
python b3_run.py
une suite de commandes s'afficher et un echec en derniere ligne me dit la chose suivante :
ConfigParserNoOptionError: No option 'parser' in section 'b3'

Si vous pouviez m'aider merci beaucoup.

(Mon serveur est sur Ubuntu)
Modifié en dernier par Sn0oper le 15 mai 2009, 11:06, modifié 1 fois.
-]aDn[- Sabaku_Kyuu

Avatar du membre
Courgette
Messages : 850
Enregistré le : 22 déc. 2007, 02:05
Localisation : Rennes

Message par Courgette » 15 mai 2009, 13:11

ton fichier b3.xml est mal fichu. Utilise un editeur xml pour le modifier sans péter la syntaxe xml

Sn0oper
Messages : 48
Enregistré le : 03 mars 2009, 11:28

Message par Sn0oper » 16 mai 2009, 19:00

Alors je pense pas que cela vient vraiment tu fichier b3.xml..
J'ai compris qu'il y avait une version du b3 exprès pour UrbanTerror.
J'aimerais savoir si vous pouviez me donner un lein où je peux le telecharger car ca m'aiderai beaucoup pour juste régler ce qui concèrne ip rcon etc. ^^

Sinon et bien j'ai pas tout à fait compris quoi mettre dans le parser. ^^ entre iourt4.1 ou q3a etc. ^^

Merci de votre aide. Courgette je sais que tu gère là-dessus. ^^
-]aDn[- Sabaku_Kyuu

Avatar du membre
Courgette
Messages : 850
Enregistré le : 22 déc. 2007, 02:05
Localisation : Rennes

Message par Courgette » 16 mai 2009, 19:33

Il n'y a maintenant qu'une seule version de B3 que ce soit pour urt ou non (c'est vrai qu'il y a 2 ans, fallait un patch pour urt)

download version 'officielle' : http://pypi.python.org/pypi/b3
download version 'dev' : http://github.com/xlr8or/big-brother-bot/zipball/master

et doc indispensable : http://wiki.github.com/BigBrotherBot/big-brother-bot
surtout dans ton cas : http://wiki.github.com/BigBrotherBot/bi ... figuration

Sn0oper
Messages : 48
Enregistré le : 03 mars 2009, 11:28

Message par Sn0oper » 16 mai 2009, 19:38

Merci j'ai reussi a evoluer un peu avant de vor ta réponse ^^. Maintenant je tombe sur une nouvelle erreur lol.
importError: no module named storage.
Il me manque apparament un fichier ou dossier ^^.
-]aDn[- Sabaku_Kyuu

Avatar du membre
Courgette
Messages : 850
Enregistré le : 22 déc. 2007, 02:05
Localisation : Rennes

Message par Courgette » 16 mai 2009, 20:08

c'est un peu court comme context d'erreur...

Met la version du bot que tu as téléchargé.
Met la commande que tu as lancé (et indique à partir de quel répertoire)
Met la totalité des messages qu'à renvoyé la commande

Sn0oper
Messages : 48
Enregistré le : 03 mars 2009, 11:28

Message par Sn0oper » 16 mai 2009, 21:04

Je vais le supprimer et le remmetre ^^.
Je te montre ce que je met dans mon b3.xml comme cela tu peut me dire si je fait une erreur.
<settings name="b3">
<set name="parser">iourt41</set>
<set name="database">mysql://pseudomysql:passmysql@localhost/b3_bot</set>
<set name="bot_name">|EJF|Master</set>
<set name="bot_prefix">^0(^2|EJF|Master^0)^7:</set>
<set name="time_format">%I:%M%p %Z %m/%d/%y</set>
<set name="time_zone">CST</set>
<!-- 9 = verbose, 10 = debug, 21 = bot, 22 = console -->
<set name="log_level">9</set>
<set name="logfile">b3.log</set>
</settings>
<settings name="server">
<set name="rcon_password">rcon_pass</set>
<set name="port">27960</set>
<set name="game_log">/root/.q3a/q3ut4/games.log</set>
<set name="public_ip">62.193.209.65</set>
<set name="rcon_ip">127.0.0.1</set>
<set name="punkbuster">off</set>
</settings>

...

<plugins>
<plugin name="censor" priority="1" config="@b3/conf/plugin_censor.xml"/>
<plugin name="spamcontrol" priority="2" config="@b3/conf/plugin_spamcontrol.xml"/>
<plugin name="admin" priority="3" config="@b3/conf/plugin_admin.xml"/>
<plugin name="tk" priority="4" config="@b3/conf/plugin_tk.xml"/>
<plugin name="stats" priority="5" config="@b3/conf/plugin_stats.xml"/>
<plugin name="pingwatch" priority="6" config="@b3/conf/plugin_pingwatch.xml"/>
<plugin name="adv" priority="7" config="@b3/conf/plugin_adv.xml"/>
<plugin name="status" priority="8" config="@b3/conf/plugin_status.xml"/>
<plugin name="welcome" priority="9" config="@b3/conf/plugin_welcome.xml"/>
<plugin name="punkbuster" priority="10" config="@b3/conf/plugin_punkbuster.xml"/>
</plugins>
Y a t'il un problème dans ma configuration.? ^^
-Tu donne l'installation de dev et officiel. Laquelle dois-je prendre ? ^^
-]aDn[- Sabaku_Kyuu

Sn0oper
Messages : 48
Enregistré le : 03 mars 2009, 11:28

Message par Sn0oper » 16 mai 2009, 21:21

Désolé de faire un re-POST je ne sais pas si le bot c'est lancé mais j'ai très peu de message: voici exactement ce que j'ai dans ma consol :
commande executé : python b3_run.py
messages suivant :
Searching for config file : b3.xml
Searching for config file : conf/b3.xml
Searching for config file : b3/conf/b3.xml
Starting www.BigBrotherBot.com (b3) v1.1.4b [posix] (Astridaria)
Using config file : b3/conf/b3.xml
Redirect all output to b3.log
Et voila sa s'arrête sur cela. Cela veut-il dire que c'est fonctionelle ? =]
Et autre question une fois le bot lancé comment etre admin direct comme !iamgod sur kiwi ^^.
Merci beaucoup pour ton aide =D

EDIT: en fait j'ai ete jeté un coup d'oeil dans le log. Voilà tout ce qu'il indique apparaent beaucoup d'erreur lol.
090516 21:13:56 BOT Starting Iourt41Parser server for 127.0.0.1:27960
090516 21:13:56 BOT --------------------------------------------
090516 21:13:56 BOT Attempting to connect to database mysql://sn0oper:******@localhost/b3_bot...
090516 21:13:56 ERROR Database connection failed, working in remote mode: No module named MySQLdb - [('/home/b3/b3/storage.py', 190, 'connect', 'self.db = self.getConnection()'), ('/home/b3/b3/storage.py', 148, 'getConnection', 'import MySQLdb')]
090516 21:13:56 BOT Game log /root/.q3a/q3ut4/games.log
090516 21:13:56 BOT Starting bot reading file /root/.q3a/q3ut4/games.log
090516 21:13:56 BOT Loading Plugin #1 censor [/home/b3/b3/conf/plugin_censor.xml]
090516 21:13:56 BOT CensorPlugin: Loading config /home/b3/b3/conf/plugin_censor.xml for CensorPlugin
090516 21:13:56 DEBUG Register Event: Stop Process: CensorPlugin
090516 21:13:56 DEBUG Register Event: Program Exit: CensorPlugin
090516 21:13:56 BOT Plugin censor (2.1.0 - ThorN) loaded
090516 21:13:56 BOT Loading Plugin #2 spamcontrol [/home/b3/b3/conf/plugin_spamcontrol.xml]
090516 21:13:56 BOT SpamcontrolPlugin: Loading config /home/b3/b3/conf/plugin_spamcontrol.xml for SpamcontrolPlugin
090516 21:13:56 DEBUG Register Event: Stop Process: SpamcontrolPlugin
090516 21:13:56 DEBUG Register Event: Program Exit: SpamcontrolPlugin
090516 21:13:56 BOT Plugin spamcontrol (1.1.2 - ThorN) loaded
090516 21:13:56 BOT Loading Plugin #3 admin [/home/b3/b3/conf/plugin_admin.xml]
090516 21:13:56 BOT AdminPlugin: Loading config /home/b3/b3/conf/plugin_admin.xml for AdminPlugin
090516 21:13:56 DEBUG Register Event: Stop Process: AdminPlugin
090516 21:13:56 DEBUG Register Event: Program Exit: AdminPlugin
090516 21:13:56 BOT Plugin admin (1.3.4b0 - ThorN) loaded
090516 21:13:56 BOT Loading Plugin #4 tk [/home/b3/b3/conf/plugin_tk.xml]
090516 21:13:56 BOT TkPlugin: Loading config /home/b3/b3/conf/plugin_tk.xml for TkPlugin
090516 21:13:56 DEBUG TkPlugin: tk max level is 40
090516 21:13:56 DEBUG Register Event: Stop Process: TkPlugin
090516 21:13:56 DEBUG Register Event: Program Exit: TkPlugin
090516 21:13:56 BOT Plugin tk (1.1.6b0 - ThorN) loaded
090516 21:13:56 BOT Loading Plugin #5 stats [/home/b3/b3/conf/plugin_stats.xml]
090516 21:13:56 BOT StatsPlugin: Loading config /home/b3/b3/conf/plugin_stats.xml for StatsPlugin
090516 21:13:56 DEBUG AdminPlugin: Command "mapstats (mstats)" registered with cmd_mapstats for level (1, 100)
090516 21:13:56 DEBUG AdminPlugin: Command "testscore (ts)" registered with cmd_testscore for level (1, 100)
090516 21:13:56 DEBUG AdminPlugin: Command "topstats (tstats)" registered with cmd_topstats for level (9, 100)
090516 21:13:56 DEBUG Register Event: Stop Process: StatsPlugin
090516 21:13:56 DEBUG Register Event: Program Exit: StatsPlugin
090516 21:13:56 BOT Plugin stats (1.2.3 - ThorN) loaded
090516 21:13:56 BOT Loading Plugin #6 pingwatch [/home/b3/b3/conf/plugin_pingwatch.xml]
090516 21:13:56 BOT PingwatchPlugin: Loading config /home/b3/b3/conf/plugin_pingwatch.xml for PingwatchPlugin
090516 21:13:56 VERBOSE Added crontab <bound method PingwatchPlugin.check of <b3.plugins.pingwatch.PingwatchPlugin instance at 0x1534ff80>> (351308880) - [0, 30]s -1m -1h -1d -1M -1DOW
090516 21:13:56 DEBUG Register Event: Stop Process: PingwatchPlugin
090516 21:13:56 DEBUG Register Event: Program Exit: PingwatchPlugin
090516 21:13:56 BOT Plugin pingwatch (1.1.4 - ThorN) loaded
090516 21:13:56 BOT Loading Plugin #7 adv [/home/b3/b3/conf/plugin_adv.xml]
090516 21:13:56 BOT AdvPlugin: Loading config /home/b3/b3/conf/plugin_adv.xml for AdvPlugin
090516 21:13:56 VERBOSE Added crontab <bound method AdvPlugin.adv of <b3.plugins.adv.AdvPlugin instance at 0x15351ea8>> (355819920) - 0s [0, 2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30, 32, 34, 36, 38, 40, 42, 44, 46, 48, 50, 52, 54, 56, 58]m -1h -1d -1M -1DOW
090516 21:13:56 DEBUG Register Event: Stop Process: AdvPlugin
090516 21:13:56 DEBUG Register Event: Program Exit: AdvPlugin
090516 21:13:56 BOT Plugin adv (1.1.3 - ThorN) loaded
090516 21:13:56 BOT Loading Plugin #8 status [/home/b3/b3/conf/plugin_status.xml]
090516 21:13:56 BOT StatusPlugin: Loading config /home/b3/b3/conf/plugin_status.xml for StatusPlugin
090516 21:13:56 VERBOSE Added crontab <bound method StatusPlugin.update of <b3.plugins.status.StatusPlugin instance at 0x15354b48>> (355820048) - [0]s -1m -1h -1d -1M -1DOW
090516 21:13:56 DEBUG Register Event: Stop Process: StatusPlugin
090516 21:13:56 DEBUG Register Event: Program Exit: StatusPlugin
090516 21:13:56 BOT Plugin status (1.2.6 - ThorN) loaded
090516 21:13:56 BOT Loading Plugin #9 welcome [/home/b3/b3/conf/plugin_welcome.xml]
090516 21:13:56 BOT WelcomePlugin: Loading config /home/b3/b3/conf/plugin_welcome.xml for WelcomePlugin
090516 21:13:56 DEBUG Register Event: Stop Process: WelcomePlugin
090516 21:13:56 DEBUG Register Event: Program Exit: WelcomePlugin
090516 21:13:56 BOT Plugin welcome (1.0.6 - ThorN) loaded
090516 21:13:56 BOT Loading Plugin #10 punkbuster [/home/b3/b3/conf/plugin_punkbuster.xml]
090516 21:13:56 BOT PunkbusterPlugin: Loading config /home/b3/b3/conf/plugin_punkbuster.xml for PunkbusterPlugin
090516 21:13:56 VERBOSE Added crontab <bound method PunkbusterPlugin.rebuildBans of <b3.plugins.punkbuster.PunkbusterPlugin instance at 0x150fa9e0>> (353296336) - 0s 0m 0h -1d -1M -1DOW
090516 21:13:56 DEBUG Register Event: Stop Process: PunkbusterPlugin
090516 21:13:56 DEBUG Register Event: Program Exit: PunkbusterPlugin
090516 21:13:56 BOT Plugin punkbuster (1.0.8 - ThorN) loaded
090516 21:13:56 VERBOSE 0 cid changed from None to -1
090516 21:13:56 VERBOSE RCON sending (127.0.0.1:27960) say ^0(^2|EJF|Master^0)^7: ^8www.BigBrotherBot.com ^0(^8b3^0) ^9v1.1.4b [posix] ^9(^3Astridaria^9)^3 ^2[ONLINE]
090516 21:13:56 DEBUG Client Connected: [-1] World - WORLD ({})
090516 21:13:56 DEBUG Storage: getClient <b3.clients.Client object at 0x151001d0>
090516 21:13:56 BOT Attempting to connect to database mysql://sn0oper:******@localhost/b3_bot...
090516 21:13:56 DEBUG User not found WORLD: 'No client matching guid WORLD in admins_cache'
090516 21:13:56 ERROR RCON: ERROR reading: (111, 'Connection refused')
090516 21:13:56 BOT Client not found in the storage WORLD, create new
090516 21:13:56 DEBUG Storage: setClient <b3.clients.Client object at 0x151001d0>
090516 21:13:56 DEBUG Storage: setClient data {'time_add': 1242501236, 'time_edit': 1242501236, 'name': 'World', 'group_bits': 0, 'ip': '', 'greeting': '', 'auto_login': 1, 'connections': 1, 'mask_level': 0, 'guid': 'WORLD', 'pbid': 'WORLD'}
090516 21:13:56 BOT Attempting to connect to database mysql://sn0oper:******@localhost/b3_bot...
090516 21:13:56 DEBUG Client Authorized: [-1] World - WORLD
090516 21:13:56 VERBOSE RCON: retry sending say ^0(^2|EJF|Master^0)^7: ^8www.BigBrotherBot.com ^0(^8b3^0) ^9v1.1.4b [posix] ^9(^3Astridaria^9)^3 ^2[ONLINE]...
090516 21:13:56 ERROR RCON: ERROR reading: (111, 'Connection refused')
090516 21:13:56 DEBUG RCON: Did not send any data
090516 21:13:56 VERBOSE RCON sending (127.0.0.1:27960) status
090516 21:13:56 ERROR RCON: ERROR reading: (111, 'Connection refused')
090516 21:13:57 VERBOSE RCON: retry sending status...
090516 21:13:57 ERROR RCON: ERROR reading: (111, 'Connection refused')
090516 21:13:57 DEBUG RCON: Did not send any data
090516 21:13:57 VERBOSE RCON sending (127.0.0.1:27960) fs_game
090516 21:13:57 ERROR RCON: ERROR reading: (111, 'Connection refused')
090516 21:13:57 VERBOSE RCON: retry sending fs_game...
090516 21:13:57 ERROR RCON: ERROR reading: (111, 'Connection refused')
090516 21:13:57 DEBUG RCON: Did not send any data
090516 21:13:57 DEBUG Get cvar fs_game = []
090516 21:13:57 INFO STDOUT Error: 'NoneType' object has no attribute 'getString'
File "/home/b3/b3/__init__.py", line 87, in start
console.start()
File "/home/b3/b3/parser.py", line 199, in start
self.onStartup()
File "/home/b3/b3/parser.py", line 254, in onStartup
self.startup()
File "/home/b3/b3/parsers/iourt41.py", line 195, in startup
self.game.fs_game = self.getCvar('fs_game').getString()

090516 21:13:57 INFO STDOUT

090516 21:13:57 BOT Shutting down...
090516 21:13:57 VERBOSE AdvPlugin: Warning: No handle func for AdvPlugin
090516 21:13:57 VERBOSE PunkbusterPlugin: Warning: No handle func for PunkbusterPlugin
090516 21:13:57 BOT Shutting down database connections...
Modifié en dernier par Sn0oper le 16 mai 2009, 21:25, modifié 1 fois.
-]aDn[- Sabaku_Kyuu

Avatar du membre
Courgette
Messages : 850
Enregistré le : 22 déc. 2007, 02:05
Localisation : Rennes

Message par Courgette » 17 mai 2009, 03:07

tu n'as pas installé les dépendances : http://wiki.github.com/BigBrotherBot/bi ... pendencies

Sn0oper
Messages : 48
Enregistré le : 03 mars 2009, 11:28

Message par Sn0oper » 17 mai 2009, 09:52

Ok En fait dans les dependance j'ai installer la ou c'est ecrit the rest j'ai fait les commande indiqué.
J'ai pas fait ce qu'il y avait avant ca doit etre ca qui manque j'ai pas fait attention. ^^
Je vais essayer ca merci. :)

EDIT: par contre pour mysql-db je ne sais pas où exactement je doit mettre cela dans mon serveur.
Cela n'as peut-être aucune importance ^^.
PS: Serveur sur Ubuntu.. et d'ailleur sur le site il parle de mysql db dans la section windows et même pas sur Linux Ubuntu pas cool lol
Le site n'est pas assez clair sur certain point j'ai l'impression lol
Modifié en dernier par Sn0oper le 17 mai 2009, 10:27, modifié 1 fois.
-]aDn[- Sabaku_Kyuu

Avatar du membre
Courgette
Messages : 850
Enregistré le : 22 déc. 2007, 02:05
Localisation : Rennes

Message par Courgette » 17 mai 2009, 19:10

Sous Ubuntu ou Debian, c'est dans les paquets :

Code : Tout sélectionner

sudo aptitude install python-mysqldb python-elementtree

Sn0oper
Messages : 48
Enregistré le : 03 mars 2009, 11:28

Message par Sn0oper » 17 mai 2009, 19:44

Je dois juste ecrire sans dans la consol ? :o
je c que elementtree je 'ai installer en installant ce qui est écrit dans "the rest"
je vais chercher la commande que tu m'a dite dans le site officiel pour voir un peu ^^.

EDIT : sudo aptitude command not found ^^
Modifié en dernier par Sn0oper le 17 mai 2009, 19:47, modifié 1 fois.
-]aDn[- Sabaku_Kyuu

Avatar du membre
Courgette
Messages : 850
Enregistré le : 22 déc. 2007, 02:05
Localisation : Rennes

Message par Courgette » 17 mai 2009, 20:49

Code : Tout sélectionner

sudo apt-get install python-mysqldb python-elementtree
alors

Répondre