Closed heinermann closed 10 years ago
From goo...@teabix.com on February 22, 2010 07:10:05
for now use the "generateStub.bat" that is there especially for cases like this
From Nuclear...@gmail.com on February 22, 2010 07:32:46
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)
From tren...@gmail.com on February 22, 2010 08:44:17
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?).
From goo...@teabix.com on February 23, 2010 00:04:32
generateStub.bat works for both bwapi versions, but to evade any further confusion, I copied it into the bwapi folder. ( r2106 )
From AHeinerm on February 23, 2010 00:06:14
Status: Accepted
From Nuclear...@gmail.com on February 23, 2010 03:56:04
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.
From goo...@teabix.com on February 23, 2010 07:40:14
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 ).
From Nuclear...@gmail.com on February 23, 2010 12:13:38
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
From tren...@gmail.com on February 23, 2010 15:39:24
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).
From Nuclear...@gmail.com on February 24, 2010 08:12:22
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.
From tren...@gmail.com on February 24, 2010 12:19:24
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.
From Nuclear...@gmail.com on February 26, 2010 14:32:09
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.
From tren...@gmail.com on February 26, 2010 15:17:41
I tried to compile my own BWTA with boost 1.40 and CGAL 3.5.1 but that fails because of compilation errors.
From lowerlo...@gmail.com on May 21, 2010 10:04:15
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.
Status: WontFix
From tren...@gmail.com on February 22, 2010 09:48:47
What steps will reproduce the problem? 1. Install Windows 7 (Ultimate)
Original issue: http://code.google.com/p/bwapi/issues/detail?id=198