Great cuz GC implementation trough OF doesn't work as it should... My last game still use old and rock-solid Director 1.3 and even with trick like:
I thought things are going super smoothly with the wonderful pointers I received under this thread. But then, I hit a snag. I can't see my Leaderboard on my device. Please note, I saw it after I implemented one Leaderboard, and I thought "cool, now I know how this thing works, let me add bunch more".
But then... the newly added Leaderboards refuse to appear on device even though, on the OpenFeint website, I see that new high scores are posted to the newly added Leaderboards. Then I remembered reading something about a similar issue brought up by number of other developers here on forum. One of the solutions sounded like things will clear up by re-doing the Leaderboards.
So, I went ahead and deleted all highscores, deleted all Leaderboards, and before I added a new set of Leaderboards, I generated a device build and checked to see if the old Leaderboard shows up on my device (and confirmed it's gone). And then I created whole bunch of Leaderboards that I want for my game, and then...
After using the new unique IDs assigned to the new set of Leaderboards, I updated my code, generated a device build, played a level, and I got the OpenFeint notification when I got the new high score. All felt good, but... when I look up the Leaderboards from within my game, all it says is "There are no leaderboards for MyGame." On OpenFeint website, I see the high scores registered under two Leaderboards as they should.
What do I do now? Would the Leaderboards eventually show up on the device if I waited long enough?
I'd so appreciate any and all feedback.
Naomi
P.S. I decided not to worry about integrating Game Center for now with a hope that we will be able to add Game Center without Open Feint soon... hopefully before I'm ready to ship my game.
I've messed around with OF a lot. And also same errors as yours. I find Corona very, very easy.Even tought about paying for tutorials to get me coding ASAP, but luckly for me, I didn't do that.
Corona is excellent for certian type of games, arcade, adventure, etc. But it lacks certian stuff that are essential these days, like API's for GC, and especially multiplayer gaming.
But for now, I will stick around and play with corona. Hopefully all of this will be implemented in Corona in near future. And as you, I also given up implementing some stuff in my game, at least until Corona supports what I need :)
Thank you, @mileni171, for sharing your experience.
I created a couple of OF test users, and recorded some more high scores, but I still don't see the Leaderboards from within any of the test device. I've submitted support request directly to Open Feint, explaining this case. I don't know where it fails, really. Hopefully I will hear back from them. Also, maybe, someone here on forum has already figured out the solution for this and will be able to share it with us. And... if not, maybe somehow this issue would go away...
It's a bit frustrating not to be able to fully test the OpenFeint integration. Adding/deleting items like leaderboard(s) to cause this type of oddity makes it unwieldy for development.
Naomi
OpenFeint - yes - people have reported issues with boards not showing before. It's an OF issues not a Corona issue.
Often they randomly appear after a period of time. One person reported they appeared once the app was published and approved by OF.
Opening a support ticket with them is, I think, the best course of action when it comes up.
Peach :)
Peach brings up a good point. Have you submitted your game to OF for approval? That had me thrown for a while.
Hi Naomi, I don't have plug-n-play code but I do have separate OF and Game Center buttons in my apps, created with help from Corona's documentation and forum posts. The leaderboards were set up first in OF and Game Center. (OF also uses a .plist file.)
The Game Center button takes them out of the app but alerts/asks them first if they want to exit.
I was able to test these before submitting my app using test user IDs in OF and Game Center.
I'm still a newbie so keep that in mind!
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
| -- OPEN FEINT
local gameNetwork = require "gameNetwork"
sceneGroup = display.newGroup()
local gameNetwork = require "gameNetwork"
local prop = require ("property")
local propertyBag
propertyBag = prop:init()
btnBottomStartX = 0
btnBottomStartY = sceneCenterY+132
local btnBottomScale = .5
local btnOF = display.newImageRect("images/btnOpenFeint.png", 232, 61)
btnOF.x = sceneCenterX-20; btnOF.y = sceneCenterY+130
btnOF.xScale = btnBottomScale
btnOF.yScale = btnBottomScale
sceneGroup:insert(btnOF)
---------------------------------------------------------------------------
local function goOF( event )
local t = event.target
local phase = event.phase
if "began" == phase then
t.alpha = .5
display.getCurrentStage():setFocus( t )
t.isFocus = true
elseif "moved" == phase then
elseif event.phase == "ended" then
t.alpha = 1
display.getCurrentStage():setFocus( nil )
t.isFocus = false
gameNetwork.show( "leaderboards" )
--gameNetwork.show()
end
end
btnOF:addEventListener("touch", goOF)
local btnGC = display.newImageRect("images/btnGC.png", 90, 92)
btnGC.x = btnOF.x+100; btnGC.y = btnOF.y
btnGC.xScale = .45
btnGC.yScale = .45
sceneGroup:insert(btnGC)
local function goGC( event )
local t = event.target
local phase = event.phase
if "began" == phase then
t.alpha = .5
display.getCurrentStage():setFocus( t )
t.isFocus = true
elseif "moved" == phase then
elseif event.phase == "ended" then
t.alpha = 1
display.getCurrentStage():setFocus( nil )
t.isFocus = false
-- Opens the gamecenter app.
local function testNetworkConnection()
local netConn = require('socket').connect('www.apple.com', 80)
if netConn == nil then
return false
end
netConn:close()
return true
end
local function gotoGameCenter()
local device = system.getInfo ( "environment" )
local appURL = "gamecenter:leaderboards"
if device == "simulator" then
print ( "Cannot spawn this URL in the simulator" )
else
if testNetworkConnection() then
system.openURL ( appURL )
end
end
end
local function onComplete( event )
if "clicked" == event.action then
local i = event.index
if 1 == i then -- USER CLICKED YES TO EXIT
gotoGameCenter()
elseif 2 == i then
return nil
end
end
end
local function makeAlert(event)
local alert = native.showAlert( "Do you want to exit the game to Game Center?", " ", { "Yes, go to Game Center", "No, don't exit to Game Center" }, onComplete )
end
makeAlert()
end
end
btnGC:addEventListener("touch", goGC) |
So gamecenter support is very near peach?
Hey, Peach, thank you for confirming that "disappearing/not-appearing board" is OpenFeint issue. I'll wait to hear back from them. It's good for anyone seeing this problem to contact OpenFeint directly, it sounds like.
Hey, Rob, thank you . I'll follow up with OpenFeint and ask how to go about getting my game approved by them. I wonder if they have a process for approving games before it is submitted to app store.
Hey, @fava, thank you for posting your code. I totally appreciate it. I'll give it a shot and see if I can get it to work the way I'd like.
Thanks again everyone for all your help.
Naomi
Edit: I just read that there will be some secret features that would be included with much-anticipated new stable release (expected in the next few days, I think) -- and just in case the secret features include Game Center API, I'm going to hold off working on GC side of things. I'd be sooo thrilled if Game Center API is part of the secret features.
Naomi, you submit your app from the OF developer portal, then probably the next day they approve it. But you have to submit it first. It should be the top center of this page, while you're working on your app:
https://api.openfeint.com/dd/games
I don't think its too obvious... even though its dead in the middle of the screen.
Hey, Rob, thank you for letting me know. You know what, when I sign in to OpenFeint developer account, and when I'm in Currently Working on area where I see my game showing on the left side, I also see iOS App: In Development in the middle/center area with an orange button that says Enable iOS App.
When I click on Enable iOS App, it requires me to fill out iOS Settings under Application Information. I kept it blank because I don't have all items required for this section ready yet. Maybe that's the problem. I'll create something real quick (with temp graphics) and see if it changes anything.
Thanks again!
Naomi
A lot of that stuff isn't required, like different sized banner ads, but if you've setup up iTunes Connect, you should have most of the required information.
Though I think they make you upload an odd sized graphic. Why they can't take the 512x512 and resize it blows my mind. I don't want to create a special 125x125 for them....
Once you get approved your leaderboards should show up.
But is not bad using OF and GC all together, but i think we need more features in the gamecenter/openfeint API, like know live ranks or get it for our games
A quick update on OpenFeint. I received a response from the OpenFeint support desk saying "This is a known bug that we are actively working on fixing." So the disappearing (and/or not appearing at all of) leaderboards issue is a known bug on OpenFeint side, which they are working to fix.
Also note, I updated my iOS Settings at OpenFeint dashboard with temp info (like the shipping date) & temp graphics (like my game icon & screenshot), and submitted for approval -- and it got rejected. Ugh.
Edit: OpenFeint got back to me, and here's what I heard:
No, it is not necessary to enable your game to see the leaderboards.
You can try the suggestions here: http://support.openfeint.com/dev/why-are-my-achievements-andor-leaderboards-not-showing-up-on-the-dashboard/
but I suspect this is a server-side bug that our engineers have finally tracked down and hopefully will fix soon.
It's good to know that game being approved isn't required for the leaderboards to be working fully.
Cheers,
Naomi
P.S. It looks like GC wasn't part of the secret feature for the latest stable build (#703)... Sad.
No not for 703 - but keep watching.
Glad OF got back to you and acknowledged a bug, I imagine this will be comforting to others with the same issue. (Although hopefully it is solved soon and no one has to worry about it any more.)
Peach :)
Hey, Peach, thank you. I'll keep watching & waiting for a while... and keep my fingers crossed.
Naomi
Another quick update on the status of OF leaderboards (which refuse to show up from within the test user's game/device). I had a followup note from OF support staff, and here's what he says:
"My best guess is that this bug will be fixed by the end of next week. I hope sooner: engineering has found where it is, and has agreed to do a "hotfix" once they fix it, so it won't have to wait for our regularly scheduled server update."
Way to go, OpenFeint! I'm so glad they are on the ball and is so willing to take care of things like this.
Cheers,
Naomi
Hey Naomi,
We have the same disappearing/non-appearing leaderboards. Has the leaderboard issue been fixed? Because we still have that problem.
Hey, Appduction Studios, I just checked and confirmed that leaderboards appear properly now on my test devices. You might want to contact OF directly for support.
Naomi