Skip to content

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

Open
@NullDefault

Description

@NullDefault

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions