Tiled Crashes if there are missing tileset images #1393

Closed
Archeia opened this Issue Nov 9, 2016 · 4 comments

Projects

None yet

2 participants

@Archeia
Archeia commented Nov 9, 2016 edited

What happened was, my team completely disregarded what I said about tilesets being in the same folder. So I had to set them and I didn't want to do them manually in the json files, however the moment I open, Tiled crashes.
image

@Archeia Archeia changed the title from TileD Crashes if there are missing tileset images to Tiled Crashes if there are missing tileset images Nov 9, 2016
@bjorn
Owner
bjorn commented Nov 11, 2016

Hmm, in general Tiled does not crash when there are missing images, so probably something happens in your scenario that is a bit more special.

Would it be possible for you to share the JSON file that caused Tiled to crash on startup?

@Archeia
Archeia commented Nov 14, 2016

Ack, that took me a while but here you go! https://rpgmaker.net/media/content/users/778/locker/Camp.zip

@bjorn
Owner
bjorn commented Nov 14, 2016

Thanks, that helped a bunch!

It's caused by a tile animation, which is missing a check on whether the frame in the animation is actually pointing to a valid tile.

@bjorn bjorn added the Bug label Nov 14, 2016
@bjorn bjorn added a commit that closed this issue Nov 14, 2016
@bjorn Fixed possible crash when missing tileset images
This could happen when a map refers to a tileset that uses tile
animations, but the tileset image could not be loaded.

Closes #1393
325b1d3
@bjorn bjorn closed this in 325b1d3 Nov 14, 2016
@bjorn bjorn self-assigned this Nov 14, 2016
@Archeia
Archeia commented Nov 15, 2016

That makes sense, thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment