Skip to content

Commit

Permalink
SC2: Launch game in fullscreen mode.
Browse files Browse the repository at this point in the history
  • Loading branch information
TheCondor07 authored and Berserker66 committed May 23, 2022
1 parent a7f647e commit 7126b7b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Starcraft2Client.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,8 +218,10 @@ async def starcraft_launch(ctx: Context, mission_id):
ctx.sent_announce_pos = len(ctx.items_sent_to_announce)
ctx.announcements_pos = len(ctx.announcements)

sc2_logger.info(f"Launching {lookup_id_to_mission[mission_id]}. If game does not launch check log file for errors.")

run_game(sc2.maps.get(maps_table[mission_id - 1]), [
Bot(Race.Terran, ArchipelagoBot(ctx, mission_id), name="Archipelago")], realtime=True)
Bot(Race.Terran, ArchipelagoBot(ctx, mission_id), name="Archipelago", fullscreen=True)], realtime=True)


class ArchipelagoBot(sc2.bot_ai.BotAI):
Expand Down

0 comments on commit 7126b7b

Please sign in to comment.