-
Creator 版本:2.3.4
-
目标平台:
-
详细报错信息,包含调用堆栈:
cocos2d: TMXFormat: Unsupported TMX version: 1.4cc.TMXMapInfo.parseXMLFile(): unsupported compression method TypeError: Cannot read property ‘name’ of null at cc_TiledMap._buildLayerAndGroup (D:\CocosDashboard_1.0.6\resources.editors\Creator\2.3.4\resources\engine\bin.cache\dev\cocos2d\tilemap\CCTiledMap.js:729:30) at cc_TiledMap. (D:\CocosDashboard_1.0.6\resources.editors\Creator\2.3.4\resources\engine\bin.cache\dev\cocos2d\tilemap\CCTiledMap.js:831:12) at itemCallback (D:\CocosDashboard_1.0.6\resources.editors\Creator\2.3.4\resources\engine\bin.cache\dev\cocos2d\tilemap\CCTiledMap.js:875:7) at Function.cc.TiledMap.loadAllTextures (D:\CocosDashboard_1.0.6\resources.editors\Creator\2.3.4\resources\engine\bin.cache\dev\cocos2d\tilemap\CCTiledMap.js:887:7) at cc_TiledMap._buildWithMapInfo (D:\CocosDashboard_1.0.6\resources.editors\Creator\2.3.4\resources\engine\bin.cache\dev\cocos2d\tilemap\CCTiledMap.js:830:17) at cc_TiledMap._applyFile (D:\CocosDashboard_1.0.6\resources.editors\Creator\2.3.4\resources\engine\bin.cache\dev\cocos2d\tilemap\CCTiledMap.js:606:12) at cc_TiledMap.set (D:\CocosDashboard_1.0.6\resources.editors\Creator\2.3.4\resources\engine\bin.cache\dev\cocos2d\tilemap\CCTiledMap.js:364:16) at cc_TiledMap.n.set [as tmxAsset] (D:\CocosDashboard_1.0.6\resources.editors\Creator\2.3.4\resources\app.asar\editor\page\scene-utils\lib\asset-watcher.js:1:975) at D:\CocosDashboard_1.0.6\resources.editors\Creator\2.3.4\resources\app.asar\editor\page\scene-utils\set-property-by-path.js:1:682 at CCLoader. (D:\CocosDashboard_1.0.6\resources.editors\Creator\2.3.4\resources\engine\bin.cache\dev\cocos2d\core\platform\CCAssetLibrary.js:139:9) -
重现方式:下载最新的tiledMap editor 1.4版本创建tmx地图,创建tilemap结点后拖入tmx文件
建议官方在 https://docs.cocos.com/creator/manual/zh/components/tiledmap.html 页面中写明当前版本支持的tmx版本是多少,或者在报错信息中提示具体支持的版本号是哪些