pysc2 icon indicating copy to clipboard operation
pysc2 copied to clipboard

visibility scale bug?

Open jtatusko opened this issue 6 years ago • 3 comments

class Visibility(enum.IntEnum):
  """Values for the `visibility` feature layers."""
  HIDDEN = 0
  SEEN = 1
  VISIBLE = 2

https://github.com/deepmind/pysc2/blob/master/pysc2/lib/features.py#L262

should scale be set to three, since there are only three possible values of visibility, or am i misunderstanding the purpose of the scale property?

jtatusko avatar Jun 19 '18 17:06 jtatusko

Same for effects enum. The effects are given scale 16 but there are only 12 possible values in the enum

jtatusko avatar Jun 19 '18 17:06 jtatusko

Should the effects enum also start at 0 like the rest? https://github.com/deepmind/pysc2/blob/master/pysc2/lib/features.py#L64

jtatusko avatar Jun 20 '18 01:06 jtatusko

You are correct. Unfortunately this is tough for us to fix given that our agents depend on this... Sorry.

tewalds avatar Feb 06 '19 17:02 tewalds