One more question about Scripting API. I need some tiles info (type or additional custom properties) to use while exporting. As I understand it correctly currently I only have one option: tileset should be opened and then i can find it in tiled.openAssets array?
Also when I was reading tile data from gigantic tileset in loop. There have been data loses. Had to make temporary dictionary to prevent getting tile info for those I already got. But still it means it is not completely safe. Are there some async operations? What can be done to make it safe?
Actually TileLayer.tileAt returns a Tile reference, from which you should be able to get the type and custom properties. However, there is currently no way to look up the properties of the tile’s tileset yet.
I find it hard to understand exactly what you’re doing and what problem you are encountering. Could you share the relevant part of your script?
Oh I didn’t notice TileLayer.tileAt! Great thanks!
You can see all the little export code here:
Now it has that temp dictionary which I use to cache symbols for tiles I already found. But if I use TileLayer.tileAt (or Tileset.tile) everytime in a loop. It only writes the part of the export. At least I can easily reproduce it on a big map. Its like half of the map exported.