Hey guys, I have a strange issue while loading tilemaps from "external source".
It's a stripped down version of my level editor. I just left ability to draw, change size, save and load tiles. Tilemap is saved into an array X:0 and after pressing Save it will save that array into a json file.
If you run the capx you can draw, save and load... and it works fine.
But if you change the width to something higher (in my case it's 41), draw a line or something from the first tile on the left to the last one on the right, save it, restart (to start fresh) and load that file you will noticed that not all tiles are displayed.
I'm saving this image
41x5 tiles in size
If you check the Array_minimaps in the debugger - last part of index X:0
"data":{"w":41,"h":5,"d":"4x-1,0,7x-1,0,7x-1,0,7x-1,0,7x-1,0,7x-1,0,-1,0,5x-1,0,-1,0,5x-1,0,-1,0,5x-1,0,-1,0,5x-1,0,-1,0,5x-1,0,3x-1,0,3x-1,0,3x-1,0,3x-1,0,3x-1,0,3x-1,0,3x-1,0,3x-1,0,3x-1,0,3x-1,0,5x-1,0,-1,0,5x-1,0,-1,0,5x-1,0,-1,0,5x-1,0,-1,0,5x-1,0,-1,0,7x-1,0,7x-1,0,7x-1,0,7x-1,0,7x-1,0"}}
"w":41 is the width in tiles of tilemap object and rest represents the tile states in current tilemap.
(Like always arrays are displayed very nicly in the debugger )
After loading back that file it look like this
If you check that array again in the debugger you can notice that everything is fine with that tilemap - size and data (or even checking the tilemap itselfs you can see that highlited size is correct), but for some reasons it's not displayed fully. At first I thought it's an issue with screen space. Not rendered tiles are simply outside of the visible area and therefore not rendered. But after some tests on different pcs and different resolutions it looks like it's random. And same happens on tilemap height as well, after some height value it gets clipped away.
Another strange thing is I can not draw tiles anymore on that missing part of the tilemap
DId I'm missing something? or Ashley did you accidentally changed something in the C2 in r209?
I don't want to post it as a bug until someone can confirm that behavior.
Here's the capx file
https://dl.dropboxusercontent.com/u/34375299/Construct%202/bugs%20and%20fixes/Load_Tilemap.capx