Seanba / Tiled2Unity

Export Tiled Map Editor (TMX) files into Unity
Other
495 stars 120 forks source link

Tileset file does not exist #173

Closed EnterAnUsername closed 6 years ago

EnterAnUsername commented 6 years ago

Okay I know this issue has been asked a few times but I've tried to fix it without succes.

image

This is what Tiled2Unity tell me. Indeed this is true, in the Tiled file I don't have any "Tileset.tsx".

image

So I decided to save my tileset in the Tiled file.

image

image

But here the file exist, I don't know why...

So, I'd like to know how to fix this. How to have my tileset detected by Tiled2Unity. The Tiled2Unity Package is in Unity. So I don't think that comes from here.

Seanba commented 6 years ago

Hi there. I don't know what's going on here but Tiled2Unity won't be able to find a file if you can't find it yourself in Windows Explorer. Why Tiled does seem to see the file is a mystery to me.

I would move the Tileset file so that it is not in your Program Files (x86) directory anyway as the Windows OS will sometimes limit read/write access to files that live there. Try moving it somewhere more under your control and fix up your map to reference the Tileset at its new location and see if that fixes you up.

EnterAnUsername commented 6 years ago

Okay so now I've my Tileset on my Desktop, the tileset exist.

image

But T2U want the file in a precise location which is C:\Program Files (x86)\Tiled\Tileset.tsx How do I change that ?

Seanba commented 6 years ago

Try opening your map in Tiled. It should give you the opportunity to find your find the tileset file you moved. (That won't work if you have that tileset file in both locations though.)

EnterAnUsername commented 6 years ago

Okay, it's done. I found how to fix it thanks to you !

For those who can't fix it. Here what to do. Just create a folder in a good location like desktop. Whatever the name. And put your original Tileset in it. So go to tiled. Create a new map and tileset. Do whatever you want to do. And save your tileset AND your map in the folder you've created. And finally go to T2U, it'll find all you folder. In this case it's just a location problem. DO NOT MOVE YOUR FILES. If you create a map the location where is your tileset is definitve and if you move your original tileset and the .tsx file, Tiled2Unity will don't find'em.

Thanks you Seanba.