Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Better import screen error messages #2563

Open
cxong opened this issue May 3, 2024 · 1 comment
Open

Better import screen error messages #2563

cxong opened this issue May 3, 2024 · 1 comment

Comments

@cxong
Copy link

cxong commented May 3, 2024

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)
@Skeptim
Copy link
Contributor

Skeptim commented May 7, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants