Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Tiled Doesn't Load TMX If Files Have Been Moved. #913

Closed
Yinyamina opened this issue Apr 6, 2015 · 5 comments
Closed

Tiled Doesn't Load TMX If Files Have Been Moved. #913

Yinyamina opened this issue Apr 6, 2015 · 5 comments
Assignees
Labels
missing feature It's not just a feature, it's a feature that really should be there!
Milestone

Comments

@Yinyamina
Copy link

I think there should be a way to respecify where tilesets are located in the event that you move them around for more organization. As it is now, Tiled says it can't find it and doesn't even bother to load or ask if you want to find it on your own. So I think an option such as this would be great!

@bjorn
Copy link
Member

bjorn commented Apr 6, 2015

Definitelly. Your only option at the moment, is to either move the files back or to fix up the file references in the TMX file using a plain text editor.

@bjorn bjorn added this to the 1.0.0 milestone Apr 6, 2015
@bjorn bjorn added the missing feature It's not just a feature, it's a feature that really should be there! label Apr 6, 2015
@Yinyamina
Copy link
Author

Didn't even know you could open a tmx in a text editor! Thanks. I'll edit them from there.

@njorthbiatr
Copy link

I ran into this issue too, it would be nice to at least have a prompt that lets you browse to the location.

We did eventually figure out that you could modify the directory in a text editor. But a less temporary solution is to store everything in folder on your C drive like C:\Tiled\ So long as the file names are all right, there shouldn't be any issues with portability.

@bjorn bjorn self-assigned this Sep 28, 2015
bjorn added a commit that referenced this issue Oct 26, 2015
This only applies to tiles in an image collection tileset. Broken
references to individual tile images are now no longer raised as an XML
parsing error.

Also, an "image-missing" icon was introduced which shows in the tileset
view for tiles which images could not be loaded, and in the properties
view for when the referenced file isn't found.

Issue #913
bjorn added a commit that referenced this issue Oct 26, 2015
They can be ignored, allowing the user to fix them up after loading the
map. In general though, the user should be notified when some images
couldn't be loaded.

Issue #913
bjorn added a commit that referenced this issue Oct 26, 2015
For now it will just load the map. The used tiles won't render in the
map view but will show with a "missing image" icon in the tileset view.

Using the previously added Edit Tileset functionality, the user can
restore any broken image reference.

Issue #913
bjorn added a commit that referenced this issue Oct 26, 2015
By changing the "Filename" property in the Properties view. This
effectively replaces the tileset.

If the map uses tiles that are not present in the new tileset,
placeholders will be created to avoid the loss of data.

This change is necessary in preparation of allowing the loading of map
files for which some external tileset references could not be found.

Issue #913
@bjorn bjorn closed this as completed in a97d427 Nov 9, 2015
@zekrom-vale
Copy link

Using absolute paths should help fix the problem when you move the .tmx files. Still I don't know why it thinks the path is invalid but it is not displaying the file in the location.
Plus, when working with Starbound it is a hassle, you have to fix each file individually and it does not autofill the file name.

@bjorn
Copy link
Member

bjorn commented Feb 7, 2018

Using absolute paths should help fix the problem when you move the .tmx files.

You can't use absolute paths, since they are often different on each person's machine. In general the relative paths work just fine, but in the future Tiled will probably also support paths relative from a predefined "assets" location (or even multiple locations).

Still I don't know why it thinks the path is invalid but it is not displaying the file in the location.
Plus, when working with Starbound it is a hassle, you have to fix each file individually and it does not autofill the file name.

You're replying to an old issue that was resolved in Tiled 0.15. If you're having any issues or suggestions related to loading TMX files that have moved or refer to assets that have moved, please open a new issue about it with more details.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
missing feature It's not just a feature, it's a feature that really should be there!
Projects
None yet
Development

No branches or pull requests

4 participants