Git Product home page Git Product logo

Comments (19)

AnthonyBrunasso avatar AnthonyBrunasso commented on July 17, 2024 3

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.

raynor636 avatar raynor636 commented on July 17, 2024 1

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

devenv_2017-08-15_01-07-43

Then when i open main.cpp i get this

devenv_2017-08-15_00-58-11

from s2client-api.

AnthonyBrunasso avatar AnthonyBrunasso commented on July 17, 2024 1

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.

raynor636 avatar raynor636 commented on July 17, 2024 1

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 !

2017-08-15_01-51-45

from s2client-api.

AnthonyBrunasso avatar AnthonyBrunasso commented on July 17, 2024 1

Glad I could help @raynor636!

I will close this issue unless you have any other questions.

from s2client-api.

raynor636 avatar raynor636 commented on July 17, 2024 1

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.

davechurchill avatar davechurchill commented on July 17, 2024

Try using the MSVC developer console instead of the normal CMD console

from s2client-api.

raynor636 avatar raynor636 commented on July 17, 2024

I have Visual Studio 2017 Community installed does it work with it ?

from s2client-api.

agrutter87 avatar agrutter87 commented on July 17, 2024

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:

image

image

image

image

image

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.

kuzi117 avatar kuzi117 commented on July 17, 2024

That looks like your include directories aren't set up correctly. Did you set your project's include path?

from s2client-api.

AnthonyBrunasso avatar AnthonyBrunasso commented on July 17, 2024

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.

raynor636 avatar raynor636 commented on July 17, 2024

@kuzi117 it saying to don't touch it

devenv_2017-08-15_01-17-57

from s2client-api.

AnthonyBrunasso avatar AnthonyBrunasso commented on July 17, 2024

image

You want to open this solution.

from s2client-api.

raynor636 avatar raynor636 commented on July 17, 2024

great ! how do you build this folder @AnthonyBrunasso ?

from s2client-api.

raynor636 avatar raynor636 commented on July 17, 2024

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

cmake-gui_2017-08-15_01-35-13
cmake-gui_2017-08-15_01-35-38

from s2client-api.

sihuaiwei avatar sihuaiwei commented on July 17, 2024

@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.

raynor636 avatar raynor636 commented on July 17, 2024

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

2017-08-18_12-50-37

from s2client-api.

sihuaiwei avatar sihuaiwei commented on July 17, 2024

@raynor636 i what now in windows, after start s2client-api.sln do what?

from s2client-api.

raynor636 avatar raynor636 commented on July 17, 2024

let's move here #93 ๐ŸŒฎ

from s2client-api.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.