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. [import]uid: 8335 topic_id: 13128 reply_id: 313128[/import]

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 [import]uid: 56820 topic_id: 13128 reply_id: 48205[/import]

Yes Ive setup my achievements and leaderboards, or else I wouldnt have to create buttons to go to achievements and leaderboards… [import]uid: 8335 topic_id: 13128 reply_id: 48206[/import]

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
[import]uid: 32256 topic_id: 13128 reply_id: 48223[/import]

This code works:

[lua]gameNetwork.request( “unlockAchievement”, “#id” )[/lua]

Regards,
Jordan Schuetz
Ninja Pig Studios [import]uid: 29181 topic_id: 13128 reply_id: 48271[/import]

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 [import]uid: 56820 topic_id: 13128 reply_id: 48383[/import]

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.) [import]uid: 32256 topic_id: 13128 reply_id: 48389[/import]

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. [import]uid: 32256 topic_id: 13128 reply_id: 48408[/import]

@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

[import]uid: 56820 topic_id: 13128 reply_id: 48400[/import]

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 [import]uid: 56820 topic_id: 13128 reply_id: 48424[/import]

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 [import]uid: 29181 topic_id: 13128 reply_id: 48428[/import]

@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 [import]uid: 56820 topic_id: 13128 reply_id: 48434[/import]

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. [import]uid: 32256 topic_id: 13128 reply_id: 48440[/import]

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 [import]uid: 29181 topic_id: 13128 reply_id: 48442[/import]

I fixed my problem with openfeint but the openfeint.launchDashboard(“achievements”) still does not work. All I did was redo everything in openfeint [import]uid: 8335 topic_id: 13128 reply_id: 48453[/import]

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

Regards,
Jordan Schuetz
Ninja Pig Studios [import]uid: 29181 topic_id: 13128 reply_id: 48455[/import]

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”)

??? [import]uid: 66228 topic_id: 13128 reply_id: 51083[/import]

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. [import]uid: 32256 topic_id: 13128 reply_id: 51139[/import]

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. [import]uid: 66228 topic_id: 13128 reply_id: 51143[/import]

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. [import]uid: 32256 topic_id: 13128 reply_id: 51145[/import]