question

David Hyldkrog avatar image
David Hyldkrog asked

GameCircle initialize error in Adobe Air

Hi Amazon First of all, I have been sitting an entire day and tried to figure out why I get this error saying Error: GameCircle not initialized; call GameCircle.create() first. at com.amazon.nativeextensions::GameCircle$/get gameCircle()[C:\Users\jar\dev\AIR plugin\swclibrary\defaultsrc\as3\com\amazon\nativeextensions\ GameCircle.as:343] at AlienBiker_fla::MainTimeline/frame1()[AlienBiker_fla.MainTimeline::frame1:6] I have been reading a lot of articles without getting any closer to solve the problem. The documentation you guys have produced is absolutely a disaster and confusing since some descriptions is for one version and other descriptions for other versions. Many times people have to figure out which version each description belongs to. Anyway, I have created an api key and placed it in my included files inside air settings. In GameCircle I have made a profile and attached it to my game, and it doesn't complain when I go from my game to gamecircle and open the gamecircle profile that belongs to my game, so it should be fine. However, when I place this code on the first frame in my game: import com.amazon.nativeextensions.*; import com.amazon.nativeextensions.events.*; import com.amazon.nativeextensions.dispatchers.*; GameCircle.create() Nothing Happens. And when I place this code on the first frame in my game: import com.amazon.nativeextensions.*; import com.amazon.nativeextensions.events.*; import com.amazon.nativeextensions.dispatchers.*; GameCircle.create() // show the leaderboards overlay GameCircle.gameCircle.showLeaderboards(); I get the error: Error: GameCircle not initialized; call GameCircle.create() first. at com.amazon.nativeextensions::GameCircle$/get gameCircle()[C:\Users\jar\dev\AIR plugin\swclibrary\defaultsrc\as3\com\amazon\nativeextensions\ GameCircle.as:343] at AlienBiker_fla::MainTimeline/frame1()[AlienBiker_fla.MainTimeline::frame1:6] The error text is a joke since I called the GameCircle.create() first, so I am looking forward to an explanation. Regards David
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

DougM@Amazon avatar image
DougM@Amazon answered
Hello David, We recommend you try to call GameCircle.gameCircle.showLeaderboards() in the callback funciton of GameCircle.create(). The follow links would be very helpful you as far as how to implement GameCircle within your app. https://developer.amazon.com/public/apis/engage/gamecircle/docs/air-ane-2x-setup https://developer.amazon.com/public/apis/engage/gamecircle/javadoc/gamecircle-air-api-reference
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

fitchett-productions avatar image
fitchett-productions answered
Did you ever figure out the problem? I am having the same issue! It wont work whenever I Use GameCircle.create(); I get this error: Error: GameCircle not initialized; call GameCircle.create() first. at com.amazon.nativeextensions::GameCircle$/get gameCircle()[C:\Users\jar\dev\AIR plugin\swclibrary\defaultsrc\as3\com\amazon\nativeextensions\ GameCircle.as:343] at logRideProEngine/introFrameHandler()[C:\Users\Nathan\Documents\Log Ride Pro\ logRideProEngine.as:267] I was really hoping for the ANE to work.
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

fitchett-productions avatar image
fitchett-productions answered
So I cant use this ANE doesnt work for me I guess since I already use SharedObject Data to store local highscores to the users Device it interferes with your ANE for some odd reason I keep getting an error that points to the Amazon ANE SharedObject Class
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Nick Gardner avatar image
Nick Gardner answered
Hi, One suggestion I'd have is to make sure the create() execution is complete before calling any other part of GameCircle. While it looks like you're calling the function, the function hasn't finished initialized before you call the leaderboards method. Thanks, Nick
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.