AndEngineTMXTiledMapExtension icon indicating copy to clipboard operation
AndEngineTMXTiledMapExtension copied to clipboard

Code require data in .tmx file to be compressed

Open Paradoxia opened this issue 11 years ago • 0 comments

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.

Paradoxia avatar Mar 31 '13 11:03 Paradoxia