Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Import/export tileset in any supported format #381

parasyte opened this Issue Mar 7, 2013 · 2 comments


None yet
2 participants

parasyte commented Mar 7, 2013

This is a feature request, now that JSON format maps are in development for melonJS. See: https://github.com/obiot/melonJS/issues/140

There's a little button on the Tilesets pane for exporting a tileset to a TSX file (XML). There's another little button for importing these files, as well. It would be handy if these features were backed by the plugin interface, to allow import/export of tilesets in any of the supported formats. Especially JSON. ;)

FYI, here's the tileset export function: https://github.com/bjorn/tiled/blob/master/src/tiled/tilesetdock.cpp#L650 Notice it uses a TmxMapWriter object directly.

Contrast with the map "Save As..." function: https://github.com/bjorn/tiled/blob/master/src/tiled/mainwindow.cpp#L734 which uses the plugin interface to export any supported format!

@parasyte parasyte referenced this issue in melonjs/melonJS Mar 7, 2013


Support JSON format maps #140


bjorn commented Mar 7, 2013

Right, in fact the MapWriterInterface and MapReaderInterface currently only work on maps, not tilesets. I wonder if there should be separate interfaces for tilesets or whether it makes sense to include a function for dealing with external tilesets in the existing interfaces.


bjorn commented Aug 27, 2015

Oh, this one was also closed by commit d6169b1. :-)

So external tilesets in JSON format coming in Tiled 0.14!

@bjorn bjorn closed this Aug 27, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment