Vous n'êtes pas identifié.
Edit par Courgette : La solution pas à pas complète se trouve sur ce post de . Je préviens tout de suite, il vaut mieux avoir un bon niveau de connaissance en informatique.
Bonjour !
Je fait serveur urban terror sous mac os x 10.5. Je tente d'installer b3 et sans grande surprise sa ne marche pas ^^
Donc la situation actuel :
- Mon dossier B3 se trouve dans téléchargement ( je pense pas que sa dérange )
- J'ai exécuté "setup.py install"
- J'ai rempli le b3.xml je pense correctement ( je peux l'envoyer si il faut )
-- Juste un doute pour mysql ( même si mes problèmes viennent pas de sa pour le moment ):
- Je me connecte sur un serveur distant mais je n'ai pas trop compris la ligne :x
<set name="database">mysql://identifiant:[email protected]/identifiant</set>
XXXXX représente le mot de pass
Bon donc quand je lance b3...
python /Users/Romuald/Downloads/BigBrotherBot-big-brother-bot-7faf009707a03b8ba6d6b0fd07763eaf020bbe16/b3_run.py -c /Users/Romuald/Downloads/BigBrotherBot-big-brother-bot-7faf009707a03b8ba6d6b0fd07763eaf020bbe16/b3/conf/b3.xml
vlcw-3:~ Romuald$ python /Users/Romuald/Downloads/BigBrotherBot-big-brother-bot-7faf009707a03b8ba6d6b0fd07763eaf020bbe16/b3_run.py Searching for config file: b3.xml Searching for config file: conf/b3.xml Searching for config file: b3/conf/b3.xml Searching for config file: /Users/Romuald/b3.xml Searching for config file: /Users/Romuald/conf/b3.xml Searching for config file: /Users/Romuald/b3/conf/b3.xml Searching for config file: /Users/Romuald/Downloads/BigBrotherBot-big-brother-bot-7faf009707a03b8ba6d6b0fd07763eaf020bbe16/b3/conf/b3.xml Starting www.BigBrotherBot.com (b3) v1.1.4d-r2 [posix] (Elasmotherium) Using config file /Users/Romuald/Downloads/BigBrotherBot-big-brother-bot-7faf009707a03b8ba6d6b0fd07763eaf020bbe16/b3/conf/b3.xml Traceback (most recent call last): File "/Users/Romuald/Downloads/BigBrotherBot-big-brother-bot-7faf009707a03b8ba6d6b0fd07763eaf020bbe16/b3_run.py", line 28, in <module> main() File "/Users/Romuald/Downloads/BigBrotherBot-big-brother-bot-7faf009707a03b8ba6d6b0fd07763eaf020bbe16/b3_run.py", line 25, in main b3.run.main() File "/Users/Romuald/Downloads/BigBrotherBot-big-brother-bot-7faf009707a03b8ba6d6b0fd07763eaf020bbe16/b3/run.py", line 121, in main File "/Users/Romuald/Downloads/BigBrotherBot-big-brother-bot-7faf009707a03b8ba6d6b0fd07763eaf020bbe16/b3/run.py", line 100, in run File "/Users/Romuald/Downloads/BigBrotherBot-big-brother-bot-7faf009707a03b8ba6d6b0fd07763eaf020bbe16/b3/__init__.py", line 72, in start conf = config.load(configFile) File "/Users/Romuald/Downloads/BigBrotherBot-big-brother-bot-7faf009707a03b8ba6d6b0fd07763eaf020bbe16/b3/config.py", line 211, in load if config.load(fileName): File "/Users/Romuald/Downloads/BigBrotherBot-big-brother-bot-7faf009707a03b8ba6d6b0fd07763eaf020bbe16/b3/config.py", line 144, in load self.readfp(f) File "/Users/Romuald/Downloads/BigBrotherBot-big-brother-bot-7faf009707a03b8ba6d6b0fd07763eaf020bbe16/b3/config.py", line 43, in readfp self._xml = ElementTree.parse(fp) NameError: global name 'ElementTree' is not defined vlcw-3:~ Romuald$
Euh bien voilà si quelqu'un à une idée pour ElementTree... Surtout que j'ai pas trop de temps à consacrer à sa
Merci d'avance pour vos reponses
Dernière modification par Courgette (Hier 03:23:44)
Hors ligne
Salut,
Faut installer le paquet ElemenTree (python-elementree je crois).
Hors ligne
t'auras aussi besoin de python-mysqldb
Sinon je n'ai jamais entendu parler de faire tourner B3 sous mac... dis-nous si ça marche et si y'a des trucs spéciaux à faire par rapport aux installes sous win/nux
Hors ligne
La veille ZAP de dofusien =O.
Shame !
Hors ligne
Bon pour le moment j'éssaie avec python-elementree
vlcw-3:~ Romuald$ sudo python /Users/Romuald/Downloads/elementtree-1.2.6-20050316\ 2/setup.py install
running install
running build
running build_py
error: package directory 'elementtree' does not exist
vlcw-3:~ Romuald$
Une idée ?
Pour info j'utilise Python 2.5.1 (r251:54863, Feb 6 2009, 19:02:12)
Si je réussis à installer ( y a pas de raison que sa ne marche pas je vous tiendrais au courant )
Hors ligne
Sa avance ...
Bon pour installer elementree la commande classique ne semble pas fonctionner ( python setup.py install )
Il faut passer par macport ( bien connu sous mac )
sudo port install py25-elementtree
Nouveau problème
vlcw-3:~ Romuald$ python /Users/Romuald/Downloads/b3/b3_run.py Traceback (most recent call last): File "/Users/Romuald/Downloads/b3/b3_run.py", line 22, in <module> import b3.run File "/Users/Romuald/Downloads/b3/b3/__init__.py", line 68 print 'Starting %s' % sversion ^ SyntaxError: invalid syntax vlcw-3:~ Romuald$
edit : j'ai renommé le dossier en b3 pour la lisibilité ^^
J'ai migré sur python Python 3.0.1 (r301:69597, Feb 14 2009, 19:03:52) j'espère que c'était pas une erreur ...
Dernière modification par Tiroly (24/05/2009 20:04:05)
Hors ligne
lance ta commande à partir du répertoire contenant b3_run.py
il faut préciser "-c /vers/mon/fichier/b3.xml" après b3_run.py
essaie déjà comme çà
Hors ligne
Sa ne change rien :'(
J'ai ressortit un ancien fichier de la corbeille pour voir comment il réagissait
File "/Users/Romuald/Downloads/b3-p/b3_run.py", line 39 print 'Running in auto-restart mode...'
Bon apparemment python 3 pose des problèmes :'(
si je tape
python2.5 /Users/Romuald/Downloads/b3-p/b3_run.py -c /Users/Romuald/Downloads/b3-p/conf/b3.xml
C'est bon ?
nouvelles érreurs dans ce cas : ( avec python 2.5 )
vlcw-3:~ Romuald$ python2.5 /Users/Romuald/Downloads/b3-p/b3_run.py -c /Users/Romuald/Downloads/b3-p/conf/b3.xml clear Starting www.BigBrotherBot.com (b3) v<unknown> [posix] (Elasmotherium) Using config file /Users/Romuald/Downloads/b3-p/conf/b3.xml Traceback (most recent call last): File "/Users/Romuald/Downloads/b3-p/b3_run.py", line 124, in <module> main() File "/Users/Romuald/Downloads/b3-p/b3_run.py", line 121, in main run(config=options.config) File "/Users/Romuald/Downloads/b3-p/b3_run.py", line 100, in run b3.start(config) File "/Users/Romuald/Downloads/b3-p/__init__.py", line 72, in start conf = config.load(configFile) File "/Users/Romuald/Downloads/b3-p/config.py", line 211, in load if config.load(fileName): File "/Users/Romuald/Downloads/b3-p/config.py", line 144, in load self.readfp(f) File "/Users/Romuald/Downloads/b3-p/config.py", line 43, in readfp self._xml = ElementTree.parse(fp) File "/opt/local/lib/python2.5/site-packages/elementtree/ElementTree.py", line 859, in parse tree.parse(source, parser) File "/opt/local/lib/python2.5/site-packages/elementtree/ElementTree.py", line 583, in parse parser.feed(data) File "/opt/local/lib/python2.5/site-packages/elementtree/ElementTree.py", line 1242, in feed self._parser.Parse(data, 0) xml.parsers.expat.ExpatError: not well-formed (invalid token): line 13, column 21 vlcw-3:~ Romuald$
avec python 3 :
vlcw-3:~ Romuald$ python /Users/Romuald/Downloads/b3-p/b3_run.py -c /Users/Romuald/Downloads/b3-p/conf/b3.xml File "/Users/Romuald/Downloads/b3-p/b3_run.py", line 39 print 'Running in auto-restart mode...' ^ SyntaxError: invalid syntax vlcw-3:~ Romuald$
groumpf ...
Dernière modification par Tiroly (24/05/2009 20:27:35)
Hors ligne
erreur de syntax dans ton fichier b3.xml (ligne 13)
utilise un éditeur xml (je crois qu'il existe un plugin xml pour textmate), ça t'aidera à ne pas faire de boulette
Hors ligne
Ok merci !
c'était le nom du serveur invalide ( espaces j'imagine )
vlcw-3:~ Romuald$ python2.5 /Users/Romuald/Downloads/b3-p/b3_run.py -c /Users/Romuald/Downloads/b3-p/conf/b3.xml Starting www.BigBrotherBot.com (b3) v<unknown> [posix] (Elasmotherium) Using config file /Users/Romuald/Downloads/b3-p/conf/b3.xml Redirect all output to /Users/Romuald/Downloads/b3-p/log/b3.log vlcw-3:~ Romuald$
sa à l'air moins méchant je vais tète trouver mais je post quand même
Dernière modification par Tiroly (24/05/2009 20:36:46)
Hors ligne
c'est bon le bot se lance. Maintenant va voir ce que le bot rapporte dans /Users/Romuald/Downloads/b3-p/log/b3.log, si certains plugins posent problème, tu verras les erreur dans ce fichier
Hors ligne
Ouchaya ^^
Bon sa à l'air plein d'erreurs
Je ne comprend pas trop lesquels d'ailleurs :
090525 18:40:00 ERROR STDERR Traceback (most recent call last): 090525 18:40:00 ERROR STDERR File "/Users/Romuald/Downloads/b3-p/b3_run.py", line 124, in <module> 090525 18:40:00 ERROR STDERR 090525 18:40:00 ERROR STDERR main() 090525 18:40:00 ERROR STDERR 090525 18:40:00 ERROR STDERR File "/Users/Romuald/Downloads/b3-p/b3_run.py", line 121, in main 090525 18:40:00 ERROR STDERR 090525 18:40:00 ERROR STDERR run(config=options.config) 090525 18:40:00 ERROR STDERR File "/Users/Romuald/Downloads/b3-p/b3_run.py", line 100, in run 090525 18:40:00 ERROR STDERR 090525 18:40:00 ERROR STDERR b3.start(config) 090525 18:40:00 ERROR STDERR File "/Users/Romuald/Downloads/b3-p/__init__.py", line 84, in start 090525 18:40:00 ERROR STDERR 090525 18:40:00 ERROR STDERR console = parser(conf) 090525 18:40:00 ERROR STDERR File "/Users/Romuald/Downloads/b3-p/b3/parser.py", line 109, in __init__ 090525 18:40:00 ERROR STDERR 090525 18:40:00 ERROR STDERR self._publicIp = self.config.get('server', 'public_ip') 090525 18:40:00 ERROR STDERR File "/Users/Romuald/Downloads/b3-p/config.py", line 77, in get 090525 18:40:00 ERROR STDERR 090525 18:40:00 ERROR STDERR raise ConfigParser.NoOptionError(setting, section) 090525 18:40:00 ERROR STDERR ConfigParser 090525 18:40:00 ERROR STDERR . 090525 18:40:00 ERROR STDERR NoOptionError 090525 18:40:00 ERROR STDERR : 090525 18:40:00 ERROR STDERR No option 'public_ip' in section: 'server' 090525 18:40:00 ERROR STDERR
Avec python 3 comme sa semble ne pas marcher au départ sa n'écrit rien dans le log
Hors ligne
problème de fichier b3.xml, public_ip est manquant dans la section "server"
090525 18:40:00 ERROR STDERR No option 'public_ip' in section: 'server'
Hors ligne
Ouf sa semble aller déja beaucoup mieux
090525 21:06:30 BOT Starting Iourt41Parser server for 88.168.135.13:27950 090525 21:06:30 BOT -------------------------------------------- 090525 21:06:30 BOT Attempting to connect to database mysql://4200flash2:******@sql5.power-heberg.net/4200flash2... 090525 21:06:30 ERROR Database connection failed, working in remote mode: No module named MySQLdb - [('/Users/Romuald/Downloads/b3-p/b3/storage.py', 190, 'connect', 'self.db = self.getConnection()'), ('/Users/Romuald/Downloads/b3-p/b3/storage.py', 148, 'getConnection', 'import MySQLdb')] 090525 21:06:30 BOT Game log /Users/Romuald/Library/Application Support/Quake3/q3ut4/games.log 090525 21:06:30 BOT Starting bot reading file /Users/Romuald/Library/Application Support/Quake3/q3ut4/games.log 090525 21:06:30 BOT Loading Plugin #1 censor [/Users/Romuald/Downloads/b3-p/b3/conf/plugin_censor.xml] 090525 21:06:30 BOT CensorPlugin: Loading config /Users/Romuald/Downloads/b3-p/b3/conf/plugin_censor.xml for CensorPlugin 090525 21:06:30 BOT Plugin censor (2.1.0 - ThorN) loaded 090525 21:06:30 BOT Loading Plugin #2 spamcontrol [/Users/Romuald/Downloads/b3-p/b3/conf/plugin_spamcontrol.xml] 090525 21:06:30 BOT SpamcontrolPlugin: Loading config /Users/Romuald/Downloads/b3-p/b3/conf/plugin_spamcontrol.xml for SpamcontrolPlugin 090525 21:06:30 BOT Plugin spamcontrol (1.1.2 - ThorN) loaded 090525 21:06:30 BOT Loading Plugin #3 admin [/Users/Romuald/Downloads/b3-p/b3/conf/plugin_admin.xml] 090525 21:06:30 BOT AdminPlugin: Loading config /Users/Romuald/Downloads/b3-p/b3/conf/plugin_admin.xml for AdminPlugin 090525 21:06:30 BOT Plugin admin (1.3.4b0 - ThorN) loaded 090525 21:06:30 BOT Loading Plugin #4 tk [/Users/Romuald/Downloads/b3-p/b3/conf/plugin_tk.xml] 090525 21:06:30 BOT TkPlugin: Loading config /Users/Romuald/Downloads/b3-p/b3/conf/plugin_tk.xml for TkPlugin 090525 21:06:30 BOT Plugin tk (1.1.6b0 - ThorN) loaded 090525 21:06:30 BOT Loading Plugin #5 stats [/Users/Romuald/Downloads/b3-p/b3/conf/plugin_stats.xml] 090525 21:06:30 BOT StatsPlugin: Loading config /Users/Romuald/Downloads/b3-p/b3/conf/plugin_stats.xml for StatsPlugin 090525 21:06:30 BOT Plugin stats (1.2.3 - ThorN) loaded 090525 21:06:30 BOT Loading Plugin #6 pingwatch [/Users/Romuald/Downloads/b3-p/b3/conf/plugin_pingwatch.xml] 090525 21:06:30 BOT PingwatchPlugin: Loading config /Users/Romuald/Downloads/b3-p/b3/conf/plugin_pingwatch.xml for PingwatchPlugin 090525 21:06:30 BOT Plugin pingwatch (1.1.4 - ThorN) loaded 090525 21:06:30 BOT Loading Plugin #7 adv [/Users/Romuald/Downloads/b3-p/b3/conf/plugin_adv.xml] 090525 21:06:30 BOT AdvPlugin: Loading config /Users/Romuald/Downloads/b3-p/b3/conf/plugin_adv.xml for AdvPlugin 090525 21:06:30 BOT Plugin adv (1.1.2 - ThorN) loaded 090525 21:06:30 BOT Loading Plugin #8 status [/Users/Romuald/Downloads/b3-p/b3/conf/plugin_status.xml] 090525 21:06:30 BOT StatusPlugin: Loading config /Users/Romuald/Downloads/b3-p/b3/conf/plugin_status.xml for StatusPlugin 090525 21:06:30 BOT Plugin status (1.2.5 - ThorN) loaded 090525 21:06:30 BOT Loading Plugin #9 welcome [/Users/Romuald/Downloads/b3-p/b3/conf/plugin_welcome.xml] 090525 21:06:30 BOT WelcomePlugin: Loading config /Users/Romuald/Downloads/b3-p/b3/conf/plugin_welcome.xml for WelcomePlugin 090525 21:06:30 BOT Plugin welcome (1.0.2 - ThorN) loaded 090525 21:06:30 BOT Attempting to connect to database mysql://4200flash2:******@sql5.power-heberg.net/4200flash2... 090525 21:06:30 BOT Client not found in the storage WORLD, create new 090525 21:06:30 BOT Attempting to connect to database mysql://4200flash2:******@sql5.power-heberg.net/4200flash2... 090525 21:06:30 ERROR RCON: ERROR reading: timed out 090525 21:06:30 ERROR RCON: ERROR sending: (61, 'Connection refused') 090525 21:06:30 ERROR RCON: ERROR reading: timed out 090525 21:06:30 ERROR RCON: ERROR sending: (61, 'Connection refused') 090525 21:06:30 ERROR RCON: ERROR reading: timed out 090525 21:06:30 ERROR RCON: ERROR sending: (61, 'Connection refused') 090525 21:06:30 BOT Shutting down... 090525 21:06:30 BOT Shutting down database connections...
Il semble juste avoir un problème sur la connexion rcon
<configuration> <settings name="b3"> <set name="parser">iourt41</set> <set name="database">mysql://4200flash2:[email protected]/4200flash2</set> <set name="bot_name">b3</set> <set name="bot_prefix">^0(^2b3^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">21</set> <set name="logfile">/Users/Romuald/Downloads/b3-p/log/b3.log</set> </settings> <settings name="server"> <set name="rcon_password">XXXXX</set> <set name="port">27950</set> <set name="game_log">/Users/Romuald/Library/Application Support/Quake3/q3ut4/games.log</set> <set name="public_ip">88.168.135.13</set> <set name="rcon_ip">88.168.135.13</set> <set name="punkbuster">off</set> </settings>
J'ai aussi un ti doute avec python-mysqldb que je n'arrive pas à installer (pour le moment ) je ne sais pas si sa va poser des problèmes...
J'ai vraiment pas beaucoup de temps à consacrer à sa donc désolé pour les gros copier/collés, en tout cas merci beaucoup courgette
Dernière modification par Tiroly (25/05/2009 22:07:48)
Hors ligne
090525 21:06:30 ERROR Database connection failed, working in remote mode: No module named MySQLdb - [('/Users/Romuald/Downloads/b3-p/b3/storage.py', 190, 'connect', 'self.db = self.getConnection()'), ('/Users/Romuald/Downloads/b3-p/b3/storage.py', 148, 'getConnection', 'import MySQLdb')]
çà c'est python-mysqldb qui n'est pas installé
090525 21:06:30 ERROR RCON: ERROR reading: timed out
090525 21:06:30 ERROR RCON: ERROR sending: (61, 'Connection refused')
090525 21:06:30 ERROR RCON: ERROR reading: timed out
090525 21:06:30 ERROR RCON: ERROR sending: (61, 'Connection refused')
090525 21:06:30 ERROR RCON: ERROR reading: timed out
090525 21:06:30 ERROR RCON: ERROR sending: (61, 'Connection refused')
et çà, c'est le bot qui n'arrive pas à lancer des commandes rcon sur le serveur UrT.
Double check rcon_ip, port et rcon_password
Tu peux aussi essayer avec
<set name="rcon_ip">127.0.0.1</set>
Hors ligne