Pybrood
Another BWAPI Python binding made with pybind11
Install / Use
/learn @neumond/PybroodREADME
Pybrood
Binding made as from-scratch code generator, outputting msvc project.
Precompiled installation
Requirements:
- Windows 7 32 bit (just exactly SSCAIT requirement) NOTE: I couldn't successfully run BWAPI injector under Wine, although recently I've been told it's possible.
- Python 3.5
- Installed BWAPI and SC
pip install pybrood
Documentation
Compiling from source
Additional requirements:
- Visual C++ build tools or complete Visual Studio. NOTE: pick the version of compiler/studio considering build tools used by python
- BWAPI 4.1.2 sources
you need
BWAPI.libandBWAPIClient.libbuilt against chosen compiler to link pybrood module - Most fresh (dec 2016) Pybind11 headers
Building BWAPI.lib and BWAPIClient.lib
You may experience "access denied" errors while working directly in "program files/BWAPI". Better use separately cloned git repo of BWAPI where you have full access.
For msbuild invocation use special VC++ related cmd shell from Launch menu.
Otherwise you can use usual cmd shell.
-
Make some changes in bwapi source files first:
-
disable mass file copying in
bwapi/BWAPILIB/BWAPILIB.vcxproj:- line 64:
<PreLinkEvent>→<!-- PreLinkEvent> - line 94:
</PreLinkEvent>→</PreLinkEvent -->
- line 64:
-
create file
bwapi/svnrev.h:Figure out revision number:
cd bwapi echo $(( $(git rev-list HEAD --count) + 2383 ))static const int SVN_REV = 4708; #include "starcraftver.h"This prevents "Client and Server are not compatible" error.
-
-
Build BWAPI.lib:
cd bwapi\BWAPILIB\ msbuild /p:PlatformToolset=v140 /p:Configuration=Release /p:Platform=Win32Output file is
bwapi/lib/BWAPI.lib. -
Build BWAPIClient.lib:
cd bwapi\BWAPIClient\ msbuild /p:PlatformToolset=v140 /p:Configuration=Release /p:Platform=Win32Output file is
bwapi/lib/BWAPIClient.lib.
Building Pybrood
pip install -r generator/requirements.txt- Setup paths in generator/config.py.
- Run the generator
python3.5 -m generator. cdto freshly generatedoutputfolder and runbuild.bat(it's just the same msbuild command).- Copy/symlink
output/Release/inner.pydintopybrooddirectory.inner.pydis a required submodule ofpybrood. - Now you should be able to
import pybrood. - Optionally you can build your local copy of documentation:
cd output/docs/ sphinx-build . -b html _build/html
Related Skills
node-connect
343.1kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
claude-opus-4-5-migration
90.0kMigrate prompts and code from Claude Sonnet 4.0, Sonnet 4.5, or Opus 4.1 to Opus 4.5
frontend-design
90.0kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
model-usage
343.1kUse CodexBar CLI local cost usage to summarize per-model usage for Codex or Claude, including the current (most recent) model or a full model breakdown. Trigger when asked for model-level usage/cost data from codexbar, or when you need a scriptable per-model summary from codexbar cost JSON.
