Games-and-Simulations / sc-docker

Multi-platform Version of StarCraft: Brood War in a Docker Container, ready to use for bot play simulations.
MIT License
230 stars 41 forks source link

Java / Client bot issue? 1.0.3? #78

Closed RothNath closed 6 years ago

RothNath commented 6 years ago

expected behavior

Purplewave will load / run, worked fine under 1.0.2

actual behaviour

Purplewave sits and doesn't start. It appears that client bots are having an issue with the new build. Not sure what exactly.

steps to reproduce

scbw.play --bots "Purplewave" "Krasi0" --headless --read_overwrite --game_speed 0 --log_level=DEBUG --log_verbose --map "sscai/(4)Fighting Spirit.scx" 2018-05-30 21:45:02 DEBUG docker.utils.config[1540] Trying paths: ['C:\Users\557\.docker\config.json', 'C:\Users\557\.dockercfg'] 2018-05-30 21:45:02 DEBUG docker.utils.config[1540] Found file at path: C:\Users\557.docker\config.json 2018-05-30 21:45:02 DEBUG docker.auth[1540] Found 'auths' section 2018-05-30 21:45:02 DEBUG docker.auth[1540] Auth data for https://index.docker.io/v1/ is absent. Client might be using a credentials store instead. 2018-05-30 21:45:02 DEBUG docker.auth[1540] Found 'credsStore' section 2018-05-30 21:45:02 DEBUG scbw.bot_storage[1540] checking bot in C:\Users\557\AppData\Roaming/scbw/bots/Purplewave 2018-05-30 21:45:02 DEBUG scbw.bot_storage[1540] found bot in C:\Users\557\AppData\Roaming/scbw/bots/Purplewave 2018-05-30 21:45:02 DEBUG scbw.bot_storage[1540] checking bot in C:\Users\557\AppData\Roaming/scbw/bots/Krasi0 2018-05-30 21:45:02 DEBUG scbw.bot_storage[1540] found bot in C:\Users\557\AppData\Roaming/scbw/bots/Krasi0 2018-05-30 21:45:02 DEBUG scbw.docker_utils[1540] checking docker-machine presence 2018-05-30 21:45:02 DEBUG scbw.docker_utils[1540] using docker machine version version 0.12.2, build 9371605 Error: No machine name(s) specified and no "default" machine exists 2018-05-30 21:45:02 DEBUG scbw.docker_utils[1540] docker machine not present 2018-05-30 21:45:02 DEBUG scbw.game[1540] Using vnc host 'localhost' 2018-05-30 21:45:02 DEBUG scbw.docker_utils[1540] docker_image=starcraft:game-1.0.3 command=[ '/app/play_bot.sh', '--game', 'GAME_080826AA', '--name', 'PurpleWave', '--race', 'P', '--lan', '--host', '--map', '/app/sc/maps/sscai/(4)Fighting Spirit.scx'] name=GAME_080826AA_0_PurpleWave detach=True environment={ 'BOT_BWAPI': '4.1.2', 'BOT_FILE': 'PurpleWave.jar', 'CAPTURE_MOUSE_MOVEMENT': '0', 'DROP_PLAYERS': '0', 'EXIT_CODE_REALTIME_OUTED': 2, 'GAME_NAME': 'GAME_080826AA', 'GAME_TYPE': 'FREE_FOR_ALL', 'HEADFUL_AUTO_LAUNCH': '0', 'HIDE_NAMES': '0', 'JAVA_DEBUG': '0', 'MAP_NAME': '/app/sc/maps/sscai/(4)Fighting Spirit.scx', 'NTH_PLAYER': 0, 'NUM_PLAYERS': 2, 'PLAYER_NAME': 'PurpleWave', 'PLAYER_RACE': 'P', 'SPEED_OVERRIDE': 0, 'TM_ALLOW_USER_INPUT': '0', 'TM_LOG_FRAMETIMES': '../logs/frames.csv', 'TM_LOG_RESULTS': '../logs/scores.json', 'TM_SPEED_OVERRIDE': 0} privileged=True volumes={ '//c/Users/557/AppData/Roaming/scbw/bots/Purplewave': { 'bind': '/app/bot', 'mode': 'ro'}, '//c/Users/557/AppData/Roaming/scbw/bwapi-data/BWTA': { 'bind': '/app/sc/bwapi-data/BWTA', 'mode': 'rw'}, '//c/Users/557/AppData/Roaming/scbw/bwapi-data/BWTA2': { 'bind': '/app/sc/bwapi-data/BWTA2', 'mode': 'rw'}, '//c/Users/557/AppData/Roaming/scbw/games/GAME_080826AA/crashes_0': { 'bind': '/app/sc/Errors', 'mode': 'rw'}, '//c/Users/557/AppData/Roaming/scbw/games/GAME_080826AA/logs_0': { 'bind': '/app/logs', 'mode': 'rw'}, '//c/Users/557/AppData/Roaming/scbw/games/GAME_080826AA/write_0/': { 'bind': '/app/sc/bwapi-data/write', 'mode': 'rw'}, '//c/Users/557/AppData/Roaming/scbw/maps': { 'bind': '/app/sc/maps', 'mode': 'rw'}}

