DTE-Python / GB-TileSetMaker

A quick program to turn a given image into a hex tileset for GBDK usage.
2 stars 0 forks source link

Numpy Array Shape Mismatch #2

Closed DTE-Python closed 10 months ago

DTE-Python commented 10 months ago

in main base_image_alpha[base_image_alpha[...,-1]==0] = [255,255,255,0] ValueError: shape mismatch: value array of shape (4,) could not be broadcast to indexing result of shape (2,16)

Wasn't an error previously; looking into this.

DTE-Python commented 10 months ago

I think this comes from the image not having an alpha channel.

edit: when making the code I for some reason made the (rather dumb) assumption that every image would have an alpha channel, clearly not the case, in the next update this will be fixed.