Game Circle Error on Launch.

My app builds perfectly fine but when I try to launch it on my device I get the following error:

/Users/jenkins/slaveroot/workspace/Templates/label/android/platform/resources/init.lua:835:module ‘plugin.gamecircle’ not found:resources (plugin.gamecircle.lu) does not exists in archive

I tried the latest corona sdk daily build version as well as the current release version and I am getting the same error. 

Here is what I have under the plugin section of the build config:

[“plugin.gamecircle”] =

      {

          – required

          publisherId = “COM_INNOVATIVELEISURE”,

          supportedPlatforms = { [“android-kindle”] = true },

      }

Any idea what I am doing wrong? 

What version of Corona SDK are you using?  Have you built successful with the plugin before?

Rob

The app builds successfully but fails on launch.

I tried SDK number: 2015.2545, 2015.2638, 2014.2511 and 2014.2500.

No it has never worked for me on Corona (I have other apps on other frameworks using it without a problem).

Thank you

Adrian

Can you post your entire build.settings?

Exactly how it is on my file except for the google Id.

– For more information on build.settings see the Corona SDK Build Guide at:

http://docs.coronalabs.com/guide/distribution/buildSettings/index.html

settings =

{

  plugins =

  {   

      [“plugin.gamecircle”] =

      {

          – required

          publisherId = “COM_INNOVATIVELEISURE”,

          supportedPlatforms = { [“android-kindle”] = true },

      },

      [“plugin.photon”] =

      {

          – required

          publisherId = “com.exitgames”,

      },

      [“plugin.google.play.services”] =

      {

          publisherId = “com.coronalabs”,

      },

      [“CoronaProvider.analytics.flurry”] =

      {

          publisherId = “com.coronalabs”,

      },

      [“CoronaProvider.gameNetwork.google”] =

      {

        --required!

        publisherId = “com.coronalabs”,

        supportedPlatforms = { android=true },

      },

      [“plugin.adbuddiz”] =

      {

          – required

          publisherId = “com.adbuddiz”,

      },

      [“plugin.chartboost”] =

      {

            – required

            publisherId = “com.swipeware”,

      }

  }, 

orientation =

{

– Supported values for orientation:

– portrait, portraitUpsideDown, landscapeLeft, landscapeRight

default = “landscapeRight”,

supported = { “landscapeRight”, }

},

excludeFiles =

{

– Include only the necessary icon files on each platform

iphone = { “Icon-*dpi.png”, },

android = { “Icon.png”, “Icon-Small-*.png”, “Icon*@2x.png”, },

},

– iOS Section

iphone =

{

plist =

{

UIStatusBarHidden = false,

UIPrerenderedIcon = true, – set to false for “shine” overlay

–UIApplicationExitsOnSuspend = true, – uncomment to quit app on suspend

CFBundleIconFiles =

{

“Icon.png”,

“Icon@2x.png”,

“Icon-60.png”,

“Icon-60@2x.png”,

“Icon-60@3x.png”,

“Icon-72.png”,

“Icon-72@2x.png”,

“Icon-76.png”,

“Icon-76@2x.png”,

“Icon-Small.png”,

“Icon-Small@2x.png”,

“Icon-Small@3x.png”,

“Icon-Small-40.png”,

“Icon-Small-40@2x.png”,

“Icon-Small-50.png”,

“Icon-Small-50@2x.png”,

},

–[[

– iOS app URL schemes:

CFBundleURLTypes =

{

{

CFBundleURLSchemes =

{

“fbXXXXXXXXX”,  – replace XXXXXXXXX with your Facebook appId

}

}

}

–]]

}

},

– Android Section

android =

{

    usesPermissions =

    {

        “android.permission.INTERNET”,

        “android.permission.ACCESS_NETWORK_STATE”,

        “android.permission.ACCESS_WIFI_STATE”

    },

    googlePlayGamesAppId = “myappId”,

},

}

Here is what I get from the logs:

05-17 22:31:07.309: V/Corona(26049): > Class.forName: plugin.gamecircle.LuaLoader

05-17 22:31:07.309: V/Corona(26049): WARNING: Could not load ‘LuaLoader’

05-17 22:31:07.315: I/Corona(26049): Runtime error

05-17 22:31:07.315: I/Corona(26049): /Users/jenkins/slaveroot/workspace/Templates/label/android/platform/resources/init.lua:820: module ‘plugin.gamecircle’ not found:resource (plugin.gamecircle.lu) does not exist in archive

