mapeditor / mapeditor/tiled

Allow removing Terrains from Tilesets on export

Open
#3,789 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
12.9k
Forks
2k
Avg merge
4h 27m
Merged PRs (30d)
8

Description

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 `` 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.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing the tileset export path for TSX and TSJ files and how the element is written. Done should include an export option that omits all terrain data; the separate idea of replacing tileset references in maps should remain separately scoped.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.