Skip to content

Code require data in .tmx file to be compressed #13

@Paradoxia

Description

@Paradoxia

I was struggling with a preDraw null pointer exception problem after attaching a TMXLayer
to the scene. After debugging I finally came to the conclusion that the texture for the tiles where never loaded. Turns out I had selected to store .tmx data uncompressed when using
Tiled Map Editor. The current code require that TMX data is stored compressed (zlib).

TMXParser.java

final boolean binarySaved = this.mDataCompression != null && this.mDataEncoding != null;

If mDataCompression is null then the texture is never loaded.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions