Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Tiled2Unity exports only .xml and creates no prefab / Preview complains about index out of range #181

Open
VladDerptastic opened this issue Sep 24, 2018 · 2 comments

Comments

@VladDerptastic
Copy link

Hey there!

Trying to export a small level (T2U v.1.0.9.4, Unity: 2017.3.1f1) greeted me with 2 problems, which I just can't resolve:

First, I can't preview the map when I load it in Tiled2Unity, because I'm greeted with a "Index out of range" exception:
error

Nonetheless I tried to export, which resulted only in an .xml file being generated in the Imported folder and then the following Unity error:
unityerror
("castle.png" is one of the tilesets I'm using)

A bit of context, I had an image layer before that, with a fairly big image in it. First it was complaining about that file, so I removed it just to test if that was the issue, now it's just complaining about the next file in order.

Said "castle.png" is not existing in that folder, prior to exporting (nor does it exist afterwards, as I said, I just get the .xml file).

I'm a bit stumped by this, so any suggestion would be appreciated.

@Seanba
Copy link
Owner

Seanba commented Sep 24, 2018

Hi there. Tiled2Unity will require write-access to textures. Was that texture opened in an editor? Or are you using Perforce or a similar version management system?

BTW, I'm moving over to SuperTiled2Unity now which has much improved importer system.

@VladDerptastic
Copy link
Author

Hey!
Other than Tiled itself, no editor had them open. I closed Tiled too with no difference in the result.
No, I'm using Git with Sourcetree, which wasn't running either.
Played around with the individual files' permissions, just to see if maybe there was a hitch there, since you hinted at the read-write access, but they had full permissions and nothing has changed.

As a side note, I saw SuperT2U before, but it was leveraging on a few new features in Unity 2018, wasn't it? I was hoping for a resolution for my current versions, but if that's not an option, I'll just might have to make that transition. =)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants