Closed pmer closed 7 years ago
This is a problem with Tiled always saving paths relative to the current working directory though, if I'm not mistaken. I usually remedy this by working from the root directory of the world.
I remember doing that on Linux. :) Unfortunately it looks like Tiled on macOS doesn't support that. :(
Research if anyone else has had this issue.
Found a C# Tiled map loader with the same issue:
https://bitbucket.org/vinull/xtiled/issues/19/external-tileset-directories-are-relative
I also found one with Unity, but the issue was with how Unity packages its game assets in an odd way so it's only partially related to this. Ergo, not linking it.
Here is what I have tried:
In the first two cases, Tiled will start with its $PWD set to $HOME. In the third its $PWD will be set to the current directory I'm in. However, in all three, I experience the problem related in this issue.
This was changed in Tsunagari in 2014. https://github.com/pmer/TsunagariC/commit/bdf693f7
For those Linux users who prefer the command line, this change will mean you'll have to launch Tiled with (cd path/to; tiled map)
instead of tiled path/to/map
.
Why not both?
Oops, I think I misunderstood your first comment and forgot how Tiled works on Linux.
So nevermind—there is no difference between those two command inocations.
If I have a tilemap
areas/my_map.json
that loads a../tiles/my_tiles.png
, Tiled thinks it resolves toareas/../tiles/my_tiles.png
but Driftwood thinks it resolves to../tiles/my_tiles.png
.