|
MenuAutomation
BWAPI can automate most of the menus in the Starcraft GUI. The following options in the bwapi.ini file specify how BWAPI automates the in-game menu system: auto_menuThis specifies what mode the menu system is in. It can have one of the following values:
If auto_menu is set to OFF, menu automation is disabled and none of the other options have any effect. lan_modeThis specifies the network mode that is to be used. It should be the same name as the network mode being used. Examples:
auto_restartThis specifies what to do at the end of a match or replay. It can have one of the following values:
mapSpecifies which map to play on, or which replays to watch. The path is relative to the Starcraft folder. If you wish to automate the process of joining a LAN UDP game, set auto_menu to LAN_UDP and set map to nothing (i.e. "map = "). Examples:
save_replayThis specifies where to save the replay to. Example:
You can also use environment variables as "%VARIABLE%". Example:
Will become "WINDOWS_NT_SYSTEM.rep" or whatever your configuration is. We have also added our own variables, they are as follows:
raceSpecifies which race to select for the player. Can have one of the following values:
enemy_raceSpecifies which race to select for the computer opponents. This option is only used in single player games - currently no computer opponents are automatically added to LAN UDP games. Can have one of the following values:
You can also specify enemy races individually using the following keys:
Set the race to "Default" and the race specified in enemy_race will be used. enemy_countSpecifies the number of computer opponents to add to the game. This option is only used in single player games - currently no computer opponents are automatically added to LAN UDP games. Must be a value between 0 and 7. If the map does not have enough slots for the given number of computer opponents, then BWAPI uses the maximum number possible. For example, if you try to specify 7 computer opponents on a 3 player map, only 2 opponents will be in the game. game_typeSpecifies the GameType. Sub-type selection is not implemented at this time (add an issue if you want to see it added), so there is limited support for Team Melee, and several other game types which use game sub-type options. Can have one of the following values:
soundSpecifies whether or not Starcraft should run the sound engine. Disabling the sound engine can give Starcraft a slight speed increase. It can have one of the following values:
Also check out this tutorial for tips on how to increase the game's speed/performance. | ||||||||||||||||||||||||||||||||||||||||||||||