Open DrieStone opened 13 years ago
I encountered the same problem, it happens when tile size is something else than 32x32.
I fixed it by changing the line 79 from: self._cut_tiles[index] = self.get_tile_set_image().crop((left, top, left+32, top+32)) to: self._cut_tiles[index] = self.get_tile_set_image().crop((left, top, left+self.tile_width, top+self.tile_height))
tiles in level map: 400 tiles in original tile set: 100 merging layers... Traceback (most recent call last): File "merge.py", line 276, in
composer.merge_tiles(lmap)
File "merge.py", line 177, in merge_tiles
merge_set.image.paste(part_image, None, part_image)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL/Image.py", line 1101, in paste
self.im.paste(im, box, mask.im)
ValueError: images do not match
Sample tiles can be downloaded at http://dev.bunsentech.com/src.zip