codebackup / bwapi

Automatically exported from code.google.com/p/bwapi
0 stars 0 forks source link

Error when using old revisions #385

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I am trying to get some entries from last years AIIDE tournament working but 
has run into trouble. First, the 2.8 and 3.0 revisions were not included in 3.5 
but I managed to find them on a copy of my project. The rev numbers are 2639 
and 2422.

In bwapi.ini I added

ai_dll = 
bwapi-data\AI\AIIDE2010\bot-skynet\tournament4\bwapi\ExampleAIModule.dll:2639
ai = 
bwapi-data\AI\AIIDE2010\bot-skynet\tournament4\bwapi\ExampleAIModule.dll:2639

respectively

ai_dll = 
bwapi-data\AI\AIIDE2010\bot-krasi0\tournament4\bwapi\ExampleAIModule.dll:2422
ai = 
bwapi-data\AI\AIIDE2010\bot-krasi0\tournament4\bwapi\ExampleAIModule.dll:2422

The paths are correct. If they had been wrong, an error notification would have 
been shown in Starcraft.

When I start a game it says
"bwapi revision 2639 is now live"
and after that
"Error: Failed to load the AI module"

There are no error logged in bwapi-data/logs files, just this simple message.

Do you have any idea what might cause the problem? 

I attach the above mentioned bot dll:s in case you need to test it.

Cheers,
Johan

Original issue reported on code.google.com by johan.hagelback@gmail.com on 28 Apr 2011 at 7:59

Attachments:

GoogleCodeExporter commented 9 years ago
Try:
ai_dll = 
bwapi-data\AI\AIIDE2010\bot-skynet\tournament4\bwapi\ExampleAIModule.dll
ai = 
bwapi-data\AI\AIIDE2010\bot-skynet\tournament4\bwapi\ExampleAIModule.dll:2639

Since older revisions don't parse this string, it attempts to load the colon 
and revision number as part of the file name.

Original comment by AHeinerm on 28 Apr 2011 at 6:10

GoogleCodeExporter commented 9 years ago
That seemed to be the trick. It is working now, thanks.

Original comment by johan.hagelback@gmail.com on 2 May 2011 at 12:16

GoogleCodeExporter commented 9 years ago

Original comment by AHeinerm on 3 May 2011 at 7:21