What does this warning mean in corona sdk console?

I am getting the following warning in corona sdk console whenever i run my game

WARNING: Cannot create path for resource file 'level1.ccscene' b/c it doesn't exist

 
 

You’re trying to access a file that the system thinks doesn’t exist for one of these reasons:

  • wrong case (i.e. Bob when file is named bob)
  • wrong spelling
  • wrong choice of dot (.) or slash (/) see below.
  • wrong choice of basedir 

When to use dot (.) versus slash (/)

  • Only use dot for require(), storyboard, and composer

  • Use slash in all other cases.

    require “afolder.anotherfolder.afile” composer.loadScene( “morefolders.scenefile” )

    display.newImageRect( “images/smiley.png”, 100, 100 )

If that doesn’t help, show the exact line of code that goes with that error message and we’ll probably see the issue.

Is there any additional messages in your console log?  Are you trying to require the file?  Can you make sure the .ccscene file is actually there and named level1.ccscene?  I know the default is scene1.ccscene.

Ed, .ccscene files are output from Corona Composer GUI.

Rob

@Rob there aren’t any additional messages shown, i created a new project and placed all my level files in the same directory, i named my files like these level1.lua & level2.lua , can u please tell me what is the .ccscene file ? , i don’t have any file named like that  :( , i am not using composer GUI as my pc is using windows .

@roaming gamer can u tell me what do you mean by wrong choice of basedir ,  i had placed all my files in the project folder itself

If you’re not using Corona Composer GUI, you probably can ignore the message.

Rob

You’re trying to access a file that the system thinks doesn’t exist for one of these reasons:

  • wrong case (i.e. Bob when file is named bob)
  • wrong spelling
  • wrong choice of dot (.) or slash (/) see below.
  • wrong choice of basedir 

When to use dot (.) versus slash (/)

  • Only use dot for require(), storyboard, and composer

  • Use slash in all other cases.

    require “afolder.anotherfolder.afile” composer.loadScene( “morefolders.scenefile” )

    display.newImageRect( “images/smiley.png”, 100, 100 )

If that doesn’t help, show the exact line of code that goes with that error message and we’ll probably see the issue.

Is there any additional messages in your console log?  Are you trying to require the file?  Can you make sure the .ccscene file is actually there and named level1.ccscene?  I know the default is scene1.ccscene.

Ed, .ccscene files are output from Corona Composer GUI.

Rob

@Rob there aren’t any additional messages shown, i created a new project and placed all my level files in the same directory, i named my files like these level1.lua & level2.lua , can u please tell me what is the .ccscene file ? , i don’t have any file named like that  :( , i am not using composer GUI as my pc is using windows .

@roaming gamer can u tell me what do you mean by wrong choice of basedir ,  i had placed all my files in the project folder itself

If you’re not using Corona Composer GUI, you probably can ignore the message.

Rob