scbw version

1.0.3

MicroDK commented 6 years ago

I have the same issue with version 1.0.2 on Mac and Windows. Version 1.0.1 works just fine. It just says: "Can not load AI module NULL".

scbw.play --bots "McRaveZ" "PurpleWave" --show_all --read_overwrite --game_speed 21 --log_level=DEBUG --log_verbose 2018-06-01 10:39:43 DEBUG docker.utils.config[67344] Trying paths: ['/Users/micky/.docker/config.json', '/Users/micky/.dockercfg'] 2018-06-01 10:39:43 DEBUG docker.utils.config[67344] Found file at path: /Users/micky/.docker/config.json 2018-06-01 10:39:43 DEBUG docker.auth[67344] Couldn't find auth-related section ; attempting to interpretas auth-only file 2018-06-01 10:39:43 DEBUG docker.auth[67344] Auth data for auths is absent. Client might be using a credentials store instead. 2018-06-01 10:39:43 DEBUG scbw.bot_storage[67344] checking bot in /Users/micky/.scbw/bots/McRaveZ 2018-06-01 10:39:43 DEBUG scbw.bot_storage[67344] found bot in /Users/micky/.scbw/bots/McRaveZ 2018-06-01 10:39:43 DEBUG scbw.bot_storage[67344] checking bot in /Users/micky/.scbw/bots/PurpleWave 2018-06-01 10:39:43 DEBUG scbw.bot_storage[67344] found bot in /Users/micky/.scbw/bots/PurpleWave 2018-06-01 10:39:43 DEBUG scbw.docker_utils[67344] checking docker-machine presence 2018-06-01 10:39:44 DEBUG scbw.docker_utils[67344] using docker machine version version 0.13.0, build 9ba6da9 Error: No machine name(s) specified and no "default" machine exists 2018-06-01 10:39:44 DEBUG scbw.docker_utils[67344] docker machine not present 2018-06-01 10:39:44 DEBUG scbw.game[67344] Using vnc host 'localhost' 2018-06-01 10:39:44 DEBUG scbw.docker_utils[67344] docker_image=starcraft:game-1.0.2 command=['/app/play_bot.sh', '--headful'] name=GAME_32B78629_0_McRaveZ detach=True environment={ 'BOT_BWAPI': '4.2.0', 'BOT_FILE': 'McRaveZ.dll', 'CAPTURE_MOUSE_MOVEMENT': '0', 'DROP_PLAYERS': '0', 'EXIT_CODE_REALTIME_OUTED': 2, 'GAME_NAME': 'GAME_32B78629', 'GAME_TYPE': 'FREE_FOR_ALL', 'HEADFUL_AUTO_LAUNCH': '0', 'HIDE_NAMES': '0', 'JAVA_DEBUG': '0', 'MAP_NAME': '/app/sc/maps/sscai/(2)Benzene.scx', 'NTH_PLAYER': 0, 'NUM_PLAYERS': 2, 'PLAYER_NAME': 'McRaveZ', 'PLAYER_RACE': 'Z', 'SPEED_OVERRIDE': 21, 'TM_ALLOW_USER_INPUT': '0', 'TM_LOG_FRAMETIMES': '../logs/frames.csv', 'TM_LOG_RESULTS': '../logs/scores.json', 'TM_SPEED_OVERRIDE': 21} privileged=True volumes={ '/Users/micky/.scbw/bots/McRaveZ': {'bind': '/app/bot', 'mode': 'ro'}, '/Users/micky/.scbw/bwapi-data/BWTA': { 'bind': '/app/sc/bwapi-data/BWTA', 'mode': 'rw'}, '/Users/micky/.scbw/bwapi-data/BWTA2': { 'bind': '/app/sc/bwapi-data/BWTA2', 'mode': 'rw'}, '/Users/micky/.scbw/games/GAME_32B78629/crashes_0': { 'bind': '/app/sc/Errors', 'mode': 'rw'}, '/Users/micky/.scbw/games/GAME_32B78629/logs_0': { 'bind': '/app/logs', 'mode': 'rw'}, '/Users/micky/.scbw/games/GAME_32B78629/write_0/': { 'bind': '/app/sc/bwapi-data/write', 'mode': 'rw'}, '/Users/micky/.scbw/maps': {'bind': '/app/sc/maps', 'mode': 'rw'}} network=sc_net ports={'5900/tcp': 5900}

