Aseprite-Script-Examples icon indicating copy to clipboard operation
Aseprite-Script-Examples copied to clipboard

"Pack Similar Tiles.lua" script ends up with a hole in the tilemap

Open city41 opened this issue 2 years ago • 1 comments

Using this image with tile size as 16x16 and sprite sheet width of 256

level1-2

The resulting tilemap has a black pixel in it, which is 0 in the png data at (50,29)

terrain tilemap

Here is a scaled copy of the tilemap at 4x to help show the black pixel

terrain tilemap scaled

Third row up from bottom, about a third of the way across.

I am digging into this now and see if I can figure it out. But I figured I'd post here too in case this is known or anyone has any ideas.

If I figure it out, I'll submit a PR.

Oh and here is the tileset, in case that is helpful

terrain tileset

city41 avatar Dec 06 '23 18:12 city41

Ah duh, this looks to be a limitation as indexed pngs have a 256 color limit, and my tileset is 265 tiles. So probably not a bug.

city41 avatar Dec 06 '23 18:12 city41