-
Notifications
You must be signed in to change notification settings - Fork 29
Packaging For Ladders
Dummy bots can be easily packaged to publish folder as distributable bots with python dummy_ladder_zip
. If you want to change their difficulty, you can control their difficulty by adjusting the game_step in config.ini in the sharpy repo root and publish a version with that game_step. Dummy speed mining gets disabled when game_step is higher than 5.
Your own bot probably isn't structured in similar way as the dummy bots are and you should create your own publish python file. There is an working example in Sharpy Starter Kit. The ladder_zip.py packages the bot as a single zip file in your publish
folder.
The published bot should have following structure:
- your_bot_folder(s)
- sharpy
- sc2
- sc2pathlib
- jsonpickle # Used by data manager to package data in somewhat human readable format
config.ini
config.py
ladder.py
ladderbots.json # Used by ladder manager and required for bot vs human games
run.py
requirements.txt # Optional
version.txt # Optional
You can test your published bot by running it's run.py.
Using -e
or -exe
the bot would be packaged as a stand-alone executable that makes the bot easier to distribute to human players. This method is tested and should work on all standard sharpy bots in Windows with Python 3.9 64-bit.
- Plans and Build Order
- Settings, debug and logging
- Structure and Life Cycle
- Unit Roles
- Unit Cache
- Running Games
- Converting Sharpy bot from before 2.0 version
- Converting Sharpy KnowledgeBot to SkeletonBot
- Converting Python bot to minimal Sharpy bot
- OLD: Extending Your Existing Bot With Sharpy
- Packaging For Ladders
- Extending Sharpy
- Advanced Build Order tricks
- Machine Learning With Sharpy