Skip to content

Commit

Permalink
Switching to PySC2 3.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
samvelyan committed Oct 1, 2019
1 parent c231b7a commit 85d496d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@
'smac.examples.rllib'
],
install_requires=[
'pysc2>=2.0.2',
's2clientprotocol>=4.6.0.67926.0',
'pysc2>=3.0.0',
's2clientprotocol>=4.10.1.75800.0',
'absl-py>=0.1.0',
'numpy>=1.10',
],
Expand Down
5 changes: 2 additions & 3 deletions smac/env/starcraft2/starcraft2.py
Original file line number Diff line number Diff line change
Expand Up @@ -279,13 +279,12 @@ def __init__(

def _launch(self):
"""Launch the StarCraft II game."""
self._run_config = run_configs.get()
self._run_config = run_configs.get(version=self.game_version)
_map = maps.get(self.map_name)

# Setting up the interface
interface_options = sc_pb.InterfaceOptions(raw=True, score=False)
self._sc2_proc = self._run_config.start(version=self.game_version,
window_size=self.window_size)
self._sc2_proc = self._run_config.start(window_size=self.window_size)
self._controller = self._sc2_proc.controller

# Request to create the game
Expand Down

0 comments on commit 85d496d

Please sign in to comment.