mapeditor / tiled

Flexible level editor
https://www.mapeditor.org/
Other
11.17k stars 1.76k forks source link

Allow removing Terrains from Tilesets on export #3789

Open eishiya opened 1 year ago

eishiya commented 1 year ago

Terrain labels are very rarely useful outside of Tiled, and are thus often a waste of bytes for production TSX/TSJ files. For example, a 17KB TSX I have becomes 4KB if I remove the <wangsets> element.

An export option to remove all the terrain data would be a convenient alternative to removing the terrain sets manually.

Tangential issue: There's currently very little benefit to exporting Tilesets as no maps will be set to use the exported tileset file, requiring a post-export step to update the tileset references. It would be helpful to be able to automatically replace tilesets with their exported version in Maps on export somehow, e.g. by optionally assigning replacements for each Tileset that would be used if an export option like "replace tilesets on export" is used.

eishiya commented 1 year ago

This option (and any other tileset-specific export options that may be added) should probably also be applied to embedded tilesets when exporting maps, including tilesets embedded automatically via the "embed tilesets" export option.