Coronacloudcontroller File Missing? And Asset Files?

Hi, I am trying to set up Corona Cloud and I just put this at the top of my main.lua:

[lua]

CC_Access_Key = “MYaccessKEY”

CC_Secret_Key = “MYsecretKEY”

coronaCloud = require ( “coronaCloudController” )

coronaCloud.init( CC_Access_Key, CC_Secret_Key )

gameNetwork = require( “gameNetwork” )

local params = { accessKey = CC_Access_Key, secretKey = CC_Secret_Key, }

gameNetwork.init( “corona”, params )

[/lua]

and then in the terminal it says:

2013-03-24 14:15:07.632 Corona Simulator[20464:f03] Runtime error

module ‘coronaCloudController’ not found:resource (coronaCloudController.lu) does not exist in archive

    no field package.preload[‘coronaCloudController’]

    no file ‘/Library/Application Support/Corona/Simulator/Plugins/coronaCloudController.lua’

    no file ‘/Users/Zac/Documents/code/llamaOrDuck/coronaCloudController.lua’

    no file ‘/Applications/CoronaSDK/Corona Simulator.app/Contents/Resources/coronaCloudController.lua’

    no file ‘/Library/Application Support/Corona/Simulator/Plugins/coronaCloudController.dylib’

    no file ‘./coronaCloudController.dylib’

    no file ‘/Applications/CoronaSDK/Corona Simulator.app/Contents/Resources/coronaCloudController.dylib’

stack traceback:

    [C]: ?

    [C]: in function ‘require’

    ?: in function ‘require’

    /Users/Zac/Documents/code/llamaOrDuck/main.lua:19: in main chunk

2013-03-24 14:15:07.633 Corona Simulator[20464:f03] Runtime error

stack traceback:

    [C]: ?

    [C]: in function ‘require’

    ?: in function ‘require’

    /Users/Zac/Documents/code/llamaOrDuck/main.lua:19: in main chunk

I think that maybe there are asset files that I am supposed to download because it looks like it can’t find the CoronaCloudController.lua file. If I take out those lines then it just gives me these warnings basically saying that there is an asset folder missing (I think):

2013-03-24 14:09:46.630 Corona Simulator[20464:f03] WARNING: Cannot create path for resource file ‘cloud_assets/cloud_imagesheet_1x.png’. File does not exist.

2013-03-24 14:09:46.631 Corona Simulator[20464:f03] WARNING: The ‘gameNetwork’ provider (corona) is not available on the simulator

Does anyone know what I am missing? Any help would be appreciated! :slight_smile:

Simple fix, as its an error in the guide.

You need to copy the coronal imagesheet folder across from the gameNetwork sample app then

Simply change

coronaCloud = require ( "coronaCloudController" )

to

coronaCloud = require ( "corona-cloud-core" )

Where is the GameNetwork sample app? I looked in the corona sample code folder and there is only a GameCenter project.

It’s been removed as its unstable, but you can get it from a previous build.  Cant remember which one though.  Maybe 2013.1060??

1060 isn’t in the daily builds. By any chance do you have the assets and could maybe give them to me?

Yeah, I looked through (downloaded and looked at the sample code) for a couple of the versions below 1061 and none have any other gameNetwork sample app other than GameCenter. Why is there no place to download the assets!?

FOUND IT!!! It is in build 2013.1061 and if you open the .dmg and just look in the folder its in /sampleCode/CoronaCloud/GameNetwork

Hope this helps other people!

It was only ever available for Mac.  So you might need to download the dmg package file

The guide should be getting updated on the require (“corona-cloud-core”) issue.

Simple fix, as its an error in the guide.

You need to copy the coronal imagesheet folder across from the gameNetwork sample app then

Simply change

coronaCloud = require ( "coronaCloudController" )

to

coronaCloud = require ( "corona-cloud-core" )

Where is the GameNetwork sample app? I looked in the corona sample code folder and there is only a GameCenter project.

It’s been removed as its unstable, but you can get it from a previous build.  Cant remember which one though.  Maybe 2013.1060??

1060 isn’t in the daily builds. By any chance do you have the assets and could maybe give them to me?

Yeah, I looked through (downloaded and looked at the sample code) for a couple of the versions below 1061 and none have any other gameNetwork sample app other than GameCenter. Why is there no place to download the assets!?

FOUND IT!!! It is in build 2013.1061 and if you open the .dmg and just look in the folder its in /sampleCode/CoronaCloud/GameNetwork

Hope this helps other people!

It was only ever available for Mac.  So you might need to download the dmg package file

The guide should be getting updated on the require (“corona-cloud-core”) issue.