TIC-80 icon indicating copy to clipboard operation
TIC-80 copied to clipboard

Better import screen error messages

Open cxong opened this issue 2 months ago • 1 comments

When the import screen command fails, the error message doesn't tell why, so if someone is unfamiliar with this function, it takes trial and error to figure out why.

I suggest some of the following implemented:

  • Better documentation on wiki for the exact requirements of import screen
  • In the code, implement specific error messages like:
    • Image not png (or supported format)
    • Image not loaded, plus error message from decoder if available
    • Image not the right dimensions (or allow TIC-80 to handle different dimensions, via cropping, scaling or letterboxing)

cxong avatar May 03 '24 23:05 cxong

Thanks Here are my corrections to the wiki from your comments. Tell me if something is still missing.

Capture d’écran du 2024-05-07 21-05-53

I tested to import .gif and .jpg for cover image, sprites or tiles it did not work. I guess only png works but if someone knows of an other format that can be used, please tell me.

Skeptim avatar May 07 '24 19:05 Skeptim