Skip to content

Conversation

JochenHeizmann
Copy link
Contributor

Description

I have loaded a JSON TiledMap File but the data sections of the Tilelayer's were always null.

Here is a simple JSON to test the loader with:

{ "compressionlevel":-1,
 "height":25,
 "infinite":false,
 "layers":[
        {
         "compression":"zlib",
         "data":"eJzVV0kOxDAIa\/7\/6TmNVFVAsFlCkHrIDGZxw9LnmSPrdAAJsoSn2++tIsXfkdOpd5YtVtxMbh6MxN2NHCIxe3QRnQiHU\/iW\/DO5deXC3teq+DT+UBtdvVL73XtnLTyTQ4Q\/ti8i4s0NqXkUh\/rNijcDh7xLRq+qbqr6XAV\/aB9ksYhU7RZMzWfoWLoTZ3iWvmePjPqdwF\/2nfLav4m\/rHvA6i\/jHPXXtX9lvcPoLnOyhzJ2lvN\/1Ffl90xkLqN+LJ+euonsg9bDSnU\/sbDoOeo\/W7K+w1istmN6euBuxnT1aQYX9Snxo9XzjkO2Fnd9doftxL3x2rlzZ3rngXJ+iru\/De1cOR8le1\/+vLuHNdcq5tPXRydOs8Xyp9mZNNMkqbqDFbanSnaOkfnRKT9oHwEi",
         "encoding":"base64",
         "height":25,
         "id":1,
         "name":"main",
         "opacity":1,
         "type":"tilelayer",
         "visible":true,
         "width":80,
         "x":0,
         "y":0
        }],
 "nextlayerid":2,
 "nextobjectid":1,
 "orientation":"orthogonal",
 "renderorder":"right-down",
 "tiledversion":"1.8.2",
 "tileheight":8,
 "tilesets":[
        {
         "firstgid":1,
         "source":"world1.json"
        }],
 "tilewidth":8,
 "type":"map",
 "version":"1.8",
 "width":80
}

@JochenHeizmann JochenHeizmann changed the title Fix: Data section of Layers was null (when loading from JSON) fix: Data section of Layers was null (when loading from JSON) Jun 11, 2025
Copy link
Member

@spydon spydon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lgtm, thanks for your contribution

@spydon spydon enabled auto-merge (squash) June 16, 2025 09:13
@spydon spydon merged commit 00dbd13 into flame-engine:main Jun 16, 2025
5 checks passed
@spydon
Copy link
Member

spydon commented Jun 16, 2025

@JochenHeizmann your fix is now available in v0.11.1

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

Successfully merging this pull request may close these issues.

2 participants