pysc2 icon indicating copy to clipboard operation
pysc2 copied to clipboard

Error in transformation action: argument is out of range

Open meifannao opened this issue 2 years ago • 0 comments

           scvs = self.get_units_by_type(obs, units.Terran.SCV)
           if len(scvs) != 0:
                    scv = random.choice(scvs)
                    return actions.FUNCTIONS.select_point('select', (scv.x, scv.y))

When I run the above code to get the coordinates of the scv, the following error appears randomly:

image

I know that an array out of bounds occurred, but don't know how to solve it in a reasonable way

Can someone tell me why this problem occurs

meifannao avatar Oct 16 '22 08:10 meifannao