Problem loading maps from Latest Tiled version - Solution found

Dyson and others,

If you are getting the following error when you try to load a new map:

runtime error:

File: mte.lua

Line: 8099

‘for’ limit must be a number

stack traceback:

mte.lua:8099: in function ‘loadMap’

main.lua:205: in main chunk

 it is because the latest version of Tiled Does not put the width and height attributes inside of the object layer.

 So simply add the following:

width=“100” height=“100”  

into the line <objectgroup name=“Object Layer 1”

This will allow your map to load properly In the Corona emulator.

So I realize that when you update the map and save it in Tiled, it will blow away that little tweak made to the file anyways.

 Much better solution is just add two properties to your objects layer inside of Tiled:

width = <number of tiles wide>

height = < number of tiles high>

this works

Thanks Steve, good to know!

Greg

So I realize that when you update the map and save it in Tiled, it will blow away that little tweak made to the file anyways.

 Much better solution is just add two properties to your objects layer inside of Tiled:

width = <number of tiles wide>

height = < number of tiles high>

this works

Thanks Steve, good to know!

Greg