Seanba / Tiled2Unity

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

Cannot import circle collision #130

Open nukadelic opened 6 years ago

nukadelic commented 6 years ago

Sometimes i will have problem importing custom polygons ( see image below ), not such a big issue since i can get away with boxes instead. i53 cimgpsh_orig

My main problem is that the imported circles are missing ( see image below ) no meter if i use only 1 circle or multiple circles, non of them will get imported. Also tried Convex Polygon colliders check box for the circle import and Depth Buffer check box, non of them work for me. Here is what i get ( image ): tiled2unity-circlebug

My folder on Dropbox: https://www.dropbox.com/sh/eg9thrs6nivt614/AADqZHYb-F5pcadpX9fJcCwma?dl=0 USED file name is: BBB-Map2_10x8.tmx Tiled2Unity 1.0.12.4 OUTPUT Log:

Command: C:\Dropbox\Coding\Collaborations\BLUEBOYBETA\WORLD\BBB-Map\BBB-Map2_10x8.tmx

Arguments summary Succeeded: 0 Warnings: 0 Errors: 0

Opening C:\Dropbox\Coding\Collaborations\BLUEBOYBETA\WORLD\BBB-Map\BBB-Map2_10x8.tmx ... Opening C:\Dropbox\Coding\Collaborations\BLUEBOYBETA\WORLD\BBB-Map\BBB_tileset.tsx ... Warning: Rectangle has zero width or height in object group <objectgroup draworder="index"> <object id="1" x="0" y="0" height="16" /> <object id="2" x="0" y="0" width="16" height="16" /> </objectgroup> Warning: Rectangle has zero width or height in object group <objectgroup draworder="index"> <object id="1" x="0" y="0" height="16" /> <object id="2" x="0" y="0" width="16" height="16" /> </objectgroup> Warning: Rectangle has zero width or height in object group <objectgroup draworder="index"> <object id="1" x="0" y="0" height="16" /> <object id="2" x="0" y="0" width="16" height="16" /> </objectgroup> Warning: Rectangle has zero width or height in object group <objectgroup draworder="index"> <object id="1" x="0" y="0" height="16" /> </objectgroup> Warning: Rectangle has zero width or height in object group <objectgroup draworder="index"> <object id="1" x="0" y="0" height="16" /> <object id="2" x="0" y="0" width="16" height="16" /> </objectgroup> Warning: Rectangle has zero width or height in object group <objectgroup draworder="index"> <object id="1" x="0" y="0" height="16" /> <object id="2" x="0" y="0" width="16" height="16" /> </objectgroup> Warning: Rectangle has zero width or height in object group <objectgroup draworder="index"> <object id="2" x="0" y="16" width="16" /> <object id="3" x="0" y="0" width="16" height="16" /> <object id="4" x="-13" y="2" width="1" height="4"> <ellipse /> </object> <object id="5" x="-7" y="-4" width="4" height="1"> <ellipse /> </object> <object id="6" x="2" y="2" width="1" height="4"> <ellipse /> </object> <object id="7" x="-13" y="4" width="8" height="8"> <ellipse /> </object> <object id="9" x="-7" y="11" width="4" height="1"> <ellipse /> </object> <object id="10" x="-13" y="-4" width="8" height="8"> <ellipse /> </object> <object id="11" x="-5" y="4" width="8" height="8"> <ellipse /> </object> </objectgroup> Warning: Rectangle has zero width or height in object group <objectgroup draworder="index"> <object id="1" x="0" y="0" height="16" /> <object id="2" x="0" y="0" width="16" height="16" /> </objectgroup> Warning: Rectangle has zero width or height in object group <objectgroup draworder="index"> <object id="1" x="0" y="0" height="16" /> <object id="2" x="0" y="0" width="16" height="16" /> </objectgroup> Warning: Rectangle has zero width or height in object group <objectgroup draworder="index"> <object id="1" x="0" y="0" height="16" /> <object id="2" x="0" y="0" width="16" height="16" /> </objectgroup> Warning: Rectangle has zero width or height in object group <objectgroup draworder="index"> <object id="1" x="0" y="0" height="16" /> <object id="2" x="0" y="0" width="16" height="16" /> </objectgroup> Warning: Rectangle has zero width or height in object group <objectgroup draworder="index"> <object id="1" x="0" y="0" height="16" /> </objectgroup> Map details: { "BBB-Map2_10x8" size = 108x96, tile size = 16x16, # tiles = 576 } Parsed: C:\Dropbox\Coding\Collaborations\BLUEBOYBETA\WORLD\BBB-Map\BBB-Map2_10x8.tmx

Loading summary Succeeded: 1 Parsed: C:\Dropbox\Coding\Collaborations\BLUEBOYBETA\WORLD\BBB-Map\BBB-Map2_10x8.tmx Warnings: 12 Warning: Rectangle has zero width or height in object group <objectgroup draworder="index"> <object id="1" x="0" y="0" height="16" /> <object id="2" x="0" y="0" width="16" height="16" /> </objectgroup> Warning: Rectangle has zero width or height in object group <objectgroup draworder="index"> <object id="1" x="0" y="0" height="16" /> <object id="2" x="0" y="0" width="16" height="16" /> </objectgroup> Warning: Rectangle has zero width or height in object group <objectgroup draworder="index"> <object id="1" x="0" y="0" height="16" /> <object id="2" x="0" y="0" width="16" height="16" /> </objectgroup> Warning: Rectangle has zero width or height in object group <objectgroup draworder="index"> <object id="1" x="0" y="0" height="16" /> </objectgroup> Warning: Rectangle has zero width or height in object group <objectgroup draworder="index"> <object id="1" x="0" y="0" height="16" /> <object id="2" x="0" y="0" width="16" height="16" /> </objectgroup> Warning: Rectangle has zero width or height in object group <objectgroup draworder="index"> <object id="1" x="0" y="0" height="16" /> <object id="2" x="0" y="0" width="16" height="16" /> </objectgroup> Warning: Rectangle has zero width or height in object group <objectgroup draworder="index"> <object id="2" x="0" y="16" width="16" /> <object id="3" x="0" y="0" width="16" height="16" /> <object id="4" x="-13" y="2" width="1" height="4"> <ellipse /> </object> <object id="5" x="-7" y="-4" width="4" height="1"> <ellipse /> </object> <object id="6" x="2" y="2" width="1" height="4"> <ellipse /> </object> <object id="7" x="-13" y="4" width="8" height="8"> <ellipse /> </object> <object id="9" x="-7" y="11" width="4" height="1"> <ellipse /> </object> <object id="10" x="-13" y="-4" width="8" height="8"> <ellipse /> </object> <object id="11" x="-5" y="4" width="8" height="8"> <ellipse /> </object> </objectgroup> Warning: Rectangle has zero width or height in object group <objectgroup draworder="index"> <object id="1" x="0" y="0" height="16" /> <object id="2" x="0" y="0" width="16" height="16" /> </objectgroup> Warning: Rectangle has zero width or height in object group <objectgroup draworder="index"> <object id="1" x="0" y="0" height="16" /> <object id="2" x="0" y="0" width="16" height="16" /> </objectgroup> Warning: Rectangle has zero width or height in object group <objectgroup draworder="index"> <object id="1" x="0" y="0" height="16" /> <object id="2" x="0" y="0" width="16" height="16" /> </objectgroup> Warning: Rectangle has zero width or height in object group <objectgroup draworder="index"> <object id="1" x="0" y="0" height="16" /> <object id="2" x="0" y="0" width="16" height="16" /> </objectgroup> Warning: Rectangle has zero width or height in object group <objectgroup draworder="index"> <object id="1" x="0" y="0" height="16" /> </objectgroup> Errors: 0

Exporting 'C:\Dropbox\Coding\Collaborations\BLUEBOYBETA\WORLD\BBB-Map\BBB-Map2_10x8.tmx' to 'C:\Dropbox\Coding\Collaborations\BLUEBOYBETA\CODE\BLUEBOYBETA\Assets\Tiled2Unity' Compiling tiled2unity file: BBB-Map2_10x8.tiled2unity.xml ImportTexture : will import 'C:\Dropbox\Coding\Collaborations\BLUEBOYBETA\WORLD\BBB-Map\bbb-tileset.png' to C:\Dropbox\Coding\Collaborations\BLUEBOYBETA\CODE\BLUEBOYBETA\Assets\Tiled2Unity\Textures Clipping '' polygons: 0% Clipping '' polygons: 4.587156% Clipping '' polygons: 9.174312% Clipping '' polygons: 13.76147% Clipping '' polygons: 18.34862% Clipping '' polygons: 22.93578% Clipping '' polygons: 27.52294% Clipping '' polygons: 32.11009% Clipping '' polygons: 36.69725% Clipping '' polygons: 41.2844% Clipping '' polygons: 45.87156% Clipping '' polygons: 50.45872% Clipping '' polygons: 55.04587% Clipping '' polygons: 59.63303% Clipping '' polygons: 64.22018% Clipping '' polygons: 68.80734% Clipping '' polygons: 73.39449% Clipping '' polygons: 77.98165% Clipping '' polygons: 82.56881% Clipping '' polygons: 87.15596% Clipping '' polygons: 91.74312% Clipping '' polygons: 96.33028% Clipping '' polygons: 100% Exporting to: C:\Dropbox\Coding\Collaborations\BLUEBOYBETA\CODE\BLUEBOYBETA\Assets\Tiled2Unity\Imported\BBB-Map2_10x8.tiled2unity.xml Succesfully exported: C:\Dropbox\Coding\Collaborations\BLUEBOYBETA\CODE\BLUEBOYBETA\Assets\Tiled2Unity\Imported\BBB-Map2_10x8.tiled2unity.xml Vertex Scale = 0.01 Object Type Xml = <none>

Exporting summary Succeeded: 1 Succesfully exported: C:\Dropbox\Coding\Collaborations\BLUEBOYBETA\CODE\BLUEBOYBETA\Assets\Tiled2Unity\Imported\BBB-Map2_10x8.tiled2unity.xml Vertex Scale = 0.01 Object Type Xml = <none> Warnings: 0 Errors: 0

HTML tags removed for github markdown here : https://www.freeformatter.com/html-escape.html