Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

iOS and MacOS / a step by step tutorial:how to add GameCenter(leader board &Achievement) to your games.

Author
Message
T8x
12
Years of Service
User Offline
Joined: 13th Dec 2011
Location:
Posted: 19th Dec 2011 03:39
@halley - does my upgrade to xcode4.2 and ios 5.0 sim affect this??
halley
12
Years of Service
User Offline
Joined: 27th Apr 2011
Location: China
Posted: 19th Dec 2011 03:48
I use Xcode 4.2, my iPad is in 5.0 version. That's fine.

The Miracrea Games
T8x
12
Years of Service
User Offline
Joined: 13th Dec 2011
Location:
Posted: 19th Dec 2011 03:58
@halley

did u try tweejump on it?

i guess it turned out that many errors/warning are found by xcode 4.2 rather than the old one i am using.
halley
12
Years of Service
User Offline
Joined: 27th Apr 2011
Location: China
Posted: 19th Dec 2011 04:02
I think you can send me the project, then I help to look into it.

The Miracrea Games
T8x
12
Years of Service
User Offline
Joined: 13th Dec 2011
Location:
Posted: 19th Dec 2011 04:08
cant i send file to you??

this one is being send to me in email



@Sorry for off topic
halley
12
Years of Service
User Offline
Joined: 27th Apr 2011
Location: China
Posted: 19th Dec 2011 04:10
Of course, you can send me file.

The Miracrea Games
T8x
12
Years of Service
User Offline
Joined: 13th Dec 2011
Location:
Posted: 19th Dec 2011 04:14
ill upload it to megaupload then ill send you the link
T8x
12
Years of Service
User Offline
Joined: 13th Dec 2011
Location:
Posted: 19th Dec 2011 04:17
if u didnt receive the email. here is it's link


http://www.megaupload.com/?d=VNN2U0UI
halley
12
Years of Service
User Offline
Joined: 27th Apr 2011
Location: China
Posted: 19th Dec 2011 04:19
I can't open the link.

The Miracrea Games
T8x
12
Years of Service
User Offline
Joined: 13th Dec 2011
Location:
Posted: 19th Dec 2011 04:22
i also send in email
T8x
12
Years of Service
User Offline
Joined: 13th Dec 2011
Location:
Posted: 19th Dec 2011 06:24
have u seen it now? thank you so much for helping me .... ^_^
baxslash
Valued Member
Bronze Codemaster
17
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 19th Dec 2011 14:59
I've added this tutorial to the resources area of the ADG website HERE

Thanks Halley!

T8x
12
Years of Service
User Offline
Joined: 13th Dec 2011
Location:
Posted: 20th Dec 2011 02:45
@halley

thanks for you help . we haven't finished it but i really appreciated your generosity.. thanks again im starting it all over in a simple way
xGEKKOx
AGK Master
15
Years of Service
User Offline
Joined: 7th Dec 2008
Location: Italy
Posted: 20th Dec 2011 14:00
Hi halley,
i'm going around GameCenter since 2 days but when i'm sure all is ok it say this:

On this command
[g_View.gameCenterManager showLeaderboard];
Result:
"GameCenterManager may not respond to showLeaderboard"

On this command
[g_View showLeaderboard];
Result:
No error but nothing happen.

Any suggestions? Thx.

iPhone Games : Street Karate Fighter - 90s VideoPokers Simulator - 2012 4rkanoid
halley
12
Years of Service
User Offline
Joined: 27th Apr 2011
Location: China
Posted: 20th Dec 2011 15:08
Did you mean the Leader Board can't come out?
I added this recent days, It really worked.

Did you use AppGameKit template?

The Miracrea Games
xGEKKOx
AGK Master
15
Years of Service
User Offline
Joined: 7th Dec 2008
Location: Italy
Posted: 20th Dec 2011 15:20 Edited at: 20th Dec 2011 15:23
Yes the AppGameKit template.
But maybe something can be different from the original (very original) AppGameKit template.

This is my Untitled.... H file



And this the M file


I think is the same you posted or maybe i'm going too crazy to see the error.
Please help me.

Edit: i also used breakpoints to se what happen, but when the showLeaderboard is called seems to go directly to the APP:Loop and ignore the calling.

