bwapi icon indicating copy to clipboard operation
bwapi copied to clipboard

BWAPIClient does not support multiple (separate) client-game pairs

Open edran opened this issue 10 years ago • 3 comments

I haven't found a way to make sure that a BWAPIClient-based bot would connect to a particular instance of StarCraft. Maybe a feasible way would be to implement it PID-based, i.e.

  • Start Starcraft -> get PID
  • BWAPIClient.connect(PID)

@heinermann are there any other solutions you can think of? The use case I'm thinking of is multiple StarCraft clients running on the same machine with different BWAPIClient bots attached to them playing different (or LAN) matches.

edran avatar Oct 18 '16 14:10 edran

I've ran into this, when I executed two instances of David Churchill's tournament manager. StarCraft instances controlled by one manager joined games controlled by the other manager...

For me it seemed that BWAPI joins whathever game is on the lobby, is this true?

(I executed two instances of the tournament manager so that half the virtual machines would run one tournament and half of them another one.)

andertavares avatar Dec 26 '16 17:12 andertavares

Actually, my problem is different... mine is related to joining a game in a LAN and not to connect a bot client to a specific program instance... I'll test it further and open a new issue if confirmed.

andertavares avatar Feb 22 '17 18:02 andertavares

We probably won't address this in the BWAPI 4 architecture at this stage. We may be able to deal with it in the BWAPI 5 architecture however.

heinermann avatar Mar 30 '19 18:03 heinermann