Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix setup
  • Loading branch information
benjamin-ross committed Oct 12, 2017
1 parent 9334590 commit 84f98de
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 2 deletions.
29 changes: 29 additions & 0 deletions ProjetAI.md
@@ -0,0 +1,29 @@
# Équipe Symbolique: CommandCenter-Clone
Projet largement basé sur le projet CommandCenter écrit par [David Churchill](http://www.cs.mun.ca/~dchurchill/), qui est basé sur l'architecture de [UAlbertaBot](https://github.com/davechurchill/ualbertabot/wiki). Le bot est écrit en C++ et utilise l'API [StarCraft II AI API](https://github.com/Blizzard/s2client-api). Pour plus d'information du projet de base CommandCenter, lisez la [documentation officielle](README.md).

# Installation et compilation du projet (Windows)

* Télécharger et installer [Visual Studio 2017](https://www.visualstudio.com/downloads/)
* Télécharger et installer la [version précompiler de StarCraft II AI API](https://github.com/Blizzard/s2client-api#precompiled-libs).
* Télécharger et installer StarCraft II
* Télécharger les "Map Packs" du jeu (Vous pouvez trouver les cartes [ici](https://github.com/Blizzard/s2client-proto#downloads))
* Ajouter les cartes à la racine de `C:\Program Files (x86)\StarCraft II\Maps`.
* Ajouter les variable système suivante:
* `SC2API_DIR`: chemin vers la SC2API (ex: `C:\Libraries\SC2API_Binary_vs2017`)
* `SC2PATH`: chemin vers le jeu StarCraft II (ex: `C:\Program Files (x86)\StarCraft II`)
* Cloner le projer
* Ouvrir "CommandCenter/vs/CommandCenter.sln" dans VS2017
* Définir SC2API dans les librairies à inclure dans le projet Visual Studio.
* Clic droit sur le projet CommandCenter dans VS2017
* Sélectionner "Properties"
* Sélectionner la configuration de compilation dans le coin gauche ("Release" ou "Debug")
* Sélectionner "VC++ Directories" dans le menu à gauche
* Modifier l'option "Include Directories" dans la table à droite pour `$(SC2API_DIR)\include;$(IncludePath)`
* Modifier l'option "Library Directories" dans la table à droite pour `$(SC2API_DIR)\lib;$(LibraryPath)`
* Encore dans la fenêtre "Properties", sélectionner "Working Directory" dans le menu à gauche.
* Modifier l'option "Debugging" pour `$(ProjectDir)/../bin/`
* Lancer l'exécution en appuyant sur la touche `F5`

# Changements apportés au projet de base CommandCenter

TODO
4 changes: 2 additions & 2 deletions vs/CommandCenter.vcxproj
Expand Up @@ -90,8 +90,8 @@
<IncludePath>$(SC2API_DIR)\include;$(IncludePath)</IncludePath>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<LibraryPath>C:\Libraries\SC2AI\sc2api_precompiled\lib;$(LibraryPath)</LibraryPath>
<IncludePath>C:\Libraries\SC2AI\sc2api_precompiled\include;$(IncludePath)</IncludePath>
<LibraryPath>$(SC2API_DIR)\lib;$(LibraryPath)</LibraryPath>
<IncludePath>$(SC2API_DIR)\include;$(IncludePath)</IncludePath>
</PropertyGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<ClCompile>
Expand Down
11 changes: 11 additions & 0 deletions vs/CommandCenter.vcxproj.user
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<LocalDebuggerWorkingDirectory>$(ProjectDir)/../bin/</LocalDebuggerWorkingDirectory>
<DebuggerFlavor>WindowsLocalDebugger</DebuggerFlavor>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<LocalDebuggerWorkingDirectory>$(ProjectDir)/../bin/</LocalDebuggerWorkingDirectory>
<DebuggerFlavor>WindowsLocalDebugger</DebuggerFlavor>
</PropertyGroup>
</Project>

0 comments on commit 84f98de

Please sign in to comment.