I have found an issue with TileMap tests in cocos2d-x-for-win8-0.11.0 branch. The TMXOrthoVertexZ and TMXOrthoTest2 test both crash with the same error in CCTMXTiledMap.cpp, bool CCTMXTiledMap::initWithTMXFile(const char *tmxFile) with the same error at row CCAssert( mapInfo->getTilesets()->count() != 0, “TMXTiledMap: Map not found. Please check the filename.”);
It looks like tile maps the test use, e.g TileMaps/orthogonal-test-vertexz.tmx and TileMaps/orthogonal-test1.tmx have both a reference to orthogonal-test1.tsx file from within the XML. After investigating the files and changing the references to the contents of the orthogonal-test1.tsx file they refer, the crash has gone.
The problem obviously is in the code related to XML parser, who cannot follow the references inside XML. Here is an example of original TileMaps/orthogonal-test1.tmx file:<?xml version="1.0" encoding="UTF-8"?> H4sIAAAAAAAAA9XMzQpAQBhG4cnfwsK/sJVBuf/7c9Sn3o0aWXnrSTNz4ty/N4iQTSJkBUpUdp4futa+m4gRIUGKTNq7X7Fbr2usud48Frv3osaBER166/OX/Zf/n+tha6FAAgAA And below is the same file modified, which does not cause crash: <?xml version="1.0" encoding="UTF-8"?> H4sIAAAAAAAAA9XMzQpAQBhG4cnfwsK/sJVBuf/7c9Sn3o0aWXnrSTNz4ty/N4iQTSJkBUpUdp4futa+m4gRIUGKTNq7X7Fbr2usud48Frv3osaBER166/OX/Zf/n+tha6FAAgAA BR, Alex
The tools used:
Visual Studio 2012 (11.0.50727.1 RTMREL)
The latest cocos2d-x for windows 8 metro: cocos2d-x-for-win8-0.11.0.zip
Windows 8 Metro (Samsung notebook)