From 84f98de84fb38d2bd04059a685aa5c412f57c062 Mon Sep 17 00:00:00 2001 From: Benjamin Ross Date: Thu, 12 Oct 2017 11:45:10 -0400 Subject: [PATCH] fix setup --- ProjetAI.md | 29 +++++++++++++++++++++++++++++ vs/CommandCenter.vcxproj | 4 ++-- vs/CommandCenter.vcxproj.user | 11 +++++++++++ 3 files changed, 42 insertions(+), 2 deletions(-) create mode 100644 ProjetAI.md create mode 100644 vs/CommandCenter.vcxproj.user diff --git a/ProjetAI.md b/ProjetAI.md new file mode 100644 index 00000000..8be45990 --- /dev/null +++ b/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 diff --git a/vs/CommandCenter.vcxproj b/vs/CommandCenter.vcxproj index e385b73c..4c893ffa 100644 --- a/vs/CommandCenter.vcxproj +++ b/vs/CommandCenter.vcxproj @@ -90,8 +90,8 @@ $(SC2API_DIR)\include;$(IncludePath) - C:\Libraries\SC2AI\sc2api_precompiled\lib;$(LibraryPath) - C:\Libraries\SC2AI\sc2api_precompiled\include;$(IncludePath) + $(SC2API_DIR)\lib;$(LibraryPath) + $(SC2API_DIR)\include;$(IncludePath) diff --git a/vs/CommandCenter.vcxproj.user b/vs/CommandCenter.vcxproj.user new file mode 100644 index 00000000..c2e9a13a --- /dev/null +++ b/vs/CommandCenter.vcxproj.user @@ -0,0 +1,11 @@ + + + + $(ProjectDir)/../bin/ + WindowsLocalDebugger + + + $(ProjectDir)/../bin/ + WindowsLocalDebugger + + \ No newline at end of file