DiKorsch / D2ModdinPyClient

Crossplatfom equivalence to https://github.com/kidovate/D2ModdinClient
5 stars 4 forks source link

D2Moddin Manager keeps disconnecting and reconnecting #6

Open dragonator opened 10 years ago

dragonator commented 10 years ago

Thank you for fixing the previous issue (#5), but now i have other problem. I did connected successfully. On the stage "Gathering test players..." the manager disconnected from server. After a few seconds it's connecting as well. And it keeps doing it all the time... Any ideas why ? There is nothing in the log file...or may be I'm looking in the wrong place...

Best regards and many thanks for your work :)

EDIT: There is a tracepath I didn't see :

File "/usr/lib/python2.7/site-packages/websocket_client-0.15.0-py2.7.egg/websocket/init.py", line 1103, in _callback callback(self, _args) File "/home/dragonator/Downloads/d2modd/src/d2mp/utils/xsockets.py", line 169, in _on_message self.dispatchEvent(cont["event"], cont["data"]) File "/home/dragonator/Downloads/d2modd/src/d2mp/utils/xsockets.py", line 214, in dispatchEvent self.subscriptions.fire(event, json.loads(message)) File "/home/dragonator/Downloads/d2modd/src/d2mp/utils/xsockets.py", line 123, in fire sub.fireCallback(message, callback, ix) File "/home/dragonator/Downloads/d2modd/src/d2mp/utils/xsockets.py", line 80, in fireCallback self.callbacks[idx].fn(message) File "/home/dragonator/Downloads/d2modd/src/d2mp/core/connection.py", line 61, in handle_command self._commands.get(content.get("msg", "wrong_content"), self._command_not_found)(content) File "/home/dragonator/Downloads/d2modd/src/d2mp/core/connection.py", line 93, in _command_launch launch_dota() File "/home/dragonator/Downloads/d2modd/src/d2mp/utils/steam.py", line 21, in launch_dota return command("run/570") File "/home/dragonator/Downloads/d2modd/src/d2mp/utils/steam.py", line 15, in command return call([ModManager().steam_exe(), "steam://%s" %cmd]) File "/usr/lib/python2.7/subprocess.py", line 522, in call return Popen(_popenargs, **kwargs).wait() File "/usr/lib/python2.7/subprocess.py", line 710, in init errread, errwrite) File "/usr/lib/python2.7/subprocess.py", line 1327, in _execute_child raise child_exception

DiKorsch commented 10 years ago

well the exception says, that the steam process had an error. i would say it is caused by wine... i dont really know, how wine really works, and how a process can be started in wine...

dragonator commented 10 years ago

No it's not wine.In previous issue said that usually use Steam through wine,but now I'm using Steam for Linux.So wine is out of the picture.

DiKorsch commented 10 years ago

Ok, i will take a look at it.

DiKorsch commented 10 years ago

Little check. try to Type this in python console:

from subprocess import call call([“steam“, “steam://run/570“])

This should start dota. If not there should be an error in stdout.

skogler commented 10 years ago

I have the same issue. Starting dota and even connecting works fine, but it constantly disconnects and reconnects. If I am lucky and the game starts when the manager is connected, everything works fine, but it's very unstable. Any ideas what the problem could be? I am looking into the websocket-client library atm to see what causes the exception.

(<websocket._app.WebSocketApp object at 0x7f4721214ed0>, WebSocketConnectionClosedException()) {}

is what appears on stdout

DiKorsch commented 10 years ago

looks like the websocket on the server disconnects the client... its probably because of the changes on the server. as I told, in the steam d2modd-group I have currently not so much time to inpect whole changes made in version 2.6, but in 2 weeks I will have the time and will fix the connection problems

rmsrepliedtomeonce commented 10 years ago

is d2moddin py kill?

DiKorsch commented 10 years ago

no, its not dead... I will do in the comming few days some updates