What’s wrong with this code using OpenFeint??
[code]
local openfeint = require “openfeint”
openfeint.init(“MyProductKey”,“My Secret Key”,“Test OF App”)
openfeint.launchDashboard()
openfeint.setHighScore( { leaderboardID=585364, score=232, displayText=“232 pts” } )
–This is the ID created at Open Feint for this leaderboard
openfeint.unlockAchievement( 736612 )
–This is an achievemnt created on OpenFeint
openfeint.launchDashboard( “highscore”, { leaderboardID = 585364 } )
[/code] [import]uid: 3826 topic_id: 4279 reply_id: 304279[/import]
Tim
December 8, 2010, 9:22am
2
The init() signature changed to include a fourth parameter:
local of\_product\_key = "your\_app\_key"
local of\_product\_secret = "your\_app\_secret"
local of\_app\_id = "app\_ID"
local display\_name = "App Name"
openfeint.init( of\_product\_key, of\_product\_secret, display\_name, of\_app\_id) )
http://developer.anscamobile.com/reference/index/openfeintinit
Apologies for this not getting into the release notes.
Tim [import]uid: 8196 topic_id: 4279 reply_id: 13370[/import]
Hi Tim,
Thanks for the update, I am still unaware what the issue is coz I still get a black blank screen.
The code is taken from your sample
local of\_product\_key = "N7kiy...............lQ"
local of\_product\_secret = "iYu....Jovi..1A"
local of\_app\_id = "2....2"
local display\_name = "App Name"
openfeint.init( of\_product\_key, of\_product\_secret, display\_name, of\_app\_id)
This is most strange, the factors I can attribute to the problem can be
The test device is an iPhone 3G
The Developer certificate, now I cannot see the ID of the one I used, but if there was an issue, it wouldn’t start.
The version of Corona SDK #243
Some goofy error that I am making and am being blissfully blind to it.
cheers,
Jayant C Varma [import]uid: 3826 topic_id: 4279 reply_id: 13434[/import]
Jayant
send us code over…
c. [import]uid: 24 topic_id: 4279 reply_id: 13437[/import]