zloop1982 / bwapi

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

Broodwar->isVisible malfunction #472

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Select map: Broodwar/Ladder/(4)Lost Temple.scm
2. Select race: zerg
3. Start game(opponent irrelevant)
4. If you or your opponent spawns at 6 o'clock restart
5. Otherwise, go make hatchery at 6 o'clock main asap
6. After the hatchery morphs for a frame the map reports:
TilePosition(31,126): visible, 0 units
TilePosition(33,125): visible, 0 units
These tiles however are occupied by mineral fields

Happens only for 1 frame though if you check for mined out minerals and remove 
them at that frame you are screwed...
It is the frame when the hatchery morphs and the vision of it expands.

Tested with(onFrame):
for each(Unit *res in Broodwar->getStaticMinerals()){
 if(Broodwar->isVisible(res->getInitialTilePosition()) && !res->isVisible()){
// mined out or error
 }
}

What version of the product are you using? On what operating system?
BWAPI 3.7.4 tested on winXP, vista

Could not reproduce by Terran or Protoss.
Tested both with LatCom on/off.

Original issue reported on code.google.com by Marian.D...@gmail.com on 14 Nov 2012 at 6:20

GoogleCodeExporter commented 9 years ago

Original comment by AHeinerm on 15 Nov 2012 at 4:27

GoogleCodeExporter commented 9 years ago
The BWAPI project is slowly undergoing the migration to GitHub. All issues have 
been migrated to the GitHub issue tracker located here: 
https://github.com/bwapi/bwapi/issues

In order to receive updates on your issue, please head over to the GitHub issue 
tracker and subscribe to your issue.

Original comment by AHeinerm on 15 Apr 2014 at 7:46