frankze / skynetbot

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

Skynet patch for BWAPI4 #8

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
This patch does the following:
 - Remove WalkPosition, BWAPI4 has a WalkPosition.
 - Remove Vector, use BWAPI::Point<double> with a dotProduct and normalise function.
 - Remove dependencies on boost, use C++11 equivalents (and windows API for directory structure).
 - Fix any sendText/printf issues with the % identifier.
 - Use Broodwar operator << instead of printf.
 - Use Position drawing variants instead of splitting up x and y components (draw function calls are much cleaner).
 - Use BWAPI::Point operators instead of splitting up x and y components.
 - Draw debug lines differently. It looks way cooler and uses less lines.
 - Replace BufferedDrawing with Broodwar->registerEvent.

Also this patch disables the gg'ing for now.

This helped me address this issue: 
https://code.google.com/p/bwapi/source/detail?r=4459

I did encounter 2 issues with this:
1. Sometimes the bot does nothing? I encountered it a few times in my tests, 
but I played against multiple opponents of different races.
2. I've seen a very rare crash in RegionClass::getChokepoints for some reason?
3. Later larger games crawl to a very slow pace when Skynet has several units.

Original issue reported on code.google.com by AHeinerm on 19 Dec 2013 at 9:17

Attachments:

GoogleCodeExporter commented 8 years ago
And by 2 I mean 3

Original comment by AHeinerm on 19 Dec 2013 at 9:42