ShiVa3D
Game Center integrated!
Paste down any little snippets or request a new one.Re: Game Center integrated!
by vklymenko » 21 Nov 2011, 13:37
hi, thanks, I hope some day StoneTrip will include GameCenter feature as its done for AdMob (as an option in UAT) 
Re: Game Center integrated!
by fzuleta » 04 Jan 2012, 14:34
hi!
oh thanks so much for this, I do have a couple of questions
first, I still have an iPad Issue that after closing the leader boards, the app doesn't accept any inputs.
second, when submitting a highscore for the leaderboard, I am sure that the value of the score is passed since I'm NSLOGging S3DEngine_GameCenter_GetScoresToSubmit(); but, nothing seems to be reported in the scoreReporter, when I see the leader board it just says no scores
any thoughts?
I'm building with UAT 1.3b7 , Xcode 4.2 -lion
the app is waiting for review now, has game center active and also the green button of game center is active
oh thanks so much for this, I do have a couple of questions
first, I still have an iPad Issue that after closing the leader boards, the app doesn't accept any inputs.
second, when submitting a highscore for the leaderboard, I am sure that the value of the score is passed since I'm NSLOGging S3DEngine_GameCenter_GetScoresToSubmit(); but, nothing seems to be reported in the scoreReporter, when I see the leader board it just says no scores
any thoughts?
I'm building with UAT 1.3b7 , Xcode 4.2 -lion
the app is waiting for review now, has game center active and also the green button of game center is active
-

fzuleta - Senior Boarder

- Posts: 79
Re: Game Center integrated!
by vklymenko » 04 Jan 2012, 14:40
fzuleta wrote:hi!
oh thanks so much for this, I do have a couple of questions
first, I still have an iPad Issue that after closing the leader boards, the app doesn't accept any inputs.
second, when submitting a highscore for the leaderboard, I am sure that the value of the score is passed since I'm NSLOGging S3DEngine_GameCenter_GetScoresToSubmit(); but, nothing seems to be reported in the scoreReporter, when I see the leader board it just says no scores
any thoughts?
I'm building with UAT 1.3b7 , Xcode 4.2 -lion
the app is waiting for review now, has game center active and also the green button of game center is active
hi,
if iPad then you can use:
- Code: Select all
system.openURL ( "gamecenter:","_blank" )
on scripts side
it works good for me - opening game-center app instead showing leaderboard inside the game.
if to read all comments on the topic - you'll find complete solution to fix the input block bug, but I tried it - and iphone version stopped to work well then : ))
Re: Game Center integrated!
by d4dhanuj » 05 Jan 2012, 13:58
I implemented the code its working fine for login and displaying the leader board, but can Any One Help Me with Passing the score to game center I am having problems with that.
- d4dhanuj
- Fresh Boarder

- Posts: 18
Re: Game Center integrated!
by vklymenko » 10 Jan 2012, 19:27
d4dhanuj wrote:I implemented the code its working fine for login and displaying the leader board, but can Any One Help Me with Passing the score to game center I am having problems with that.
hi, can you please provide more info... have you tried to put "logs" ?
maybe:
- be sure you have handler "onSubmitScores" with a parameter "scores"
- be sure you're sending "numbers" format from scripts, not a string etc
- be sure you're using something like
user.postEvent ( application.getCurrentUser ( ), 0, "MainAI", "onSubmitScores", 100 )
instead
MainAI.onSubmitScores(100)
(second one probably will not works)
- be sure you haven't missed any code from the tutorial, plz check it again.
Re: Game Center integrated!
by shivachristy » 18 Jan 2012, 15:05
I have followed the steps listed from the start.I have 6 errors.
Do I have to include some framework from Apple into my xcode project. It hasn't been mentioned here on this forum.
I have given up on OpenFeint integration and so am hoping thsi will work for me.
Do I have to include some framework from Apple into my xcode project. It hasn't been mentioned here on this forum.
I have given up on OpenFeint integration and so am hoping thsi will work for me.
-

shivachristy - Platinum Boarder

- Posts: 934
- Location: UK
Re: Game Center integrated!
by vklymenko » 18 Jan 2012, 15:12
shivachristy wrote:I have followed the steps listed from the start.I have 6 errors.
Do I have to include some framework from Apple into my xcode project. It hasn't been mentioned here on this forum.
I have given up on OpenFeint integration and so am hoping thsi will work for me.
hi there! GameKit framework should be automaticly added into your project in latest xCode SDKs and you don't need to include other frameworks as I remember. What errors do you have? can you please copy/paste them.
Re: Game Center integrated!
by shivachristy » 18 Jan 2012, 16:28
- errors.jpg (127.47 KiB) Viewed 946 times
warning - I am a novice at objective c!
I am using UAT 13 beta 6
-

shivachristy - Platinum Boarder

- Posts: 934
- Location: UK
Re: Game Center integrated!
by shivachristy » 18 Jan 2012, 16:34
just seen I copied the errors into .m not .h!!
-

shivachristy - Platinum Boarder

- Posts: 934
- Location: UK
Re: Game Center integrated!
by vklymenko » 18 Jan 2012, 16:39
thats why sometimes useful to check your code again, from side view : )
try to fix it and compile again. In most cases step-by-step following of the tutorial should works for the integration generally. So errors could be caused because some syntax errors or wrong copy/paste places.
try to fix it and compile again. In most cases step-by-step following of the tutorial should works for the integration generally. So errors could be caused because some syntax errors or wrong copy/paste places.
Re: Game Center integrated!
by shivachristy » 18 Jan 2012, 18:04
I think I will download the zip file of classes someone posted and try that,although its probably a different version.
- error2.jpg (162.14 KiB) Viewed 933 times
-

shivachristy - Platinum Boarder

- Posts: 934
- Location: UK
Re: Game Center integrated!
by vklymenko » 18 Jan 2012, 18:13
you may email me your xcode project (without game (stk etc) to vklymenkowork@gmail.com - and I'll merge and fix your issues I hope, but can promise it will be done tomorrow at least : )
Re: Game Center integrated!
by shivachristy » 19 Jan 2012, 14:26
hi, Thanks for the reply, it's working in terms of login showing leaderboard etc. Well done you!
As I mentioned I don't really know objective C or Cocoa.
Im trying to submit a time to the leaderboard. Hardcoded at the moment just to test.
The error I get is this;
As I mentioned I don't really know objective C or Cocoa.
Im trying to submit a time to the leaderboard. Hardcoded at the moment just to test.
The error I get is this;
- error7.jpg (72.72 KiB) Viewed 909 times
-

shivachristy - Platinum Boarder

- Posts: 934
- Location: UK
Re: Game Center integrated!
by vklymenko » 19 Jan 2012, 14:32
oh, huh, Im not sure i'll be useful here : ) my specialization is game-logic scripting, and Im also not very good with objC part : ) I guess your issue is only about converting types of vartiables, I believe you'll find a solution soon : )
Re: Game Center integrated!
by shivachristy » 19 Jan 2012, 15:27
hee hee my solution is that I have changed my leaderboard to a score rather than time!
however my posted score is not appearing. Should a hardcoded score appear or is the code getting the score from the environment variable which mine is currently set to 0.
many thanks
however my posted score is not appearing. Should a hardcoded score appear or is the code getting the score from the environment variable which mine is currently set to 0.
many thanks
-

shivachristy - Platinum Boarder

- Posts: 934
- Location: UK