Closed GoogleCodeExporter closed 9 years ago
for now use the "generateStub.bat" that is there especially for cases like this
Original comment by goo...@teabix.com
on 22 Feb 2010 at 3:10
Well, I have the same problem, under XP. When I run the file:
The system cannot execute the specified program.
Press any key to continue . . .
I receive the same error, when trying to build the source (using Microsoft
Visual C++
2008 Express Edition)
Original comment by Nuclear...@gmail.com
on 22 Feb 2010 at 3:32
Ok, thanks. I didn't see the generateStub.bat file since I wasn't looking into
the
bwapi3 directory. I intend to use the bwapi v2 since that is the one that is
going to
be used in the competition (I hope the svn version will be allowed or is only
the one
in the downloadable beta package accepted?).
Original comment by tren...@gmail.com
on 22 Feb 2010 at 4:44
generateStub.bat works for both bwapi versions, but to evade any further
confusion,
I copied it into the bwapi folder. (r2106)
Original comment by goo...@teabix.com
on 23 Feb 2010 at 8:04
[deleted comment]
[deleted comment]
Original comment by AHeinerm
on 23 Feb 2010 at 8:06
I started "generateStub.bat" in bwapi folder, but i still receive error
"Project :
error PRJ0019: A tool returned an error code from "Performing Pre-Build
Event...",
when building it.
Original comment by Nuclear...@gmail.com
on 23 Feb 2010 at 11:56
hmm the .exe was executed instead of the .bat in the pre-built events. fixed
that.
now the "quickfix" solution generateStub.bat should work (r2107).
Original comment by goo...@teabix.com
on 23 Feb 2010 at 3:40
OK, now it builds with no errors, but i don't know exactli, which files to
replace.
I replaced BWAPI.lib and Util.lib in my ExampleAiModile \lib folder with the new
versions. Then i recompiled my AI module (ExampleAiModule), but when i start
the
game, it uses the old BWAPI (I checked it, by modifying one of the SendText
messages
at the start of the game, but the changes don't apply).
Do i need to copy also BWAPI.dll into ChaosLauncher folder?
After the build i don't see such .dll file. in ChaosLauncherInjector there are:
DLLMain.obj,
vc90.idb,
BWAPI_ChaosLauncherInjector.bwl.intermediate.manifest,
mt.dep
Original comment by Nuclear...@gmail.com
on 23 Feb 2010 at 8:13
The BWAPI.dll file as well as the ChaosLauncher file must go into the
ChaosLauncher
directory. The Visual Studio Project for BWAPI.dll from svn looks for the
environment
variable "ChaosDir" and places the compiled dll file there.
The ExampleAIModule project has to be compiled separately and that stuff then
goes
into the bwapi-data subdirecty of the starcraft installation.
I am currently working on a CMake build script that will take care of all this
stuff
and allows one to create nmake makefiles, Visual Studio project files or Eclipse
Projects files that use the Visual C++ compiler. I do this because I prefer
Eclipse
over Visual Studio for development (it includes a handy source code formatter
and far
better syntax highlighting).
Original comment by tren...@gmail.com
on 23 Feb 2010 at 11:39
Ok, I set the ChaosDir environment variable, BWAPI build is done and 2 new files
appear in the chaoslauncher folder.
Then i copy bwapi.lib and util. lib to the lib folder of my ExampeAIModule, then
recompile it, and copy ExampleAiModule.dll to bwapi-data/AI.
But when I start a game, Starcraft crashes right after the start. When I delete
ExampleAiModule.dll, the game doesn't crash, and says cannot load the AI Module
(as
expected, because I deleted it). I tried with BWSAL, but it crashes too.
If I use the older BWAPI release with the same ExampleAIModule, it works.
Original comment by Nuclear...@gmail.com
on 24 Feb 2010 at 4:12
Same for mee. If i don't use BWTA or BWSAL libraries it works. I think if you
compile
your own BWAPI.dll you also have to compile BWTA and BWSAL with the modified
version.
Original comment by tren...@gmail.com
on 24 Feb 2010 at 8:19
Yes, the problem is in BWTA, and exactly in BWTA::readMap() function
Without it the game doesn't crash, but there is no map analysis.
Original comment by Nuclear...@gmail.com
on 26 Feb 2010 at 10:32
I tried to compile my own BWTA with boost 1.40 and CGAL 3.5.1 but that fails
because
of compilation errors.
Original comment by tren...@gmail.com
on 26 Feb 2010 at 11:17
This is a problem with SubWCRev.exe which is developed by TortoiseSVN, not
BWAPI. If
it still doesn't work you can report the problem to TortoiseSVN. New versions of
BWAPI Beta, BWTA, and BWSAL have been released which fix the other problems.
Original comment by lowerlo...@gmail.com
on 21 May 2010 at 5:04
Original issue reported on code.google.com by
tren...@gmail.com
on 22 Feb 2010 at 2:48