MadRod
Aspiring developer
Profile
Posts: 1853
Reg: Apr 12, 2012
Lisbon
27,930
07/04/12 12:42 PM (13 years ago)

Game Center problem

Hi, I'm following the tutorial to implement Game Center in an app. Having some issues. First, on page 10 of the tutorial, it tells me to find "//scoreboard button shows if we have it on and if a scoreboard URL is provided". i dont seem to have this point in my BT_screen_quiz.m file. Unable to do this point, when I try to build, I get some errors Errors in BT_viewControllerManager.h - on BT viewcontrollermanager.h, cannot find protocol declaratio for ADBannerViewdelegate Errors in BT_viewControllerManager.m - Use of undeclared identifier GKLeaderboardID, did you mean GKLeaderboard? Errors in BT_screen_quiz.m - Use of undeclared identifier submitscore -@implementation BT_screen_quiz - incomplete implementation On page of the 5 of the tutorial, I see "then add the following to the @interface so it looks like this... I see @interface BT_viewController..... If I use this I get dozens os errors, if instead I use BT_viewcontrollerManager, I get the errors above. Can anyone point me in the right direction? My programing knowledge is almost zero. Thank you
 
Alex@TM
Apple Fan
Profile
Posts: 956
Reg: Dec 20, 2011
London, UK
10,560
like
07/04/12 02:17 PM (13 years ago)
I have implemented Game Center successfully twice now. The line on page 10 is there. Try [cmd + f] then type in "//scoreboard button shows" and it will locate the line if its there and it should be. Make sure you have the code copied correctly for page 5, its easy to miss a ',' or something. Hope this helps.
 
MadRod
Aspiring developer
Profile
Posts: 1853
Reg: Apr 12, 2012
Lisbon
27,930
like
07/04/12 03:10 PM (13 years ago)
Thank you. I did what you said, but did not find those lines... I'm using the quiz plugin recently added by BT for self hosted. Is that what you used? On page 5 should I use BT_viewController or BT_viewcontrollerManager? Thank you
 
MadRod
Aspiring developer
Profile
Posts: 1853
Reg: Apr 12, 2012
Lisbon
27,930
like
07/04/12 03:15 PM (13 years ago)
Please ignore my answer, let me re-check everything.
 
MadRod
Aspiring developer
Profile
Posts: 1853
Reg: Apr 12, 2012
Lisbon
27,930
like
07/04/12 04:06 PM (13 years ago)
Ok, double checked everything, I had some errors, corrected. Have one still remaining. In BT_screen_quiz.m I have: - Use of undeclared identifier submitscore here: Above “//show quiz reward screen” Add: //submit score -(void)submitScore{ if(totalPoints > 0) Any idea?
 
MadRod
Aspiring developer
Profile
Posts: 1853
Reg: Apr 12, 2012
Lisbon
27,930
like
07/04/12 04:23 PM (13 years ago)
Hey, so I fixed that too, was typeing it a few lines above of where I should type. Did a search in the complete project, did not find "//scoreboard button shows if we have it on and if a scoreboard URL is provided" What should I do?
 
MGoBlue
Apple Fan
Profile
Posts: 980
Reg: Jun 07, 2011
Gold River, CA
10,600
like
07/04/12 09:43 PM (13 years ago)
I just implemented Game Center in an app using the new BT plugin. The new BT_quiz.m file is a bit different than before. I'll update the Game Center Tutorial when I get a chance.
 
MGoBlue
Apple Fan
Profile
Posts: 980
Reg: Jun 07, 2011
Gold River, CA
10,600
like
07/04/12 09:43 PM (13 years ago)
Let me take a look at what I did to get it working and I'll post back a solution.
 
MadRod
Aspiring developer
Profile
Posts: 1853
Reg: Apr 12, 2012
Lisbon
27,930
like
07/05/12 12:43 AM (13 years ago)
Cheers to that. :-) Thank you
 
