mapeditor / mapeditor/tiled

Opening .tmx from command line doesn't display the world

Open
#2,189 1 comment 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

Opening a .tmx file from the command line will not display the world. (Note: I'm on Windows 10.)

Ex:
Open a command prompt.
Type "c:\Program Files\Tiled\tiled.exe" "C:\rc\rainingchain\server\resourcePack\QsouthShore\map\sRiverDelta.tmx"

This opens Tiled, but only a single map is visible. The world is supposed to be loaded. Unloading and reloading the world doesn't work. The world is never displayed.

If I open another tmx file while Tiled is already opened, I will be able to see the world, include the first map.

Ex:
"c:\Program Files\Tiled\tiled.exe" "C:\rc\rainingchain\server\resourcePack\QsouthShore\map\sLightHouse.tmx" while Tiled is already opened.

If I click on the first map in Tiled (sRiverDelta.tmx map), then once again, once this map is visible and the rest of the world becomes hidden.

If instead of opening the map from command line, I open Tiled with "c:\Program Files\Tiled\tiled.exe" then, while no maps are loaded in Tiled, I open the map sRiverDelta.tmx with File -> Open... then everything works and I see the map with the world.

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 with Tiled's command-line file-opening entry point and compare startup loading with the File → Open path described in the report. Reproduce on Windows 10 using the sRiverDelta.tmx example, then verify that the world and its maps are visible when Tiled is launched with the file argument.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
desktop
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.