Corona Cloud doesn't open the dashboard

Hi,

I was trying the new Corona Cloud service so I just tried some new API. I followed the instruction but when I try on my tablet (Android) It didn’t work, just a black screen. This is my code:

local CC\_Access\_Key = "MY\_ACCESS\_KEY" local CC\_Secret\_Key = "MY\_SECRET\_KEY" cloud = require ( "cloud" ) local currentAuthToken = "" local function authListener( event ) if ( event.type == "loggedIn" or event.type == "facebookLoggedIn" or event.type == "sessionLoggedIn" ) then if not ( event.error ) then currentAuthToken = cloud.authToken native.showAlert( "Login Successful!", "", {"OK"} ) else native.showAlert( "Login Error!", event.error, {"OK"} ) end elseif ( event.type == "registerUser" ) then if not ( event.error ) then else native.showAlert( "Registration Error!", event.error, {"OK"} ) end end end cloud.init( CC\_Access\_Key, CC\_Secret\_Key, authListener ) local params = { accessKey = CC\_Access\_Key, secretKey = CC\_Secret\_Key, } gameNetwork.init( "corona", params ) gameNetwork.show( "dashboard" )

How could I see what was the error? What’s wrong in my code?

Thank you a lot,

Andrea

Hi Andrea,

Have you enabled Internet permission/access on the Android device, in the build.settings file?

Brent

I forgot about this but now I’ve fixed it and still doesn’t work…

Thank you for your answer,

Andrea

Do you have the “adb” tools installed?  You need to install them and use the “adb logcat” command line command to look for errors from the device.

ok this is the error that i get:

I/Corona ( 8107): ----------------------------------------------- V/Corona ( 8107): \> Class.forName: cloud\_assets.cloud\_imagesheet\_1x.LuaLoader V/Corona ( 8107): Loading plugins: cloud\_assets.cloud\_imagesheet\_1x.LuaLoader D/dalvikvm( 8107): GC\_CONCURRENT freed 3K, 13% free 9270K/10631K, paused 7ms+3ms D/dalvikvm( 8033): GC\_FOR\_ALLOC freed 0K, 4% free 8746K/9031K, paused 39ms D/dalvikvm( 8033): GC\_CONCURRENT freed 1731K, 20% free 7726K/9543K, paused 3ms+4ms V/Corona ( 8107): Failed to write file: /data/data/com.andrea.icehero/cache/.system/resources/plugins.dex for library cloud\_assets.cloud\_imagesheet\_1x. I/Corona ( 8107): Runtime error I/Corona ( 8107): ERROR: Could not load provider (corona) due to the following reason: module 'cloud\_assets.cloud\_imagesheet\_1x' not found:resource (cloud\_assets.cloud\_imagesheet\_1x.lu) does not exist in archive I/Corona ( 8107): no field package.preload['cloud\_assets.cloud\_imagesheet\_1x'] I/Corona ( 8107): no file '(null)/cloud\_assets.cloud\_imagesheet\_1x.lua' I/Corona ( 8107): no file '(null)/cloud\_assets.cloud\_imagesheet\_1x.lua' I/Corona ( 8107): no file '/data/data/com.andrea.icehero/lib/libcloud\_assets.cloud\_imagesheet\_1x.so' I/Corona ( 8107): no file './cloud\_assets.cloud\_imagesheet\_1x.so' I/Corona ( 8107): no file '(null)/cloud\_assets.cloud\_imagesheet\_1x.so' I/Corona ( 8107): no file '/data/data/com.andrea.icehero/lib/libcloud\_assets.so' I/Corona ( 8107): no file './cloud\_assets.so' I/Corona ( 8107): no file '(null)/cloud\_assets.so'. I/Corona ( 8107): stack traceback: I/Corona ( 8107): [C]: ? I/Corona ( 8107): [C]: in function 'assert' I/Corona ( 8107): ?: in function 'requireProvider' I/Corona ( 8107): ?: in function 'setCurrentProvider' I/Corona ( 8107): ?: in function 'init' I/Corona ( 8107): ...sers/andreazanetti/Desktop/levels/optimized/main.lua:51: in main chunk

Problem solved!! I was missing the cloud_assets folder! Now this is my code:

local gameNetwork = require "gameNetwork\_corona\_prototype" local CC\_Access\_Key = "MY\_ACCESS\_KEY" local CC\_Secret\_Key = "MY\_SECRET\_KEY" local params = { accessKey = CC\_Access\_Key, secretKey = CC\_Secret\_Key, } gameNetwork.init( "corona", params ) gameNetwork.show( "dashboard" )

But now I have a new problem…I was trying to use the “gameNetwork_corona_prototype” file instead of the standard one “gameNetwork”, and I noticed that if I use a resolution that is different from 320x480 in the config.lua file, the first screen that asks you to register or login, is incorrectly displayed (I mean that the words are out of the frame). I just wanted to ask you if that is going to be fixed.

