Difference between revisions of "Multiple instances of StarCraft"

(Chaos Launcher)
 
(One intermediate revision by the same user not shown)
Line 4: Line 4:
 
After installing BWAPI, navigate to the <code>BWAPI/Chaoslauncher</code> directory and run <code>Chaoslauncher - MultiInstance.exe</code><br />
 
After installing BWAPI, navigate to the <code>BWAPI/Chaoslauncher</code> directory and run <code>Chaoslauncher - MultiInstance.exe</code><br />
 
Select ''BWAPI Injector'' and any other plugins you wish to use.<br />
 
Select ''BWAPI Injector'' and any other plugins you wish to use.<br />
Select ''StarCraft Multi-Instance'' from the combo box next to ''Start'' button.
+
Clicking ''Start'' button several times will produce new instances of StarCraft with BWAPI injected.
  
 
[[File:Multi_tut_chaoslauncher.png]]
 
[[File:Multi_tut_chaoslauncher.png]]
 
'''Note:''' If option ''StarCraft Multi-Instance'' doesn't appear, go to <code>Starcraft/bwapi-data/</code> folder and execute the file <code>Multiple Instance Hack.bat</code>
 
  
 
== BWAPI ==
 
== BWAPI ==
Line 25: Line 23:
 
[[File:Multi tut network.gif]]
 
[[File:Multi tut network.gif]]
  
'''Note:''' This network mode will only appear when BWAPI has been injected and will allow you to play matches between multiple instances.
+
{{note|This network mode will only appear when BWAPI has been injected and will allow you to play matches between multiple instances.}}
 
+
{{note|If you have a bot that spams a lot of [[liquipedia:Actions_per_Minute|APM]], it can cause a disconnect in this mode due to some network recovery process not functioning in local PC mode.}}
'''Note:''' If you have a bot that spams a lot of apm, it can cause a disconnect in this mode due to some network recovery process not functioning in local PC mode.
 

Latest revision as of 17:18, 23 November 2015

To play AI vs AI games in the same machine you can use the BWAPI Multi-Instance option.

Chaos Launcher

After installing BWAPI, navigate to the BWAPI/Chaoslauncher directory and run Chaoslauncher - MultiInstance.exe
Select BWAPI Injector and any other plugins you wish to use.
Clicking Start button several times will produce new instances of StarCraft with BWAPI injected.

Multi tut chaoslauncher.png

BWAPI

To set up BWAPI for multiple instances, you must configure the AI path for each instance. Browse to Starcraft/bwapi-data/ and open bwapi.ini.
Now change the ai entry to contain comma-separated paths to the AI modules you wish to use.

ai = bwapi-data/AI/SomeAI.dll, bwapi-data/AI/SecondInstance.dll, bwapi-data/AI/ThirdInstance.dll

Each comma-separated entry will be loaded for their respective instance (first instance loads the first entry, etc). If there are more instances than entries, then the last entry is used for all subsequent instances.

Networking

After installing BWAPI, a new network mode called Local PC should now be available after choosing Multiplayer.

Multi tut network.gif

This network mode will only appear when BWAPI has been injected and will allow you to play matches between multiple instances.
If you have a bot that spams a lot of APM, it can cause a disconnect in this mode due to some network recovery process not functioning in local PC mode.