05-17 22:31:07.315: I/Corona(26049): no field package.preload[‘plugin.gamecircle’]

05-17 22:31:07.315: I/Corona(26049): no file ‘(null)/plugin.gamecircle.lua’

05-17 22:31:07.315: I/Corona(26049): no file ‘(null)/plugin.gamecircle.lua’

05-17 22:31:07.315: I/Corona(26049): no file ‘/data/app-lib/com.cabagomez.com.tictaczoo-1/libplugin.gamecircle.so’

05-17 22:31:07.315: I/Corona(26049): no file ‘./plugin.gamecircle.so’

05-17 22:31:07.315: I/Corona(26049): no file ‘(null)/plugin.gamecircle.so’

05-17 22:31:07.315: I/Corona(26049): no file ‘/data/app-lib/com.cabagomez.com.tictaczoo-1/libplugin.so’

05-17 22:31:07.315: I/Corona(26049): no file ‘./plugin.so’

05-17 22:31:07.315: I/Corona(26049): no file ‘(null)/plugin.so’

05-17 22:31:07.315: I/Corona(26049): stack traceback:

05-17 22:31:07.315: I/Corona(26049): [C]: in function ‘require’

05-17 22:31:07.315: I/Corona(26049): /Users/jenkins/slaveroot/workspace/Templates/label/android/platform/resources/init.lua:820: in function ‘require’

Taking a hint from what you told me I re-arranged the plugings. Made it match the sample in GitHub and not the documentation and now it is working. I tried to keep detail notes to figure out exactly what fixed it. I also deleted the plugin folder in the Application Support folder. (Interesting enough I see the fuse plugin being downloaded, can’t wait for it to be released). But I ended up thinking that I was deploying something else and ending up fixing it along the way. Wish I had more detail.

Glad you solved it.

Rob

Just wanted to say the following. I just created another project (since I finished my last one). Tried to integrate game circle again and sure enough I had the same problem. This time I know exactly what I did.

My setup:

  1. Macbook Pro.

  2. Google Chrome.

  3. I might have a spell check extension.

What I noticed for me:

If I copy and paste the key from the Amazon Game Circle box onto a text document it doesn’t work. If I download the key it does work. Now looking at the keys on the browser (before I copy to a text box) and from the download there are differences.

The key that shows on the browser ends with

“lw==”

While the key I downloaded ends with:

"C/A==
 

Just giving this info if somebody runs into the same problem.

What version of Corona SDK are you using?  Have you built successful with the plugin before?

Rob

The app builds successfully but fails on launch.

I tried SDK number: 2015.2545, 2015.2638, 2014.2511 and 2014.2500.

No it has never worked for me on Corona (I have other apps on other frameworks using it without a problem).

Thank you

Adrian

Can you post your entire build.settings?

Exactly how it is on my file except for the google Id.

– For more information on build.settings see the Corona SDK Build Guide at:

http://docs.coronalabs.com/guide/distribution/buildSettings/index.html

settings =

{

  plugins =

  {   

      [“plugin.gamecircle”] =

      {

          – required

          publisherId = “COM_INNOVATIVELEISURE”,

          supportedPlatforms = { [“android-kindle”] = true },

      },

      [“plugin.photon”] =

      {

          – required

          publisherId = “com.exitgames”,

      },

      [“plugin.google.play.services”] =

      {

          publisherId = “com.coronalabs”,

      },

      [“CoronaProvider.analytics.flurry”] =

      {

          publisherId = “com.coronalabs”,

      },

      [“CoronaProvider.gameNetwork.google”] =

      {

        --required!

        publisherId = “com.coronalabs”,

        supportedPlatforms = { android=true },

      },

      [“plugin.adbuddiz”] =

      {

          – required

          publisherId = “com.adbuddiz”,

      },

      [“plugin.chartboost”] =

      {

            – required

            publisherId = “com.swipeware”,

      }

  }, 

orientation =

{

– Supported values for orientation:

– portrait, portraitUpsideDown, landscapeLeft, landscapeRight

default = “landscapeRight”,

supported = { “landscapeRight”, }

},

excludeFiles =

{

– Include only the necessary icon files on each platform

iphone = { “Icon-*dpi.png”, },

android = { “Icon.png”, “Icon-Small-*.png”, “Icon*@2x.png”, },

},

– iOS Section

iphone =

{

plist =

{

UIStatusBarHidden = false,

UIPrerenderedIcon = true, – set to false for “shine” overlay

–UIApplicationExitsOnSuspend = true, – uncomment to quit app on suspend

CFBundleIconFiles =

{

“Icon.png”,

“Icon@2x.png”,

“Icon-60.png”,

“Icon-60@2x.png”,

“Icon-60@3x.png”,

“Icon-72.png”,

“Icon-72@2x.png”,

“Icon-76.png”,

“Icon-76@2x.png”,

“Icon-Small.png”,

“Icon-Small@2x.png”,

“Icon-Small@3x.png”,

“Icon-Small-40.png”,

“Icon-Small-40@2x.png”,

“Icon-Small-50.png”,

“Icon-Small-50@2x.png”,

},

–[[

– iOS app URL schemes:

CFBundleURLTypes =

{

{

CFBundleURLSchemes =

{

“fbXXXXXXXXX”,  – replace XXXXXXXXX with your Facebook appId

}

}

}

–]]

}

},

– Android Section

android =

{

    usesPermissions =

    {

        “android.permission.INTERNET”,

        “android.permission.ACCESS_NETWORK_STATE”,

        “android.permission.ACCESS_WIFI_STATE”

    },

    googlePlayGamesAppId = “myappId”,

},

}