Thank you a lot again,

Andrea

Let me ask the engineers about this.

This was what I wanted to say:

http://tinypic.com/r/53n3ms/5

Hi az59,

Indeed, the current implementation only displays correctly with a 320x480 resolution set in your configuration. Thus the name “prototype” on the UI repository.

We are working on it, it is however hard for me to give you an estimate on this.

A great day,

Alex

Ok, but I had the same problem even with the standard “gameNetwork” library.

Andrea

Andrea what provider are you using?  

I mean the standard “gameNetwork” library provided by Corona Cloud.

Andrea

Sorry Andrea, I meant to as are you doing:

gameNetwork.init( "gamecenter", initCallback )

or

gameNetwork.init( "corona", params )

If you’re doing the “corona” version you are likely having the same issues as those using the opensourced version on github.  It’s the same code.  If you are having problems with “gamecenter” then we need to look at it.

No no I meant the “corona” version. Could I ask you one last thing? Do you know (approximately) when the “corona” version will be updated?

Thanks a lot,

Andrea

I don’t have an ETA, but since we open sourced it, go to our github. site:

https://github.com/coronalabs/gameNetwork_corona_prototype

And modify it yourself.  That would probably be the quicker thing for you.

Hi Andrea,

Have you enabled Internet permission/access on the Android device, in the build.settings file?

Brent

I forgot about this but now I’ve fixed it and still doesn’t work…

Thank you for your answer,

Andrea

Do you have the “adb” tools installed?  You need to install them and use the “adb logcat” command line command to look for errors from the device.

ok this is the error that i get:

I/Corona ( 8107): ----------------------------------------------- V/Corona ( 8107): \> Class.forName: cloud\_assets.cloud\_imagesheet\_1x.LuaLoader V/Corona ( 8107): Loading plugins: cloud\_assets.cloud\_imagesheet\_1x.LuaLoader D/dalvikvm( 8107): GC\_CONCURRENT freed 3K, 13% free 9270K/10631K, paused 7ms+3ms D/dalvikvm( 8033): GC\_FOR\_ALLOC freed 0K, 4% free 8746K/9031K, paused 39ms D/dalvikvm( 8033): GC\_CONCURRENT freed 1731K, 20% free 7726K/9543K, paused 3ms+4ms V/Corona ( 8107): Failed to write file: /data/data/com.andrea.icehero/cache/.system/resources/plugins.dex for library cloud\_assets.cloud\_imagesheet\_1x. I/Corona ( 8107): Runtime error I/Corona ( 8107): ERROR: Could not load provider (corona) due to the following reason: module 'cloud\_assets.cloud\_imagesheet\_1x' not found:resource (cloud\_assets.cloud\_imagesheet\_1x.lu) does not exist in archive I/Corona ( 8107): no field package.preload['cloud\_assets.cloud\_imagesheet\_1x'] I/Corona ( 8107): no file '(null)/cloud\_assets.cloud\_imagesheet\_1x.lua' I/Corona ( 8107): no file '(null)/cloud\_assets.cloud\_imagesheet\_1x.lua' I/Corona ( 8107): no file '/data/data/com.andrea.icehero/lib/libcloud\_assets.cloud\_imagesheet\_1x.so' I/Corona ( 8107): no file './cloud\_assets.cloud\_imagesheet\_1x.so' I/Corona ( 8107): no file '(null)/cloud\_assets.cloud\_imagesheet\_1x.so' I/Corona ( 8107): no file '/data/data/com.andrea.icehero/lib/libcloud\_assets.so' I/Corona ( 8107): no file './cloud\_assets.so' I/Corona ( 8107): no file '(null)/cloud\_assets.so'. I/Corona ( 8107): stack traceback: I/Corona ( 8107): [C]: ? I/Corona ( 8107): [C]: in function 'assert' I/Corona ( 8107): ?: in function 'requireProvider' I/Corona ( 8107): ?: in function 'setCurrentProvider' I/Corona ( 8107): ?: in function 'init' I/Corona ( 8107): ...sers/andreazanetti/Desktop/levels/optimized/main.lua:51: in main chunk

Problem solved!! I was missing the cloud_assets folder! Now this is my code:

local gameNetwork = require "gameNetwork\_corona\_prototype" local CC\_Access\_Key = "MY\_ACCESS\_KEY" local CC\_Secret\_Key = "MY\_SECRET\_KEY" local params = { accessKey = CC\_Access\_Key, secretKey = CC\_Secret\_Key, } gameNetwork.init( "corona", params ) gameNetwork.show( "dashboard" )

But now I have a new problem…I was trying to use the “gameNetwork_corona_prototype” file instead of the standard one “gameNetwork”, and I noticed that if I use a resolution that is different from 320x480 in the config.lua file, the first screen that asks you to register or login, is incorrectly displayed (I mean that the words are out of the frame). I just wanted to ask you if that is going to be fixed.

Thank you a lot again,

Andrea