BurnySc2 / sc2-planner

MIT License
48 stars 13 forks source link

How to make use of the json bot instructions? #48

Open ryanzlu opened 10 months ago

ryanzlu commented 10 months ago

I'm looking to get a bot that can follow a specific build order. Is there an existing bot that can import the json generated by "Copy SC2 Bot Instructions"? Or are we suppose to build a custom bot using https://github.com/BurnySc2/python-sc2 with the json as input, and run each action based on the frame index?

BurnySc2 commented 9 months ago

One such parser was created to cover a number of edge cases: https://github.com/DrInfy/sharpy-sc2/blob/47c157ac6724603ef5a5028b9d00eba28817350a/tools/json_build.py But so far I don't know of any bot that implements it, as I suppose it is a bad strategy to hardcode build orders like that, because then the bot might get stuck. E.g. your bot gets cannon rushed and want to expand, it keeps sending down workers to try to expand.