Dentosal / python-sc2

A StarCraft II bot api client library for Python 3
MIT License
587 stars 182 forks source link

Disable Default AI #265

Open Junyoungpark opened 5 years ago

Junyoungpark commented 5 years ago

Hi! I'm wondering if there is a clean way to disable default AI? It seems like the default AI control the units during the playing games. I want to totally unable the default AI.

BurnySc2 commented 5 years ago

Can you upload how the file that you execute to start a game? If you let a custom bot play vs built in AI, the custom bot should not have any built in AI behavior.

To play a game as human terran against built in zerg AI, the file should looke like this: https://github.com/Dentosal/python-sc2/blob/master/examples/play_tvz.py To let a custom bot play against a built in AI, you can run this file: https://github.com/Dentosal/python-sc2/blob/master/examples/worker_rush.py

I'm not exactly sure what the problem is for you. Do you want to play as human against a custom bot, or as human against built in AI? Or something completely different?

ghost commented 5 years ago

If you mean you want to play against the built-in AI that doesn't execute any actions, then the only one way to do it is to edit maps in map editor by switching off the AI in triggers.