Comments (19)
If you want to build from source please follow our building docs (https://github.com/Blizzard/s2client-api/blob/master/docs/building.md) and you'll likely need to install the components @agrutter87 recommended, this is actually a step I was not aware of so I'll have to update our docs appropriately, thank you, agrutter. Basically your environment needs to be set up in such a way that cmake finds your compiler.
If you download http://blzdistsc2-a.akamaihd.net/SC2API_Binary_vs2017.zip that package comes with prebuilt library files so you don't have to worry about any of this. You should just be able to extract it somewhere and open bot.sln and build.
from s2client-api.
Thank you @agrutter87 am not an expert too so i have opened the solution named bot.sln in the project folder and it asked to install about 4 Go of packages then now i get this error when i click on generate the solution
Then when i open main.cpp i get this
from s2client-api.
It's the output of cmake, you would have created the folder and got the solution from the cmake command working in your first post.
You could alternatively download this package if you don't want to build the api from source: http://blzdistsc2-a.akamaihd.net/SC2API_Binary_vs2017.zip
from s2client-api.
it would be nice to have a tutorial on yt explaining how to build it by following the building.md steps
thx @AnthonyBrunasso for the package it works !
from s2client-api.
Glad I could help @raynor636!
I will close this issue unless you have any other questions.
from s2client-api.
it's okey @AnthonyBrunasso the issue is closed and now i am on the code
so it worked by installing in VS the components that @agrutter87 talked about and then i was abeld to build it by running the command and steps of building.md
https://youtu.be/TTrO-HQLBdQ
thx a lot guys ๐ข
from s2client-api.
Try using the MSVC developer console instead of the normal CMD console
from s2client-api.
I have Visual Studio 2017 Community installed does it work with it ?
from s2client-api.
I was able to use the Community version.
Is this your first time installing Visual Studio like it was for me? At first I didn't know what components to select, and the basic install wasn't enough. I had to select the C++ tools and all that by running the "Visual Studio Installer" and selecting "Modify". Here's the components I have selected:
I am by no means an expert on this, but I did manage to get it to build after hours of installing and uninstalling things. Also, at one point I uninstalled everything and reinstalled Visual Studio before CMake. Wasn't sure if it mattered but what the hell noobs have to just try stuff, right? LOL
from s2client-api.
That looks like your include directories aren't set up correctly. Did you set your project's include path?
from s2client-api.
The bot solution is for generating the prebuilt binary solution.
The solution file you want to open is build/s2client-api.sln. Sorry for the confusion.
from s2client-api.
@kuzi117 it saying to don't touch it
from s2client-api.
You want to open this solution.
from s2client-api.
great ! how do you build this folder @AnthonyBrunasso ?
from s2client-api.
yes @davechurchill said to build it inside MSVC so i've started something and i found myself doing something else, i've tryed again cmake and i still got the same error even with the gui
from s2client-api.
@raynor636 Where is bot.exe? need install StarCraft II๏ผwhen i make successful ,i do not know how to run the example ,and where is bot.exe
from s2client-api.
When it is build you need to open the s2client-api.sln solution and compile everything but it should be another issue if you can open it (like "how to build a first bot") it can be cool
i am not gone far from this point waiting to watch people making vids and tutorials on social nets ๐ป
or you can find it by downloading the package that have posted @AnthonyBrunasso
btw yes i think SC2 have to be installed first to run any AI
from s2client-api.
@raynor636 i what now in windows, after start s2client-api.sln do what?
from s2client-api.
let's move here #93 ๐ฎ
from s2client-api.
Related Issues (20)
- Data for BattleCruiser weapon's are empty HOT 1
- `Test_snapshots` assertion error on line 52: Cannot find terran scv HOT 3
- Functions, depend on SampleImageData don't work HOT 2
- Compile tutorial.cc broken on Linux? HOT 4
- Compiling error: sc2api.pb.h not found HOT 4
- How am I supposed to make a replay of a game started by the coordinator?
- Day 0 exploit regarding UnitIDs HOT 1
- ClientEvent callbacks do not work HOT 3
- In nonmultithreaded, multi-player game, the call of OnGameEnd() is missing.
- In multithreaded and multi-player game, the Restart() in OnGameEnd() fails to work
- The Unit.owner of a neutral units is 16, but Debug().DebugCreateUnit() can not create a unit whose owner is 16
- #error SDL now requires a Linux 2.4+ kernel with /dev/input/event support.
- Get error when opened many coordinators simultaneously
- Exposing enemy actions HOT 1
- Missing replay packs HOT 1
- Human vs Bot HOT 1
- Relationship between pysc2 and s2client-api
- Build fails HOT 5
- Error when running ./all_tests on Linux
- Player' Color
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from s2client-api.