What steps will reproduce the problem?
1. I have a TMX map in levels/chapter1/map.tmx with an external tileset
2. The external tileset's path is levels/tileset.tsx
3. cocos2d can't load the sourceImage, because the path is wrong
What is the expected output? What do you see instead?
sourceImage should be loaded when I use external tilesets.
What cocos2d version / SVN revision are you using ?
cocos2d-iphone v2.1
What iPhoneSDK are you using ?
iOS SDK 6.1
Debug or Release ?
debug
Does this happens on device ? or on the simulator ? or on both ?
both
Please provide any additional information below.
I managed to find a workaround. It seems like the Parser assumes the wrong
base path for external tilesets.
In CCTXMXMLParser.m I replaced the line
[self parseXMLFile:externalTilesetFilename];
with
NSString* temp = _filename;
_filename = externalTilesetFilename;
[self parseXMLFile:externalTilesetFilename];
_filename = temp;
Original issue reported on code.google.com by bennih...@yahoo.de on 19 Aug 2013 at 9:15
Original issue reported on code.google.com by
bennih...@yahoo.de
on 19 Aug 2013 at 9:15