Opening .tmx from command line doesn't display the world
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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