BASIC

Author Topic: Game Center (testers and help needed)  (Read 13959 times)

Offline Nobiag

  • Mr. Drawsprite
  • **
  • Posts: 58
    • View Profile
Re: Game Center (testers and help needed)
« Reply #15 on: 2011-Dec-14 »
im very interested in this too. any news about it now? :)

Offline Crivens

  • Prof. Inline
  • *****
  • Posts: 913
    • View Profile
Re: Game Center (testers and help needed)
« Reply #16 on: 2011-Dec-14 »
If you click on the original posters details he hasn't been active in months. So looks like unless someone else steps up to the challenge then we are right out of luck at least for a while.

It's a shame because I think he did release a game center game so obviously he succeeded. Doubt it used the multiplayer Apis but just the high score system would be brilliant...

Cheers
Current fave quote: Cause you like musicians and I like people with boobs.

Offline Dark Schneider

  • Mr. Polyvector
  • ***
  • Posts: 128
    • View Profile
Re: Game Center (testers and help needed)
« Reply #17 on: 2012-Jan-04 »
I have been absent some time, sorry.

When I have some time I will organize the code in its current state (the one used in Rapids Rider) and post it.

I left the topic because I asked for testers but passed much time with no results, and when I released the game it has no testers yet so I left the topic.

The current state is the last mentioned, all reports works but there are no leaderboards show on iPad, and the Game Center app must be used.

Offline Crivens

  • Prof. Inline
  • *****
  • Posts: 913
    • View Profile
Re: Game Center (testers and help needed)
« Reply #18 on: 2012-Jan-04 »
Cool. That would be great. A definite brilliant resource for the GLB community. Is it the highscore stuff or does it also include the Multiplayer capabilities?

I think the lack of testers was because there wasn't a GLB project to use. An simple attached project would definitely get people involved I'm sure.

Cheers
Current fave quote: Cause you like musicians and I like people with boobs.

Offline Dark Schneider

  • Mr. Polyvector
  • ***
  • Posts: 128
    • View Profile
Re: Game Center (testers and help needed)
« Reply #19 on: 2012-Jan-05 »
Leaderboards and achievements, both working fine.

Offline Crivens

  • Prof. Inline
  • *****
  • Posts: 913
    • View Profile
Re: Game Center (testers and help needed)
« Reply #20 on: 2012-Jan-05 »
Nice. Can't wait till you have a spare moment then!

Cheers
Current fave quote: Cause you like musicians and I like people with boobs.

Offline bigtunacan

  • Mr. Polyvector
  • ***
  • Posts: 195
    • View Profile
Re: Game Center (testers and help needed)
« Reply #21 on: 2012-Jan-06 »
Thanks; I would love to have access to Game Center for my apps :)

Offline Dark Schneider

  • Mr. Polyvector
  • ***
  • Posts: 128
    • View Profile
Re: Game Center (testers and help needed)
« Reply #22 on: 2012-Jan-06 »
I have updated the attached file in the first post, I don't think anything is missing. Copied from the Rapids Rider last update folder project, so is the lastest version.

What can be outdated is the GLB project "GCTest" included, it has not been modified since much time ago, but I think the functions names have not changed so it probably can work fine.

But you can take a look to the source code itself, it has been written reasonably clear IMO. Another point is that can be useful as "tutorial" of "how to include Objective-C in GLBasic", because is very simple:
- Create what you want in Objective C, use all you want like classes, etc.
- Create a wrapper, a "C" file (".m") with "C" functions that are what GLBasic can IMPORT, and do all the work with this "C" functions with the Objective-C code.

i.e. see how I use a class for GC, and simply using the "GameCenterWrapperFunctions.m" we can here create, initialize and work with any Objective-C class.

Offline trucidare

  • Administrator
  • Prof. Inline
  • *******
  • Posts: 1377
  • Bachelor of Fail
    • View Profile
Re: Game Center (testers and help needed)
« Reply #23 on: 2012-Jan-07 »
Try to use ARC for your new Libs and disable garbage collector.
MacBook Pro 2,2 GHz Core 2 Duo, 4 GB RAM, 160 GB HDD, 8600M GT
Core i3 - 3,07 GHz, 8 GB Ram, 2.5 TB HDD, Geforce GTX 260+ OC

Offline Dark Schneider

  • Mr. Polyvector
  • ***
  • Posts: 128
    • View Profile
Re: Game Center (testers and help needed)
« Reply #24 on: 2012-Jan-11 »
I think really there is no need, garbage collector is not available on iOS, and there is no need to destroy the objects, at least in this case.

We create the objetcs in the initialization, use them, and when we exit the App the iOS frees al the memory used by that App.

Other case is if you want to have Objective-C objects to create and destroy in real time, but thanks anyway.

Offline Crivens

  • Prof. Inline
  • *****
  • Posts: 913
    • View Profile
Re: Game Center (testers and help needed)
« Reply #25 on: 2012-Jan-11 »
Hopefully I can finish my damn game and then try testing this out. Honestly the last few things take the longest...

Cheers
Current fave quote: Cause you like musicians and I like people with boobs.

Offline tatakamucher

  • Mr. Polyvector
  • ***
  • Posts: 127
    • View Profile
Re: Game Center (testers and help needed)
« Reply #26 on: 2012-Jan-11 »
I used your iOSAuxFunc for my game and now i implemented game center, thanks  :good:

Offline tatakamucher

  • Mr. Polyvector
  • ***
  • Posts: 127
    • View Profile
Re: Game Center (testers and help needed)
« Reply #27 on: 2012-Jan-12 »
Hi again  :|  :P, i tested with ipod ios 5.0.1 and works fine one time, example: you show leaderboards one time and works fine  :enc:, close leaderboards and try to open again and dont works, if you press home button and hide the game and show again the game the gc works again one time, i was think i have some wrong in mi code but i tried your file and have the same result.

The same problem is when you show the achievements.  :x

Offline Dark Schneider

  • Mr. Polyvector
  • ***
  • Posts: 128
    • View Profile
Re: Game Center (testers and help needed)
« Reply #28 on: 2012-Jan-12 »
Hi again  :|  :P, i tested with ipod ios 5.0.1 and works fine one time, example: you show leaderboards one time and works fine  :enc:, close leaderboards and try to open again and dont works, if you press home button and hide the game and show again the game the gc works again one time, i was think i have some wrong in mi code but i tried your file and have the same result.

The same problem is when you show the achievements.  :x

Ops, I forgot to mention, use the "show" functions when "lift up" the finger, and not when touch the screen. If not the input focus is lost by the app.

See that in the attached test project "GCTest" I use the InputCheckPressedUp() function, that checks if you "lift up" the finger from screen. "readme" updated with that info.

Quote
I used your iOSAuxFunc for my game
And that remembers me that I not included the GLBasic wrapper to use them, now is included  ;/

And REMEMBER EVERYONE, showLeaderboard() can't be used on iPad, I don't know why on iPad the focus is always lost.
« Last Edit: 2012-Jan-12 by Dark Schneider »

Offline tatakamucher

  • Mr. Polyvector
  • ***
  • Posts: 127
    • View Profile
Re: Game Center (testers and help needed)
« Reply #29 on: 2012-Jan-12 »
I downloaded the last files from the post and don work  :blink:

A video with the error


http://www.youtube.com/watch?v=IT8A5BOhoOM