citymania-org / grf-py

A Python framework for making NewGRFs for OpenTTD
GNU General Public License v2.0
14 stars 3 forks source link

IndexError #36

Open SparklesReal opened 1 month ago

SparklesReal commented 1 month ago

File "/usr/local/lib/python3.12/dist-packages/grf-0.2.2.post205+git.f6b08d9f-py3.12.egg/grf/sprites.py", line 378, in get_data_layers alpha = npimg[:, :, 3]


IndexError: index 3 is out of bounds for axis 2 with size 3

I did bump the numpy version but unsure if that is what causes this problem. I was not able to get much detail out of this as i'm not used to the GRF system. Maybe i'm doing something wrong or there is detail i'm missing with this error due to my lack of knowledge of GRF.
ldpl commented 1 month ago

What code are you running to get this error?