TorchCraft / TorchCraftAI

A platform that lets you build agents to learn to play StarCraft: Brood War.
https://torchcraft.github.io/TorchCraftAI
MIT License
650 stars 123 forks source link

How to save replay? #27

Open ThyrixYang opened 5 years ago

ThyrixYang commented 5 years ago

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.

dgant commented 5 years ago

How are you launching games?

ThyrixYang commented 5 years ago

OPENBW_ENABLE_UI=0 BWAPI_CONFIG_AIRACE=Zerg BWAPI_CONFIG_AIAI="/home/yangjq/Downloads/TorchCraftAI/build/3rdparty/torchcraft/BWEnv/BWEnv.so" BWAPI_CONFIG_AUTO_MENUAUTO_MENU="LAN" BWAPI_CONFIG_AUTO_MENUMAP=/home/yangjq/Downloads/TorchCraftAI/test/maps/micro-empty2.scm TORCHCRAFT_PORT=1111 ./BWAPILauncher

dgant commented 5 years ago

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.