Hi,
It's not a bug, I guess, but I though it might save someone the 20 minutes I spent verifying/recreating my tilesheets ..
When you are loading a .tmx file, like
TMXTiledMap *map = [TMXTiledMap tiledMapWithTMXFile:@"Game_TileMa.tmx"];
if you have a typo in the .tmx filename(like i forgot the ending 'p' up there) , it throws an assertion of:
TMXTiledMap: only supports 1 tileset
So I went back, recreated my tilemap, making sure to only have the one allowed tileset.. double checked.. same assertion thrown . Did this a couple of times before I noticed the typo in my filename.. lol
Something along the lines of another assertion just before that one that checks if there are zero tilesets, then the file didn't get loaded would have helped, like this:
in TMXTiledMap.m
-(id) initWithTMXFile:(NSString*)tmxFile
{
...
NSAssert( [mapInfo->tilesets count] != 0, @"TMXTiledMap: Map not found. Please check the filename.");
NSAssert( [mapInfo->tilesets count] == 1, @"TMXTiledMap: only supports 1 tileset");
...
}
HTH,
Mark