mapeditor / mapeditor/tiled

Issue? When renaming Enums as part of a Class, it doesn't update in Tiles.

Open
#3,682 0 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

Maybe this is not a bug, but rather a limitation?

To Reproduce

  1. We have an enum for Tiles within a Class (e.g. "SFX_Footstep_Grass.mp3" as value in Enum "SoundEffects").
  2. Apply a class with enum / values from Enum to some Tiles. Overwrite default value of Enum in TSX, e.g. "SFX_Footstep_Grass_SpecialOne.mp3".
  3. We rename the Enum from "SoundEffects" to "BetterSoundEffects".
  4. Issue: The Enum name doesn't get updated in TSX.

Specifications:

  • OS: Win 10
  • Tiled Version: 1.10.0

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

Reproduce the rename scenario in a Tiled project using a class enum and an overridden value in a TSX file. Start by tracing how class and enum names are serialized to TSX and how renames are propagated. Done means renaming the enum updates its references in affected TSX files without changing the overridden value.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
game-dev, tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.