davechurchill / ualbertabot Goto Github PK
View Code? Open in Web Editor NEWUAlbertaBot
Home Page: http://www.cs.mun.ca/~dchurchill/
License: MIT License
UAlbertaBot
Home Page: http://www.cs.mun.ca/~dchurchill/
License: MIT License
Thank you very much for making the whole project openly available!
I tried to use the make_windows.bat with newest version of emscripten installed. (Solution compiles and runs smoothly in Visual Studio)
compiling succeeds now
4.Error : json returns errors - see file "Error4.txt" (zip contains whole content of my emscripten directory)
emscripten.zip
which version of visual studio can be used to compile UAlbertaBot_AIIDE_2013_2014.zip correctlly?
which version of BWAPI for it?
sorry about the newbie question, I google a lot but still have not get useful help.
I follow the install step in the wiki and everything is ok until I start the game, the starcraft process seems stuck , have no response. but I try the BWAPI example AI module, it works just fine.
I get no idea about how to find the questions, can some one give me some insight?
Thanks..
I'm trying to build Sparcraft the sparcraft_update
branch, but I get the following error when linking on Ubuntu 16.04.
g++ /home/ubuntu/shared/bwapi/bwapi/BWAPILIB/Source/Playerset.o /home/ubuntu/shared/bwapi/bwapi/BWAPILIB/Source/UnitType.o /home/ubuntu/shared/bwapi/bwapi/BWAPILIB/Source/BulletType.o /home/ubuntu/shared/bwapi/bwapi/BWAPILIB/Source/Region.o /home/ubuntu/shared/bwapi/bwapi/BWAPILIB/Source/Color.o /home/ubuntu/shared/bwapi/bwapi/BWAPILIB/Source/UnitSizeType.o /home/ubuntu/shared/bwapi/bwapi/BWAPILIB/Source/Game.o /home/ubuntu/shared/bwapi/bwapi/BWAPILIB/Source/PlayerType.o /home/ubuntu/shared/bwapi/bwapi/BWAPILIB/Source/UnitCommandType.o /home/ubuntu/shared/bwapi/bwapi/BWAPILIB/Source/TechType.o /home/ubuntu/shared/bwapi/bwapi/BWAPILIB/Source/Error.o /home/ubuntu/shared/bwapi/bwapi/BWAPILIB/Source/Order.o /home/ubuntu/shared/bwapi/bwapi/BWAPILIB/Source/Unitset.o /home/ubuntu/shared/bwapi/bwapi/BWAPILIB/Source/Player.o /home/ubuntu/shared/bwapi/bwapi/BWAPILIB/Source/DamageType.o /home/ubuntu/shared/bwapi/bwapi/BWAPILIB/Source/Race.o /home/ubuntu/shared/bwapi/bwapi/BWAPILIB/Source/UpgradeType.o /home/ubuntu/shared/bwapi/bwapi/BWAPILIB/Source/BroodwarOutputDevice.o /home/ubuntu/shared/bwapi/bwapi/BWAPILIB/Source/Forceset.o /home/ubuntu/shared/bwapi/bwapi/BWAPILIB/Source/Regionset.o /home/ubuntu/shared/bwapi/bwapi/BWAPILIB/Source/GameType.o /home/ubuntu/shared/bwapi/bwapi/BWAPILIB/Source/Streams.o /home/ubuntu/shared/bwapi/bwapi/BWAPILIB/Source/AIModule.o /home/ubuntu/shared/bwapi/bwapi/BWAPILIB/Source/BWAPI.o /home/ubuntu/shared/bwapi/bwapi/BWAPILIB/Source/ExplosionType.o /home/ubuntu/shared/bwapi/bwapi/BWAPILIB/Source/Filters.o /home/ubuntu/shared/bwapi/bwapi/BWAPILIB/Source/WeaponType.o /home/ubuntu/shared/bwapi/bwapi/BWAPILIB/Source/Event.o /home/ubuntu/shared/bwapi/bwapi/BWAPILIB/Source/Position.o /home/ubuntu/shared/bwapi/bwapi/BWAPILIB/Source/Unit.o /home/ubuntu/shared/bwapi/bwapi/BWAPILIB/UnitCommand.o source/ScriptPlayerPolicy.o source/Player_UCT.o source/JSONTools.o source/Action.o source/Timer.o source/Game.o source/Eval.o source/PGSParameters.o source/WeaponProperties.o source/Player_AttackClosest.o source/Player_Script.o source/Player.o source/GameState.o source/Map.o source/MoveArray.o source/GameStateUnitData.o source/Common.o source/AIParameters.o source/SparCraftException.o source/SparCraft.o source/MoveIterator.o source/ConfigTools.o source/TutorialCode.o source/UnitProperties.o source/PortfolioGreedySearch.o source/ActionGenerators.o source/PlayerProperties.o source/AITools.o source/Player_PortfolioGreedySearch.o source/Unit.o source/AllPlayers.o source/UCTSearch.o source/Move.o source/Config.o source/SparCraftAssert.o source/Player_Random.o source/main/main_statevis.o source/main/SparCraftExperiment.o source/main/main.o source/gui/GUIGame.o source/gui/GUI.o source/gui/GUITools.o -o bin/SparCraft -lGL -lGLU -lSDL2_image `sdl2-config --libs`
source/main/main.o: In function `main':
main.cpp:(.text.startup+0x0): multiple definition of `main'
source/main/main_statevis.o:main_statevis.cpp:(.text.startup+0x0): first defined here
/usr/bin/ld: source/main/main_statevis.o: undefined reference to symbol 'XGetWindowAttributes'
//usr/lib/x86_64-linux-gnu/libX11.so.6: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
Makefile:17: recipe for target 'SparCraft' failed
make: *** [SparCraft] Error 1
I'd appreciate any guidance!
I try play with other bot under the multiplayer mode, but some time the bot behave very strange, like the unit->morph return true in code, but in fact the unit required resource do not meet, so the morph order fail in game...
but when I play single, the bot works fine...
When I try to compile the project in visual studio 2015, I met the problem that attempting to reference deleted function.
Error C2280 “BWAPI::Unitset &BWAPI::Unitset::operator =(const BWAPI::Unitset &)”: attempt to reference deleted function UAlbertaBot F:\0.starcraft\Basic\ualbertabot\UAlbertaBot\source\MicroManager.cpp
What's wrong with the codes? Please help!
I downloaded the ai from here. ( https://www.cs.mun.ca/~dchurchill/starcraftaicomp/2021/bots/ )
UAIBertaBot using the exe file, but the other AI's are dll files.
Another problem is
Starts with replay and ends immediately.
How can I start UAIBertabot with a replay?
Probe, Probe, Probe, Probe, Pylon, Gateway
Builds the Pylon but the Gateway is not built and all workers are set to B. Works fine if a Probe separates the Pylon and Gateway.
I suspect this has something to do with there being no legal build spot for the Gateway since the Pylon isn't finished yet
Note for me to fix it
Made some corrections to the experiments so that BOSS can start them all.
{
"Experiments" :
{
"BuildOrderPlot" :
{
"Run" : true,
"Type" : "BuildOrderPlot",
"OutputDir" : "gnuplot/",
"OutputFile" : "Zerg_BO_Plot.txt",
"Scenarios" :
[
{ "State" : "Zerg Start State", "BuildOrder" : "3 Hatch Muta" },
{ "State" : "Zerg Start State", "BuildOrder" : "3 Hatch Muta 2" }
]
},
"TestCombatSearch" :
{
"Run" : false,
"Type" : "CombatSearch",
"SearchTypes" : [ "BestResponse", "Integral", "Bucket"],
"Race" : "Protoss",
"State" : "Protoss Start State",
"PrintNewBest" : true,
"SearchTimeLimitMS" : 1200000,
"FrameTimeLimit" : 4500,
"RelevantActions" : [ "Protoss_Probe", "Protoss_Pylon", "Protoss_Nexus", "Protoss_Assimilator", "Protoss_Gateway", "Protoss_Zealot", "Protoss_Cybernetics_Core", "Protoss_Dragoon" ],
"MaxActions" : [ ["Protoss_Nexus", 1], ["Protoss_Assimilator", 1], ["Protoss_Cybernetics_Core", 1], ["Protoss_Pylon", 6], ["Protoss_Gateway", 3] ],
"AlwaysMakeWorkers" : true,
"OpeningBuildOrder" : "Protoss Opening Book",
"BestResponseParams":
{
"EnemyState" : "Protoss Start State",
"EnemyBuildOrder" : "8 Zealots"
}
},
"DT Rush" :
{
"Run" : false,
"Type" : "BuildOrderPlot",
"OutputDir" : "gnuplot/",
"OutputFile" : "DTRush_Opt.txt",
"Scenarios" :
[
{ "State" : "Protoss Start State", "BuildOrder" : "UAB DT Rush" }
]
}
},
"States" :
{
"Protoss Start State" : { "race" : "Protoss", "minerals" : 50, "gas" : 0, "units" : [ ["Protoss_Probe", 4], ["Protoss_Nexus", 1] ] },
"Zerg Start State" : { "race" : "Zerg", "minerals" : 50, "gas" : 0, "units" : [ ["Zerg_Drone", 4], ["Zerg_Hatchery", 1], ["Zerg_Overlord", 1] ] },
"Terran Start State" : { "race" : "Terran", "minerals" : 50, "gas" : 0, "units" : [ ["Terran_SCV", 4], ["Terran_Command_Center", 1] ] }
},
"Build Orders" :
{
"Empty" : [ ],
"Protoss Opening Book" : [ "Protoss_Probe", "Protoss_Probe", "Protoss_Probe", "Protoss_Probe", "Protoss_Pylon"],
"Zerg Opening Book" : [ "Zerg_Drone", "Zerg_Drone", "Zerg_Drone", "Zerg_Drone", "Zerg_Overlord" ],
"Terran Opening Book" : [ "Terran_SCV", "Terran_SCV", "Terran_SCV", "Terran_SCV", "Terran_Supply_Depot" ],
"3 Hatch Muta" : [ "Zerg_Drone", "Zerg_Drone", "Zerg_Drone", "Zerg_Drone", "Zerg_Overlord", "Zerg_Drone", "Zerg_Drone", "Zerg_Drone", "Zerg_Drone", "Zerg_Hatchery", "Zerg_Spawning_Pool", "Zerg_Drone", "Zerg_Drone", "Zerg_Hatchery", "Zerg_Extractor", "Zerg_Drone", "Zerg_Drone", "Zerg_Drone", "Zerg_Overlord", "Zerg_Lair", "Zerg_Extractor", "Zerg_Drone", "Zerg_Drone", "Zerg_Zergling", "Zerg_Zergling", "Zerg_Zergling", "Zerg_Drone", "Zerg_Drone", "Zerg_Drone", "Zerg_Drone", "Zerg_Overlord", "Zerg_Drone", "Zerg_Overlord", "Zerg_Drone", "Zerg_Overlord", "Zerg_Spire", "Zerg_Drone", "Zerg_Drone", "Zerg_Drone", "Zerg_Drone", "Zerg_Drone", "Zerg_Mutalisk", "Zerg_Mutalisk", "Zerg_Mutalisk", "Zerg_Mutalisk", "Zerg_Mutalisk", "Zerg_Mutalisk", "Zerg_Mutalisk", "Zerg_Mutalisk", "Zerg_Mutalisk", "Zerg_Mutalisk", "Zerg_Mutalisk", "Zerg_Mutalisk" ],
"3 Hatch Muta 2" : [ "Zerg_Drone", "Zerg_Drone", "Zerg_Drone", "Zerg_Overlord", "Zerg_Drone", "Zerg_Drone", "Zerg_Drone", "Zerg_Drone", "Zerg_Hatchery", "Zerg_Spawning_Pool", "Zerg_Drone", "Zerg_Drone", "Zerg_Hatchery", "Zerg_Extractor", "Zerg_Drone", "Zerg_Drone", "Zerg_Drone", "Zerg_Overlord", "Zerg_Lair", "Zerg_Extractor", "Zerg_Drone", "Zerg_Drone", "Zerg_Zergling", "Zerg_Zergling", "Zerg_Zergling", "Zerg_Drone", "Zerg_Drone", "Zerg_Drone", "Zerg_Drone", "Zerg_Overlord", "Zerg_Drone", "Zerg_Overlord", "Zerg_Drone", "Zerg_Overlord", "Zerg_Spire", "Zerg_Drone", "Zerg_Drone", "Zerg_Drone", "Zerg_Drone", "Zerg_Drone", "Zerg_Mutalisk", "Zerg_Mutalisk", "Zerg_Mutalisk", "Zerg_Mutalisk", "Zerg_Mutalisk", "Zerg_Mutalisk", "Zerg_Mutalisk", "Zerg_Mutalisk", "Zerg_Mutalisk", "Zerg_Mutalisk", "Zerg_Mutalisk", "Zerg_Mutalisk" ],
"8 Zealots" : [ "Protoss_Probe", "Protoss_Probe", "Protoss_Probe", "Protoss_Probe", "Protoss_Pylon", "Protoss_Probe", "Protoss_Probe", "Protoss_Gateway", "Protoss_Probe", "Protoss_Probe", "Protoss_Gateway", "Protoss_Probe", "Protoss_Gateway", "Protoss_Pylon", "Protoss_Pylon", "Protoss_Zealot", "Protoss_Zealot", "Protoss_Zealot", "Protoss_Zealot", "Protoss_Zealot", "Protoss_Zealot", "Protoss_Zealot", "Protoss_Zealot" ],
"UAB Zealot Rush" : [ "Protoss_Probe", "Protoss_Probe", "Protoss_Probe", "Protoss_Probe", "Protoss_Pylon", "Protoss_Probe", "Protoss_Gateway", "Protoss_Gateway", "Protoss_Probe", "Protoss_Probe", "Protoss_Zealot", "Protoss_Pylon", "Protoss_Zealot", "Protoss_Zealot", "Protoss_Probe", "Protoss_Zealot", "Protoss_Zealot", "Protoss_Probe", "Protoss_Pylon", "Protoss_Zealot", "Protoss_Gateway", "Protoss_Probe", "Protoss_Pylon", "Protoss_Probe", "Protoss_Zealot", "Protoss_Probe", "Protoss_Zealot", "Protoss_Zealot", "Protoss_Zealot", "Protoss_Zealot", "Protoss_Pylon", "Protoss_Probe", "Protoss_Zealot", "Protoss_Zealot", "Protoss_Zealot" ],
"UAB DT Rush" : [ "Protoss_Probe", "Protoss_Probe", "Protoss_Probe", "Protoss_Probe", "Protoss_Pylon", "Protoss_Probe", "Protoss_Gateway", "Protoss_Probe", "Protoss_Assimilator", "Protoss_Probe", "Protoss_Cybernetics_Core", "Protoss_Probe", "Protoss_Citadel_of_Adun", "Protoss_Probe", "Protoss_Templar_Archives", "Protoss_Gateway", "Protoss_Dark_Templar", "Protoss_Dark_Templar", "Protoss_Pylon", "Protoss_Dark_Templar", "Protoss_Dark_Templar", "Protoss_Probe", "Protoss_Pylon", "Protoss_Probe"],
"UAB Dragoon Rush" : [ "Protoss_Probe", "Protoss_Probe", "Protoss_Probe", "Protoss_Probe", "Protoss_Pylon", "Protoss_Probe", "Protoss_Probe", "Protoss_Gateway", "Protoss_Probe", "Protoss_Assimilator", "Protoss_Probe", "Protoss_Probe", "Protoss_Cybernetics_Core", "Protoss_Probe", "Protoss_Probe", "Protoss_Gateway", "Singularity_Charge", "Protoss_Dragoon", "Protoss_Gateway", "Protoss_Pylon", "Protoss_Dragoon", "Protoss_Dragoon", "Protoss_Probe", "Protoss_Gateway", "Protoss_Pylon", "Protoss_Probe", "Protoss_Dragoon", "Protoss_Dragoon", "Protoss_Dragoon"],
"Build Order" : [ "Terran_SCV", "Terran_Barracks", "Terran_Marine", "Terran_Marine", "Terran_Refinery", "Terran_Engineering_Bay", "Terran_Bunker"]
},
"Build Order Search Goals" :
{
"2 Dark Templars" : { "race" : "Protoss", "goal" : [ ["Protoss_Dark_Templar", 2] ], "goalMax" : [] },
"8 Zealots 2 Dragoons" : { "race" : "Protoss", "goal" : [ ["Protoss_Zealot", 8], ["Protoss_Dragoon", 2] ], "goalMax" : [] },
"6 Mutalisks" : { "race" : "Zerg", "goal" : [ ["Zerg_Mutalisk", 6] ], "goalMax" : [] }
}
}
I'm curious if you have looked into Recast and Detour for navmeshes and pathfinding, etc.
Sparcraft build fails on my Xubuntu 15.10 system. I did the following:
sudo apt-get install freeglut3 freeglut3-dev libsdl2-dev libsdl2-gfx-dev libsdl2-image-dev libsdl1.2-dev
# cd Sparcraft root
g++ -O3 source/*.cpp bwapidata/include/*.cpp source/glfont/*.cc -Ibwapidata/include -Isource/glfont -o SparCraft `sdl-config --cflags --libs` -lGL -lGLU -lSDL_image
and got a bunch of errors (pasted at the end because they're long).
Some of my system info:
$ uname -a
Linux xublap1510 4.2.0-18-generic #22-Ubuntu SMP Fri Nov 6 18:25:50 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
$ gcc --version
gcc (Ubuntu 5.2.1-22ubuntu2) 5.2.1 20151010
Here's the error messages:
In file included from source/UnitAction.hpp:4:0,
from source/Unit.h:5,
from source/MoveArray.h:5,
from source/GameState.h:5,
from source/Player.h:4,
from source/AllPlayers.h:4,
from source/AllPlayers.cpp:1:
source/Position.hpp: In constructor ‘SparCraft::Position::Position(const BWAPI::Position&)’:
source/Position.hpp:31:17: error: cannot resolve overloaded function ‘x’ based on conversion to type ‘SparCraft::PositionType {aka int}’
, _y(p.y)
^
source/Position.hpp:31:17: error: cannot resolve overloaded function ‘y’ based on conversion to type ‘SparCraft::PositionType {aka int}’
In file included from source/GameState.h:7:0,
from source/Player.h:4,
from source/AllPlayers.h:4,
from source/AllPlayers.cpp:1:
source/Map.hpp: At global scope:
source/Map.hpp:55:25: error: expected ‘)’ before ‘&’ token
Map(BWAPI::GameWrapper & game)
^
source/AllPlayers.cpp:31:1: error: expected ‘}’ at end of input
}
^
In file included from source/GameState.h:7:0,
from source/Player.h:4,
from source/AllPlayers.h:4,
from source/AllPlayers.cpp:1:
source/Map.hpp:53:5: error: expected unqualified-id at end of input
}
^
source/Map.hpp:53:5: error: expected ‘}’ at end of input
In file included from source/UnitAction.hpp:4:0,
from source/Unit.h:5,
from source/MoveArray.h:5,
from source/GameState.h:5,
from source/Player.h:4,
from source/AllPlayers.h:4,
from source/AlphaBetaSearch.h:5,
from source/AlphaBetaSearch.cpp:1:
source/Position.hpp: In constructor ‘SparCraft::Position::Position(const BWAPI::Position&)’:
source/Position.hpp:31:17: error: cannot resolve overloaded function ‘x’ based on conversion to type ‘SparCraft::PositionType {aka int}’
, _y(p.y)
^
source/Position.hpp:31:17: error: cannot resolve overloaded function ‘y’ based on conversion to type ‘SparCraft::PositionType {aka int}’
In file included from source/GameState.h:7:0,
from source/Player.h:4,
from source/AllPlayers.h:4,
from source/AlphaBetaSearch.h:5,
from source/AlphaBetaSearch.cpp:1:
source/Map.hpp: At global scope:
source/Map.hpp:55:25: error: expected ‘)’ before ‘&’ token
Map(BWAPI::GameWrapper & game)
^
source/AlphaBetaSearch.cpp:538:1: error: expected ‘}’ at end of input
}
^
In file included from source/GameState.h:7:0,
from source/Player.h:4,
from source/AllPlayers.h:4,
from source/AlphaBetaSearch.h:5,
from source/AlphaBetaSearch.cpp:1:
source/Map.hpp:53:5: error: expected unqualified-id at end of input
}
^
source/Map.hpp:53:5: error: expected ‘}’ at end of input
source/Common.cpp:4:29: warning: extended initializer lists only available with -std=c++11 or -std=gnu++11
char SPARCRAFT_LOGFILE[100] { "sparcraft_error_log.txt" };
^
In file included from source/UnitAction.hpp:4:0,
from source/Unit.h:5,
from source/MoveArray.h:5,
from source/GameState.h:5,
from source/Game.h:4,
from source/Game.cpp:1:
source/Position.hpp: In constructor ‘SparCraft::Position::Position(const BWAPI::Position&)’:
source/Position.hpp:31:17: error: cannot resolve overloaded function ‘x’ based on conversion to type ‘SparCraft::PositionType {aka int}’
, _y(p.y)
^
source/Position.hpp:31:17: error: cannot resolve overloaded function ‘y’ based on conversion to type ‘SparCraft::PositionType {aka int}’
In file included from source/GameState.h:7:0,
from source/Game.h:4,
from source/Game.cpp:1:
source/Map.hpp: At global scope:
source/Map.hpp:55:25: error: expected ‘)’ before ‘&’ token
Map(BWAPI::GameWrapper & game)
^
source/Game.cpp:231:1: error: expected ‘}’ at end of input
}
^
In file included from source/GameState.h:7:0,
from source/Game.h:4,
from source/Game.cpp:1:
source/Map.hpp:53:5: error: expected unqualified-id at end of input
}
^
source/Map.hpp:53:5: error: expected ‘}’ at end of input
In file included from source/UnitAction.hpp:4:0,
from source/Unit.h:5,
from source/MoveArray.h:5,
from source/GameState.h:5,
from source/GameState.cpp:1:
source/Position.hpp: In constructor ‘SparCraft::Position::Position(const BWAPI::Position&)’:
source/Position.hpp:31:17: error: cannot resolve overloaded function ‘x’ based on conversion to type ‘SparCraft::PositionType {aka int}’
, _y(p.y)
^
source/Position.hpp:31:17: error: cannot resolve overloaded function ‘y’ based on conversion to type ‘SparCraft::PositionType {aka int}’
In file included from source/GameState.h:7:0,
from source/GameState.cpp:1:
source/Map.hpp: At global scope:
source/Map.hpp:55:25: error: expected ‘)’ before ‘&’ token
Map(BWAPI::GameWrapper & game)
^
source/GameState.cpp:1100:1: error: expected ‘}’ at end of input
}
^
In file included from source/GameState.h:7:0,
from source/GameState.cpp:1:
source/Map.hpp:53:5: error: expected unqualified-id at end of input
}
^
source/Map.hpp:53:5: error: expected ‘}’ at end of input
In file included from source/UnitAction.hpp:4:0,
from source/Unit.h:5,
from source/MoveArray.h:5,
from source/GameState.h:5,
from source/Player.h:4,
from source/SparCraft.h:6,
from source/main.cpp:1:
source/Position.hpp: In constructor ‘SparCraft::Position::Position(const BWAPI::Position&)’:
source/Position.hpp:31:17: error: cannot resolve overloaded function ‘x’ based on conversion to type ‘SparCraft::PositionType {aka int}’
, _y(p.y)
^
source/Position.hpp:31:17: error: cannot resolve overloaded function ‘y’ based on conversion to type ‘SparCraft::PositionType {aka int}’
In file included from source/GameState.h:7:0,
from source/Player.h:4,
from source/SparCraft.h:6,
from source/main.cpp:1:
source/Map.hpp: At global scope:
source/Map.hpp:55:25: error: expected ‘)’ before ‘&’ token
Map(BWAPI::GameWrapper & game)
^
source/main.cpp:32:1: error: expected ‘}’ at end of input
}
^
In file included from source/GameState.h:7:0,
from source/Player.h:4,
from source/SparCraft.h:6,
from source/main.cpp:1:
source/Map.hpp:53:5: error: expected unqualified-id at end of input
}
^
source/Map.hpp:53:5: error: expected ‘}’ at end of input
In file included from source/UnitAction.hpp:4:0,
from source/Unit.h:5,
from source/MoveArray.h:5,
from source/MoveArray.cpp:1:
source/Position.hpp: In constructor ‘SparCraft::Position::Position(const BWAPI::Position&)’:
source/Position.hpp:31:17: error: cannot resolve overloaded function ‘x’ based on conversion to type ‘SparCraft::PositionType {aka int}’
, _y(p.y)
^
source/Position.hpp:31:17: error: cannot resolve overloaded function ‘y’ based on conversion to type ‘SparCraft::PositionType {aka int}’
source/MoveArray.cpp: In member function ‘void SparCraft::MoveArray::shuffleMoveActions()’:
source/MoveArray.cpp:70:13: error: ‘random_shuffle’ is not a member of ‘std’
std::random_shuffle(&_moves[u][moveBegin], &_moves[u][moveEnd]);
^
source/MoveArray.cpp: In member function ‘void SparCraft::MoveArray::printCurrentMoveIndex()’:
source/MoveArray.cpp:88:44: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long unsigned int’ [-Wformat=]
printf("%d ", _currentMovesIndex[u]);
^
In file included from source/UnitAction.hpp:4:0,
from source/Unit.h:5,
from source/MoveArray.h:5,
from source/GameState.h:5,
from source/Player.h:4,
from source/Player_AlphaBeta.h:4,
from source/Player_AlphaBeta.cpp:1:
source/Position.hpp: In constructor ‘SparCraft::Position::Position(const BWAPI::Position&)’:
source/Position.hpp:31:17: error: cannot resolve overloaded function ‘x’ based on conversion to type ‘SparCraft::PositionType {aka int}’
, _y(p.y)
^
source/Position.hpp:31:17: error: cannot resolve overloaded function ‘y’ based on conversion to type ‘SparCraft::PositionType {aka int}’
In file included from source/GameState.h:7:0,
from source/Player.h:4,
from source/Player_AlphaBeta.h:4,
from source/Player_AlphaBeta.cpp:1:
source/Map.hpp: At global scope:
source/Map.hpp:55:25: error: expected ‘)’ before ‘&’ token
Map(BWAPI::GameWrapper & game)
^
source/Player_AlphaBeta.cpp:49:1: error: expected ‘}’ at end of input
}
^
In file included from source/GameState.h:7:0,
from source/Player.h:4,
from source/Player_AlphaBeta.h:4,
from source/Player_AlphaBeta.cpp:1:
source/Map.hpp:53:5: error: expected unqualified-id at end of input
}
^
source/Map.hpp:53:5: error: expected ‘}’ at end of input
In file included from source/UnitAction.hpp:4:0,
from source/Unit.h:5,
from source/MoveArray.h:5,
from source/GameState.h:5,
from source/Player.h:4,
from source/Player_AttackClosest.h:4,
from source/Player_AttackClosest.cpp:1:
source/Position.hpp: In constructor ‘SparCraft::Position::Position(const BWAPI::Position&)’:
source/Position.hpp:31:17: error: cannot resolve overloaded function ‘x’ based on conversion to type ‘SparCraft::PositionType {aka int}’
, _y(p.y)
^
source/Position.hpp:31:17: error: cannot resolve overloaded function ‘y’ based on conversion to type ‘SparCraft::PositionType {aka int}’
In file included from source/GameState.h:7:0,
from source/Player.h:4,
from source/Player_AttackClosest.h:4,
from source/Player_AttackClosest.cpp:1:
source/Map.hpp: At global scope:
source/Map.hpp:55:25: error: expected ‘)’ before ‘&’ token
Map(BWAPI::GameWrapper & game)
^
source/Player_AttackClosest.cpp:78:1: error: expected ‘}’ at end of input
}
^
In file included from source/GameState.h:7:0,
from source/Player.h:4,
from source/Player_AttackClosest.h:4,
from source/Player_AttackClosest.cpp:1:
source/Map.hpp:53:5: error: expected unqualified-id at end of input
}
^
source/Map.hpp:53:5: error: expected ‘}’ at end of input
In file included from source/UnitAction.hpp:4:0,
from source/Unit.h:5,
from source/MoveArray.h:5,
from source/GameState.h:5,
from source/Player.h:4,
from source/Player_AttackDPS.h:4,
from source/Player_AttackDPS.cpp:1:
source/Position.hpp: In constructor ‘SparCraft::Position::Position(const BWAPI::Position&)’:
source/Position.hpp:31:17: error: cannot resolve overloaded function ‘x’ based on conversion to type ‘SparCraft::PositionType {aka int}’
, _y(p.y)
^
source/Position.hpp:31:17: error: cannot resolve overloaded function ‘y’ based on conversion to type ‘SparCraft::PositionType {aka int}’
In file included from source/GameState.h:7:0,
from source/Player.h:4,
from source/Player_AttackDPS.h:4,
from source/Player_AttackDPS.cpp:1:
source/Map.hpp: At global scope:
source/Map.hpp:55:25: error: expected ‘)’ before ‘&’ token
Map(BWAPI::GameWrapper & game)
^
source/Player_AttackDPS.cpp:78:1: error: expected ‘}’ at end of input
}
^
In file included from source/GameState.h:7:0,
from source/Player.h:4,
from source/Player_AttackDPS.h:4,
from source/Player_AttackDPS.cpp:1:
source/Map.hpp:53:5: error: expected unqualified-id at end of input
}
^
source/Map.hpp:53:5: error: expected ‘}’ at end of input
In file included from source/UnitAction.hpp:4:0,
from source/Unit.h:5,
from source/MoveArray.h:5,
from source/GameState.h:5,
from source/Player.h:4,
from source/Player_AttackWeakest.h:4,
from source/Player_AttackWeakest.cpp:1:
source/Position.hpp: In constructor ‘SparCraft::Position::Position(const BWAPI::Position&)’:
source/Position.hpp:31:17: error: cannot resolve overloaded function ‘x’ based on conversion to type ‘SparCraft::PositionType {aka int}’
, _y(p.y)
^
source/Position.hpp:31:17: error: cannot resolve overloaded function ‘y’ based on conversion to type ‘SparCraft::PositionType {aka int}’
In file included from source/GameState.h:7:0,
from source/Player.h:4,
from source/Player_AttackWeakest.h:4,
from source/Player_AttackWeakest.cpp:1:
source/Map.hpp: At global scope:
source/Map.hpp:55:25: error: expected ‘)’ before ‘&’ token
Map(BWAPI::GameWrapper & game)
^
source/Player_AttackWeakest.cpp:76:1: error: expected ‘}’ at end of input
}
^
In file included from source/GameState.h:7:0,
from source/Player.h:4,
from source/Player_AttackWeakest.h:4,
from source/Player_AttackWeakest.cpp:1:
source/Map.hpp:53:5: error: expected unqualified-id at end of input
}
^
source/Map.hpp:53:5: error: expected ‘}’ at end of input
In file included from source/UnitAction.hpp:4:0,
from source/Unit.h:5,
from source/MoveArray.h:5,
from source/GameState.h:5,
from source/Player.h:4,
from source/Player_Cluster.h:4,
from source/Player_Cluster.cpp:1:
source/Position.hpp: In constructor ‘SparCraft::Position::Position(const BWAPI::Position&)’:
source/Position.hpp:31:17: error: cannot resolve overloaded function ‘x’ based on conversion to type ‘SparCraft::PositionType {aka int}’
, _y(p.y)
^
source/Position.hpp:31:17: error: cannot resolve overloaded function ‘y’ based on conversion to type ‘SparCraft::PositionType {aka int}’
In file included from source/GameState.h:7:0,
from source/Player.h:4,
from source/Player_Cluster.h:4,
from source/Player_Cluster.cpp:1:
source/Map.hpp: At global scope:
source/Map.hpp:55:25: error: expected ‘)’ before ‘&’ token
Map(BWAPI::GameWrapper & game)
^
source/Player_Cluster.cpp:56:1: error: expected ‘}’ at end of input
}
^
In file included from source/GameState.h:7:0,
from source/Player.h:4,
from source/Player_Cluster.h:4,
from source/Player_Cluster.cpp:1:
source/Map.hpp:53:5: error: expected unqualified-id at end of input
}
^
source/Map.hpp:53:5: error: expected ‘}’ at end of input
In file included from source/UnitAction.hpp:4:0,
from source/Unit.h:5,
from source/MoveArray.h:5,
from source/GameState.h:5,
from source/Player.h:4,
from source/Player.cpp:1:
source/Position.hpp: In constructor ‘SparCraft::Position::Position(const BWAPI::Position&)’:
source/Position.hpp:31:17: error: cannot resolve overloaded function ‘x’ based on conversion to type ‘SparCraft::PositionType {aka int}’
, _y(p.y)
^
source/Position.hpp:31:17: error: cannot resolve overloaded function ‘y’ based on conversion to type ‘SparCraft::PositionType {aka int}’
In file included from source/GameState.h:7:0,
from source/Player.h:4,
from source/Player.cpp:1:
source/Map.hpp: At global scope:
source/Map.hpp:55:25: error: expected ‘)’ before ‘&’ token
Map(BWAPI::GameWrapper & game)
^
source/Player.cpp:19:1: error: expected ‘}’ at end of input
}
^
In file included from source/GameState.h:7:0,
from source/Player.h:4,
from source/Player.cpp:1:
source/Map.hpp:53:5: error: expected unqualified-id at end of input
}
^
source/Map.hpp:53:5: error: expected ‘}’ at end of input
In file included from source/UnitAction.hpp:4:0,
from source/Unit.h:5,
from source/MoveArray.h:5,
from source/GameState.h:5,
from source/Player.h:4,
from source/Player_Kiter.h:4,
from source/Player_Kiter.cpp:1:
source/Position.hpp: In constructor ‘SparCraft::Position::Position(const BWAPI::Position&)’:
source/Position.hpp:31:17: error: cannot resolve overloaded function ‘x’ based on conversion to type ‘SparCraft::PositionType {aka int}’
, _y(p.y)
^
source/Position.hpp:31:17: error: cannot resolve overloaded function ‘y’ based on conversion to type ‘SparCraft::PositionType {aka int}’
In file included from source/GameState.h:7:0,
from source/Player.h:4,
from source/Player_Kiter.h:4,
from source/Player_Kiter.cpp:1:
source/Map.hpp: At global scope:
source/Map.hpp:55:25: error: expected ‘)’ before ‘&’ token
Map(BWAPI::GameWrapper & game)
^
source/Player_Kiter.cpp:99:1: error: expected ‘}’ at end of input
}
^
In file included from source/GameState.h:7:0,
from source/Player.h:4,
from source/Player_Kiter.h:4,
from source/Player_Kiter.cpp:1:
source/Map.hpp:53:5: error: expected unqualified-id at end of input
}
^
source/Map.hpp:53:5: error: expected ‘}’ at end of input
In file included from source/UnitAction.hpp:4:0,
from source/Unit.h:5,
from source/MoveArray.h:5,
from source/GameState.h:5,
from source/Player.h:4,
from source/Player_KiterDPS.h:4,
from source/Player_KiterDPS.cpp:1:
source/Position.hpp: In constructor ‘SparCraft::Position::Position(const BWAPI::Position&)’:
source/Position.hpp:31:17: error: cannot resolve overloaded function ‘x’ based on conversion to type ‘SparCraft::PositionType {aka int}’
, _y(p.y)
^
source/Position.hpp:31:17: error: cannot resolve overloaded function ‘y’ based on conversion to type ‘SparCraft::PositionType {aka int}’
In file included from source/GameState.h:7:0,
from source/Player.h:4,
from source/Player_KiterDPS.h:4,
from source/Player_KiterDPS.cpp:1:
source/Map.hpp: At global scope:
source/Map.hpp:55:25: error: expected ‘)’ before ‘&’ token
Map(BWAPI::GameWrapper & game)
^
source/Player_KiterDPS.cpp:100:1: error: expected ‘}’ at end of input
}
^
In file included from source/GameState.h:7:0,
from source/Player.h:4,
from source/Player_KiterDPS.h:4,
from source/Player_KiterDPS.cpp:1:
source/Map.hpp:53:5: error: expected unqualified-id at end of input
}
^
source/Map.hpp:53:5: error: expected ‘}’ at end of input
In file included from source/UnitAction.hpp:4:0,
from source/Unit.h:5,
from source/MoveArray.h:5,
from source/GameState.h:5,
from source/Player.h:4,
from source/Player_Kiter_NOKDPS.h:4,
from source/Player_Kiter_NOKDPS.cpp:1:
source/Position.hpp: In constructor ‘SparCraft::Position::Position(const BWAPI::Position&)’:
source/Position.hpp:31:17: error: cannot resolve overloaded function ‘x’ based on conversion to type ‘SparCraft::PositionType {aka int}’
, _y(p.y)
^
source/Position.hpp:31:17: error: cannot resolve overloaded function ‘y’ based on conversion to type ‘SparCraft::PositionType {aka int}’
In file included from source/GameState.h:7:0,
from source/Player.h:4,
from source/Player_Kiter_NOKDPS.h:4,
from source/Player_Kiter_NOKDPS.cpp:1:
source/Map.hpp: At global scope:
source/Map.hpp:55:25: error: expected ‘)’ before ‘&’ token
Map(BWAPI::GameWrapper & game)
^
source/Player_Kiter_NOKDPS.cpp:127:1: error: expected ‘}’ at end of input
}
^
In file included from source/GameState.h:7:0,
from source/Player.h:4,
from source/Player_Kiter_NOKDPS.h:4,
from source/Player_Kiter_NOKDPS.cpp:1:
source/Map.hpp:53:5: error: expected unqualified-id at end of input
}
^
source/Map.hpp:53:5: error: expected ‘}’ at end of input
In file included from source/UnitAction.hpp:4:0,
from source/Unit.h:5,
from source/MoveArray.h:5,
from source/GameState.h:5,
from source/Player.h:4,
from source/Player_NOKDPS.h:4,
from source/Player_NOKDPS.cpp:1:
source/Position.hpp: In constructor ‘SparCraft::Position::Position(const BWAPI::Position&)’:
source/Position.hpp:31:17: error: cannot resolve overloaded function ‘x’ based on conversion to type ‘SparCraft::PositionType {aka int}’
, _y(p.y)
^
source/Position.hpp:31:17: error: cannot resolve overloaded function ‘y’ based on conversion to type ‘SparCraft::PositionType {aka int}’
In file included from source/GameState.h:7:0,
from source/Player.h:4,
from source/Player_NOKDPS.h:4,
from source/Player_NOKDPS.cpp:1:
source/Map.hpp: At global scope:
source/Map.hpp:55:25: error: expected ‘)’ before ‘&’ token
Map(BWAPI::GameWrapper & game)
^
source/Player_NOKDPS.cpp:100:1: error: expected ‘}’ at end of input
}
^
In file included from source/GameState.h:7:0,
from source/Player.h:4,
from source/Player_NOKDPS.h:4,
from source/Player_NOKDPS.cpp:1:
source/Map.hpp:53:5: error: expected unqualified-id at end of input
}
^
source/Map.hpp:53:5: error: expected ‘}’ at end of input
In file included from source/UnitAction.hpp:4:0,
from source/Unit.h:5,
from source/MoveArray.h:5,
from source/GameState.h:5,
from source/Player.h:4,
from source/Player_PortfolioGreedySearch.h:4,
from source/Player_PortfolioGreedySearch.cpp:1:
source/Position.hpp: In constructor ‘SparCraft::Position::Position(const BWAPI::Position&)’:
source/Position.hpp:31:17: error: cannot resolve overloaded function ‘x’ based on conversion to type ‘SparCraft::PositionType {aka int}’
, _y(p.y)
^
source/Position.hpp:31:17: error: cannot resolve overloaded function ‘y’ based on conversion to type ‘SparCraft::PositionType {aka int}’
In file included from source/GameState.h:7:0,
from source/Player.h:4,
from source/Player_PortfolioGreedySearch.h:4,
from source/Player_PortfolioGreedySearch.cpp:1:
source/Map.hpp: At global scope:
source/Map.hpp:55:25: error: expected ‘)’ before ‘&’ token
Map(BWAPI::GameWrapper & game)
^
source/Player_PortfolioGreedySearch.cpp:28:1: error: expected ‘}’ at end of input
}
^
In file included from source/GameState.h:7:0,
from source/Player.h:4,
from source/Player_PortfolioGreedySearch.h:4,
from source/Player_PortfolioGreedySearch.cpp:1:
source/Map.hpp:53:5: error: expected unqualified-id at end of input
}
^
source/Map.hpp:53:5: error: expected ‘}’ at end of input
source/PlayerProperties.cpp: In member function ‘void SparCraft::PlayerProperties::Capture(const BWAPI::Player&)’:
source/PlayerProperties.cpp:54:27: error: base operand of ‘->’ has non-pointer type ‘const BWAPI::Player’
upgradeLevel[i] = player->getUpgradeLevel(i);
^
source/PlayerProperties.cpp:59:28: error: base operand of ‘->’ has non-pointer type ‘const BWAPI::Player’
hasResearched[i] = player->hasResearched(i);
^
In file included from source/UnitAction.hpp:4:0,
from source/Unit.h:5,
from source/MoveArray.h:5,
from source/GameState.h:5,
from source/Player.h:4,
from source/Player_Random.h:4,
from source/Player_Random.cpp:1:
source/Position.hpp: In constructor ‘SparCraft::Position::Position(const BWAPI::Position&)’:
source/Position.hpp:31:17: error: cannot resolve overloaded function ‘x’ based on conversion to type ‘SparCraft::PositionType {aka int}’
, _y(p.y)
^
source/Position.hpp:31:17: error: cannot resolve overloaded function ‘y’ based on conversion to type ‘SparCraft::PositionType {aka int}’
In file included from source/GameState.h:7:0,
from source/Player.h:4,
from source/Player_Random.h:4,
from source/Player_Random.cpp:1:
source/Map.hpp: At global scope:
source/Map.hpp:55:25: error: expected ‘)’ before ‘&’ token
Map(BWAPI::GameWrapper & game)
^
source/Player_Random.cpp:17:1: error: expected ‘}’ at end of input
}
^
In file included from source/GameState.h:7:0,
from source/Player.h:4,
from source/Player_Random.h:4,
from source/Player_Random.cpp:1:
source/Map.hpp:53:5: error: expected unqualified-id at end of input
}
^
source/Map.hpp:53:5: error: expected ‘}’ at end of input
In file included from source/UnitAction.hpp:4:0,
from source/Unit.h:5,
from source/MoveArray.h:5,
from source/GameState.h:5,
from source/Player.h:4,
from source/Player_UCT.h:4,
from source/Player_UCT.cpp:1:
source/Position.hpp: In constructor ‘SparCraft::Position::Position(const BWAPI::Position&)’:
source/Position.hpp:31:17: error: cannot resolve overloaded function ‘x’ based on conversion to type ‘SparCraft::PositionType {aka int}’
, _y(p.y)
^
source/Position.hpp:31:17: error: cannot resolve overloaded function ‘y’ based on conversion to type ‘SparCraft::PositionType {aka int}’
In file included from source/GameState.h:7:0,
from source/Player.h:4,
from source/Player_UCT.h:4,
from source/Player_UCT.cpp:1:
source/Map.hpp: At global scope:
source/Map.hpp:55:25: error: expected ‘)’ before ‘&’ token
Map(BWAPI::GameWrapper & game)
^
source/Player_UCT.cpp:29:1: error: expected ‘}’ at end of input
}
^
In file included from source/GameState.h:7:0,
from source/Player.h:4,
from source/Player_UCT.h:4,
from source/Player_UCT.cpp:1:
source/Map.hpp:53:5: error: expected unqualified-id at end of input
}
^
source/Map.hpp:53:5: error: expected ‘}’ at end of input
In file included from source/UnitAction.hpp:4:0,
from source/Unit.h:5,
from source/MoveArray.h:5,
from source/GameState.h:5,
from source/PortfolioGreedySearch.h:4,
from source/PortfolioGreedySearch.cpp:1:
source/Position.hpp: In constructor ‘SparCraft::Position::Position(const BWAPI::Position&)’:
source/Position.hpp:31:17: error: cannot resolve overloaded function ‘x’ based on conversion to type ‘SparCraft::PositionType {aka int}’
, _y(p.y)
^
source/Position.hpp:31:17: error: cannot resolve overloaded function ‘y’ based on conversion to type ‘SparCraft::PositionType {aka int}’
In file included from source/GameState.h:7:0,
from source/PortfolioGreedySearch.h:4,
from source/PortfolioGreedySearch.cpp:1:
source/Map.hpp: At global scope:
source/Map.hpp:55:25: error: expected ‘)’ before ‘&’ token
Map(BWAPI::GameWrapper & game)
^
source/PortfolioGreedySearch.cpp:165:1: error: expected ‘}’ at end of input
}
^
In file included from source/GameState.h:7:0,
from source/PortfolioGreedySearch.h:4,
from source/PortfolioGreedySearch.cpp:1:
source/Map.hpp:53:5: error: expected unqualified-id at end of input
}
^
source/Map.hpp:53:5: error: expected ‘}’ at end of input
In file included from source/UnitAction.hpp:4:0,
from source/Unit.h:5,
from source/MoveArray.h:5,
from source/GameState.h:5,
from source/Player.h:4,
from source/SparCraft.h:6,
from source/SearchExperiment.h:3,
from source/SearchExperiment.cpp:1:
source/Position.hpp: In constructor ‘SparCraft::Position::Position(const BWAPI::Position&)’:
source/Position.hpp:31:17: error: cannot resolve overloaded function ‘x’ based on conversion to type ‘SparCraft::PositionType {aka int}’
, _y(p.y)
^
source/Position.hpp:31:17: error: cannot resolve overloaded function ‘y’ based on conversion to type ‘SparCraft::PositionType {aka int}’
In file included from source/GameState.h:7:0,
from source/Player.h:4,
from source/SparCraft.h:6,
from source/SearchExperiment.h:3,
from source/SearchExperiment.cpp:1:
source/Map.hpp: At global scope:
source/Map.hpp:55:25: error: expected ‘)’ before ‘&’ token
Map(BWAPI::GameWrapper & game)
^
source/SearchExperiment.cpp:955:1: error: expected ‘}’ at end of input
}
^
In file included from source/GameState.h:7:0,
from source/Player.h:4,
from source/SparCraft.h:6,
from source/SearchExperiment.h:3,
from source/SearchExperiment.cpp:1:
source/Map.hpp:53:5: error: expected unqualified-id at end of input
}
^
source/Map.hpp:53:5: error: expected ‘}’ at end of input
In file included from source/UnitAction.hpp:4:0,
from source/Unit.h:5,
from source/MoveArray.h:5,
from source/GameState.h:5,
from source/Player.h:4,
from source/SparCraft.h:6,
from source/SparCraft.cpp:1:
source/Position.hpp: In constructor ‘SparCraft::Position::Position(const BWAPI::Position&)’:
source/Position.hpp:31:17: error: cannot resolve overloaded function ‘x’ based on conversion to type ‘SparCraft::PositionType {aka int}’
, _y(p.y)
^
source/Position.hpp:31:17: error: cannot resolve overloaded function ‘y’ based on conversion to type ‘SparCraft::PositionType {aka int}’
In file included from source/GameState.h:7:0,
from source/Player.h:4,
from source/SparCraft.h:6,
from source/SparCraft.cpp:1:
source/Map.hpp: At global scope:
source/Map.hpp:55:25: error: expected ‘)’ before ‘&’ token
Map(BWAPI::GameWrapper & game)
^
source/SparCraft.cpp:20:1: error: expected ‘}’ at end of input
}
^
In file included from source/GameState.h:7:0,
from source/Player.h:4,
from source/SparCraft.h:6,
from source/SparCraft.cpp:1:
source/Map.hpp:53:5: error: expected unqualified-id at end of input
}
^
source/Map.hpp:53:5: error: expected ‘}’ at end of input
In file included from source/UnitAction.hpp:4:0,
from source/Unit.h:5,
from source/MoveArray.h:5,
from source/GameState.h:5,
from source/TranspositionTable.h:5,
from source/TranspositionTable.cpp:1:
source/Position.hpp: In constructor ‘SparCraft::Position::Position(const BWAPI::Position&)’:
source/Position.hpp:31:17: error: cannot resolve overloaded function ‘x’ based on conversion to type ‘SparCraft::PositionType {aka int}’
, _y(p.y)
^
source/Position.hpp:31:17: error: cannot resolve overloaded function ‘y’ based on conversion to type ‘SparCraft::PositionType {aka int}’
In file included from source/GameState.h:7:0,
from source/TranspositionTable.h:5,
from source/TranspositionTable.cpp:1:
source/Map.hpp: At global scope:
source/Map.hpp:55:25: error: expected ‘)’ before ‘&’ token
Map(BWAPI::GameWrapper & game)
^
source/TranspositionTable.cpp:210:1: error: expected ‘}’ at end of input
}
^
In file included from source/GameState.h:7:0,
from source/TranspositionTable.h:5,
from source/TranspositionTable.cpp:1:
source/Map.hpp:53:5: error: expected unqualified-id at end of input
}
^
source/Map.hpp:53:5: error: expected ‘}’ at end of input
In file included from source/UnitAction.hpp:4:0,
from source/Unit.h:5,
from source/MoveArray.h:5,
from source/GameState.h:5,
from source/Player.h:4,
from source/SparCraft.h:6,
from source/TutorialCode.cpp:1:
source/Position.hpp: In constructor ‘SparCraft::Position::Position(const BWAPI::Position&)’:
source/Position.hpp:31:17: error: cannot resolve overloaded function ‘x’ based on conversion to type ‘SparCraft::PositionType {aka int}’
, _y(p.y)
^
source/Position.hpp:31:17: error: cannot resolve overloaded function ‘y’ based on conversion to type ‘SparCraft::PositionType {aka int}’
In file included from source/GameState.h:7:0,
from source/Player.h:4,
from source/SparCraft.h:6,
from source/TutorialCode.cpp:1:
source/Map.hpp: At global scope:
source/Map.hpp:55:25: error: expected ‘)’ before ‘&’ token
Map(BWAPI::GameWrapper & game)
^
source/TutorialCode.cpp:172:1: error: expected ‘}’ at end of input
}
^
In file included from source/GameState.h:7:0,
from source/Player.h:4,
from source/SparCraft.h:6,
from source/TutorialCode.cpp:1:
source/Map.hpp:53:5: error: expected unqualified-id at end of input
}
^
source/Map.hpp:53:5: error: expected ‘}’ at end of input
In file included from source/UnitAction.hpp:4:0,
from source/Unit.h:5,
from source/MoveArray.h:5,
from source/GameState.h:5,
from source/UCTSearch.h:6,
from source/UCTSearch.cpp:1:
source/Position.hpp: In constructor ‘SparCraft::Position::Position(const BWAPI::Position&)’:
source/Position.hpp:31:17: error: cannot resolve overloaded function ‘x’ based on conversion to type ‘SparCraft::PositionType {aka int}’
, _y(p.y)
^
source/Position.hpp:31:17: error: cannot resolve overloaded function ‘y’ based on conversion to type ‘SparCraft::PositionType {aka int}’
In file included from source/GameState.h:7:0,
from source/UCTSearch.h:6,
from source/UCTSearch.cpp:1:
source/Map.hpp: At global scope:
source/Map.hpp:55:25: error: expected ‘)’ before ‘&’ token
Map(BWAPI::GameWrapper & game)
^
source/UCTSearch.cpp:499:1: error: expected ‘}’ at end of input
}
^
In file included from source/GameState.h:7:0,
from source/UCTSearch.h:6,
from source/UCTSearch.cpp:1:
source/Map.hpp:53:5: error: expected unqualified-id at end of input
}
^
source/Map.hpp:53:5: error: expected ‘}’ at end of input
In file included from source/UnitAction.hpp:4:0,
from source/Unit.h:5,
from source/Unit.cpp:1:
source/Position.hpp: In constructor ‘SparCraft::Position::Position(const BWAPI::Position&)’:
source/Position.hpp:31:17: error: cannot resolve overloaded function ‘x’ based on conversion to type ‘SparCraft::PositionType {aka int}’
, _y(p.y)
^
source/Position.hpp:31:17: error: cannot resolve overloaded function ‘y’ based on conversion to type ‘SparCraft::PositionType {aka int}’
source/Unit.cpp: In member function ‘const string SparCraft::Unit::name() const’:
source/Unit.cpp:576:5: error: ‘replace’ is not a member of ‘std’
std::replace(n.begin(), n.end(), ' ', '_');
^
source/UnitProperties.cpp: In static member function ‘static void SparCraft::UnitProperties::Init()’:
source/UnitProperties.cpp:62:38: warning: range-based ‘for’ loops only available with -std=c++11 or -std=gnu++11
for (const BWAPI::UnitType & type : BWAPI::UnitTypes::allUnitTypes())
^
In file included from source/UnitAction.hpp:4:0,
from source/Unit.h:5,
from source/MoveArray.h:5,
from source/GameState.h:5,
from source/UnitScriptData.h:4,
from source/UnitScriptData.cpp:1:
source/Position.hpp: In constructor ‘SparCraft::Position::Position(const BWAPI::Position&)’:
source/Position.hpp:31:17: error: cannot resolve overloaded function ‘x’ based on conversion to type ‘SparCraft::PositionType {aka int}’
, _y(p.y)
^
source/Position.hpp:31:17: error: cannot resolve overloaded function ‘y’ based on conversion to type ‘SparCraft::PositionType {aka int}’
In file included from source/GameState.h:7:0,
from source/UnitScriptData.h:4,
from source/UnitScriptData.cpp:1:
source/Map.hpp: At global scope:
source/Map.hpp:55:25: error: expected ‘)’ before ‘&’ token
Map(BWAPI::GameWrapper & game)
^
source/UnitScriptData.cpp:89:1: error: expected ‘}’ at end of input
}
^
In file included from source/GameState.h:7:0,
from source/UnitScriptData.h:4,
from source/UnitScriptData.cpp:1:
source/Map.hpp:53:5: error: expected unqualified-id at end of input
}
^
source/Map.hpp:53:5: error: expected ‘}’ at end of input
source/WeaponProperties.cpp: In static member function ‘static void SparCraft::WeaponProperties::Init()’:
source/WeaponProperties.cpp:56:43: warning: range-based ‘for’ loops only available with -std=c++11 or -std=gnu++11
for (const BWAPI::WeaponType & type : BWAPI::WeaponTypes::allWeaponTypes())
It seems that after I build a few combat units that are in the Production queue, the game crashes with "Trying to access squad that doesn't exist". Do the units have to be added to a squad manually after creation?
I am using BOSS to set small build goals (e.g. build 2 dragoons , etc.). The production manager and everything else is working fine.
const std::string GameState::toString() const
It should return a string instead of printing to cout.
https://github.com/davechurchill/ualbertabot/blob/master/UAlbertaBot/Source/UnitUtil.cpp#L81
GetWeapon(attacker, target) != BWAPI::UnitTypes::None
should be:
GetWeapon(attacker, target) != BWAPI::WeaponTypes::None
Hi,
I tried to install UalbertaBot, I installed bwapi 4.1.2, installed bwta (moved the windows files to c:\Windows directory, added environment variables, compiled with visual studio 2013 professional (compilation was successful), opened chaos launcher as admin, gave the the right destination in the configuration file and started the game with UalbertaBot as protoss, but the game freezes at the start every time, do you know what's the problem or what I should do?
thank
In UAlbertaBot/Source/CombatSimulation.cpp line 105:
if (onlyZerglings && (numZealots*3 > numZerglings))
I think you mean numZealots > numZerglings*3, right? :P
In the sparcraft_update branch, UAB is unable to find any expansions on Andromeda.
Andromeda has the closest natural minerals to main base out of all the SSCAIT maps, which could be a factor.
The link given in step 1 of the Installation Instructions for upgrading to version 1.16.1 no longer contains that specific patch available for download. The user is instead linked to the full download of StarCraft, which installs the most recent version (1.18.x at the moment).
According to bwapi/bwapi#710 1.18.x "won't be supported for some time", so this installation step should be changed.
After scrolling through the comments on your video on Youtube I found one person who has the same issue as I do. He says:
"At about 10:50, where I should have the bot activating, I get an error message that reads
"ERROR: Failed to load the AI Module " followed by the path I told Chaoslauncher to read. I've checked three times and it is the correct path, and leads to UAlbertaBot.dll. What could be causing this problem?"
You replied by saying: "Michael McGuire usually caused by a space in the path to the dll".
I've uninstalled and reinstalled everything several times. Is there a solution to this problem yet?
This is a long-standing issue. Please add support for zerg build orders
i got rid of the spaces, in starcraft ai dir to become starcraftai dir.
I sorted out boost being in a nested directory ...
now i get this?
AllPlayers.cpp
e:\starcraftai\ualbertabot_aiide_2013_2014\ualbertabot\src\ualbertabot_aiide_2013_source_full\sparcraft\source\Position.hpp(31): error C2064: term does not evaluate to a function taking 0 arguments
If the build order goal has a queued nexus/pylon, and the probe has the action called to go put down this supply structure, but then is killed onroute, the pylon/nexus is removed from the build order goal like desired, however a flag that says whether or not a supplybuilding is building is not properly reset, making it so that the deadlock check returns the incorrect answer.
This bug is most easily noticed when the bot tries to expand for the first time at ~40 supply, if the probe is intercepted no more pylons will be attempted to be built even when supply blocked.
When compiling I get these errors:
3>..\Source\BOSSManager.cpp(54): error C2039: 'GetNaiveBuildOrder' : is not a member of 'BOSS::Tools'
3>..\Source\BOSSManager.cpp(54): error C2660: 'UAlbertaBot::BOSSManager::GetNaiveBuildOrder' : function does not take 2 arguments
3>..\Source\BOSSManager.cpp(198): error C2039: 'GetNaiveBuildOrder' : is not a member of 'BOSS::Tools'
3>..\Source\BOSSManager.cpp(198): error C2660: 'UAlbertaBot::BOSSManager::GetNaiveBuildOrder' : function does not take 2 arguments
2> AllPlayers.cpp
1>C:\Program Files (x86)\boost_1_55_0\boost_1_55_0\boost\foreach.hpp(30): fatal error C1083: Cannot open include file: 'boost/config.hpp': No such file or directory
I downloaded 1_55_0 boost to program files and linked it in windows environment as
BOOST_DIR
still have problems of not finding boost/config.hpp etc etc
C:\Program Files (x86)\boost_1_55_0\boost_1_55_0\boost\foreach.hpp(30): fatal error C1083: Cannot open include file: 'boost/config.hpp': No such file or directory
1> test.cpp
2>e:\starcraft ai\ualbertabot_aiide_2013_2014\ualbertabot\src\ualbertabot_aiide_2013_source_full\sparcraft\source\Position.hpp(29): error C2064: term does not evaluate to a function taking 0 arguments
2>e:\starcraft ai\ualbertabot_aiide_2013_2014\ualbertabot\src\ualbertabot_aiide_2013_source_full\sparcraft\source\Position.hpp(31): error C2064: term does not evaluate to a function taking 0 arguments
2>e:\starcraft ai\ualbertabot_aiide_2013_2014\ualbertabot\src\ualbertabot_aiide_2013_source_full\sparcraft\source\Hash.h(5): fatal error C1083: Cannot open include file: 'boost/array.hpp': No such file or directory
2> AlphaBetaSearch.cpp
1>C:\Program Files (x86)\boost_1_55_0\boost_1_55_0\boost\foreach.hpp(30): fatal error C1083: Cannot open include file: 'boost/config.hpp': No such file or directory
2>e:\starcraft ai\ualbertabot_aiide_2013_2014\ualbertabot\src\ualbertabot_aiide_2013_source_full\sparcraft\source\Position.hpp(29): error C2064: term does not evaluate to a function taking 0 arguments
2>e:\starcraft ai\ualbertabot_aiide_2013_2014\ualbertabot\src\ualbertabot_aiide_2013_source_full\sparcraft\source\Position.hpp(31): error C2064: term does not evaluate to a function taking 0 arguments
2>e:\starcraft ai\ualbertabot_aiide_2013_2014\ualbertabot\src\ualbertabot_aiide_2013_source_full\sparcraft\source\Hash.h(5): fatal error C1083: Cannot open include file: 'boost/array.hpp': No such file or directory
2> AnimationFrameData.cpp
2> Common.cpp
2> Display.cpp
2> EnumData.cpp
2> Game.cpp
2>e:\starcraft ai\ualbertabot_aiide_2013_2014\ualbertabot\src\ualbertabot_aiide_2013_source_full\sparcraft\source\Position.hpp(29): error C2064: term does not evaluate to a function taking 0 arguments
2>e:\starcraft ai\ualbertabot_aiide_2013_2014\ualbertabot\src\ualbertabot_aiide_2013_source_full\sparcraft\source\Position.hpp(31): error C2064: term does not evaluate to a function taking 0 arguments
2>e:\starcraft ai\ualbertabot_aiide_2013_2014\ualbertabot\src\ualbertabot_aiide_2013_source_full\sparcraft\source\Hash.h(5): fatal error C1083: Cannot open include file: 'boost/array.hpp': No such file or directory
2> GameState.cpp
2>e:\starcraft ai\ualbertabot_aiide_2013_2014\ualbertabot\src\ualbertabot_aiide_2013_source_full\sparcraft\source\Position.hpp(29): error C2064: term does not evaluate to a function taking 0 arguments
2>e:\starcraft ai\ualbertabot_aiide_2013_2014\ualbertabot\src\ualbertabot_aiide_2013_source_full\sparcraft\source\Position.hpp(31): error C2064: term does not evaluate to a function taking 0 arguments
2>e:\starcraft ai\ualbertabot_aiide_2013_2014\ualbertabot\src\ualbertabot_aiide_2013_source_full\sparcraft\source\Hash.h(5): fatal error C1083: Cannot open include file: 'boost/array.hpp': No such file or directory
2> glfont.cc
2> Hash.cpp
2>e:\starcraft ai\ualbertabot_aiide_2013_2014\ualbertabot\src\ualbertabot_aiide_2013_source_full\sparcraft\source\Hash.h(5): fatal error C1083: Cannot open include file: 'boost/array.hpp': No such file or directory
2> Logger.cpp
2> MoveArray.cpp
2>e:\starcraft ai\ualbertabot_aiide_2013_2014\ualbertabot\src\ualbertabot_aiide_2013_source_full\sparcraft\source\Position.hpp(29): error C2064: term does not evaluate to a function taking 0 arguments
2>e:\starcraft ai\ualbertabot_aiide_2013_2014\ualbertabot\src\ualbertabot_aiide_2013_source_full\sparcraft\source\Position.hpp(31): error C2064: term does not evaluate to a function taking 0 arguments
2>e:\starcraft ai\ualbertabot_aiide_2013_2014\ualbertabot\src\ualbertabot_aiide_2013_source_full\sparcraft\source\Hash.h(5): fatal error C1083: Cannot open include file: 'boost/array.hpp': No such file or directory
2> Player.cpp
2>e:\starcraft ai\ualbertabot_aiide_2013_2014\ualbertabot\src\ualbertabot_aiide_2013_source_full\sparcraft\source\Position.hpp(29): error C2064: term does not evaluate to a function taking 0 arguments
2>e:\starcraft ai\ualbertabot_aiide_2013_2014\ualbertabot\src\ualbertabot_aiide_2013_source_full\sparcraft\source\Position.hpp(31): error C2064: term does not evaluate to a function taking 0 arguments
2>e:\starcraft ai\ualbertabot_aiide_2013_2014\ualbertabot\src\ualbertabot_aiide_2013_source_full\sparcraft\source\Hash.h(5): fatal error C1083: Cannot open include file: 'boost/array.hpp': No such file or directory
2> PlayerProperties.cpp
2>e:\starcraft ai\ualbertabot_aiide_2013_2014\ualbertabot\src\ualbertabot_aiide_2013_source_full\sparcraft\source\WeaponProperties.h(5): fatal error C1083: Cannot open include file: 'boost/foreach.hpp': No such file or directory
2> Player_AlphaBeta.cpp
2>e:\starcraft ai\ualbertabot_aiide_2013_2014\ualbertabot\src\ualbertabot_aiide_2013_source_full\sparcraft\source\Position.hpp(29): error C2064: term does not evaluate to a function taking 0 arguments
2>e:\starcraft ai\ualbertabot_aiide_2013_2014\ualbertabot\src\ualbertabot_aiide_2013_source_full\sparcraft\source\Position.hpp(31): error C2064: term does not evaluate to a function taking 0 arguments
2>e:\starcraft ai\ualbertabot_aiide_2013_2014\ualbertabot\src\ualbertabot_aiide_2013_source_full\sparcraft\source\Hash.h(5): fatal error C1083: Cannot open include file: 'boost/array.hpp': No such file or directory
2> Player_AttackClosest.cpp
2>e:\starcraft ai\ualbertabot_aiide_2013_2014\ualbertabot\src\ualbertabot_aiide_2013_source_full\sparcraft\source\Position.hpp(29): error C2064: term does not evaluate to a function taking 0 arguments
2>e:\starcraft ai\ualbertabot_aiide_2013_2014\ualbertabot\src\ualbertabot_aiide_2013_source_full\sparcraft\source\Position.hpp(31): error C2064: term does not evaluate to a function taking 0 arguments
2>e:\starcraft ai\ualbertabot_aiide_2013_2014\ualbertabot\src\ualbertabot_aiide_2013_source_full\sparcraft\source\Hash.h(5): fatal error C1083: Cannot open include file: 'boost/array.hpp': No such file or directory
2> Player_AttackDPS.cpp
2>e:\starcraft ai\ualbertabot_aiide_2013_2014\ualbertabot\src\ualbertabot_aiide_2013_source_full\sparcraft\source\Position.hpp(29): error C2064: term does not evaluate to a function taking 0 arguments
2>e:\starcraft ai\ualbertabot_aiide_2013_2014\ualbertabot\src\ualbertabot_aiide_2013_source_full\sparcraft\source\Position.hpp(31): error C2064: term does not evaluate to a function taking 0 arguments
2>e:\starcraft ai\ualbertabot_aiide_2013_2014\ualbertabot\src\ualbertabot_aiide_2013_source_full\sparcraft\source\Hash.h(5): fatal error C1083: Cannot open include file: 'boost/array.hpp': No such file or directory
2> Player_AttackWeakest.cpp
2>e:\starcraft ai\ualbertabot_aiide_2013_2014\ualbertabot\src\ualbertabot_aiide_2013_source_full\sparcraft\source\Position.hpp(29): error C2064: term does not evaluate to a function taking 0 arguments
2>e:\starcraft ai\ualbertabot_aiide_2013_2014\ualbertabot\src\ualbertabot_aiide_2013_source_full\sparcraft\source\Position.hpp(31): error C2064: term does not evaluate to a function taking 0 arguments
2>e:\starcraft ai\ualbertabot_aiide_2013_2014\ualbertabot\src\ualbertabot_aiide_2013_source_full\sparcraft\source\Hash.h(5): fatal error C1083: Cannot open include file: 'boost/array.hpp': No such file or directory
2> Player_Cluster.cpp
2>e:\starcraft ai\ualbertabot_aiide_2013_2014\ualbertabot\src\ualbertabot_aiide_2013_source_full\sparcraft\source\Position.hpp(29): error C2064: term does not evaluate to a function taking 0 arguments
2>e:\starcraft ai\ualbertabot_aiide_2013_2014\ualbertabot\src\ualbertabot_aiide_2013_source_full\sparcraft\source\Position.hpp(31): error C2064: term does not evaluate to a function taking 0 arguments
2>e:\starcraft ai\ualbertabot_aiide_2013_2014\ualbertabot\src\ualbertabot_aiide_2013_source_full\sparcraft\source\Hash.h(5): fatal error C1083: Cannot open include file: 'boost/array.hpp': No such file or directory
2> Player_Kiter.cpp
2>e:\starcraft ai\ualbertabot_aiide_2013_2014\ualbertabot\src\ualbertabot_aiide_2013_source_full\sparcraft\source\Position.hpp(29): error C2064: term does not evaluate to a function taking 0 arguments
2>e:\starcraft ai\ualbertabot_aiide_2013_2014\ualbertabot\src\ualbertabot_aiide_2013_source_full\sparcraft\source\Position.hpp(31): error C2064: term does not evaluate to a function taking 0 arguments
2>e:\starcraft ai\ualbertabot_aiide_2013_2014\ualbertabot\src\ualbertabot_aiide_2013_source_full\sparcraft\source\Hash.h(5): fatal error C1083: Cannot open include file: 'boost/array.hpp': No such file or directory
2> Compiling...
2> Player_KiterDPS.cpp
2>e:\starcraft ai\ualbertabot_aiide_2013_2014\ualbertabot\src\ualbertabot_aiide_2013_source_full\sparcraft\source\Position.hpp(29): error C2064: term does not evaluate to a function taking 0 arguments
2>e:\starcraft ai\ualbertabot_aiide_2013_2014\ualbertabot\src\ualbertabot_aiide_2013_source_full\sparcraft\source\Position.hpp(31): error C2064: term does not evaluate to a function taking 0 arguments
2>e:\starcraft ai\ualbertabot_aiide_2013_2014\ualbertabot\src\ualbertabot_aiide_2013_source_full\sparcraft\source\Hash.h(5): fatal error C1083: Cannot open include file: 'boost/array.hpp': No such file or directory
2> Player_Kiter_NOKDPS.cpp
2>e:\starcraft ai\ualbertabot_aiide_2013_2014\ualbertabot\src\ualbertabot_aiide_2013_source_full\sparcraft\source\Position.hpp(29): error C2064: term does not evaluate to a function taking 0 arguments
2>e:\starcraft ai\ualbertabot_aiide_2013_2014\ualbertabot\src\ualbertabot_aiide_2013_source_full\sparcraft\source\Position.hpp(31): error C2064: term does not evaluate to a function taking 0 arguments
2>e:\starcraft ai\ualbertabot_aiide_2013_2014\ualbertabot\src\ualbertabot_aiide_2013_source_full\sparcraft\source\Hash.h(5): fatal error C1083: Cannot open include file: 'boost/array.hpp': No such file or directory
2> Player_NOKDPS.cpp
2>e:\starcraft ai\ualbertabot_aiide_2013_2014\ualbertabot\src\ualbertabot_aiide_2013_source_full\sparcraft\source\Position.hpp(29): error C2064: term does not evaluate to a function taking 0 arguments
2>e:\starcraft ai\ualbertabot_aiide_2013_2014\ualbertabot\src\ualbertabot_aiide_2013_source_full\sparcraft\source\Position.hpp(31): error C2064: term does not evaluate to a function taking 0 arguments
2>e:\starcraft ai\ualbertabot_aiide_2013_2014\ualbertabot\src\ualbertabot_aiide_2013_source_full\sparcraft\source\Hash.h(5): fatal error C1083: Cannot open include file: 'boost/array.hpp': No such file or directory
2> Player_PortfolioGreedySearch.cpp
2>e:\starcraft ai\ualbertabot_aiide_2013_2014\ualbertabot\src\ualbertabot_aiide_2013_source_full\sparcraft\source\Position.hpp(29): error C2064: term does not evaluate to a function taking 0 arguments
2>e:\starcraft ai\ualbertabot_aiide_2013_2014\ualbertabot\src\ualbertabot_aiide_2013_source_full\sparcraft\source\Position.hpp(31): error C2064: term does not evaluate to a function taking 0 arguments
2>e:\starcraft ai\ualbertabot_aiide_2013_2014\ualbertabot\src\ualbertabot_aiide_2013_source_full\sparcraft\source\Hash.h(5): fatal error C1083: Cannot open include file: 'boost/array.hpp': No such file or directory
2> Player_Random.cpp
2>e:\starcraft ai\ualbertabot_aiide_2013_2014\ualbertabot\src\ualbertabot_aiide_2013_source_full\sparcraft\source\Position.hpp(29): error C2064: term does not evaluate to a function taking 0 arguments
2>e:\starcraft ai\ualbertabot_aiide_2013_2014\ualbertabot\src\ualbertabot_aiide_2013_source_full\sparcraft\source\Position.hpp(31): error C2064: term does not evaluate to a function taking 0 arguments
2>e:\starcraft ai\ualbertabot_aiide_2013_2014\ualbertabot\src\ualbertabot_aiide_2013_source_full\sparcraft\source\Hash.h(5): fatal error C1083: Cannot open include file: 'boost/array.hpp': No such file or directory
2> Player_UCT.cpp
2>e:\starcraft ai\ualbertabot_aiide_2013_2014\ualbertabot\src\ualbertabot_aiide_2013_source_full\sparcraft\source\Position.hpp(29): error C2064: term does not evaluate to a function taking 0 arguments
2>e:\starcraft ai\ualbertabot_aiide_2013_2014\ualbertabot\src\ualbertabot_aiide_2013_source_full\sparcraft\source\Position.hpp(31): error C2064: term does not evaluate to a function taking 0 arguments
2>e:\starcraft ai\ualbertabot_aiide_2013_2014\ualbertabot\src\ualbertabot_aiide_2013_source_full\sparcraft\source\Hash.h(5): fatal error C1083: Cannot open include file: 'boost/array.hpp': No such file or directory
2> PortfolioGreedySearch.cpp
2>e:\starcraft ai\ualbertabot_aiide_2013_2014\ualbertabot\src\ualbertabot_aiide_2013_source_full\sparcraft\source\Position.hpp(29): error C2064: term does not evaluate to a function taking 0 arguments
2>e:\starcraft ai\ualbertabot_aiide_2013_2014\ualbertabot\src\ualbertabot_aiide_2013_source_full\sparcraft\source\Position.hpp(31): error C2064: term does not evaluate to a function taking 0 arguments
2>e:\starcraft ai\ualbertabot_aiide_2013_2014\ualbertabot\src\ualbertabot_aiide_2013_source_full\sparcraft\source\Hash.h(5): fatal error C1083: Cannot open include file: 'boost/array.hpp': No such file or directory
2> SparCraft.cpp
2>e:\starcraft ai\ualbertabot_aiide_2013_2014\ualbertabot\src\ualbertabot_aiide_2013_source_full\sparcraft\source\WeaponProperties.h(5): fatal error C1083: Cannot open include file: 'boost/foreach.hpp': No such file or directory
2> Timer.cpp
2> TranspositionTable.cpp
2>e:\starcraft ai\ualbertabot_aiide_2013_2014\ualbertabot\src\ualbertabot_aiide_2013_source_full\sparcraft\source\Position.hpp(29): error C2064: term does not evaluate to a function taking 0 arguments
2>e:\starcraft ai\ualbertabot_aiide_2013_2014\ualbertabot\src\ualbertabot_aiide_2013_source_full\sparcraft\source\Position.hpp(31): error C2064: term does not evaluate to a function taking 0 arguments
2>e:\starcraft ai\ualbertabot_aiide_2013_2014\ualbertabot\src\ualbertabot_aiide_2013_source_full\sparcraft\source\Hash.h(5): fatal error C1083: Cannot open include file: 'boost/array.hpp': No such file or directory
2> UCTSearch.cpp
2>e:\starcraft ai\ualbertabot_aiide_2013_2014\ualbertabot\src\ualbertabot_aiide_2013_source_full\sparcraft\source\Position.hpp(29): error C2064: term does not evaluate to a function taking 0 arguments
2>e:\starcraft ai\ualbertabot_aiide_2013_2014\ualbertabot\src\ualbertabot_aiide_2013_source_full\sparcraft\source\Position.hpp(31): error C2064: term does not evaluate to a function taking 0 arguments
2>e:\starcraft ai\ualbertabot_aiide_2013_2014\ualbertabot\src\ualbertabot_aiide_2013_source_full\sparcraft\source\Hash.h(5): fatal error C1083: Cannot open include file: 'boost/array.hpp': No such file or directory
2> Unit.cpp
2>e:\starcraft ai\ualbertabot_aiide_2013_2014\ualbertabot\src\ualbertabot_aiide_2013_source_full\sparcraft\source\Position.hpp(29): error C2064: term does not evaluate to a function taking 0 arguments
2>e:\starcraft ai\ualbertabot_aiide_2013_2014\ualbertabot\src\ualbertabot_aiide_2013_source_full\sparcraft\source\Position.hpp(31): error C2064: term does not evaluate to a function taking 0 arguments
2>e:\starcraft ai\ualbertabot_aiide_2013_2014\ualbertabot\src\ualbertabot_aiide_2013_source_full\sparcraft\source\Hash.h(5): fatal error C1083: Cannot open include file: 'boost/array.hpp': No such file or directory
2> UnitProperties.cpp
2>e:\starcraft ai\ualbertabot_aiide_2013_2014\ualbertabot\src\ualbertabot_aiide_2013_source_full\sparcraft\source\WeaponProperties.h(5): fatal error C1083: Cannot open include file: 'boost/foreach.hpp': No such file or directory
2> UnitScriptData.cpp
2>e:\starcraft ai\ualbertabot_aiide_2013_2014\ualbertabot\src\ualbertabot_aiide_2013_source_full\sparcraft\source\Position.hpp(29): error C2064: term does not evaluate to a function taking 0 arguments
2>e:\starcraft ai\ualbertabot_aiide_2013_2014\ualbertabot\src\ualbertabot_aiide_2013_source_full\sparcraft\source\Position.hpp(31): error C2064: term does not evaluate to a function taking 0 arguments
2>e:\starcraft ai\ualbertabot_aiide_2013_2014\ualbertabot\src\ualbertabot_aiide_2013_source_full\sparcraft\source\Hash.h(5): fatal error C1083: Cannot open include file: 'boost/array.hpp': No such file or directory
2> WeaponProperties.cpp
2>e:\starcraft ai\ualbertabot_aiide_2013_2014\ualbertabot\src\ualbertabot_aiide_2013_source_full\sparcraft\source\WeaponProperties.h(5): fatal error C1083: Cannot open include file: 'boost/foreach.hpp': No such file or directory
3>------ Rebuild All started: Project: UAlbertaBot, Configuration: Release Win32 ------
3> BuildLearner.cpp
3>E:\starcraft ai\UAlbertaBot_AIIDE_2013_2014\UAlbertaBot\src\UAlbertaBot_AIIDE_2013_Source_Full\UAlbertaBot\Source\Common.h(19): fatal error C1083: Cannot open include file: 'boost/foreach.hpp': No such file or directory
3> CombatSimulation.cpp
3>e:\starcraft ai\ualbertabot_aiide_2013_2014\ualbertabot\src\ualbertabot_aiide_2013_source_full\ualbertabot\source\Common.h(19): fatal error C1083: Cannot open include file: 'boost/foreach.hpp': No such file or directory
3> MicroSearchManager.cpp
3> BuildingData.cpp
3>E:\starcraft ai\UAlbertaBot_AIIDE_2013_2014\UAlbertaBot\src\UAlbertaBot_AIIDE_2013_Source_Full\UAlbertaBot\Source\Common.h(19): fatal error C1083: Cannot open include file: 'boost/foreach.hpp': No such file or directory
3> BuildingManager.cpp
3>E:\starcraft ai\UAlbertaBot_AIIDE_2013_2014\UAlbertaBot\src\UAlbertaBot_AIIDE_2013_Source_Full\UAlbertaBot\Source\Common.h(19): fatal error C1083: Cannot open include file: 'boost/foreach.hpp': No such file or directory
3> BuildingPlacer.cpp
3>E:\starcraft ai\UAlbertaBot_AIIDE_2013_2014\UAlbertaBot\src\UAlbertaBot_AIIDE_2013_Source_Full\UAlbertaBot\Source\Common.h(19): fatal error C1083: Cannot open include file: 'boost/foreach.hpp': No such file or directory
3> BuildOrderGoalManager.cpp
3>E:\starcraft ai\UAlbertaBot_AIIDE_2013_2014\UAlbertaBot\src\UAlbertaBot_AIIDE_2013_Source_Full\UAlbertaBot\Source\Common.h(19): fatal error C1083: Cannot open include file: 'boost/foreach.hpp': No such file or directory
3> BuildOrderQueue.cpp
3>E:\starcraft ai\UAlbertaBot_AIIDE_2013_2014\UAlbertaBot\src\UAlbertaBot_AIIDE_2013_Source_Full\UAlbertaBot\Source\Common.h(19): fatal error C1083: Cannot open include file: 'boost/foreach.hpp': No such file or directory
3> ProductionManager.cpp
3>E:\starcraft ai\UAlbertaBot_AIIDE_2013_2014\UAlbertaBot\src\UAlbertaBot_AIIDE_2013_Source_Full\UAlbertaBot\Source\Common.h(19): fatal error C1083: Cannot open include file: 'boost/foreach.hpp': No such file or directory
3> StarcraftBuildOrderSearchManager.cpp
3>E:\starcraft ai\UAlbertaBot_AIIDE_2013_2014\UAlbertaBot\src\UAlbertaBot_AIIDE_2013_Source_Full\UAlbertaBot\Source\Common.h(19): fatal error C1083: Cannot open include file: 'boost/foreach.hpp': No such file or directory
3> WorkerData.cpp
3>E:\starcraft ai\UAlbertaBot_AIIDE_2013_2014\UAlbertaBot\src\UAlbertaBot_AIIDE_2013_Source_Full\UAlbertaBot\Source\Common.h(19): fatal error C1083: Cannot open include file: 'boost/foreach.hpp': No such file or directory
3> WorkerManager.cpp
3>E:\starcraft ai\UAlbertaBot_AIIDE_2013_2014\UAlbertaBot\src\UAlbertaBot_AIIDE_2013_Source_Full\UAlbertaBot\Source\Common.h(19): fatal error C1083: Cannot open include file: 'boost/foreach.hpp': No such file or directory
3> CombatCommander.cpp
3>e:\starcraft ai\ualbertabot_aiide_2013_2014\ualbertabot\src\ualbertabot_aiide_2013_source_full\ualbertabot\source\Common.h(19): fatal error C1083: Cannot open include file: 'boost/foreach.hpp': No such file or directory
3> Common.cpp
3>e:\starcraft ai\ualbertabot_aiide_2013_2014\ualbertabot\src\ualbertabot_aiide_2013_source_full\ualbertabot\source\Common.h(19): fatal error C1083: Cannot open include file: 'boost/foreach.hpp': No such file or directory
3> Dll.cpp
3>..\Source\Dll.cpp(8): fatal error C1083: Cannot open include file: 'BWTA.h': No such file or directory
3> GameCommander.cpp
3>e:\starcraft ai\ualbertabot_aiide_2013_2014\ualbertabot\src\ualbertabot_aiide_2013_source_full\ualbertabot\source\Common.h(19): fatal error C1083: Cannot open include file: 'boost/foreach.hpp': No such file or directory
3> HardCodedInfo.cpp
3> InformationManager.cpp
3>e:\starcraft ai\ualbertabot_aiide_2013_2014\ualbertabot\src\ualbertabot_aiide_2013_source_full\ualbertabot\source\Common.h(19): fatal error C1083: Cannot open include file: 'boost/foreach.hpp': No such file or directory
3> Logger.cpp
3>e:\starcraft ai\ualbertabot_aiide_2013_2014\ualbertabot\src\ualbertabot_aiide_2013_source_full\ualbertabot\source\Common.h(19): fatal error C1083: Cannot open include file: 'boost/foreach.hpp': No such file or directory
3> MapGrid.cpp
3>e:\starcraft ai\ualbertabot_aiide_2013_2014\ualbertabot\src\ualbertabot_aiide_2013_source_full\ualbertabot\source\Common.h(19): fatal error C1083: Cannot open include file: 'boost/foreach.hpp': No such file or directory
3> Running Code Analysis for C/C++...
3> Compiling...
3> MapTools.cpp
3>e:\starcraft ai\ualbertabot_aiide_2013_2014\ualbertabot\src\ualbertabot_aiide_2013_source_full\ualbertabot\source\Common.h(19): fatal error C1083: Cannot open include file: 'boost/foreach.hpp': No such file or directory
3> DetectorManager.cpp
3>E:\starcraft ai\UAlbertaBot_AIIDE_2013_2014\UAlbertaBot\src\UAlbertaBot_AIIDE_2013_Source_Full\UAlbertaBot\Source\Common.h(19): fatal error C1083: Cannot open include file: 'boost/foreach.hpp': No such file or directory
3> MeleeManager.cpp
3>E:\starcraft ai\UAlbertaBot_AIIDE_2013_2014\UAlbertaBot\src\UAlbertaBot_AIIDE_2013_Source_Full\UAlbertaBot\Source\Common.h(19): fatal error C1083: Cannot open include file: 'boost/foreach.hpp': No such file or directory
3> MicroManager.cpp
3>E:\starcraft ai\UAlbertaBot_AIIDE_2013_2014\UAlbertaBot\src\UAlbertaBot_AIIDE_2013_Source_Full\UAlbertaBot\Source\Common.h(19): fatal error C1083: Cannot open include file: 'boost/foreach.hpp': No such file or directory
3> MicroUtil.cpp
3>E:\starcraft ai\UAlbertaBot_AIIDE_2013_2014\UAlbertaBot\src\UAlbertaBot_AIIDE_2013_Source_Full\UAlbertaBot\Source\Common.h(19): fatal error C1083: Cannot open include file: 'boost/foreach.hpp': No such file or directory
3> ObserverManager.cpp
3>E:\starcraft ai\UAlbertaBot_AIIDE_2013_2014\UAlbertaBot\src\UAlbertaBot_AIIDE_2013_Source_Full\UAlbertaBot\Source\Common.h(19): fatal error C1083: Cannot open include file: 'boost/foreach.hpp': No such file or directory
3> RangedManager.cpp
3>E:\starcraft ai\UAlbertaBot_AIIDE_2013_2014\UAlbertaBot\src\UAlbertaBot_AIIDE_2013_Source_Full\UAlbertaBot\Source\Common.h(19): fatal error C1083: Cannot open include file: 'boost/foreach.hpp': No such file or directory
3> TransportManager.cpp
3>E:\starcraft ai\UAlbertaBot_AIIDE_2013_2014\UAlbertaBot\src\UAlbertaBot_AIIDE_2013_Source_Full\UAlbertaBot\Source\Common.h(19): fatal error C1083: Cannot open include file: 'boost/foreach.hpp': No such file or directory
3> Options.cpp
3> ReplayVisualizer.cpp
3>e:\starcraft ai\ualbertabot_aiide_2013_2014\ualbertabot\src\ualbertabot_aiide_2013_source_full\sparcraft\source\WeaponProperties.h(5): fatal error C1083: Cannot open include file: 'boost/foreach.hpp': No such file or directory
3> ScoutManager.cpp
3>e:\starcraft ai\ualbertabot_aiide_2013_2014\ualbertabot\src\ualbertabot_aiide_2013_source_full\ualbertabot\source\Common.h(19): fatal error C1083: Cannot open include file: 'boost/foreach.hpp': No such file or directory
3> Squad.cpp
3>e:\starcraft ai\ualbertabot_aiide_2013_2014\ualbertabot\src\ualbertabot_aiide_2013_source_full\ualbertabot\source\Common.h(19): fatal error C1083: Cannot open include file: 'boost/foreach.hpp': No such file or directory
3> SquadData.cpp
3>e:\starcraft ai\ualbertabot_aiide_2013_2014\ualbertabot\src\ualbertabot_aiide_2013_source_full\ualbertabot\source\Common.h(19): fatal error C1083: Cannot open include file: 'boost/foreach.hpp': No such file or directory
3> StrategyManager.cpp
3>e:\starcraft ai\ualbertabot_aiide_2013_2014\ualbertabot\src\ualbertabot_aiide_2013_source_full\ualbertabot\source\Common.h(19): fatal error C1083: Cannot open include file: 'boost/foreach.hpp': No such file or directory
3> UAlbertaBotModule.cpp
3>e:\starcraft ai\ualbertabot_aiide_2013_2014\ualbertabot\src\ualbertabot_aiide_2013_source_full\ualbertabot\source\Common.h(19): fatal error C1083: Cannot open include file: 'boost/foreach.hpp': No such file or directory
3> UnitCommandData.cpp
3>e:\starcraft ai\ualbertabot_aiide_2013_2014\ualbertabot\src\ualbertabot_aiide_2013_source_full\ualbertabot\source\Common.h(19): fatal error C1083: Cannot open include file: 'boost/foreach.hpp': No such file or directory
3> UnitCommandManager.cpp
3>e:\starcraft ai\ualbertabot_aiide_2013_2014\ualbertabot\src\ualbertabot_aiide_2013_source_full\ualbertabot\source\Common.h(19): fatal error C1083: Cannot open include file: 'boost/foreach.hpp': No such file or directory
3> UnitData.cpp
3>e:\starcraft ai\ualbertabot_aiide_2013_2014\ualbertabot\src\ualbertabot_aiide_2013_source_full\ualbertabot\source\Common.h(19): fatal error C1083: Cannot open include file: 'boost/foreach.hpp': No such file or directory
3> Visualizer.cpp
3>e:\starcraft ai\ualbertabot_aiide_2013_2014\ualbertabot\src\ualbertabot_aiide_2013_source_full\sparcraft\source\WeaponProperties.h(5): fatal error C1083: Cannot open include file: 'boost/foreach.hpp': No such file or directory
3> Running Code Analysis for C/C++...
========== Rebuild All: 0 succeeded, 3 failed, 0 skipped ==========
First of all, thanks for the awesome project! Very cool to see something like this working on one of my favorite games. I was trying to get the UAlbertaBot functioning, and after following the installation steps exactly as written in the wiki it gave me an error that libgmp-10.dll
was missing.
I'm quite unfamiliar with Windows development, so this might be a non-issue, but I wasn't able to get it running. I poked around until I found a couple of DLLs in the bwta2/windows
directory, which contained libgmp-10.dll
and libmpfr-4.dll
. After copying these manually to the Windows directory, things seemed to run smoothly.
Is this a reasonable solution to this problem? If so, I would be happy to update the wiki to reflect this step. Thanks again!
The output path for the Boss currently is set to the bin directory of its project. This breaks compilation of the main bot without copy and pasting the libs. Maybe a post build step could put the libs for both SparCraft and BOSS in both places (<Project>
/bin as well as UalbertaBot/VisualStudio/<Debug or Release>
/bin), or the linker paths for UAlbertaBot should be changed to look in the bin dir.
Or maybe I'm just missing something... Apologies if so.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.