Hi I'm trying to switch over to using sprite sheets and am having a problem getting it to work. I basically am trying to replace the SpriteTest : SpriteFrameTest that comes with cocos2d with my own spritesheet but get the following errors :
2010-03-20 23:41:12.926 TestSpriteSheet[14596:207] cocos2d: CCTexture2D. Can't create Texture. UIImage is nil
2010-03-20 23:41:12.927 TestSpriteSheet[14596:207] cocos2d: Couldn't add image:spiderboss.png in CCTextureCache
2010-03-20 23:41:12.930 TestSpriteSheet[14596:207] *** Assertion failure in -[CCSprite initWithSpriteFrame:], /Users/imrankhawaja/Documents/Iphone/TestSpriteSheet/libs/cocos2d/CCSprite.m:215
2010-03-20 23:41:12.931 TestSpriteSheet[14596:207] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Invalid spriteFrame for sprite'
2010-03-20 23:41:12.939 TestSpriteSheet[14596:207] Stack: (
807902715,
2461897993,
807986683,
811271572,
293160,
290523,
290656,
11087,
220458,
10758,
10075,
814713539,
814750709,
814739251,
814722434,
814748641,
839148405,
807687520,
807683624,
814715661,
814752238,
9284,
9158
)
But when I run the code with the grossini.plist and the corresponding sprite sheet everything works fine so I'm assuming my spritesheet is messed up? My spritesheet just has two images in it. Does anything pop out to anyone why I would get these errors?
Thanks