BWAPIClient does not support multiple (separate) client-game pairs
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.
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.)
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.
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.