2018-06-01 10:39:44 INFO scbw.docker_utils[67344] launched BotPlayer:McRaveZ:Z 2018-06-01 10:39:44 DEBUG scbw.docker_utils[67344] container name = 'GAME_32B78629_0_McRaveZ', container id = '['41decd0f65']' 2018-06-01 10:39:44 DEBUG scbw.docker_utils[67344] docker_image=starcraft:game-1.0.2 command=['/app/play_bot.sh', '--headful'] name=GAME_32B78629_1_PurpleWave detach=True environment={ 'BOT_BWAPI': '4.1.2', 'BOT_FILE': 'PurpleWave.jar', 'CAPTURE_MOUSE_MOVEMENT': '0', 'DROP_PLAYERS': '0', 'EXIT_CODE_REALTIME_OUTED': 2, 'GAME_NAME': 'GAME_32B78629', 'GAME_TYPE': 'FREE_FOR_ALL', 'HEADFUL_AUTO_LAUNCH': '0', 'HIDE_NAMES': '0', 'JAVA_DEBUG': '0', 'MAP_NAME': '/app/sc/maps/sscai/(2)Benzene.scx', 'NTH_PLAYER': 1, 'NUM_PLAYERS': 2, 'PLAYER_NAME': 'PurpleWave', 'PLAYER_RACE': 'P', 'SPEED_OVERRIDE': 21, 'TM_ALLOW_USER_INPUT': '0', 'TM_LOG_FRAMETIMES': '../logs/frames.csv', 'TM_LOG_RESULTS': '../logs/scores.json', 'TM_SPEED_OVERRIDE': 21} privileged=True volumes={ '/Users/micky/.scbw/bots/PurpleWave': {'bind': '/app/bot', 'mode': 'ro'}, '/Users/micky/.scbw/bwapi-data/BWTA': { 'bind': '/app/sc/bwapi-data/BWTA', 'mode': 'rw'}, '/Users/micky/.scbw/bwapi-data/BWTA2': { 'bind': '/app/sc/bwapi-data/BWTA2', 'mode': 'rw'}, '/Users/micky/.scbw/games/GAME_32B78629/crashes_1': { 'bind': '/app/sc/Errors', 'mode': 'rw'}, '/Users/micky/.scbw/games/GAME_32B78629/logs_1': { 'bind': '/app/logs', 'mode': 'rw'}, '/Users/micky/.scbw/games/GAME_32B78629/write_1/': { 'bind': '/app/sc/bwapi-data/write', 'mode': 'rw'}, '/Users/micky/.scbw/maps': {'bind': '/app/sc/maps', 'mode': 'rw'}} network=sc_net ports={'5900/tcp': 5901}

