google-deepmind / google-deepmind/pysc2

Error in transformation action: argument is out of range

Open
#343 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
8.3k
Forks
1.2k
PR merge metrics
No merged PRs in 30d

Description

```
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](https://user-images.githubusercontent.com/58097859/196026342-db8f9592-de2e-4d39-a363-73db5daf9017.png)

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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.