-
Notifications
You must be signed in to change notification settings - Fork 178
SparCraft Windows Bot Compilation
It is quite easy to use SparCraft in your own bot! You can simply link it to your existing bot, or you can compile it yourself.
If you want to learn more about integrating AI systems into BWAPI bots, you can read our AIIDE 2012 paper:
To use SparCraft, you must include its headers. Make sure your project includes the SparCraft/source
directory, and from within your program use the following:
#include "SparCraft.h"
To compile SparCraft as a standalone Windows exe, you must have the following:
- Visual Studio 2012 (or 2013)
- BWAPI 3.7.4
- Required Compilation Libraries
Compiling SparCraft for use in a BWAPI bot requires the full BWAPI library, you cannot link to the included [bwapidata bwapidata] project.
To use SparCraft in a BWAPI bot, it must be compiled under the v90 platform toolset. This is the default toolset for SparCraft so no modification is required. Make sure to click do not upgrade when opening the solution in VS2012 for the first time.
To build SparCraft.lib
:
- Install Visual Studio 2012
- Install the Required Compilation Libraries
- Set BWAPI_DIR environment variable to bwapidata folder
- Launch Visual Studio 2012
- Open
SparCraft/VisualStudio/SparCraft.sln
- Click "Do Not Upgrade" projects (this keeps them as v90)
- Change Configuration to
Release
(if it isn't already) - Build
SparCraft
project (createsSparCraft.lib
) - Build your bot while linking to
SparCraft.lib