gameboy Posted May 28, 2017 Report Share Posted May 28, 2017 The operating system I use is ubuntu14.04 64bit. Today, when I set up my own Lobby Server, these errors occurred: 2017-05-27 22:39:55 INFO Negotiating TLS 2017-05-27 22:39:55 INFO Using SSL version: TLS 1.0 2017-05-27 22:39:55 ERROR CERT: Invalid certificate trust chain. 2017-05-27 22:39:55 ERROR Can not read from closed socket. 2017-05-27 22:40:02 INFO Negotiating TLS 2017-05-27 22:40:02 INFO Using SSL version: TLS 1.0 2017-05-27 22:40:03 ERROR CERT: Invalid certificate trust chain. 2017-05-27 22:40:03 ERROR Can not read from closed socket. 2017-05-27 22:40:24 INFO Negotiating TLS 2017-05-27 22:40:24 INFO Using SSL version: TLS 1.0 2017-05-27 22:40:25 ERROR CERT: Invalid certificate trust chain. 2017-05-27 22:40:25 ERROR Can not read from closed socket. Quote Link to comment Share on other sites More sharing options...
fcxSanya Posted May 28, 2017 Report Share Posted May 28, 2017 Did you specify "--domain localhost" when running XpartaMuPP.py? Can you please post the entire command (masking the password)? Quote Link to comment Share on other sites More sharing options...
gameboy Posted May 28, 2017 Author Report Share Posted May 28, 2017 My command is: $python3 XpartaMuPP.py ,I didn't execute the command: "--domain localhost."" Please help me! Quote Link to comment Share on other sites More sharing options...
FeXoR Posted May 28, 2017 Report Share Posted May 28, 2017 @fcxSanya Is python 3.x correct in the first place? (I usually use python 2 with Python 3 compatible syntax. At least in the scientific communities that's still the default.) Quote Link to comment Share on other sites More sharing options...
fcxSanya Posted May 28, 2017 Report Share Posted May 28, 2017 5 hours ago, gameboy said: My command is: $python3 XpartaMuPP.py ,I didn't execute the command: "--domain localhost."" With default options it will try to connect to lobby.wildfiregames.com, so you have to specify the "domain" argument (and most likely other options too), see README 2 hours ago, FeXoR said: @fcxSanya Is python 3.x correct in the first place? Python 3 was specified as the interpreter since the initial lobby bot implementation (see #1504) (and I'm able to run it locally with python3). 2 hours ago, FeXoR said: (I usually use python 2 with Python 3 compatible syntax. At least in the scientific communities that's still the default.) This may be caused by some legacy libraries (which no one bothered to port to python 3 yet) or maybe the scientific communities are somewhat conservative. In any case there should be no issues due to python 3 in this case (I'm not even sure whether XpartaMuPP is working with python 2). 1 Quote Link to comment Share on other sites More sharing options...
gameboy Posted May 29, 2017 Author Report Share Posted May 29, 2017 (edited) @fcxSanya :A new problem has occurred: root@ben:/home/tom/source/tools/XpartaMuPP# python3 XpartaMuPP.py --domain 192.168.3.10 --login wfgbot --password 12345678 --nickname WFGbot --room 22 2017-06-01 13:21:46 INFO Negotiating TLS 2017-06-01 13:21:46 INFO Using SSL version: 3 2017-06-01 13:21:46 INFO Authentication failed. root@ben:/home/tom/source/tools/XpartaMuPP# BTW: Do I need to change anything? Would you please tell me how to solve the problem? Thank you. Edited June 1, 2017 by gameboy Quote Link to comment Share on other sites More sharing options...
fcxSanya Posted June 6, 2017 Report Share Posted June 6, 2017 On 5/29/2017 at 4:53 PM, gameboy said: 2017-06-01 13:21:46 INFO Authentication failed Are the credentials you specified corresponding to the ones you set for the bot on the "Ejabberd configuration" step? If you installed / configured ejabberd properly you should be able to connect to it with a regular XMPP client. 2 Quote Link to comment Share on other sites More sharing options...
gameboy Posted June 7, 2017 Author Report Share Posted June 7, 2017 @fcxSanya Thank you very much for your help. I have solved the problem. 1 Quote Link to comment Share on other sites More sharing options...
gameboy Posted June 10, 2017 Author Report Share Posted June 10, 2017 I tested it again, and a new problem came up. Please help me. Quote Link to comment Share on other sites More sharing options...
elexis Posted June 10, 2017 Report Share Posted June 10, 2017 It means the WFGBot (XPartaMupp.py) is not running Quote Link to comment Share on other sites More sharing options...
gameboy Posted June 10, 2017 Author Report Share Posted June 10, 2017 @elexis Please tell me how I should run it ? Quote Link to comment Share on other sites More sharing options...
Stan` Posted June 10, 2017 Report Share Posted June 10, 2017 open a cmd and run the script in the background ? Quote Link to comment Share on other sites More sharing options...
gameboy Posted June 10, 2017 Author Report Share Posted June 10, 2017 (edited) The service has started, but the problem still arises: root@ben:/home/tom/source/tools/XpartaMuPP# python3 XpartaMuPP.py --domain 192.168.3.10 --login wfgbot --password 12345678 --nickname WFGbot --room 22 2017-06-01 15:21:37 INFO Negotiating TLS 2017-06-10 15:21:37 INFO Using SSL version: 3 2017-06-10 15:21:37 INFO XpartaMuPP started root@ben:/home/tom/source/tools/XpartaMuPP# Service unavailable Edited June 10, 2017 by gameboy Quote Link to comment Share on other sites More sharing options...
fcxSanya Posted June 10, 2017 Report Share Posted June 10, 2017 6 hours ago, gameboy said: root@ben:/home/tom/source/tools/XpartaMuPP# python3 XpartaMuPP.py --domain 192.168.3.10 --login wfgbot --password 12345678 --nickname WFGbot --room 22 Make sure to specify the same room as you are joining in the game, for A22 it's "arena22" by default, see default.cfg Quote Link to comment Share on other sites More sharing options...
gameboy Posted June 11, 2017 Author Report Share Posted June 11, 2017 (edited) @fcxSanya I have set it up, but this error still occurs When I enter the game lobby and click the player name with the left mouse button, the problem appears: Service unavailable BTW: Service XpartaMuPP started Edited June 11, 2017 by gameboy Quote Link to comment Share on other sites More sharing options...
fcxSanya Posted June 11, 2017 Report Share Posted June 11, 2017 @gameboy when XpartaMuPP is running with the proper arguments, you should see it in the lobby (and it's not present on your screenshot). You can check this via XMPP client too: * start XpartaMuPP (and keep it running) * join the lobby server via XMPP client with another account * get the chat room list, you should see the room joined by the bot * join the room, you should see the bot in it Quote Link to comment Share on other sites More sharing options...
gameboy Posted June 11, 2017 Author Report Share Posted June 11, 2017 (edited) @fcxSanya I run it again, but I didn't get the chat room list . root@ben:/home/tom/tools/XpartaMuPP# python3 XpartaMuPP.py --domain localhost --login wfgbot21 --password 123456 --nickname WFGbot --room arena21 2017-06-11 20:26:52 INFO Negotiating TLS 2017-06-11 20:26:52 INFO Using SSL version: 3 2017-06-11 20:26:52 INFO Node set to: wfgbot21@localhost/CC 2017-06-11 20:26:52 INFO XpartaMuPP started BTW:The operating system I'm using is ubuntu14.04 64bit. Edited June 11, 2017 by gameboy Quote Link to comment Share on other sites More sharing options...
fcxSanya Posted June 11, 2017 Report Share Posted June 11, 2017 15 minutes ago, gameboy said: I run it again, but I didn't get the chat room list 1. install some XMPP client if you don't have one yet (I used Pidgin on the screenshot) 2. login via XMPP client with some other account (either the one you are using in game ("boytom", the password should be in ~/.config/0ad/config/user.cfg) or create a new one via ejabberdctl) 3. get the room list (in Pidgin it's something like menu -> tools -> room list) Quote Link to comment Share on other sites More sharing options...
elexis Posted June 11, 2017 Report Share Posted June 11, 2017 You start xpartamupp with --room arena21 but join with the alpha 22 client Quote Link to comment Share on other sites More sharing options...
gameboy Posted June 12, 2017 Author Report Share Posted June 12, 2017 I have successfully entered the room list, but when I enter the game hall and click the player name on the left mouse button, that problem still exists. I set these up in the configuration file default.cfg: [lobby] history = 0 ; Number of past messages to display on join room = "arena22" ; Default MUC room to join server = "192.168.3.10" ; Address of lobby server xpartamupp = "WFGbot" ; Name of the server-side xmpp client that manage games buddies = "," ; Comma separated list of playernames that the current user has marked as buddies root@ben:/home/tom/tools/XpartaMuPP# python3 XpartaMuPP.py --domain 192.168.3.10 --login wfgbot21 --password 123456 --nickname WFGbot --room arena21 2017-06-12 2:26:52 INFO Negotiating TLS 2017-06-12 20:29:50 INFO Using SSL version: 3 2017-06-12 20:29:50 INFO Node set to: wfgbot21@192.168.3.10/CC 2017-06-12 20:29:50 INFO XpartaMuPP started Quote Link to comment Share on other sites More sharing options...
fcxSanya Posted June 12, 2017 Report Share Posted June 12, 2017 39 minutes ago, gameboy said: [lobby] <...> room = "arena22" ; Default MUC room to join xpartamupp = "WFGbot" ; Name of the server-side xmpp client that manage games root@ben:/home/tom/tools/XpartaMuPP# python3 XpartaMuPP.py --domain 192.168.3.10 --login wfgbot21 --password 123456 --nickname WFGbot --room arena21 "lobby.xpartamupp" setting should match the "login" argument of XpartaMuPP.py, i. e. "wfgbot21" in your example And "room" should be the same too (either "arena21" or "arena22" in both places) Quote Link to comment Share on other sites More sharing options...
gameboy Posted June 12, 2017 Author Report Share Posted June 12, 2017 (edited) @fcxSanyaHow should I set it up? Please tell me how to set it. server=lobby.192.168.3.10 ? Edited June 12, 2017 by gameboy Quote Link to comment Share on other sites More sharing options...
fcxSanya Posted June 12, 2017 Report Share Posted June 12, 2017 @gameboy try this: [lobby] server = "localhost" ; Address of lobby server room = "arena21" ; Default MUC room to join xpartamupp = "wfgbot21" ; Name of the server-side xmpp client that manage games root@ben:/home/tom/tools/XpartaMuPP# python3 XpartaMuPP.py --domain localhost --login wfgbot21 --password 123456 --nickname WFGbot --room arena21 Quote Link to comment Share on other sites More sharing options...
gameboy Posted June 12, 2017 Author Report Share Posted June 12, 2017 (edited) @fcxSanya When I created the game in multiplayer hall, my friend joined my game (my friend and I were in the LAN), and the XpartaMuPP server went wrong root@ben:/home/tom/tools/XpartaMuPP# python3 XpartaMuPP.py --domain 192.168.3.10 --login wfgbot22 --password 123456 --nickname WFGbot --room arena22 2017-06-13 13:27:26 INFO Negotiating TLS 2017-06-13 13:27:26 INFO Using SSL version: 3 2017-06-13 13:27:26 INFO Node set to: wfgbot22@192.168.3.10/CC 2017-06-13 13:27:27 INFO XpartaMuPP started 2017-06-13 13:28:19 WARNING Ratings bot 'disabled@192.168.3.10/CC' is offline Traceback (most recent call last): File "XpartaMuPP.py", line 328, in iqhandler self.gameList.removeGame(iq['from']) File "XpartaMuPP.py", line 45, in removeGame del self.gameList[str(JID)] KeyError: 'tomboy@192.168.3.10/WFG' 2017-06-12 21:20:06 ERROR Failed to process game unregistration data Edited June 13, 2017 by gameboy Quote Link to comment Share on other sites More sharing options...
fcxSanya Posted June 13, 2017 Report Share Posted June 13, 2017 On 12.06.2017 at 4:40 PM, gameboy said: 2017-06-13 13:28:19 WARNING Ratings bot 'disabled@192.168.3.10/CC' is offline This is displayed if you use some rating-related functionality (viewing the leaderboard for example) and the rating bot (EcheLOn) is offline. See README if you want to run it. On 12.06.2017 at 4:40 PM, gameboy said: Traceback (most recent call last): File "XpartaMuPP.py", line 328, in iqhandler self.gameList.removeGame(iq['from']) File "XpartaMuPP.py", line 45, in removeGame del self.gameList[str(JID)] KeyError: 'tomboy@192.168.3.10/WFG' 2017-06-12 21:20:06 ERROR Failed to process game unregistration data Can you reproduce it? Also any idea why you have "WFG" resource in JID: 'tomboy@192.168.3.10/WFG'? (I believe "0ad" resource is hardcoded when you join the lobby via the game; and "CC" for bots) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.