{"action":"created","issue":{"url":"https://api.github.com/repos/cocos2d/cocos2d-x/issues/10318","labels_url":"https://api.github.com/repos/cocos2d/cocos2d-x/issues/10318/labels{/name}","comments_url":"https://api.github.com/repos/cocos2d/cocos2d-x/issues/10318/comments","events_url":"https://api.github.com/repos/cocos2d/cocos2d-x/issues/10318/events","html_url":"https://github.com/cocos2d/cocos2d-x/issues/10318","id":56133631,"number":10318,"title":"TileMap Rendering Issue Cocos v3.3","user":{"login":"vasumahesh1","id":5372612,"avatar_url":"https://avatars.githubusercontent.com/u/5372612?v=3","gravatar_id":"","url":"https://api.github.com/users/vasumahesh1","html_url":"https://github.com/vasumahesh1","followers_url":"https://api.github.com/users/vasumahesh1/followers","following_url":"https://api.github.com/users/vasumahesh1/following{/other_user}","gists_url":"https://api.github.com/users/vasumahesh1/gists{/gist_id}","starred_url":"https://api.github.com/users/vasumahesh1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vasumahesh1/subscriptions","organizations_url":"https://api.github.com/users/vasumahesh1/orgs","repos_url":"https://api.github.com/users/vasumahesh1/repos","events_url":"https://api.github.com/users/vasumahesh1/events{/privacy}","received_events_url":"https://api.github.com/users/vasumahesh1/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-01-31T18:16:48Z","updated_at":"2015-02-02T02:13:03Z","closed_at":null,"body":"Hi,\r\n\r\nI was trying to render a simple tile map on windows phone. And I got it loaded successfully but my Tile maps are loading quite differently than I had set it up in Tiled.\r\n\r\nHere is the screenshot from my phone (wp8.1 preview for developers)\r\n\r\n![bug](https://cloud.githubusercontent.com/assets/5372612/5989110/3b3833fe-a9a2-11e4-938a-783532dbbd28.png)\r\n\r\nHere is what i expected (Screenshot from Tiled)\r\n\r\n![real](https://cloud.githubusercontent.com/assets/5372612/5989112/4ae09bd4-a9a2-11e4-92db-c3b56955e49f.PNG)\r\n\r\nhere is the C++ code I used to in my Scene's init() method\r\n\r\n```c++\r\nauto tmMap = TMXTiledMap::create(\"tmx/map.tmx\");\r\nauto layer = tmMap->layerNamed(\"origin_layer\");\r\nSize s = layer->getLayerSize();\r\nfor (int x = 0; x < s.width; ++x)\r\n{\r\n\tfor (int y = 0; y < s.height; ++y)\r\n\t{\r\n\t\tCCLOG(\"Logged GID at %d,%d as %d\",x,y,layer->getTileGIDAt(Vec2(x, y)));\r\n\t}\r\n}\r\nthis->addChild(tmMap);\r\n```\r\n\r\nI tired to debug the GID's and found out they are coming exactly as specified in the XML of the .tmx file.\r\n\r\nMore over I tried various patterns / tmx maps with gzip zlib and base64 uncompressed and got the same issue. Also there was a very unique pattern.\r\n\r\n> The last tile of my tileset is rendered properly always .. while the others are some sort of stretched version of the water tile or someother(in other map cases I tried), here is the screenshot of the tileset of this map.\r\n\r\n![tileset_error](https://cloud.githubusercontent.com/assets/5372612/5989130/287a4954-a9a3-11e4-9157-2e09ea410d4c.PNG)\r\n\r\nQuite strange. In some cases I had the water tile at the last and only that thing loaded perfectly.\r\n\r\nhere is the full tmx file I used\r\n\r\n```xml\r\n<?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n<map version=\"1.0\" orientation=\"orthogonal\" renderorder=\"right-down\" width=\"19\" height=\"19\" tilewidth=\"32\" tileheight=\"32\" nextobjectid=\"1\">\r\n <tileset firstgid=\"1\" name=\"origin_map\" tilewidth=\"32\" tileheight=\"32\">\r\n  <tile id=\"0\">\r\n   <image width=\"32\" height=\"32\" source=\"grass.png\"/>\r\n  </tile>\r\n  <tile id=\"1\">\r\n   <image width=\"32\" height=\"32\" source=\"grass-water-bot.png\"/>\r\n  </tile>\r\n  <tile id=\"2\">\r\n   <image width=\"32\" height=\"32\" source=\"grass-water-bot-left.png\"/>\r\n  </tile>\r\n  <tile id=\"3\">\r\n   <image width=\"32\" height=\"32\" source=\"grass-water-bot-right.png\"/>\r\n  </tile>\r\n  <tile id=\"4\">\r\n   <image width=\"32\" height=\"32\" source=\"grass-water-left.png\"/>\r\n  </tile>\r\n  <tile id=\"5\">\r\n   <image width=\"32\" height=\"32\" source=\"grass-water-right.png\"/>\r\n  </tile>\r\n  <tile id=\"6\">\r\n   <image width=\"32\" height=\"32\" source=\"grass-water-top.png\"/>\r\n  </tile>\r\n  <tile id=\"7\">\r\n   <image width=\"32\" height=\"32\" source=\"grass-water-top-left.png\"/>\r\n  </tile>\r\n  <tile id=\"8\">\r\n   <image width=\"32\" height=\"32\" source=\"grass-water-top-right.png\"/>\r\n  </tile>\r\n  <tile id=\"9\">\r\n   <image width=\"32\" height=\"32\" source=\"water.png\"/>\r\n  </tile>\r\n  <tile id=\"10\">\r\n   <image width=\"32\" height=\"32\" source=\"water-grass-bot-left.png\"/>\r\n  </tile>\r\n  <tile id=\"11\">\r\n   <image width=\"32\" height=\"32\" source=\"water-grass-bot-right.png\"/>\r\n  </tile>\r\n  <tile id=\"12\">\r\n   <image width=\"32\" height=\"32\" source=\"water-grass-top-left.png\"/>\r\n  </tile>\r\n  <tile id=\"13\">\r\n   <image width=\"32\" height=\"32\" source=\"water-grass-top-right.png\"/>\r\n  </tile>\r\n </tileset>\r\n <layer name=\"origin_layer\" width=\"19\" height=\"19\">\r\n  <data>\r\n   <tile gid=\"10\"/>\r\n   <tile gid=\"10\"/>\r\n   <tile gid=\"10\"/>\r\n   <tile gid=\"10\"/>\r\n   <tile gid=\"10\"/>\r\n   <tile gid=\"10\"/>\r\n   <tile gid=\"10\"/>\r\n   <tile gid=\"10\"/>\r\n   <tile gid=\"10\"/>\r\n   <tile gid=\"10\"/>\r\n   <tile gid=\"10\"/>\r\n   <tile gid=\"10\"/>\r\n   <tile gid=\"10\"/>\r\n   <tile gid=\"10\"/>\r\n   <tile gid=\"10\"/>\r\n   <tile gid=\"10\"/>\r\n   <tile gid=\"10\"/>\r\n   <tile gid=\"10\"/>\r\n   <tile gid=\"10\"/>\r\n   <tile gid=\"10\"/>\r\n   <tile gid=\"12\"/>\r\n   <tile gid=\"2\"/>\r\n   <tile gid=\"2\"/>\r\n   <tile gid=\"2\"/>\r\n   <tile gid=\"2\"/>\r\n   <tile gid=\"2\"/>\r\n   <tile gid=\"2\"/>\r\n   <tile gid=\"2\"/>\r\n   <tile gid=\"2\"/>\r\n   <tile gid=\"2\"/>\r\n   <tile gid=\"2\"/>\r\n   <tile gid=\"2\"/>\r\n   <tile gid=\"2\"/>\r\n   <tile gid=\"2\"/>\r\n   <tile gid=\"2\"/>\r\n   <tile gid=\"2\"/>\r\n   <tile gid=\"11\"/>\r\n   <tile gid=\"10\"/>\r\n   <tile gid=\"10\"/>\r\n   <tile gid=\"6\"/>\r\n   <tile gid=\"1\"/>\r\n   <tile gid=\"1\"/>\r\n   <tile gid=\"1\"/>\r\n   <tile gid=\"1\"/>\r\n   <tile gid=\"1\"/>\r\n   <tile gid=\"1\"/>\r\n   <tile gid=\"1\"/>\r\n   <tile gid=\"1\"/>\r\n   <tile gid=\"1\"/>\r\n   <tile gid=\"1\"/>\r\n   <tile gid=\"1\"/>\r\n   <tile gid=\"1\"/>\r\n   <tile gid=\"1\"/>\r\n   <tile gid=\"1\"/>\r\n   <tile gid=\"1\"/>\r\n   <tile gid=\"5\"/>\r\n   <tile gid=\"10\"/>\r\n   <tile gid=\"10\"/>\r\n   <tile gid=\"6\"/>\r\n   <tile gid=\"1\"/>\r\n   <tile gid=\"1\"/>\r\n   <tile gid=\"1\"/>\r\n   <tile gid=\"1\"/>\r\n   <tile gid=\"1\"/>\r\n   <tile gid=\"1\"/>\r\n   <tile gid=\"1\"/>\r\n   <tile gid=\"1\"/>\r\n   <tile gid=\"1\"/>\r\n   <tile gid=\"1\"/>\r\n   <tile gid=\"1\"/>\r\n   <tile gid=\"1\"/>\r\n   <tile gid=\"1\"/>\r\n   <tile gid=\"1\"/>\r\n   <tile gid=\"1\"/>\r\n   <tile gid=\"5\"/>\r\n   <tile gid=\"10\"/>\r\n   <tile gid=\"10\"/>\r\n   <tile gid=\"6\"/>\r\n   <tile gid=\"1\"/>\r\n   <tile gid=\"1\"/>\r\n   <tile gid=\"1\"/>\r\n   <tile gid=\"1\"/>\r\n   <tile gid=\"1\"/>\r\n   <tile gid=\"1\"/>\r\n   <tile gid=\"1\"/>\r\n   <tile gid=\"1\"/>\r\n   <tile gid=\"1\"/>\r\n   <tile gid=\"1\"/>\r\n   <tile gid=\"1\"/>\r\n   <tile gid=\"1\"/>\r\n   <tile gid=\"1\"/>\r\n   <tile gid=\"1\"/>\r\n   <tile gid=\"1\"/>\r\n   <tile gid=\"5\"/>\r\n   <tile gid=\"10\"/>\r\n   <tile gid=\"10\"/>\r\n   <tile gid=\"6\"/>\r\n   <tile gid=\"1\"/>\r\n   <tile gid=\"1\"/>\r\n   <tile gid=\"1\"/>\r\n   <tile gid=\"1\"/>\r\n   <tile gid=\"1\"/>\r\n   <tile gid=\"1\"/>\r\n   <tile gid=\"1\"/>\r\n   <tile gid=\"1\"/>\r\n   <tile gid=\"1\"/>\r\n   <tile gid=\"1\"/>\r\n   <tile gid=\"1\"/>\r\n   <tile gid=\"1\"/>\r\n   <tile gid=\"1\"/>\r\n   <tile gid=\"1\"/>\r\n   <tile gid=\"1\"/>\r\n   <tile gid=\"5\"/>\r\n   <tile gid=\"10\"/>\r\n   <tile gid=\"10\"/>\r\n   <tile gid=\"6\"/>\r\n   <tile gid=\"1\"/>\r\n   <tile gid=\"1\"/>\r\n   <tile gid=\"8\"/>\r\n   <tile gid=\"9\"/>\r\n   <tile gid=\"1\"/>\r\n   <tile gid=\"1\"/>\r\n   <tile gid=\"1\"/>\r\n   <tile gid=\"1\"/>\r\n   <tile gid=\"1\"/>\r\n   <tile gid=\"1\"/>\r\n   <tile gid=\"1\"/>\r\n   <tile gid=\"1\"/>\r\n   <tile gid=\"1\"/>\r\n   <tile gid=\"1\"/>\r\n   <tile gid=\"1\"/>\r\n   <tile gid=\"5\"/>\r\n   <tile gid=\"10\"/>\r\n   <tile gid=\"10\"/>\r\n   <tile gid=\"6\"/>\r\n   <tile gid=\"1\"/>\r\n   <tile gid=\"1\"/>\r\n   <tile gid=\"5\"/>\r\n   <tile gid=\"6\"/>\r\n   <tile gid=\"1\"/>\r\n   <tile gid=\"1\"/>\r\n   <tile gid=\"1\"/>\r\n   <tile gid=\"1\"/>\r\n   <tile gid=\"1\"/>\r\n   <tile gid=\"1\"/>\r\n   <tile gid=\"1\"/>\r\n   <tile gid=\"1\"/>\r\n   <tile gid=\"1\"/>\r\n   <tile gid=\"1\"/>\r\n   <tile gid=\"1\"/>\r\n   <tile gid=\"5\"/>\r\n   <tile gid=\"10\"/>\r\n   <tile gid=\"10\"/>\r\n   <tile gid=\"6\"/>\r\n   <tile gid=\"1\"/>\r\n   <tile gid=\"1\"/>\r\n   <tile gid=\"5\"/>\r\n   <tile gid=\"6\"/>\r\n   <tile gid=\"1\"/>\r\n   <tile gid=\"1\"/>\r\n   <tile gid=\"1\"/>\r\n   <tile gid=\"1\"/>\r\n   <tile gid=\"1\"/>\r\n   <tile gid=\"1\"/>\r\n   <tile gid=\"1\"/>\r\n   <tile gid=\"1\"/>\r\n   <tile gid=\"1\"/>\r\n   <tile gid=\"1\"/>\r\n   <tile gid=\"1\"/>\r\n   <tile gid=\"5\"/>\r\n   <tile gid=\"10\"/>\r\n   <tile gid=\"10\"/>\r\n   <tile gid=\"6\"/>\r\n   <tile gid=\"1\"/>\r\n   <tile gid=\"1\"/>\r\n   <tile gid=\"5\"/>\r\n   <tile gid=\"14\"/>\r\n   <tile gid=\"9\"/>\r\n   <tile gid=\"1\"/>\r\n   <tile gid=\"1\"/>\r\n   <tile gid=\"1\"/>\r\n   <tile gid=\"1\"/>\r\n   <tile gid=\"1\"/>\r\n   <tile gid=\"1\"/>\r\n   <tile gid=\"1\"/>\r\n   <tile gid=\"1\"/>\r\n   <tile gid=\"1\"/>\r\n   <tile gid=\"1\"/>\r\n   <tile gid=\"5\"/>\r\n   <tile gid=\"10\"/>\r\n   <tile gid=\"10\"/>\r\n   <tile gid=\"6\"/>\r\n   <tile gid=\"1\"/>\r\n   <tile gid=\"1\"/>\r\n   <tile gid=\"3\"/>\r\n   <tile gid=\"11\"/>\r\n   <tile gid=\"14\"/>\r\n   <tile gid=\"7\"/>\r\n   <tile gid=\"7\"/>\r\n   <tile gid=\"7\"/>\r\n   <tile gid=\"7\"/>\r\n   <tile gid=\"7\"/>\r\n   <tile gid=\"9\"/>\r\n   <tile gid=\"1\"/>\r\n   <tile gid=\"1\"/>\r\n   <tile gid=\"1\"/>\r\n   <tile gid=\"1\"/>\r\n   <tile gid=\"5\"/>\r\n   <tile gid=\"10\"/>\r\n   <tile gid=\"10\"/>\r\n   <tile gid=\"6\"/>\r\n   <tile gid=\"1\"/>\r\n   <tile gid=\"1\"/>\r\n   <tile gid=\"1\"/>\r\n   <tile gid=\"3\"/>\r\n   <tile gid=\"11\"/>\r\n   <tile gid=\"10\"/>\r\n   <tile gid=\"10\"/>\r\n   <tile gid=\"10\"/>\r\n   <tile gid=\"10\"/>\r\n   <tile gid=\"10\"/>\r\n   <tile gid=\"14\"/>\r\n   <tile gid=\"9\"/>\r\n   <tile gid=\"1\"/>\r\n   <tile gid=\"1\"/>\r\n   <tile gid=\"1\"/>\r\n   <tile gid=\"5\"/>\r\n   <tile gid=\"10\"/>\r\n   <tile gid=\"10\"/>\r\n   <tile gid=\"6\"/>\r\n   <tile gid=\"1\"/>\r\n   <tile gid=\"1\"/>\r\n   <tile gid=\"1\"/>\r\n   <tile gid=\"1\"/>\r\n   <tile gid=\"3\"/>\r\n   <tile gid=\"2\"/>\r\n   <tile gid=\"2\"/>\r\n   <tile gid=\"2\"/>\r\n   <tile gid=\"2\"/>\r\n   <tile gid=\"2\"/>\r\n   <tile gid=\"11\"/>\r\n   <tile gid=\"6\"/>\r\n   <tile gid=\"1\"/>\r\n   <tile gid=\"1\"/>\r\n   <tile gid=\"1\"/>\r\n   <tile gid=\"5\"/>\r\n   <tile gid=\"10\"/>\r\n   <tile gid=\"10\"/>\r\n   <tile gid=\"6\"/>\r\n   <tile gid=\"1\"/>\r\n   <tile gid=\"1\"/>\r\n   <tile gid=\"1\"/>\r\n   <tile gid=\"1\"/>\r\n   <tile gid=\"1\"/>\r\n   <tile gid=\"1\"/>\r\n   <tile gid=\"1\"/>\r\n   <tile gid=\"1\"/>\r\n   <tile gid=\"1\"/>\r\n   <tile gid=\"1\"/>\r\n   <tile gid=\"3\"/>\r\n   <tile gid=\"4\"/>\r\n   <tile gid=\"1\"/>\r\n   <tile gid=\"1\"/>\r\n   <tile gid=\"1\"/>\r\n   <tile gid=\"5\"/>\r\n   <tile gid=\"10\"/>\r\n   <tile gid=\"10\"/>\r\n   <tile gid=\"6\"/>\r\n   <tile gid=\"1\"/>\r\n   <tile gid=\"1\"/>\r\n   <tile gid=\"1\"/>\r\n   <tile gid=\"1\"/>\r\n   <tile gid=\"1\"/>\r\n   <tile gid=\"1\"/>\r\n   <tile gid=\"1\"/>\r\n   <tile gid=\"1\"/>\r\n   <tile gid=\"1\"/>\r\n   <tile gid=\"1\"/>\r\n   <tile gid=\"1\"/>\r\n   <tile gid=\"1\"/>\r\n   <tile gid=\"1\"/>\r\n   <tile gid=\"1\"/>\r\n   <tile gid=\"1\"/>\r\n   <tile gid=\"5\"/>\r\n   <tile gid=\"10\"/>\r\n   <tile gid=\"10\"/>\r\n   <tile gid=\"6\"/>\r\n   <tile gid=\"1\"/>\r\n   <tile gid=\"1\"/>\r\n   <tile gid=\"1\"/>\r\n   <tile gid=\"1\"/>\r\n   <tile gid=\"1\"/>\r\n   <tile gid=\"1\"/>\r\n   <tile gid=\"1\"/>\r\n   <tile gid=\"1\"/>\r\n   <tile gid=\"1\"/>\r\n   <tile gid=\"1\"/>\r\n   <tile gid=\"1\"/>\r\n   <tile gid=\"1\"/>\r\n   <tile gid=\"1\"/>\r\n   <tile gid=\"1\"/>\r\n   <tile gid=\"1\"/>\r\n   <tile gid=\"5\"/>\r\n   <tile gid=\"10\"/>\r\n   <tile gid=\"10\"/>\r\n   <tile gid=\"6\"/>\r\n   <tile gid=\"1\"/>\r\n   <tile gid=\"1\"/>\r\n   <tile gid=\"1\"/>\r\n   <tile gid=\"1\"/>\r\n   <tile gid=\"1\"/>\r\n   <tile gid=\"1\"/>\r\n   <tile gid=\"1\"/>\r\n   <tile gid=\"1\"/>\r\n   <tile gid=\"1\"/>\r\n   <tile gid=\"1\"/>\r\n   <tile gid=\"1\"/>\r\n   <tile gid=\"1\"/>\r\n   <tile gid=\"1\"/>\r\n   <tile gid=\"1\"/>\r\n   <tile gid=\"1\"/>\r\n   <tile gid=\"5\"/>\r\n   <tile gid=\"10\"/>\r\n   <tile gid=\"10\"/>\r\n   <tile gid=\"14\"/>\r\n   <tile gid=\"7\"/>\r\n   <tile gid=\"7\"/>\r\n   <tile gid=\"7\"/>\r\n   <tile gid=\"7\"/>\r\n   <tile gid=\"7\"/>\r\n   <tile gid=\"7\"/>\r\n   <tile gid=\"7\"/>\r\n   <tile gid=\"7\"/>\r\n   <tile gid=\"7\"/>\r\n   <tile gid=\"7\"/>\r\n   <tile gid=\"7\"/>\r\n   <tile gid=\"7\"/>\r\n   <tile gid=\"7\"/>\r\n   <tile gid=\"7\"/>\r\n   <tile gid=\"7\"/>\r\n   <tile gid=\"13\"/>\r\n   <tile gid=\"10\"/>\r\n   <tile gid=\"10\"/>\r\n   <tile gid=\"10\"/>\r\n   <tile gid=\"10\"/>\r\n   <tile gid=\"10\"/>\r\n   <tile gid=\"10\"/>\r\n   <tile gid=\"10\"/>\r\n   <tile gid=\"10\"/>\r\n   <tile gid=\"10\"/>\r\n   <tile gid=\"10\"/>\r\n   <tile gid=\"10\"/>\r\n   <tile gid=\"10\"/>\r\n   <tile gid=\"10\"/>\r\n   <tile gid=\"10\"/>\r\n   <tile gid=\"10\"/>\r\n   <tile gid=\"10\"/>\r\n   <tile gid=\"10\"/>\r\n   <tile gid=\"10\"/>\r\n   <tile gid=\"10\"/>\r\n   <tile gid=\"10\"/>\r\n  </data>\r\n </layer>\r\n</map>\r\n```"},"comment":{"url":"https://api.github.com/repos/cocos2d/cocos2d-x/issues/comments/72398215","html_url":"https://github.com/cocos2d/cocos2d-x/issues/10318#issuecomment-72398215","issue_url":"https://api.github.com/repos/cocos2d/cocos2d-x/issues/10318","id":72398215,"user":{"login":"vasumahesh1","id":5372612,"avatar_url":"https://avatars.githubusercontent.com/u/5372612?v=3","gravatar_id":"","url":"https://api.github.com/users/vasumahesh1","html_url":"https://github.com/vasumahesh1","followers_url":"https://api.github.com/users/vasumahesh1/followers","following_url":"https://api.github.com/users/vasumahesh1/following{/other_user}","gists_url":"https://api.github.com/users/vasumahesh1/gists{/gist_id}","starred_url":"https://api.github.com/users/vasumahesh1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vasumahesh1/subscriptions","organizations_url":"https://api.github.com/users/vasumahesh1/orgs","repos_url":"https://api.github.com/users/vasumahesh1/repos","events_url":"https://api.github.com/users/vasumahesh1/events{/privacy}","received_events_url":"https://api.github.com/users/vasumahesh1/received_events","type":"User","site_admin":false},"created_at":"2015-02-02T02:13:03Z","updated_at":"2015-02-02T02:13:03Z","body":"Haven't tried yet .. Will try now .. Can you redirect me to a setup link for Windows 8.1 Universal ? Im having some build issues with it regarding libSpine.Windows"}}