MadRod
Aspiring developer
Profile
Posts: 1853
Reg: Apr 12, 2012
Lisbon
27,930
like
07/08/12 01:20 PM (13 years ago)
@MGoBlue, you had the opportunity to take a look? Cheers.
 
Shacksy
Apple Fan
Profile
Posts: 33
Reg: Sep 07, 2011
Faversham
1,980
like
07/15/12 09:41 AM (13 years ago)
Just added Game Center to my latest app with no issues. Great tutorial by the way JC Evans
 
MadRod
Aspiring developer
Profile
Posts: 1853
Reg: Apr 12, 2012
Lisbon
27,930
like
07/15/12 11:22 AM (13 years ago)
What tutorial did you use? Thanks
 
MGoBlue
Apple Fan
Profile
Posts: 980
Reg: Jun 07, 2011
Gold River, CA
10,600
like
07/15/12 12:43 PM (13 years ago)
@MadRod - I just looked through the quiz I'm working on, and it looks like everything from the tutorial is in the same place in my new file. The only thing that's confusing (and I'll change it) is on page 9 of the tutorial. It should probably say "Just above the following code section: //show quiz reward screen -(void)showQuizRewardScreen{" Then: Delete the section between //show scoreboard and //show quiz reward screen etc. I'll have to double check, but the code should be working.
 
MadRod
Aspiring developer
Profile
Posts: 1853
Reg: Apr 12, 2012
Lisbon
27,930
like
07/15/12 03:20 PM (13 years ago)
Thanks guys. But I still can't find this (page 10 of the tutorial) "//scoreboard button shows if we have it on and if a scoreboard URL is provided" on my BT_screen_quiz.m file. Do you have it in your file? I'm using the new Interactive from BT. I think there is a different quiz plugin out there. Thanks
 
MGoBlue
Apple Fan
Profile
Posts: 980
Reg: Jun 07, 2011
Gold River, CA
10,600
like
07/15/12 03:28 PM (13 years ago)
Ok. Yes, that's a bit different. In the "-(void)quizEnded{" saction, put this: //Submit Score Button [finishedButtons addObject:NSLocalizedString(@"quizSubmitScore", @"Submit Score")]; Right above: //try again button... [finishedButtons addObject:NSLocalizedString(@"quizTryAgain", @"Try Again")];
 
Shacksy
Apple Fan
Profile
Posts: 33
Reg: Sep 07, 2011
Faversham
1,980
like
07/16/12 05:02 AM (13 years ago)
Madrod How you getting on? Still need help?
 
Shacksy
Apple Fan
Profile
Posts: 33
Reg: Sep 07, 2011
Faversham
1,980
like
07/16/12 05:04 AM (13 years ago)
Madrod Here is the link if you are still struggling to find it http://www.buzztouch.com/resources/Achievement_Tutorial.pdf Good luck
 
MadRod
Aspiring developer
Profile
Posts: 1853
Reg: Apr 12, 2012
Lisbon
27,930
like
07/16/12 06:39 AM (13 years ago)
I havent had the time to try it. Will let you know. Thank you
 
MadRod
Aspiring developer
Profile
Posts: 1853
Reg: Apr 12, 2012
Lisbon
27,930
like
08/05/12 03:43 PM (13 years ago)
Hey, I tried the tutorial, I was able to follow all steps with no problem, but when I run the app, nothing happens regarding the Game Center. And I do have an alert in BT_screen_quiz.m @imprementation BT_screen_quiz - incomplete implementation. being struggling with this for a while. In need of help. Cheers.
 
MadRod
Aspiring developer
Profile
Posts: 1853
Reg: Apr 12, 2012
Lisbon
27,930
like
08/05/12 04:21 PM (13 years ago)
And noticed that the app freezes from time to time.
 
MadRod
Aspiring developer
Profile
Posts: 1853
Reg: Apr 12, 2012
Lisbon
27,930
like
08/15/12 03:24 PM (13 years ago)
Got it working. Thanks
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.