Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added game version parameter for older replays #79

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion pysc2/bin/play.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@

flags.DEFINE_string("map_path", None, "Override the map for this replay.")
flags.DEFINE_string("replay", None, "Name of a replay to show.")
flags.DEFINE_string("game_version", None, "Version of the game to run.")


def main(unused_argv):
Expand Down Expand Up @@ -126,7 +127,7 @@ def main(unused_argv):
disable_fog=FLAGS.disable_fog,
observed_player_id=FLAGS.observed_player)

with run_config.start(full_screen=FLAGS.full_screen) as controller:
with run_config.start(full_screen=FLAGS.full_screen, game_version=FLAGS.game_version) as controller:
if FLAGS.map:
controller.create_game(create)
controller.join_game(join)
Expand Down