tiled question ( encoding/compression not supported )

Hello,

I open a simple empty file with tiled,  and after good following tutorial, it don’t work.

 

I have this issue : " ERROR: Tile layer encoding/compression not supported. Choose CSV or XML in map options. "

 

Thanks for helping.

Ponytiled only supports XML or CSV layer data types. Change it in Map Properties View.

7gGActF.png

I do it and with a csv types, and json export, I got no error ONLY with an empty files.

When a plot a simple image rock from the example given by ponywolf, I got an error

WARNING: External tilesets only suported for tilesheets... ERROR: Runtime error C:\Users\Yvan\Documents\Corona Projects\test\com\coronalabs\xml.lua:150: bad argument #1 to 'open' (string expected, got nil) stack traceback: [C]: in function 'open' C:\Users\Yvan\Documents\Corona Projects\test\com\coronalabs\xml.lua:150: in function 'loadFile' C:\Users\Yvan\Documents\Corona Projects\test\com\ponywolf\ponytiled.lua:130: in function 'gidLookup' C:\Users\Yvan\Documents\Corona Projects\test\com\ponywolf\ponytiled.lua:173: in function 'new' C:\Users\Yvan\Documents\Corona Projects\test\main.lua:1209: in main chunk  

In my file, I got

local tiled = require "com.ponywolf.ponytiled" local json = require("json") local path=system.pathForFile("tiled/monData.json", system.ResourceDirectory ) local monData=json.decodeFile(path) local map = tiled.new( monData )

Try use embeded tilesets and 

local map = tiled.new( monData, '/tiled/' )

You need mark option _Embed in Map _when you create new tileset.

Yes, embedding the map is crucial here. If all else fails, make sure to check the image paths in the lua or json file that was generated by Tiled.

This was what solved my problem a while ago.

Ponytiled only supports XML or CSV layer data types. Change it in Map Properties View.

7gGActF.png

I do it and with a csv types, and json export, I got no error ONLY with an empty files.

When a plot a simple image rock from the example given by ponywolf, I got an error

WARNING: External tilesets only suported for tilesheets... ERROR: Runtime error C:\Users\Yvan\Documents\Corona Projects\test\com\coronalabs\xml.lua:150: bad argument #1 to 'open' (string expected, got nil) stack traceback: [C]: in function 'open' C:\Users\Yvan\Documents\Corona Projects\test\com\coronalabs\xml.lua:150: in function 'loadFile' C:\Users\Yvan\Documents\Corona Projects\test\com\ponywolf\ponytiled.lua:130: in function 'gidLookup' C:\Users\Yvan\Documents\Corona Projects\test\com\ponywolf\ponytiled.lua:173: in function 'new' C:\Users\Yvan\Documents\Corona Projects\test\main.lua:1209: in main chunk  

In my file, I got

local tiled = require "com.ponywolf.ponytiled" local json = require("json") local path=system.pathForFile("tiled/monData.json", system.ResourceDirectory ) local monData=json.decodeFile(path) local map = tiled.new( monData )

Try use embeded tilesets and 

local map = tiled.new( monData, '/tiled/' )

You need mark option _Embed in Map _when you create new tileset.

Yes, embedding the map is crucial here. If all else fails, make sure to check the image paths in the lua or json file that was generated by Tiled.

This was what solved my problem a while ago.