python-sc2 icon indicating copy to clipboard operation
python-sc2 copied to clipboard

Remote

Open Archiatrus opened this issue 7 years ago • 4 comments

Hi,

Is it possible with your framework to connect to a remotely started client, e.g., one that is started by the ladderManager of sc2ai.net? For reference this how it is done with the c++ api, this is used for pysc2 (host port is given, so agent () is used), and here is a c# bot that can connect.

Regards

Archiatrus avatar May 19 '18 08:05 Archiatrus

I'd be interested in this as well

NikEyX avatar May 20 '18 01:05 NikEyX

There's something about remote connections in one of the example code file: https://github.com/Dentosal/python-sc2/blob/master/examples/run_external.py

Not sure how it works, but it might be a start.

Hannessa avatar May 21 '18 22:05 Hannessa

I've created a repo with a modified version of run_external.py that can be run with LadderManager here: https://github.com/Hannessa/python-sc2-ladderbot

@Dentosal, please consider adding native port and host support to sc2.main._join_game. You can see join_ladder_game() here for reference: https://github.com/Hannessa/python-sc2-ladderbot/blob/master/init.py

Hannessa avatar May 29 '18 21:05 Hannessa

Thanks for the code. I'm a bit time-constrained right now, but looking into including this when possible.

Dentosal avatar May 30 '18 12:05 Dentosal