2018-06-01 10:39:45 INFO scbw.docker_utils[67344] launched BotPlayer:PurpleWave:P 2018-06-01 10:39:45 DEBUG scbw.docker_utils[67344] container name = 'GAME_32B78629_1_PurpleWave', container id = '['95330c7d23']' 2018-06-01 10:39:45 DEBUG scbw.docker_utils[67344] checking if game has launched properly... 2018-06-01 10:39:46 INFO scbw.docker_utils[67344] launching vnc viewer for BotPlayer:McRaveZ:Z on address localhost:5900 2018-06-01 10:39:46 INFO scbw.docker_utils[67344] launching vnc viewer for BotPlayer:PurpleWave:P on address localhost:5901 2018-06-01 10:39:46 INFO scbw.docker_utils[67344] In headful mode, you must specify and start the game manually. Select the map, wait for bots to join the game and then start the game. 2018-06-01 10:39:46 INFO scbw.docker_utils[67344] waiting until game GAME_32B78629 is finished... 2018-06-01 10:39:46 DEBUG scbw.docker_utils[67344] waiting. ['95330c7d23', '41decd0f65'] 2018-06-01 10:39:48 DEBUG scbw.docker_utils[67344] waiting. ['95330c7d23', '41decd0f65'] 2018-06-01 10:39:51 DEBUG scbw.docker_utils[67344] waiting. ['95330c7d23', '41decd0f65'] 2018-06-01 10:39:54 DEBUG scbw.docker_utils[67344] waiting. ['95330c7d23', '41decd0f65'] 2018-06-01 10:39:57 DEBUG scbw.docker_utils[67344] waiting. ['95330c7d23', '41decd0f65'] 2018-06-01 10:40:00 DEBUG scbw.docker_utils[67344] waiting. ['95330c7d23', '41decd0f65'] 2018-06-01 10:40:03 DEBUG scbw.docker_utils[67344] waiting. ['95330c7d23', '41decd0f65'] 2018-06-01 10:40:06 DEBUG scbw.docker_utils[67344] waiting. ['95330c7d23', '41decd0f65'] 2018-06-01 10:40:09 DEBUG scbw.docker_utils[67344] waiting. ['95330c7d23', '41decd0f65'] 2018-06-01 10:40:12 DEBUG scbw.docker_utils[67344] waiting. ['95330c7d23', '41decd0f65'] 2018-06-01 10:40:15 DEBUG scbw.docker_utils[67344] waiting. ['95330c7d23', '41decd0f65'] 2018-06-01 10:40:18 DEBUG scbw.docker_utils[67344] waiting. ['95330c7d23', '41decd0f65'] 2018-06-01 10:40:21 DEBUG scbw.docker_utils[67344] waiting. ['95330c7d23', '41decd0f65'] 2018-06-01 10:40:24 DEBUG scbw.docker_utils[67344] waiting. ['95330c7d23', '41decd0f65'] 2018-06-01 10:40:27 DEBUG scbw.docker_utils[67344] waiting. ['95330c7d23', '41decd0f65'] 2018-06-01 10:40:30 DEBUG scbw.docker_utils[67344] waiting. ['95330c7d23', '41decd0f65'] 2018-06-01 10:40:33 DEBUG scbw.docker_utils[67344] waiting. ['95330c7d23', '41decd0f65'] 2018-06-01 10:40:36 DEBUG scbw.docker_utils[67344] waiting. ['95330c7d23', '41decd0f65'] 2018-06-01 10:40:39 DEBUG scbw.docker_utils[67344] waiting. ['95330c7d23', '41decd0f65'] 2018-06-01 10:40:42 DEBUG scbw.docker_utils[67344] waiting. ['95330c7d23', '41decd0f65'] 2018-06-01 10:40:45 DEBUG scbw.docker_utils[67344] waiting. ['95330c7d23', '41decd0f65'] 2018-06-01 10:40:48 DEBUG scbw.docker_utils[67344] waiting. ['95330c7d23', '41decd0f65'] 2018-06-01 10:40:51 DEBUG scbw.docker_utils[67344] waiting. ['95330c7d23', '41decd0f65'] 2018-06-01 10:40:55 DEBUG scbw.docker_utils[67344] waiting. ['95330c7d23', '41decd0f65'] 2018-06-01 10:40:58 DEBUG scbw.docker_utils[67344] removing game containers 2018-06-01 10:40:58 INFO scbw.docker_utils[67344] overwriting bot files 2018-06-01 10:40:58 DEBUG scbw.docker_utils[67344] overwriting files for BotPlayer:McRaveZ:Z 2018-06-01 10:40:58 DEBUG scbw.docker_utils[67344] overwriting files for BotPlayer:PurpleWave:P 2018-06-01 10:40:58 DEBUG scbw.game[67344] {'headless': False, 'game_name': 'GAME_32B78629', 'map_name': 'sscai/(2)Benzene.scx', 'game_type': <GameType.FREE_FOR_ALL: 'FREE_FOR_ALL'>, 'game_speed': 21, 'timeout': None, 'hide_names': False, 'drop_players': False, 'allow_input': False, 'auto_launch': False, 'random_names': False, 'game_dir': '/Users/micky/.scbw/games', 'bot_dir': '/Users/micky/.scbw/bots', 'map_dir': '/Users/micky/.scbw/maps', 'bwapi_data_bwta_dir': '/Users/micky/.scbw/bwapi-data/BWTA', 'bwapi_data_bwta2_dir': '/Users/micky/.scbw/bwapi-data/BWTA2', 'vnc_base_port': 5900, 'vnc_host': 'localhost', 'capture_movement': False, 'docker_image': 'starcraft:game-1.0.2', 'docker_opts': [], 'read_overwrite': True, 'bots': ['McRaveZ', 'PurpleWave'], 'is_crashed': False, 'is_gametime_outed': False, 'is_realtime_outed': False, 'game_time': 74.0315408706665, 'winner': 'PurpleWave', 'loser': 'McRaveZ', 'winner_race': 'P', 'loser_race': 'Z'} 2018-06-01 10:40:58 INFO scbw.game[67344] game GAME_32B78629 recorded 2018-06-01 10:40:58 INFO scbw.cli[67344] Game GAME_32B78629 finished in 74.0315408706665 seconds. 2018-06-01 10:40:58 INFO scbw.cli[67344] --- 2018-06-01 10:40:58 INFO scbw.cli[67344] Logs are saved here: 2018-06-01 10:40:58 INFO scbw.cli[67344] /Users/micky/.scbw/games/GAME_32B78629/logs_0/bot.log 2018-06-01 10:40:58 INFO scbw.cli[67344] /Users/micky/.scbw/games/GAME_32B78629/logs_0/game.log 2018-06-01 10:40:58 INFO scbw.cli[67344] /Users/micky/.scbw/games/GAME_32B78629/logs_1/bot.log 2018-06-01 10:40:58 INFO scbw.cli[67344] /Users/micky/.scbw/games/GAME_32B78629/logs_1/game.log 2018-06-01 10:40:58 INFO scbw.cli[67344] --- 2018-06-01 10:40:58 INFO scbw.cli[67344] Replays are saved here: 2018-06-01 10:40:58 INFO scbw.cli[67344] /Users/micky/.scbw/games/GAME_32B78629/player_0.rep 2018-06-01 10:40:58 INFO scbw.cli[67344] /Users/micky/.scbw/games/GAME_32B78629/player_1.rep 2018-06-01 10:40:58 INFO scbw.cli[67344] --- 2018-06-01 10:40:58 INFO scbw.cli[67344] Frame information is saved here: 2018-06-01 10:40:58 INFO scbw.cli[67344] /Users/micky/.scbw/games/GAME_32B78629/logs_0/frames.csv 2018-06-01 10:40:58 INFO scbw.cli[67344] /Users/micky/.scbw/games/GAME_32B78629/logs_1/frames.csv 2018-06-01 10:40:58 INFO scbw.cli[67344] --- 2018-06-01 10:40:58 INFO scbw.cli[67344] Game results are saved here: 2018-06-01 10:40:58 INFO scbw.cli[67344] /Users/micky/.scbw/games/GAME_32B78629/logs_0/scores.json 2018-06-01 10:40:58 INFO scbw.cli[67344] /Users/micky/.scbw/games/GAME_32B78629/logs_1/scores.json 2018-06-01 10:40:58 INFO scbw.cli[67344] --- 2018-06-01 10:40:58 INFO scbw.cli[67344] Winner is BotPlayer:PurpleWave:P (player 1)

michalsustr commented 6 years ago

I managed to reproduce this, weirdly it works on my workstation but not on a different computer... I'll take a look into it

michalsustr commented 6 years ago

Should be fixed with 1.0.4