Open Feint help for beginner

I have signed up on the Open Feint site as a developer and crated an application and a leaderboard.

I have put the following code at the beginning of my main.lua

  
require "openfeint"  
  
openfeint.init( "my product key", "my product secret", "Test" )  
  

And when my game is over I have the following code

  
openfeint.setHighScore( { leaderboardID="myleaderboard Id", score=numScore } )  
  

When I launch my game on the iphone, after the default loading screen, the first time I played it got a full screen Open Feint screen appearing asking if I wanted to enable open feint or something like that and I chose yes.

Launching subsequent times I get a welcome back open feint message the bottom of the screen. Clicking on this opens full screen open feint screen.

If I navigate to the My Games section I see 3 other games I have downloaded from app store but not my game.

Any idea what I am doing wrong or how I can check if my code to submit a high score is working?

Perhaps there is something more I need to do on the Open Feint site? Prepare for submission?

Thanks

Paul [import]uid: 7863 topic_id: 3035 reply_id: 303035[/import]

Was hoping someone had successfully used OpenFeint in a Corona game and could offer some advice on the basis steps to get this up and running.

I was under the impression I had set everything up on the Open Feint site but don’t seem to be able to see any reference to my game when open feint is launched within my Corona game.

Any chance of a quick summary of the steps required to get this to work for a basic leaderboard?

Thanks

Paul [import]uid: 7863 topic_id: 3035 reply_id: 9126[/import]

Hi Paul,

Here’s how to do it:

* Go to http://www.openfeint.com/developers and sign up for an account (it’s free).

* Once you’re in, add your app and fill out as much details as possible (it doesn’t have to be live in the app store just yet).

* Create at least one leaderboard and fill out the iPhone app store listing section (there might be some other requirement, it’ll tell you though), and then in one of the sections on the left (just go through them, it’s not too hard to find), click ‘Submit for Review’ (probably not the exact wording but something to that effect).

* You should receive an email within a few days letting you know that your app has been approved.

Also note that you don’t have to wait for your game to be approved before integrating OF into your app for development. While you’re waiting for it to be approved, you can still get your product key and product secret (click ‘App Home’ on the left once you’re logged into the OF developer’s panel to get that info).

Once you create a leaderboard, the leaderboard ID will be shown in the listing next to each leaderboard. It’ll be a series of numbers, but make sure you enclose it as a string when you call openfeint.setHighScore (put double quotes around it).

Hope that helps! Feel free to post more questions if you need anymore help, I’ll get an email notification if you reply to this thread now, so you’ll definitely get a response.

Good luck!

Jonathan Beebe [import]uid: 7849 topic_id: 3035 reply_id: 9247[/import]

Thank you Jonathan - I really appreciate the advice.

I don’t think I submitted my game for review though I do have the leaderboard ID. I also just noticed when open feint opens in my game that it says the game name at the top of the open feint screen. ie “Now Playing [my game name]”

It also asks me if I would like to use my current location - don’t think this is related to my problem.

I assume when it is working that I should see a reference to my game under the “My Games” section in open feint?

I will look on open feint site now to see if i had submitted it.

Thanks

Paul [import]uid: 7863 topic_id: 3035 reply_id: 9251[/import]

I see there is an option to Submit but when I try to do this I get an error

An error has occurred. Application must have an iPurchase page setup.

Any idea what I need to do here? [import]uid: 7863 topic_id: 3035 reply_id: 9252[/import]

The iPurchase page is one of the sections (or sub-sections) on the left in the OpenFeint developer’s panel. Just look through the list of items in the left sidebar and you’ll find it. Once there, fill it out and submit.

Your game won’t appear in the ‘My Games’ section until it has been approved by OpenFeint, though everything will still work for development and testing in the meantime. [import]uid: 7849 topic_id: 3035 reply_id: 9253[/import]

I guess that explains why it isn’t working. I thought I couldn’t fill out that iPurchase page until my game was on the App store - chicken and egg situation. I will fill this in now.

Thank you for the swift reply. [import]uid: 7863 topic_id: 3035 reply_id: 9254[/import]

Jonathan

You said

" Your game won’t appear in the ‘My Games’ section until it has been approved by OpenFeint, though everything will still work for development and testing in the meantime.

Can you explain what I am able to see with regards everything still working for development and testing? i.e what can I test and where can I see the results of these tests?

For example, at the end of my game, I am calling the following

openfeint.setHighScore( { leaderboardID="[MY LEADERBOARD ID]", score=1000 } )

But I have no idea how to check if this score has been added to the leaderboard as I am not able to view this leaderboard anywhere.

When oOpenFeint opens within my game, I notice there is no leaderboards icon - just “Forums and chat”, “fan club” and “who’s playing”

Thanks again

Paul [import]uid: 7863 topic_id: 3035 reply_id: 9255[/import]

When you log into OpenFeint developer’s panel in your browser, the same place you created your leaderboard (look under Features in the left sidebar) will be where you can view your leaderboard online.

