Closed amigrave closed 8 years ago
@amigrave I'm very, very sorry for the extremely late reply! For some reason I never got a notification about this issue and also didn't notice it.
The situation you encountered happens when you are using an image that requires more than 256 chr tiles. The error message was improved in 1b8e2fe6a32b7464056f9a4614f416337f6890b2, and now looks like this:
> makechr 257tiles.png
Found 1 error:
NametableOverflow $100 @ tile (8y,0x)
To see errors visually, use -e command-line option.
You can use the -e flag to create an image that let's you see the error visually:
> makechr 257tiles.png -e err.png
Found 1 error:
NametableOverflow $100 @ tile (8y,0x)
Errors displayed in "err.png"
Note that makechr is not designed to compress your input image; if you give it an image with too much detail that cannot be represented in 256 chr tiles, it will always fail with this error.
You can upgrade makechr and get this improved error-handling now.
pip install makechr --upgrade
Thanks @dustmop !
And by the way, I love your work/game/blog !
Hi,
I'm trying makechr on a test image (tried an RGB and an indexed palette png):
and I got this traceback:
The value of
nt
when the exception is raised is256
.Am I doing something wrong ? The image contains only 4 colors. Am I supposed to do some prior processing on the image ?
PS: Thanks for your NES graphics blog posts, they are great !