TorchCraftAI icon indicating copy to clipboard operation
TorchCraftAI copied to clipboard

How to save replay?

Open ThyrixYang opened this issue 5 years ago • 3 comments

Hi, I have tried to set save_replay in the bwapi.ini file, and tried to set BWAPI_CONFIG_AUTO_MENU__SAVE_REPLAY variable. But I still can't see any saved replay file.

ThyrixYang avatar Oct 27 '19 15:10 ThyrixYang

How are you launching games?

dgant avatar Oct 27 '19 20:10 dgant

OPENBW_ENABLE_UI=0 BWAPI_CONFIG_AI__RACE=Zerg BWAPI_CONFIG_AI__AI="/home/yangjq/Downloads/TorchCraftAI/build/3rdparty/torchcraft/BWEnv/BWEnv.so" BWAPI_CONFIG_AUTO_MENU__AUTO_MENU="LAN" BWAPI_CONFIG_AUTO_MENU__MAP=/home/yangjq/Downloads/TorchCraftAI/test/maps/micro-empty2.scm TORCHCRAFT_PORT=1111 ./BWAPILauncher

ThyrixYang avatar Oct 28 '19 03:10 ThyrixYang

What invocation are you using with BWAPI_CONFIG_AUTO_MENU__SAVE_REPLAY ?

Note that the game needs to successfully complete for a replay to be generated. If StarCraft/OpenBW die before the game ends, no replay will be emitted.

dgant avatar Oct 30 '19 18:10 dgant