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

Program crashes if the tileset is not contained in a single file. Is this expected behavior or a bug? #100

Open
NullDefault opened this issue Dec 2, 2020 · 1 comment
Labels
question Further information is requested

Comments

@NullDefault
Copy link

For context: I was testing the library with a map I made in Tiled using a custom tileset and when trying to run the program I was getting these errors:

time="2020-12-02T16:29:07-05:00" level=error msg="TileLayer.Draw: could not get batch" error="cannot create sprite from nil tileset"
time="2020-12-02T16:29:07-05:00" level=error msg="Map.DrawAll: could not draw layer" error="cannot create sprite from nil tileset"
panic: cannot create sprite from nil tileset

I was able to fix this problem by combining my multiple tileset files into a single one. I am unsure if this is expected behavior or just an unimplemented feature. Wanted to double-check.

@NullDefault NullDefault added the question Further information is requested label Dec 2, 2020
@bcvery1
Copy link
Owner

bcvery1 commented Dec 7, 2020

Hey @NullDefault I'm not 100% on the steps you took. I'm fairly sure multiple tilesets should work.

This is most likely unimplemented, but I'll need a step-by-step of what you did. At worst I'd prefer this to return a sensible error, rather than panic, if unimplemented.

Glad to hear you found a workaround.

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

No branches or pull requests

2 participants