Here is what I get from the logs:

05-17 22:31:07.309: V/Corona(26049): > Class.forName: plugin.gamecircle.LuaLoader

05-17 22:31:07.309: V/Corona(26049): WARNING: Could not load ‘LuaLoader’

05-17 22:31:07.315: I/Corona(26049): Runtime error

05-17 22:31:07.315: I/Corona(26049): /Users/jenkins/slaveroot/workspace/Templates/label/android/platform/resources/init.lua:820: module ‘plugin.gamecircle’ not found:resource (plugin.gamecircle.lu) does not exist in archive

05-17 22:31:07.315: I/Corona(26049): no field package.preload[‘plugin.gamecircle’]

05-17 22:31:07.315: I/Corona(26049): no file ‘(null)/plugin.gamecircle.lua’

05-17 22:31:07.315: I/Corona(26049): no file ‘(null)/plugin.gamecircle.lua’

05-17 22:31:07.315: I/Corona(26049): no file ‘/data/app-lib/com.cabagomez.com.tictaczoo-1/libplugin.gamecircle.so’

05-17 22:31:07.315: I/Corona(26049): no file ‘./plugin.gamecircle.so’

05-17 22:31:07.315: I/Corona(26049): no file ‘(null)/plugin.gamecircle.so’

05-17 22:31:07.315: I/Corona(26049): no file ‘/data/app-lib/com.cabagomez.com.tictaczoo-1/libplugin.so’

05-17 22:31:07.315: I/Corona(26049): no file ‘./plugin.so’

05-17 22:31:07.315: I/Corona(26049): no file ‘(null)/plugin.so’

05-17 22:31:07.315: I/Corona(26049): stack traceback:

05-17 22:31:07.315: I/Corona(26049): [C]: in function ‘require’

05-17 22:31:07.315: I/Corona(26049): /Users/jenkins/slaveroot/workspace/Templates/label/android/platform/resources/init.lua:820: in function ‘require’

Taking a hint from what you told me I re-arranged the plugings. Made it match the sample in GitHub and not the documentation and now it is working. I tried to keep detail notes to figure out exactly what fixed it. I also deleted the plugin folder in the Application Support folder. (Interesting enough I see the fuse plugin being downloaded, can’t wait for it to be released). But I ended up thinking that I was deploying something else and ending up fixing it along the way. Wish I had more detail.

Glad you solved it.

Rob

Just switching the order of the plugins in the build settings and removing supportedPlatforms line so it matched the sample in GitHub as @agramonte suggested worked for me.  

Not sure what the implication of removing the supportPlatforms parameter is?

The parameter exists to keep you from loading Android only plugins on Apple devices and visa versa.

Rob

Thanks Rob - When I removed this parameter my code wouldnt build correctly for iOS so I’ve added it back in and everything is ok.

Just wanted to say the following. I just created another project (since I finished my last one). Tried to integrate game circle again and sure enough I had the same problem. This time I know exactly what I did.

My setup:

  1. Macbook Pro.

  2. Google Chrome.

  3. I might have a spell check extension.

What I noticed for me:

If I copy and paste the key from the Amazon Game Circle box onto a text document it doesn’t work. If I download the key it does work. Now looking at the keys on the browser (before I copy to a text box) and from the download there are differences.

The key that shows on the browser ends with

“lw==”

While the key I downloaded ends with:

"C/A==
 

Just giving this info if somebody runs into the same problem.