pysc2 icon indicating copy to clipboard operation
pysc2 copied to clipboard

obs.observation.player.larva_count is always 0

Open Chadys opened this issue 6 years ago • 1 comments

Hello all, I'm writing a Zerg agent with the Simple64 map. Problem is, I can't use obs.observation.player.larva_count since the value is always zero. Using feature units I can see that I have several larvae on screen, but this variable stays unchanged. Any idea why that might be ?

Chadys avatar Jan 23 '19 15:01 Chadys

While a Hatchery, Lair, or Hive is 'selected', actions.FUNCTIONS.select_larva() is usable and obs.observation.player.larva_count should be checked before you call select_larva().

ethan052 avatar May 07 '19 18:05 ethan052