SuperTiled2Unity version: 2.1.1, Unity version: 2022.3.17f1c1 Unknown error encountered. Please report as bug. Stack track is in the console output. Failed to add object of type `SuperTile`. Check that the definition is in a file of the same name and that it compiles properly.
SuperTiled2Unity version: 2.1.1, Unity version: 2022.3.17f1c1
Unknown error encountered. Please report as bug. Stack track is in the console output.
Failed to add object of type SuperTile. Check that the definition is in a file of the same name and that it compiles properly.
Hi there, @751500365. Are there any compile errors in the Unity Console window? It looks like something in the ST2U package didn't build correctly. Is it possible for me to get a copy of your project to debug further if needed?
Hi - I am getting this error on every Tiled file (Levels, Tilesets), so currently can't load any maps.
There are no compile errors.
Hi there, @751500365. Are there any compile errors in the Unity Console window? It looks like something in the ST2U package didn't build correctly. Is it possible for me to get a copy of your project to debug further if needed?
I am happy to send you the project source if you need it.
Hi there, @Rich-DOGLtd. Yes, if you can send me the project I'd be happy to investigate it further. I haven't seen this issue personally myself so I'm interested in finding out what's going on.
Fantastic - thanks Sean. Will send link via email.
I've just sent over the link - it is a zip archive on my Google Drive.
Thanks, @Rich-DOGLtd. I was able to reproduce the bug in your project but I don't yet know the cause.
Can you try to force reimport the Super Tiled2Unity package under Packages/Super Tiled2Unity? And then take one of your tilesets and force reimport that as well?
That got things working for me though I still want to investigate more on what's going on here.
@Rich-DOGLtd I think closing Unity, deleting your Library folder, and reopening Unity can fix things up for you too.
For some reason your project import is in a confused state and forcing everything to be reimported into your library can fix that up.
Ah - ok, thanks Sean - I will give that a try. Thanks for taking a look :)
Richard
On Fri, 6 Dec 2024 at 21:12, Sean Barton @.***> wrote:
@Rich-DOGLtd https://github.com/Rich-DOGLtd I think closing Unity, deleting your Library folder, and reopening Unity can fix things up for you too.
For some reason your project import is in a confused state and forcing everything to be reimported into your library can fix that up.
— Reply to this email directly, view it on GitHub https://github.com/Seanba/SuperTiled2Unity/issues/268#issuecomment-2524183594, or unsubscribe https://github.com/notifications/unsubscribe-auth/BNQJSGZTYSD52UQ7VM5CWQT2EIHLFAVCNFSM6AAAAABTFGVVI2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKMRUGE4DGNJZGQ . You are receiving this because you were mentioned.Message ID: @.***>
@Rich-DOGLtd after further testing I've confirmed that deleting your Library is the right move to fix most of your issues.
However, your Level01.tmx Tiled map is using multiple embedded tilesets and, after all this time, that's something ST2U hasn't accounted for. You'll still see errors like this for that map until I provide a fix which should be ready sometime tomorrow.
Thanks for helping me track this down.
@Rich-DOGLtd I've posted version v2.2.3 of Super Tiled2Unity. After deleting your Library folder trying replacing your install of ST2U and re-open Unity.
Note that Unity 6 now requires this naming convention on ST2U as an embedded package: Packages/com.seanba.super-tiled2unity/
Because of this I've renamed the zip file to com.seanba.super-tiled2unity.zip.
Thanks again Sean - the Leve01.tmx was something I was experimenting with to see if I could get the levels to work before I contacted you, so I'll revert back to how I had it previously with the external tilesets.
Thanks, Rich. I'm going to close out the bug for now but let me know if you run into any other issues like this.