Is it possible to test posting scores on Facebook and Open Feint with the Corona simulator, or do I have to wait for my app to be approved on the App Store to know that it works? I’m new to lua, and this is my first app using Corona. please help… thanks [import]uid: 10717 topic_id: 19614 reply_id: 319614[/import]
Hey Mint,
You can’t test in the Corona simulator no - however you absolutely do not have to wait until your app is in the store to test. (Nor should you.)
You can test either by building for the Xcode simulator or by building for your own iOS device. (The simulator is obviously fastest.)
Peach
[import]uid: 52491 topic_id: 19614 reply_id: 75781[/import]
Thank you Peach!
Could you or someone else tell me what’s the latest documentation to implement Open Feint for my game in Corona?
Thanks again
[import]uid: 10717 topic_id: 19614 reply_id: 75865[/import]
No worries.
Here’s how to initiate it;
http://developer.anscamobile.com/reference/index/game-network/gamenetworkinit
Here’s how to unlock achievements and upload highscores;
http://developer.anscamobile.com/reference/index/game-network/gamenetworkrequest
And here is how you’d have a button to open the leaderboard, achievements, dashboard, etc;
http://developer.anscamobile.com/reference/index/gamenetwork/gamenetworkshow
Any questions just let me know.
Peach
[import]uid: 52491 topic_id: 19614 reply_id: 75909[/import]
Thanks again Peach 
I’m able to initiate OpenFeint now, but I’m not able to see my score once in the leaderboards… it only indicates my status of player as “Not Ranked”… is this normal?
BTW, I enabled my iOS APP in Openfeint, but it’s still in review… does this affect anyhow?
Thanks. [import]uid: 10717 topic_id: 19614 reply_id: 76087[/import]
Did you add yourself as a test user in OpenFeint? Only test users will have scores submitted to leaderboards.
It will be in review for a few days, it just means once approved anyone who plays it can submit a score, not just the test user(s) as mentioned above.
Peach
[import]uid: 52491 topic_id: 19614 reply_id: 76124[/import]
Hi Peach,
Yes, I added myself as a test user and my iOS app was approved in Openfeint… but still cannot see my score.
Then it displayed “99 sec” as my score after adding the code below; even after I changed “99” by “highcore” and “99 sec” with “highscoredisplay” the “99 sec” continued displaying:
local gameNetwork = require “gameNetwork”
–For OpenFeint:
gameNetwork.init( “openfeint”, “product-key”, “secret”, “display name”, “appId” )
gameNetwork.request( “setHighScore”, { leaderboardID=“abc123”, score=99, displayText=“99 sec” } )
gameNetwork.request( “unlockAchievement”, “achievementId” )
gameNetwork.request( “uploadBlob”, key, data )
gameNetwork.request( “downloadBlob”, key, listener ) – listener for “completion” event with “blob” key set.
gameNetwork.show( “highscore”, “abc123” )
Please help… thanks
[import]uid: 10717 topic_id: 19614 reply_id: 76135[/import]
It will only display one high score per user with the default settings so you may wish to delete the original score before trying again.
That is if your score is displaying; you say it’s not above but then you say that it did display your score - so I’m a bit confused as to what you mean 
Peach [import]uid: 52491 topic_id: 19614 reply_id: 76149[/import]
Thanks Peach… I got that part solved.
Nonetheless, I’m not able to see the achievements panel anywhere while logged in to OpenFeint… Where should I look? or what should I do now?
Best 
[import]uid: 10717 topic_id: 19614 reply_id: 76164[/import]
That’s an OpenFeint issue - a few people have had it. (Not being able to see leaderboards, achievements or both at all) - it tends to get fixed by itself but it may be worth emailing them about it.
Peach
[import]uid: 52491 topic_id: 19614 reply_id: 76325[/import]
I am only getting score as 0,
it shows playing (null)
can u please help ?
cant i see the high score untill the game is not approved by openfient ?
and where to get the key and data for the following
gameNetwork.request( “uploadBlob”, key, data )
please help asap …
thanx [import]uid: 95790 topic_id: 19614 reply_id: 93476[/import]
gameNetwork = require “gameNetwork”
of_product_key = “m9UjrkO97wIooFgR5HLg”
of_product_secret = “xkfA0IXvSDmyes5ubgaqNaRwOP3C6TezjidG7a0U”
of_app_id = “466452”
of_display_name = “HuntiB”
of_leaderboard=“1108737”
local score = 0
if gameNetwork then
if ( of_product_key and of_product_secret ) then
gameNetwork.init( “openfeint”, of_product_key, of_product_secret, of_display_name, of_app_id )
end
end
function setOFScore(score)
gameNetwork.request( “setHighScore”, { leaderboardID=of_leaderboard, score=score, displayText=“5 start score” } )
– gameNetwork.request( “uploadBlob”, key, data )
– gameNetwork.request( “downloadBlob”, key, listener )
gameNetwork.show( “highscore”, of_leaderboard )
native.showAlert( "Success! your score = "… score , “User has logged into Game Center”, { “OK” } )
– openfeint.launchDashboard(“leaderboards”)
– openfeint.launchDashboard( “highscore”, { leaderboardID=“of_leaderboard” } )
end
function showOFScores()
gameNetwork.show( “highscore”, of_leaderboard )
end
–gameNetwork.init( “openfeint”, " m9UjrkO97wIooFgR5HLg", “xkfA0IXvSDmyes5ubgaqNaRwOP3C6TezjidG7a0U”, “HuntiB”, “466452” )
local translations =
{
[“en”] = “Hello, world!”,
[“fr”] = “Bonjour, le monde!”,
[“pt”] = “Olá mundo!”,
[“zh-Hant”] = “???”,
[“zh-Hans”] = “???”,
[“de”] = “Hallo, Welt!”,
[“it”] = “Salve, mondo!”,
[“ja”] = “???”,
[“es”] = “¡Hola mundo!”,
}
local language = system.getPreference( “ui”, “language” )
local message = translations[language]
if not message then
– default to English
message = translations.en
end
– Background image from NASA’s Visible Earth gallery (http://visibleearth.nasa.gov/)
local background = display.newImage(“globe_east.png”)
– Show text, using default bold font of device (Helvetica on iPhone)
local textObject = display.newText( message, 0, 0, native.systemFontBold, 24 )
textObject:setTextColor( 255,255,255 )
– A trick to get text to be centered
local centeredGroup = display.newGroup()
centeredGroup.x = display.contentWidth * 0.5
centeredGroup.y = display.contentHeight * 0.5
centeredGroup:insert( textObject, true )
– Insert rounded rect behind textObject
local r = 10
local roundedRect = display.newRoundedRect( 0, 0, textObject.contentWidth + 2*r, textObject.contentHeight + 2*r, r )
roundedRect:setFillColor( 55, 55, 55, 190 )
centeredGroup:insert( 1, roundedRect, true )
function scoreBoard(e)
if(e.phase == “ended”)then
score = score + 5
end
print(“your score ==”,score)
setOFScore(score)
–native.showAlert( "Success! your score = "… score , “User has logged into Game Center”, { “OK” } )
– native.showPopup(“sms”, options)
end
–button to upload score
local imgButton = display.newImage(“btn.png”,100,400)
imgButton:addEventListener(“touch”, scoreBoard ) [import]uid: 95790 topic_id: 19614 reply_id: 93494[/import]
gameNetwork = require “gameNetwork”
of_product_key = “m9UjrkO97wIooFgR5HLg”
of_product_secret = “xkfA0IXvSDmyes5ubgaqNaRwOP3C6TezjidG7a0U”
of_app_id = “466452”
of_display_name = “HuntiB”
of_leaderboard=“1108737”
local score = 0
if gameNetwork then
if ( of_product_key and of_product_secret ) then
gameNetwork.init( “openfeint”, of_product_key, of_product_secret, of_display_name, of_app_id )
end
end
function setOFScore(score)
gameNetwork.request( “setHighScore”, { leaderboardID=of_leaderboard, score=score, displayText=“5 start score” } )
– gameNetwork.request( “uploadBlob”, key, data )
– gameNetwork.request( “downloadBlob”, key, listener )
gameNetwork.show( “highscore”, of_leaderboard )
native.showAlert( "Success! your score = "… score , “User has logged into Game Center”, { “OK” } )
– openfeint.launchDashboard(“leaderboards”)
– openfeint.launchDashboard( “highscore”, { leaderboardID=“of_leaderboard” } )
end
function showOFScores()
gameNetwork.show( “highscore”, of_leaderboard )
end
–gameNetwork.init( “openfeint”, " m9UjrkO97wIooFgR5HLg", “xkfA0IXvSDmyes5ubgaqNaRwOP3C6TezjidG7a0U”, “HuntiB”, “466452” )
local translations =
{
[“en”] = “Hello, world!”,
[“fr”] = “Bonjour, le monde!”,
[“pt”] = “Olá mundo!”,
[“zh-Hant”] = “???”,
[“zh-Hans”] = “???”,
[“de”] = “Hallo, Welt!”,
[“it”] = “Salve, mondo!”,
[“ja”] = “???”,
[“es”] = “¡Hola mundo!”,
}
local language = system.getPreference( “ui”, “language” )
local message = translations[language]
if not message then
– default to English
message = translations.en
end
– Background image from NASA’s Visible Earth gallery (http://visibleearth.nasa.gov/)
local background = display.newImage(“globe_east.png”)
– Show text, using default bold font of device (Helvetica on iPhone)
local textObject = display.newText( message, 0, 0, native.systemFontBold, 24 )
textObject:setTextColor( 255,255,255 )
– A trick to get text to be centered
local centeredGroup = display.newGroup()
centeredGroup.x = display.contentWidth * 0.5
centeredGroup.y = display.contentHeight * 0.5
centeredGroup:insert( textObject, true )
– Insert rounded rect behind textObject
local r = 10
local roundedRect = display.newRoundedRect( 0, 0, textObject.contentWidth + 2*r, textObject.contentHeight + 2*r, r )
roundedRect:setFillColor( 55, 55, 55, 190 )
centeredGroup:insert( 1, roundedRect, true )
function scoreBoard(e)
if(e.phase == “ended”)then
score = score + 5
end
print(“your score ==”,score)
setOFScore(score)
–native.showAlert( "Success! your score = "… score , “User has logged into Game Center”, { “OK” } )
– native.showPopup(“sms”, options)
end
–button to upload score
local imgButton = display.newImage(“btn.png”,100,400)
imgButton:addEventListener(“touch”, scoreBoard ) [import]uid: 95790 topic_id: 19614 reply_id: 93496[/import]
HI ,
i posted my code sorry by mistake it happened twice or thrice but can u please help me this …
I m can see an alert in simulator which displays score , but in ipad i can see it awlays 0.
and it also shows me NOT RANKED , and shows i havent played any games . [import]uid: 95790 topic_id: 19614 reply_id: 93497[/import]
Hi Peach,
Can u please help me with my code asap …
m stucked here from two days
[import]uid: 95790 topic_id: 19614 reply_id: 93499[/import]
Now i can see the alert msg showing in ipad the right score but still leaderboard is not showing [import]uid: 95790 topic_id: 19614 reply_id: 93502[/import]
I am also not able to add a test user I am adding my another account in that but its not allowing me. :((((( please help soon [import]uid: 95790 topic_id: 19614 reply_id: 93518[/import]
Dude, 5 posts in 5 hours? Sometimes we SLEEP, alright?
I know you must have a paid account as well because otherwise you couldn’t be integrating Game Center.
The score returning nil or 0 (I’m not sure what you’re saying) is not an OF or GC problem but rather an issue with your code - try printing score variable to make sure is not 0 or nil before submitting the score.
Work on OF first, then GC. Or vice-versa - but get one working before trying to do both at once.
What does score print right before you submit? What value? [import]uid: 52491 topic_id: 19614 reply_id: 93670[/import]
I am so sorry for posting so much i know you sleep , its just we are in different countries and so the timings are different .
I am printing the score i increase it by 5 every time a button is clicked , it shows 5 , 10 , 15 … and so on .
Can u help me in making a test user account on OF , i have been trying it since yesterday but not able to . when i enter mail id, it doesnt takes developers id , then if i add my another mail id and password it says “user credentials not valid” then what do they expect me to enter ?
thanx for the help Peach 
Vedangi. [import]uid: 95790 topic_id: 19614 reply_id: 93680[/import]
Sorry, it sounded like I was far more annoyed than I actually was - I just don’t like seeing so many posts in a row so quickly, sometimes we just need a little bit of time because even if we’re here we can’t always be focusing on you immediately, lots of people to help, etc 
For the test user account:
Log out of OF on your phone.
Create new OF account on your phone using new unused email
Log into openfeint and add user email and password
I’m a bit rusty but I think that should do the trick, let me know results
[import]uid: 52491 topic_id: 19614 reply_id: 93729[/import]