I am trying to read layers[1]["data"] which is from tiled (so I don't have control over the data as I want to read it's raw files), and the blasted file format combines 6 datapoints (tileset ID, tile ID, flipX, flipY, flipBoth, rotate) into a single 32bit value whereas any sane developer would have separated them
as you can see in the screenshot, the data loaded does not match the data in the file and seems to be cut off
{ "compressionlevel":-1,
"height":5,
"infinite":false,
"layers":[
{
"data":[1, 2, 3, 0, 3, 2, 2147483649,
4, 5, 6, 6, 6, 2147483653, 2147483652,
0, 8, 9, 13, 2147483657, 2147483656, 0,
1073741828, 7, 10, 11, 2147483658, 2147483655, 3221225476,
1073741825, 1073741826, 1073741827, 12, 1073741827, 1073741826, 3221225473],
"height":5,
"id":1,
"name":"main",
"opacity":1,
"properties":[
{
"name":"bgcolor",
"type":"int",
"value":0
},
{
"name":"z",
"type":"int",
"value":1
}],
"type":"tilelayer",
"visible":true,
"width":7,
"x":0,
"y":0
},
{
"data":[0, 0, 0, 14, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0],
"height":5,
"id":3,
"name":"elevator",
"opacity":1,
"properties":[
{
"name":"z",
"type":"float",
"value":1.5
}],
"type":"tilelayer",
"visible":true,
"width":7,
"x":0,
"y":0
}],
"nextlayerid":4,
"nextobjectid":1,
"orientation":"orthogonal",
"renderorder":"right-down",
"tiledversion":"1.9.0",
"tileheight":40,
"tilesets":[
{
"firstgid":1,
"source":"waitingroom-tiles.json"
}],
"tilewidth":40,
"type":"map",
"version":"1.9",
"width":7
}