I’ve looked all over the site but can’t find any way to open a ticket.
The problem is very easy to reproduce, here is the code:
map = TMXTiledMap::create("tmx/level1.tmx");
Have a tmx file and the tileset image it uses in a sub-folder under resources, in this case a folder called “tmx”. Within the tmx file:
Unless the file “tileseta.png” is under the main Resources folder you will get an Access violation error.
The error occurs in the file CCTMXLayer.cpp, TMXLayer::initWithTilesetInfo(TMXTilesetInfo tilesetInfo, TMXLayerInfolayerInfo, TMXMapInfo *mapInfo)
The version 3 line:
texture = TextureCache::getInstance()->addImage(tilesetInfo->_sourceImage.c_str());
The version 2 line: (which worked as expected)
texture = CCTextureCache::sharedTextureCache()->addImage(tilesetInfo->m_sSourceImage.c_str());
m_sSourceImage contained the full path to the image file, where _sourceImage only has the file name.
I am happy to open a ticket if you can let me know how, or since it’s pretty straight forward, someone else can.