2014.2321 gameNetwork?

Has something changed with gameNetwork?  I was using 2014.2289 without issue, and today I upgraded to 2014.2321 and cannot run my app in the simulator.  I am getting an error on the following line:

[lua]

local gameNetwork = require “gameNetwork”

[/lua]

Reverting back to 2014.2289 and everything works.

thanks,

–John

What is the error?

Can you post your build.settings?

Hi Rob,

Here is my build.settings file…  Since I downgraded to an earlier version, I am afraid I do not recall the exact error message (Man, I should of remembered to put that in my original message!), but it had some generic message about the loading the gameNetwork library.

Again, this is on the simulator.  I know GC does not do anything on the sim, but it would at least load and tell you that in the output window.  It does now with the version i am currently using.

If there is nothing overly obvious in this build.setting file, I guess I will have to upgrade and get the error.

PS: How does it distinguish between iOS or Android on the sim? 

Thanks,

[lua]

– Supported values for orientation:

– portrait, portraitUpsideDown, landscapeLeft, landscapeRight

settings = {

    plugins =

    {

        – key is the name passed to Lua’s ‘require()’

        [“CoronaProvider.gameNetwork.google”] =

        {

            – required

            publisherId = “com.coronalabs”,

            supportedPlatforms = { android = true }

        },

    },

    orientation = {

            default = “landscapeRight”,

            supported = { “landscapeRight”, “landscapeLeft” }

    },

    iphone = {

            plist = {

                    UIStatusBarHidden = false,

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

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

        --[[

        – iOS app URL schemes:

        CFBundleURLTypes =

        {

            {

                CFBundleURLSchemes =

                {

                    “fbXXXXXXXXXXXXXX”, – example scheme for facebook

                    “coronasdkapp”, – example second scheme

                }

            }

        }

        --]]

            }

    },

    – Android permissions

    

    android = {

        googlePlayGamesAppId = “”,

        versionCode = 1,

        versionName = “0.1”,        

    },

    androidPermissions = {

        “android.permission.INTERNET”,

        “android.permission.INTERACT_ACROSS_USERS”,

    },

}

[/lua]

You don’t really distinguish between them on the sim.  If this is a sim error, we need to know about it.  GameNetwork should tell you it’s not going to run and gracefully move along.  You need to actually test gameCenter on a device or in the Xcode simulator (though I find the device faster).

Rob

Right… that’s what I thought.

I guess I need to install the latest and get the error message to help you out.  I’ll try to do that later today.

Thanks Rob

Rob,

I upgraded to 2014.2322 and I created a 1-line program:

[lua]

local gameNetwork = require (“gameNetwork”)

[/lua]

Ran with and without the above build.settings file.  Here is the error:

[lua]

Copyright © 2009-2014  C o r o n a   L a b s   I n c .

        Version: 3.0.0

        Build: 2014.2322

Platform: GT-I9300 / x64 / 6.1 / GeForce GT 630/PCIe/SSE2 / 4.4.0

Runtime error

module ‘gameNetwork’ not found:resource (gameNetwork.lu) does not exist in arch

ve

        no field package.preload[‘gameNetwork’]

        no file 'C:\Users\John\AppData\Roaming\Corona Labs\Corona Simulator\Plu

ins\gameNetwork.lua’

        no file ‘c:\users\john\documents\corona projects\test\gameNetwork.lua’

        no file 'C:\Program Files (x86)\Corona Labs\Corona SDK\Resources\gameNe

work.lua’

        no file 'C:\Users\John\AppData\Roaming\Corona Labs\Corona Simulator\Plu

ins\gameNetwork.dll’

        no file ‘.\gameNetwork.dll’

        no file 'C:\Program Files (x86)\Corona Labs\Corona SDK\Resources\gameNe

work.dll’gameNetwork

stack traceback:

        [C]: in function ‘require’

        ?: in function ‘require’

        c:\users\john\documents\corona projects\test\main.lua:1: in main chunk

