flaing / jnibwapi

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

Refinery or Assimilator not registering as being created #26

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Build a Terran Refinery or Protoss Assimilator

What is the expected output? What do you see instead?
I expect an event to be generated which should get caught 
BWAPIEventListener.unitCreate(int unitID) indicating that a refinery / 
assimilator is created. But such an event never is generated.

What version of the product are you using? On what operating system?
Using revision r34. 

Please provide any additional information below.
I am not sure if this holds for Zerg, but when Protoss creates an Assimilator 
no event is triggered either. 
When I loop through all my units and check for the refinery UnitType ID, I do 
get a match though. So the problem purely is that no event is generated. And 
this can make life hard.

Original issue reported on code.google.com by rj.dre...@gmail.com on 9 Nov 2012 at 6:02

GoogleCodeExporter commented 9 years ago
Yes this is a known issue, but one related to BWAPI itself. It works this way 
because the vespene geyser changes it's unit type and no new unit is created 
for the refinery. See: http://code.google.com/p/bwapi/wiki/AIModule#onUnitCreate

Maybe an option would be to manually check the vespene geyser for a unit type 
change.

Original comment by martijn....@gmail.com on 10 Nov 2012 at 10:18