mapeditor / mapeditor/tiled

Conserve flip data on csv export

Open
#1,284 2 comments 0 reactions 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

I've been using Tiled to develop a roguelike and I recently added support for loading flipped tiles. If the 32nd bit of a tile is set (e.g. tile 4 becomes tile 2147483652) then I flip the tile horizontally when rendering it. This is exactly how the .tmx format handles flipping and it streamlines the process of porting maps into my game.

Unfortunately, exported .csv files do not have this functionality. A tile with an ID of 4 will remain 4 even if flipped or rotated. To solve this, could we have some configurable options in the Plugins tab? Alternatively, a "Conserve tile flipping on export" option in the General tab?

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

The payload names no source files or tests. Start by locating the CSV export path and the existing tile flip and rotation representation, then inspect how the Plugins and General settings are defined. Done means CSV export can be configured to preserve the relevant flipped or rotated tile data.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.