mapeditor / mapeditor/tiled

Tiled isn't showing the the tiles despite the JSON file loading correctly in-game

Open
#1,871 5 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

My team and I are collaborating on maps and we are not using .tmx format. However, when I open the JSON file we have in tiled, it doesn't display the map at all. Here's an example:
![image](https://user-images.githubusercontent.com/6222499/35670529-cfa5ce70-0773-11e8-9467-83382be845cf.png)

As you can see it's only showing gray things despite the tilesets loaded on the sidebar. Is there anyway I can send this to a private email or something?

EDIT:
For some reason, on specific maps, Tiled doesn't like it if the source is displayed like this:
"source":"..\/..\/..\/Archeia\/OMORI\/maps\/collision.json"

But if I change it to this format, it suddenly works ok.
"source":"collision.json"

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 issue by opening a JSON map whose tileset source uses a relative path such as "../../..\/collision.json", then compare it with the working "collision.json" form. Trace how Tiled resolves the tileset source path; done means valid relative source paths load the tiles and render the map consistently.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, json
Domain
desktop
Issue type
Bug
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.