Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

Game Circle Error on Launch.
Started by agramonte May 17 2015 10:29 AM

11 replies to this topic
[TOPIC CONTROLS]
This topic has been archived. This means that you cannot reply to this topic.
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

agramonte

[GLOBAL: userInfoPane.html]
agramonte
  • Corona Geek

  • 1,420 posts
  • Corona SDK

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? 


[TOPIC: post.html]
#2

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 26,693 posts
  • Enterprise

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

 

Rob



[TOPIC: post.html]
#3

agramonte

[GLOBAL: userInfoPane.html]
agramonte
  • Corona Geek

  • 1,420 posts
  • Corona SDK

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



[TOPIC: post.html]
#4

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 26,693 posts
  • Enterprise

Can you post your entire build.settings?



[TOPIC: post.html]
#5

agramonte

[GLOBAL: userInfoPane.html]
agramonte
  • Corona Geek

  • 1,420 posts
  • Corona SDK

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:
--
 
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",
},
}


[TOPIC: post.html]
#6

agramonte

[GLOBAL: userInfoPane.html]
agramonte
  • Corona Geek

  • 1,420 posts
  • Corona SDK

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'


[TOPIC: post.html]
#7

agramonte

[GLOBAL: userInfoPane.html]
agramonte
  • Corona Geek

  • 1,420 posts
  • Corona SDK

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.



[TOPIC: post.html]
#8

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 26,693 posts
  • Enterprise

Glad you solved it.

 

Rob



[TOPIC: post.html]
#9

agramonte

[GLOBAL: userInfoPane.html]
agramonte
  • Corona Geek

  • 1,420 posts
  • Corona SDK

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.



[TOPIC: post.html]
#10

dzy969

[GLOBAL: userInfoPane.html]
dzy969
  • Observer

  • 13 posts
  • Corona SDK

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?



[TOPIC: post.html]
#11

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 26,693 posts
  • Enterprise

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

 

Rob



[TOPIC: post.html]
#12

dzy969

[GLOBAL: userInfoPane.html]
dzy969
  • Observer

  • 13 posts
  • Corona SDK

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.




[topic_controls]
[/topic_controls]