Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
My issue is the following, when you export your map (ctrl + e) tiled asks where to export to and the filename determines the format.
But every time you export again after you have:
It would be great if tiled could "remember" the export choice (even between sessions) by saving it to the tmx file.
It would also be great if there was an option to "always export on save". So that just saving the file executes the setup method of exporting.
Yep, the same topic recently came up at issue #1584.
Actually some of those things could actually be considered bugs. Running an external command or reloading the map should not lead to Tiled forgetting the last export location and format. But indeed it would be nice if it could even be stored in the map file.
I like this suggestion. I wish it was already possible by writing a small script, but making Tiled scriptable will be a larger project for later this year. For the next release just adding such a thing as an option makes sense.
Saving this information in the file allows the export to be repeated without prompt even after restarting Tiled. This is supported for both TMX and JSON formats. At the same time, the export format is now remembered by its short name rather than a smart pointer, which makes sure that when the right format can still be picked after loading/unloading a plugin or changing an export script. The fallback to TMX or TSX formats has also been removed, since it would only cause problems to silently export in these formats when a previously used format can't be found. The export target is stored with a relative path, so that the setting may be generally useful also when the file is shared. Issue #1610