ios - -[CCFileUtils fullPathForFilename:resolutionType:] : cocos2d: Warning: File not found: -


-[ccfileutils fullpathforfilename:resolutiontype:] : cocos2d: warning: file not found: play.png

cocos2d game....extremely simple started it.

this entire class , "play.png" , "sound.png" not being found. both located in "buttons.plist" (texture packer documents) , included in build phases.

class:

- (id) init {      if ((self = [super init]))      {     //[[simpleaudioengine sharedengine] playbackgroundmusic:@"looped.mp3" loop:yes];         [[ccspriteframecache sharedspriteframecache] addspriteframeswithfile:@"buttons.plist"];          cgsize winsize = [ccdirector shareddirector].winsize;          ccsprite* background;         if( winsize.width == 568 || winsize.height == 568 )             background = [ccsprite spritewithfile: @"title_bg-5x.png"];         else             background = [ccsprite spritewithfile: @"title_bg.png"];          [background setposition: ccp(winsize.width/2, winsize.height/2)];         [self addchild: background];          ccmenuitemimage *play = [ccmenuitemimage itemwithnormalimage:@"play.png" selectedimage:@"play.png"                                                                    target:self selector:@selector(actiongame:)];           if(ui_user_interface_idiom() == uiuserinterfaceidiompad)         {             play.position =  ccp(winsize.width/2,winsize.height/2);         }         else         {             play.position =  ccp(winsize.width/2,winsize.height/2);         }          ccmenuitemimage *sound = [ccmenuitemimage itemwithnormalimage:@"sound.png"                                                selectedimage: @"sound.png"                                                       target: self                                                     selector:@selector(actionsound:)];         if(ui_user_interface_idiom() == uiuserinterfaceidiompad)         {             sound.position=ccp(winsize.width/2,winsize.height/2);         }         else         {             sound.position=ccp(winsize.width/2,winsize.height/2);         }           ccmenu *menu = [ccmenu menuwithitems:play, menu, nil];         [self addchild:menu z:4];      }       return self; } 

navigator: the .plist files "play.png" , "sound.png"

build phases has .plist files , .png files too.

any ideas why getting error / why buttons not showing up? start of project , i've never had issue before.

thank can provide me.

does happen on first initialisation or after?

if happens after first:

check if used;

[[cctexturecache sharedtexturecache] removeunusedtextures]; 

somewhere after init. same problem occurred on project , think code above doesn't work expected.


Comments

Popular posts from this blog

google api - Incomplete response from Gmail API threads.list -

Installing Android SQLite Asset Helper -

Qt Creator - Searching files with Locator including folder -