I’m not sure why your leaderboard isn’t showing in your game, perhaps they changed it to where your game must be approved before you can see it during development (in your app, that is).

[import]uid: 7849 topic_id: 3035 reply_id: 9285[/import]

Thanks Jonathan

Yes I can see the leaderboard listed there however there doesn’t appear to be any way to view the actual leaderboard. I see the following:
ffHighScores 52214 min version max version 0 edit »
Perhaps it is not displaying an actual leaderboard because there are no highscores in it? Though I have called the code to add highscores multiple times from my game.

Hmm… [import]uid: 7863 topic_id: 3035 reply_id: 9287[/import]

Can you click the Edit link? It’s usually within there… [import]uid: 7849 topic_id: 3035 reply_id: 9288[/import]

Sorry Jonathan - not sure why mine isn’t working as normal.

If I click edit it takes me to a page titled “Manage ffHighScores”

This page allows me to set the following:
Active
Visible
Descending Sort Order
Allow Worse Scores
Start Version
End Version

No leaderboard though [import]uid: 7863 topic_id: 3035 reply_id: 9293[/import]

The top 25 leaderboard scores should be under the ‘Submit’ ‘Cancel’ and ‘Delete’ buttons, so if you’re not seeing anything there, you probably don’t have any high scores registered.

Your best bet is to ‘Submit’ your app for review in the OpenFeint panel and wait for them to approve it and then try again.

In my experience, they usually approve either the same day, or within a couple days. [import]uid: 7849 topic_id: 3035 reply_id: 9294[/import]

Thanks Jonathan. I think I have submitted it so I will just wait.

Thanks for all your help [import]uid: 7863 topic_id: 3035 reply_id: 9295[/import]

My game has now been approved by OpenFeint and I can see a leaderboard within my game. Having problems submitting scores.

Is the following correct syntax?

  
local numScore = 1999  
openfeint.setHighScore( { leaderboardID="535244", score=numScore } )  
  

I am calling the following after setting the score and this correctly opens the Dashboard. I have tried it without this call and still for some reason my score is not being saved to leaderboard

[code]

openfeint.launchDashboard()

[/code] [import]uid: 7863 topic_id: 3035 reply_id: 9340[/import]

I’ve been able to get the deprecated format to work:
openfeint.setHighScore( lbID, points )
but not the newer one. Ansca said there had been an OF API change. I believe they’re planning a fix, though when I don’t know. [import]uid: 1560 topic_id: 3035 reply_id: 9342[/import]

Thanks Dotnaught.

It certainly seems to be very awkward to get this to work.

I seem to get a message every time I create a new build within my game saying “New highscore saving locally” but this happens only ONCE.

If I close the game down and launch it again it doesn’t ever happen again.

I have made a simple stripped down main.lua as follows

  
require "openfeint"  
  
openfeint.init( "HsfJWsIiQTs3dfxikJ6WtWw", "XJh2TwnDCTqvn90bwndsebbkEd6q3hH4knFazxTHY", "My Game" )  
  
openfeint.setHighScore( "535244", 1000)  

And this

  
require "openfeint"  
  
openfeint.init( "HsfJWsIiQTs3dfxikJ6WtWw", "XJh2TwnDCTqvn90bwndsebbkEd6q3hH4knFazxTHY", "My Game" )  
  
openfeint.setHighScore( 535244, 1000)  

And this

  
require "openfeint"  
  
openfeint.init( "HsfJWsIiQTs3dfxikJ6WtWw", "XJh2TwnDCTqvn90bwndsebbkEd6q3hH4knFazxTHY", "My Game" )  
  
openfeint.setHighScore( { leaderboardID="535244", score=2000 } )  

But I am having no joy with any of these
[import]uid: 7863 topic_id: 3035 reply_id: 9344[/import]

Trying to get to the bottom of this problem.

I seem to be able to save one high score for one user in the leaderboard. Once it has saved one highscore for a user ir does not add any additional highscores for this user unless I create a new build. If i create a new build, it overwrites the previous score for this user? P

Thinking about it perhaps this is the correct functionality and the leaderboard only saves one high score per user, this score being their highest ever score. Doh that may explain it!! Is this the case?

I am used to having all my scores added to a highscore board, not just my highest. [import]uid: 7863 topic_id: 3035 reply_id: 9347[/import]

Ok I seem to have cracked it now using the following syntax where numScore is a variable storing the players score in my game.

  
openfeint.setHighScore( 535244, numScore)  
  

This works on 3 devices and with different users. It does appear to only store one high score per player but I quite like this as it prevents one person filling up the leaderboard.

I didn’t have much joy with the new syntax so would be interested to know if anyone is using the new syntax successfully?
Thanks to all for the assistance getting this up and running.

[import]uid: 7863 topic_id: 3035 reply_id: 9364[/import]

I am nearing the point of playing with leaderboards, but currently can’t get any achievements to work due to do the new syntax; has anyone managed to do so, as they have with scores?

If so please post, I’d dearly love to know how to do that :slight_smile: [import]uid: 10144 topic_id: 3035 reply_id: 9507[/import]