mapeditor / mapeditor/tiled

Custom properties JS API is non-functional

Open
#4,457 4 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

The following APIs are supposed to allow you to work with custom property types:

```
tiled.project.findTypeByName
tiled.project.addClassType
tiled.project.addEnumType
```

However, they all fail in 1.12.0 with the following error:

```
Error: Unknown method return type: ScriptPropertyType*
```

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 reproducing the error in version 1.12.0 with tiled.project.findTypeByName, tiled.project.addClassType, and tiled.project.addEnumType. Trace how these entry points expose custom property types; done means all three APIs work without the “Unknown method return type: ScriptPropertyType*” error.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, javascript
Domain
api
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.