Skip to content
New issue

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

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optimization for export prompt (prompted too often) #1610

Closed
jppresents opened this issue Jun 11, 2017 · 2 comments
Projects
Milestone

Comments

@jppresents
Copy link

@jppresents jppresents commented Jun 11, 2017

Hi,

My issue is the following, when you export your map (ctrl + e) tiled asks where to export to and the filename determines the format.
This is fine.

But every time you export again after you have:

  • ran an external Command
  • reloaded the map (ctrl + r)
  • restart tiled
    the export prompt behaves again as if you were exporting for the first time.

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.

Use case:
When the game you develop does not read the tmx file but the exported files (in my case json) this would make the workflow of creating and testing a level more streamlined.

@jppresents jppresents changed the title Optimization for export prompt (prompted to often) Optimization for export prompt (prompted too often) Jun 11, 2017
@bjorn

This comment has been minimized.

Copy link
Owner

@bjorn bjorn commented Jun 11, 2017

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.

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.

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.

@bjorn bjorn added this to Tiled 1.3 (next feature release) in Roadmap May 10, 2019
bjorn added a commit that referenced this issue Sep 4, 2019
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
@bjorn bjorn closed this in 749cd87 Sep 4, 2019
Roadmap automation moved this from Tiled 1.3 (next feature release) to Recently Completed Sep 4, 2019
@bjorn

This comment has been minimized.

Copy link
Owner

@bjorn bjorn commented Sep 4, 2019

Both saving the last used export file name and format, as well as an option to automatically export on save were added now. :-)

@bjorn bjorn added this to the Tiled 1.3 milestone Sep 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Roadmap
  
Recently Completed
2 participants
You can’t perform that action at this time.