openfeint.launchDashboard("achievements") not working?

openfeint.launchDashboard("achievements") is not working. What am I supposed to do. People say it will randomly start working, is that true?
Here is code:

local openfeint = require "openfeint"

local of_product_key = "myKeyIsHere"
local of_product_secret = "mySecretIsHere"
local of_app_id = "myIdIsHere"
local display_name = "myNameIsHere"

openfeint.init(of_product_key, of_product_secret, display_name, of_app_id)

local function op()
openfeint.launchDashboard()
end

local function ac()
openfeint.launchDashboard("achievements")
end

local function le()
openfeint.launchDashboard("leaderboards")
end

All three functions lead to same generic openfeint screen of the three selections: Forums and Chat, Fan Club, and Who's Playing.

I am not sure if this is the case with your game. But if you do not have any achievements or leaderboards setup for your game at Openfeint's website, then it will just load the default openfeint dashboard.

Stephen

Yes Ive setup my achievements and leaderboards, or else I wouldnt have to create buttons to go to achievements and leaderboards...

If you are using the latest daily builds (starting with build #557), then I recommend that you switch over to the gameNetwork API because the openfeint API is being deprecated.

Please see this...
http://developer.anscamobile.com/reference/index/gamenetwork/gamenetworkshow

This code works:

gameNetwork.request( "unlockAchievement", "#id" )

Regards,
Jordan Schuetz
Ninja Pig Studios

I have a second app I am working on and decided to setup some achievements within openfeint. I am experiencing the same problem. It's been almost 24 hours and they still do not show in the app. I do not remember having to do anything special to get them to work on my first app nor do the developer documents mention any special step.

So it would seem this is an issue on openfeint's end and it probably will start working randomly. I am not aware of any approval period. So not sure how long it will take.

Stephen

Anderoth,

To display the achievements screen, you'll need to call the following function...
gameNetwork.show("achievements")

I'm not sure what exactly is not working for you. Can you post a sample of your Lua script please? (Please remove your keys from your gameNetwork.init() function to protect yourself.)

@Joshua

It does not appear to be the code or a bug.

The button itself works, it just loads the openfeint dashboard. Which does not list an achievements button, only the leaderboards, forums & chat, fan club and who's playing buttons. If I load my first app which was setup some time ago, the dashboard has all those buttons plus the achievements button. This indicates to me that openfeint itself has not activated my achievements so it can't even list the button in the dashboard yet.

My guess is this is not an instant thing and probably requires some automated function on their end to happen before they show up. Some script or such. If it takes more than a couple days I will email them to see if there is a problem on their end.

PrEsEntBesTech seems to be in the same situation, yet both his leaderboards and achievements have yet to be "activated" on openfeint's end.

Stephen

Anderoth,

That's weird. I remember the OpenFeint dashboard displaying achievements that I've created on the same day. Leaderboards too.

On the OpenFeint website, I remember that you have to make sure that the application that you want to work on is selected on the "Overview" page before selecting the Features page to set up your achievements and leaderboards. If that doesn't work for you, then perhaps it is an OpenFeint server issue and you need to contact their tech support.

In any case, I wish you luck and hope it works for you soon.

Agreed, I don't remember having to wait with my first app. It was just go in, set them up. Code the button. Test the button on the device and boom, there they were.

Makes me wonder if openfeint is beginning to get overwelmed and the process is getting delayed.

Either way I will post again if/when they show up or I get them to fix it. That way this is all documented.

Stephen

I made Open Feint available in my game. Here's the thing, I had problems with the openfeint API, so then I switched to gameNetwork and it worked perfectly. Just upgrade your code and it should work fine.

Regards,
Jordan Schuetz
Ninja Pig Studios

@ninja

I don't know about PrEsEntBesTech but the app I am having difficulty with has been using gameNetwork from the start.

Taking in all factors and how the dashboard is missing the actual achievements button, I believe 100% this is a problem on openfeint's end.

Stephen

Hello Jordon,

Getting back to the topic of this thread, you stated that calling openfeint.launchDashboard() no longer works. Was it not working for you on iOS or Android? Because I remember testing for backward compatibility on Android and it did work.

I'm using it for Android and when I called the function, the achievement didn't work. Then once I switched to gameNetwork, and changed the request code to the code I mentioned above, the achievements worked.

Regards,
Jordan Schuetz
Ninja Pig Studios

I fixed my problem with openfeint but the openfeint.launchDashboard("achievements") still does not work. All I did was redo everything in openfeint

Dude, get the updated gameNetwork code off the Corona website...then use the new gameNetwork API.

Regards,
Jordan Schuetz
Ninja Pig Studios

I'm having a similar problem, i have both leaderboards and achievements set up in OF (and im using the new api), but even if i try both lines of code one after another in a function...

gameNetwork.show("leaderboards")
gameNetwork.show("achievements")

...only the leaderboards ever show up including the other OF dashboard buttons (whos online, etc) but no achievements button. Note: When achievements are unlocked in the game i do see a quick message in the OF dashboard that an achievement was unlocked just no button or no way to see any achievements.

IS the above code correct to show both leaderboard and achievement buttons or do i put it like this

gameNetwork.show("leaderboards","achievements")

???

Hello jacques1,

You are not calling it correctly. The gameNetwork.show() function shows an OpenFeint dashboard immediately and you may only show one dashboard at a time. If you only want to see a listing of achievements and nothing else, then call...
gameNetwork.show("achievements")

If you want to show the main OpenFeint dashboard which gives you options to everything (leaderboards, achievements, friend list, etc.), then call the show function without any arguments as follows...
gameNetwork.show()

Other than that, you cannot control what buttons appear in the OpenFeint dashboard. For example, you cannot just show a listing of achievements and leaderboards and nothing else. Corona has no control over this. This is how OpenFeint designed these dashboards. You can only control which screen you want to display to the user and the content is set up via the OpenFeint website.

Yup thanks for the quick reply joshua, however my problem is that no matter if i put gameNetwork.show(), gameNetwork.show("leaderboards"), gameNetwork.show("achievements"), the achievements button never shows up only the leaderboards and the other 3 buttons appear, although the game achievements are being registered by OF and points are being awarded. Perhaps it's something i setup wrong in OF.

Hello jacques1,

Make sure that your achievements are not flagged "secret" on OpenFeint's website. If that still doesn't change anything, then unfortunately I'm going to have to recommend that you contact OpenFeint's tech support about this because what you are seeing is definitely not normal.

@jacques1

As mentioned earlier in this thread, I had problems concerning achievements and OF also.

I contacted Ansca and OF directly and no one found fault with the code or my settings on OF.

In the end I just made a new game in OF with the same name. Updated my prodcut key/secretId/etc and suddenly all my OLD achievements showed up in the second copy's dashboard. So I deleted the achievements from the first and recreated them in the second. Now I just ignore the fact the first even exists. It all seems to work fine. I of course needed to make a new leaderboard in the second copy as well.

If you can't find a solution, try making a second game of the same name on the OF site.

Stephen

I tried for a long time to get my achievements to work but i could never see the button in the dashboard.

In the end i did what @anderoth did and set up a new game in openfeint and it worked.

Is it possible that you need to set up the leaderboard and the achievements at the same time for it to work correctly.

Im having a similar issue with leaderboards.. All my achievements show up and work fine.

I have the leaderboards visible and active in the openfient developer dashboad, but no matter what i do they dont appear ingame..

Ive contacted their support, but as of yet no response.

views:1807 update:2011/11/3 16:17:22
corona forums © 2003-2011