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

Unknown problem with map importing #80

Closed
xuanquang1999 opened this issue Jan 29, 2017 · 9 comments
Closed

Unknown problem with map importing #80

xuanquang1999 opened this issue Jan 29, 2017 · 9 comments

Comments

@xuanquang1999
Copy link

I had a problem with importing Tiled map to unity, which is shown in the image below.

image

As you can see, everything is in pink. I figured out that only texture was successfully imported, everything else is in pink (which mean failed to import). I don't know what caused the problem. Is this a bug in your program, or it was my fault?

I'm using Unity 5.4.4f1, Tiled 0.18.1, Tiled2Unity 1.0.9.4 (All of them are Window 32-bit version).

@Seanba
Copy link
Owner

Seanba commented Jan 29, 2017 via email

@xuanquang1999
Copy link
Author

Here's my exported file
Forest 1.tiled2unity.xml.zip

@Seanba
Copy link
Owner

Seanba commented Feb 2, 2017

FWIW, I was able to import your map without any problem. Can you check the Console window in Unity for any warnings or errors? The pink materials, to me, look like there was a problem with compiling the shaders that are being used.

image

@xuanquang1999
Copy link
Author

That's ... weird. What version of Unity you are using?

@Seanba
Copy link
Owner

Seanba commented Feb 3, 2017

I tested this with Unity 5.5.0f3. Are you getting any errors our warnings in your Console window?

@Seanba
Copy link
Owner

Seanba commented Mar 9, 2017

Closing as it's been over a month without feedback. Feel free to open if you're still having a problem.

@Seanba Seanba closed this as completed Mar 9, 2017
@henrisokka
Copy link

henrisokka commented Apr 24, 2017

I encountered this same bug. In shaTiledMap and shaDepthColorKey -shader it says "Can't find include file Tiled2Unity.cginc"
In shaDepth.shader it says the above and "failed to open source file: 'Tiled2Unity.cginc'
Compiling Vertex program with PIXELSNAP_ON
Platform defines: UNITY_ENABLE_REFLECTION_BUFFERS UNITY_PBS_USE_BRDF1 UNITY_SPECCUBE_BOX_PROJECTION UNITY_SPECCUBE_BLENDING SHADER_API_DESKTOP UNITY_COLORSPACE_GAMMA"

@Seanba
Copy link
Owner

Seanba commented Apr 24, 2017

Hi genriskokka, that is a different bug and appears to be a problem with the current distribution I just push last night. There is a fix incoming but in the meantime you can disable the line trying to include Tiled2Unity.cginc or go back to using Tiled2Unity 1.0.10.3 (which I just rolled back to on itch.io). Thanks for alerting me to the problem!

@Seanba Seanba reopened this Apr 24, 2017
@Seanba
Copy link
Owner

Seanba commented Apr 25, 2017

henrisokka, the latest version of Tiled2Unity has the missing shader file. Thanks for letting me know.

@Seanba Seanba closed this as completed Apr 25, 2017
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

3 participants