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
231 stars 40 forks source link

AI performed unnormally in headless mode #88

Closed shuaienen closed 5 years ago

shuaienen commented 5 years ago

I have installed sc-docker and can run it with the scbw.play instruction. Take ‘ scbw.play --bots "PurpleWave" "Iron bot" --headless --map "sscai/(4)Empire of the Sun.scm"’ as an example. In the headful mode, the speed of the game is very fast at the beginning. With the increase of units, FPS will become slower and slower, but the operation of AI is very normal. But in headless mode, I open replay to observe, and find that AI operates normally at the beginning, but after about 15 minutes of the game time, AI behaves abnormally, such as unit does not move, unit does not build, and so on. In the end, AI often exits the game (disconnection) without winning or losing.

I guess this may be caused by AI's inability to keep up with the speed of the game,I adjusted the game_speed parameter and it still doesn't work. However, it behaves normally in headful mode.My sc-docker version is 1.0.4. Have you ever encountered such a problem, and how did you solve it?

Sorry, my question can't be answered according to the template. I'm looking forward to your reply, thank you.

Here is the game file (include replays): https://github.com/shuaienen/sc-docker-unnormal-game