[/lua]

Engineering reports this will be fixed in build 2325 or later.

Rob

Thanks for the update Rob!

What is the error?

Can you post your build.settings?

Hi Rob,

Here is my build.settings file…  Since I downgraded to an earlier version, I am afraid I do not recall the exact error message (Man, I should of remembered to put that in my original message!), but it had some generic message about the loading the gameNetwork library.

Again, this is on the simulator.  I know GC does not do anything on the sim, but it would at least load and tell you that in the output window.  It does now with the version i am currently using.

If there is nothing overly obvious in this build.setting file, I guess I will have to upgrade and get the error.

PS: How does it distinguish between iOS or Android on the sim? 

Thanks,

[lua]

– Supported values for orientation:

– portrait, portraitUpsideDown, landscapeLeft, landscapeRight

settings = {

    plugins =

    {

        – key is the name passed to Lua’s ‘require()’

        [“CoronaProvider.gameNetwork.google”] =

        {

            – required

            publisherId = “com.coronalabs”,

            supportedPlatforms = { android = true }

        },

    },

    orientation = {

            default = “landscapeRight”,

            supported = { “landscapeRight”, “landscapeLeft” }

    },

    iphone = {

            plist = {

                    UIStatusBarHidden = false,

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

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

        --[[

        – iOS app URL schemes:

        CFBundleURLTypes =

        {

            {

                CFBundleURLSchemes =

                {

                    “fbXXXXXXXXXXXXXX”, – example scheme for facebook

                    “coronasdkapp”, – example second scheme

                }

            }

        }

        --]]

            }

    },

    – Android permissions

    

    android = {

        googlePlayGamesAppId = “”,

        versionCode = 1,

        versionName = “0.1”,        

    },

    androidPermissions = {

        “android.permission.INTERNET”,

        “android.permission.INTERACT_ACROSS_USERS”,

    },

}

[/lua]

You don’t really distinguish between them on the sim.  If this is a sim error, we need to know about it.  GameNetwork should tell you it’s not going to run and gracefully move along.  You need to actually test gameCenter on a device or in the Xcode simulator (though I find the device faster).

Rob

Right… that’s what I thought.

I guess I need to install the latest and get the error message to help you out.  I’ll try to do that later today.

Thanks Rob

Rob,

I upgraded to 2014.2322 and I created a 1-line program:

[lua]

local gameNetwork = require (“gameNetwork”)

[/lua]

Ran with and without the above build.settings file.  Here is the error:

[lua]

Copyright © 2009-2014  C o r o n a   L a b s   I n c .

        Version: 3.0.0

        Build: 2014.2322

Platform: GT-I9300 / x64 / 6.1 / GeForce GT 630/PCIe/SSE2 / 4.4.0

Runtime error

module ‘gameNetwork’ not found:resource (gameNetwork.lu) does not exist in arch

ve

        no field package.preload[‘gameNetwork’]

        no file 'C:\Users\John\AppData\Roaming\Corona Labs\Corona Simulator\Plu

ins\gameNetwork.lua’

        no file ‘c:\users\john\documents\corona projects\test\gameNetwork.lua’

        no file 'C:\Program Files (x86)\Corona Labs\Corona SDK\Resources\gameNe

work.lua’

        no file 'C:\Users\John\AppData\Roaming\Corona Labs\Corona Simulator\Plu

ins\gameNetwork.dll’

        no file ‘.\gameNetwork.dll’

        no file 'C:\Program Files (x86)\Corona Labs\Corona SDK\Resources\gameNe

work.dll’gameNetwork

stack traceback:

        [C]: in function ‘require’

        ?: in function ‘require’

        c:\users\john\documents\corona projects\test\main.lua:1: in main chunk

[/lua]

Engineering reports this will be fixed in build 2325 or later.

Rob

Thanks for the update Rob!