iPhone Games : Street Karate Fighter - 90s VideoPokers Simulator - 2012 4rkanoid
xGEKKOx
AGK Master
15
Years of Service
User Offline
Joined: 7th Dec 2008
Location: Italy
Posted: 20th Dec 2011 17:46
Nothing, i tryed all but don't work in any way.
Don't know what to do.
The showLeaderboard is never launched.

iPhone/iPad Games : Street Karate Fighter - 90s VideoPokers Simulator - Arkanold
xGEKKOx
AGK Master
15
Years of Service
User Offline
Joined: 7th Dec 2008
Location: Italy
Posted: 20th Dec 2011 19:10
I done another test with a button IBAction and work fine.
But how to call it from c++ is a mistery!!!

iPhone/iPad Games : Street Karate Fighter - 90s VideoPokers Simulator - Arkanold
halley
12
Years of Service
User Offline
Joined: 27th Apr 2011
Location: China
Posted: 21st Dec 2011 03:07
@xGEKKPx , You can call the function in your C++ code.
1. added #include UntiledViewController.h
2. [g_View showLeaderBoard]

The Miracrea Games
xGEKKOx
AGK Master
15
Years of Service
User Offline
Joined: 7th Dec 2008
Location: Italy
Posted: 21st Dec 2011 13:56
Hi Halley,
yes i added the #include.
I also checked if there was some mistake calling the multiple H files.

I will try again and post the result.

iPhone/iPad Games : Street Karate Fighter - 90s VideoPokers Simulator - Arkanold
xGEKKOx
AGK Master
15
Years of Service
User Offline
Joined: 7th Dec 2008
Location: Italy
Posted: 21st Dec 2011 15:17
Absurde it don't work.
There is something else to do?
Like :
- Adding a view?
- Connect the UntitledViewController to something in the code?
- Something in the XIB ?

I don't understand why the [g_View showLeaderboard] work but the code never call the method in the UntitledViewController.m

No errors, no warnings.
Only a mistery.

iPhone/iPad Games : Street Karate Fighter - 90s VideoPokers Simulator - Arkanold
halley
12
Years of Service
User Offline
Joined: 27th Apr 2011
Location: China
Posted: 21st Dec 2011 15:25
can you send me the project?I can debug it.

The Miracrea Games
xGEKKOx
AGK Master
15
Years of Service
User Offline
Joined: 7th Dec 2008
Location: Italy
Posted: 22nd Dec 2011 11:01
I wanna do another try before sending the project, i wanna rewrite the XIB files with the ones from the last release, maybe i'm using the old 1st release ones.

iPhone/iPad Games : Street Karate Fighter - 90s VideoPokers Simulator - Arkanold
xGEKKOx
AGK Master
15
Years of Service
User Offline
Joined: 7th Dec 2008
Location: Italy
Posted: 22nd Dec 2011 12:12 Edited at: 22nd Dec 2011 12:26
Ok maybe i found a way.

I added this code in the starting of .cpp main code


This make the method calling now from the cpp, but nothing appear.
I'm working around this and i will post soon the code.

Edit : Now the score submit work. Working around the initialization of the VIEW.

iPhone/iPad Games : Street Karate Fighter - 90s VideoPokers Simulator - Arkanold
xGEKKOx
AGK Master
15
Years of Service
User Offline
Joined: 7th Dec 2008
Location: Italy
Posted: 23rd Dec 2011 18:02
Ok boys i solved finally.
I will post a new post with a new tutorial with a secure working flow.


iPhone/iPad Games : Street Karate Fighter - 90s VideoPokers Simulator - Arkanold
T8x
12
Years of Service
User Offline
Joined: 13th Dec 2011
Location:
Posted: 28th Dec 2011 04:23
@halley

hi ! i have finished my app yesterday my fault i thought that i must use game center

but i was told to create my own server and use it for leaderboard. xD

btw.. i thank you for all the help you gave me...
halley
12
Years of Service
User Offline
Joined: 27th Apr 2011
Location: China
Posted: 28th Dec 2011 04:59
You are welcome.

The Miracrea Games
T8x
12
Years of Service
User Offline
Joined: 13th Dec 2011
Location:
Posted: 29th Dec 2011 04:36
just email me if you need some help

and i will return the favor

Login to post a reply

Server time is: 2024-04-18 08:33:31
Your offset time is: 2024-04-18 08:33:31