-
Notifications
You must be signed in to change notification settings - Fork 147
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
The exception in loading .tmx files #359
Comments
Can you modify the example in tests\test_tmx.py to use your map? Also, which pyglet version and which GPU are you using? |
Also, from https://doc.mapeditor.org/en/stable/reference/tmx-changelog/ , Tiled 1.9 did some changes that were partially reverted in Tiled 1.10 for compatibility with Tiled < 1.9 Maybe load the problematic map in Tiled 1.8 to see if it show right? |
Sorry for response so late. I'm using pyglet1.5.27. My GPU is GeForce MX250. I can't find Tiled < 1.9 because it just provide the latest version of Tiled. |
all releases: https://github.com/mapeditor/tiled/releases |
I met a problem when I was using cocos to load a .tmx file.
Cocos doesn't seem to be cutting the tile set correctly when loading the tiles.
It looks like these in cocos:
While the same places in Tiled:
these are the tiles in the tile set picture:
I'm using cocos0.6.10 and Tiled 1.9.1
here's the map:
<?xml version="1.0" encoding="UTF-8"?> <map version="1.9" tiledversion="1.9.1" orientation="orthogonal" renderorder="right-down" width="100" height="100" tilewidth="20" tileheight="20" infinite="0" nextlayerid="7" nextobjectid="1"> <tileset firstgid="1" name="tile_setting" tilewidth="20" tileheight="20" tilecount="3240" columns="72"> <image source="material/tile_setting.png" width="1458" height="907"/> </tileset> <layer id="1" name="BackGround" width="100" height="100"> <data encoding="base64" compression="zlib"> eJzt2jEOgzAMBVDoRu9/4O4otEE02MFveBuRjL8wJGJdlmUFAAAAmNwrQQ0AAAAwkr0vQJv5CIz0PhBdVzXfei+XmCx6rouutYLePntG7sniTI/NrjxZ7NdG1/80V3oqD3k82dV3gDz+n0fkeuSRmXmVz9m9hDOt+3P5JbpWAKgk278EW0N0TZXt+y+T2CzkkUdrVsmC2WT7BgAAAOLZJwAAAIxl3wUAAADAEWdHAAAAAP2qn6VUv38AAABgHh9sPSm1 </data> </layer> <layer id="6" name="Magma" width="100" height="100"> <data encoding="base64" compression="zlib"> eJzt1UkKwCAQRUHB3P/M2WQlxAk7CqmCfwEfjSkBAAAAAAAAAAAAAAAAAAAAAAAAAAAA/Ft+xj55YMQaaaFLrNkWmsSovfVVTJN4PR1aTVirt4f7+I4/5DxanEkLAAAAAAAAAAAAAAAA4M0N/74Bmw== </data> </layer> <layer id="2" name="CollideGround" width="100" height="100"> <data encoding="base64" compression="zlib"> eJzt1rEVwjAQREGpFIObM7gZMM1hXIy3ACVOhIKZ935y4UVbCgCM65XeaUufjnfavmlPv3R0vNM21VJu6Z7m2u9O25IfPdIzrbXfHeAq+2os9tVY7Kux2FcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD80wn35k9h </data> </layer> <objectgroup id="3" name="Objects"/> <layer id="4" name="Cloud" width="100" height="100"> <data encoding="base64" compression="zlib"> eJzt28kJACAMBEDb8+i/Hm1BUNQ4A/nvbyEhKQH8LY8pp0MAAAAAcB17I+BXdUw7HYKw9CsAAAAA3MluGAAAAAAAmOG2AAB76VoAAAAAAAAAAAAAAIjj5T+Bl7MDAAAAAACs1AH33QVE </data> </layer> <layer id="5" name="Water" width="100" height="100"> <data encoding="base64" compression="zlib"> eJzt1zsOgCAURUEa1P2v2EYTQ/g1PihmkrsBT0RJCQAAAAAAAAAAAAD2dxRjjbKDLuu8z/xsTI9YMz00idHrUGuiy39a70V+5uyKVeuRi+kRp3dW6RFr9A33rxVLj/3MNnE3jDW6m2sAAAB912espwcAAAAAAAAAAAAAAAAAAAAAAAAAADu7AcP+A7o= </data> </layer> </map>
I have used different maps created with the same version of Tiled, but all of them didn't look well in cocos.
However, I succeed when I used a map which was edited in Tiled1.2.5 downloaded on the internet.
I guess the problem might be that cocos has some problem with the latest Tiled edition.
The text was updated successfully, but these errors were encountered: