OpenFeint and iPad not working... is it time for "Game Center" *update*

Previous topic - Next topic

Leginus

The crystal sdk is pushed by chillingo, so if anyone is lucky enough to get picked up by chillingo then this is what they would insist on......and I suspect you would be too rich to worry at that point :)

Wampus

Hmm. Picked by Chillingo?

I've given them my email address for the priority list and been told they'll contact me soon. So I guess they pick who they want to allow to use Chillingo from their list and everyone else gets turned away. Reminds me of going to nightclubs in London.  ;/

For the time being, with getting OpenFeint (or GameCenter) working again with GLBasic, is there anything I can do? Is there anything we can all do? I have time to burn this week and I need something to take my mind off how depressing the news is.

blackway

Hi Trucidare....
Any news about the wrapper??  :P
Thanks....



Millerszone

I found this web site that tells you how to integrate Game Center. The problem is, it's
for a different programming language, but it shouldn't to hard to make it work with GLBasic
since most of the code and instructions are listed on the web site.

It looks like we'll need a wrapper. Any volunteers?  :)

I'll try to make a wrapper in my spare time, it might take a while since I never
made one before.

Game Center instructions and code:
http://www.garagegames.com/community/forums/viewthread/122529/1
Hardware: iMac 27", MacBook Air, PC 3.5Ghz Quad
Developing Tools: GLBasic SDK, Gideros Studio, PureBasic
Developing for: iOS, Android, Windows, OS X, webOS, HTML5

matchy

Looks easy to do. Same as the OF wrapper and just ask for help when you need it.

What do you mean by 'spare time'? Do you code in glb or obj professionally?

Millerszone

Quote from: matchy on 2011-Jan-30
Looks easy to do. Same as the OF wrapper and just ask for help when you need it.

What do you mean by 'spare time'? Do you code in glb or obj professionally?

By 'spare time', I mean after I finish finalizing my game 'Hit the Deck' baseball
and submit to apple sometime next week.

So, basically the 'Game Center' wrapper should be something like 'trucidare' OpenFeint Wrapper,
but will have to use these commands?
- authenticateGameCenter(); 
- closeGameCenter(); 
- reportGameCenterScore(score%,category%); 
- unlockGameCenterAchievement(achievementID%); 
- showGameCenterLeaderboard(); 
- showGameCenterAchievements(); 


Code from 'trucidare' OpenFeint Wrapper
Code (glbasic) Select

// Project: OpenFeint for GLBasic
// Start: Friday, January 22, 2010
// IDE Version: 7.242

// SETCURRENTDIR("Media") // seperate media and binaries?

CONSTANT LANDSCAPE = 1
CONSTANT PORTRAIT = 2

?IFDEF IPHONE
IMPORT "C" void GLB_OF_CreateOpenFeint(const char* ckey, const char* secret, const char* displayName, int mode)
IMPORT "C" void GLB_OF_ShowDashboard()
IMPORT "C" int GLB_OF_isOnline()
IMPORT "C" void GLB_OF_Achive(const char* achivementID)
IMPORT "C" void GLB_OF_HighScore(const char* leadID, long score)
?ELSE
FUNCTION GLB_OF_CreateOpenFeint: key$, secret$, displayName$, mode
ENDFUNCTION

FUNCTION GLB_OF_ShowDashboard:
ENDFUNCTION

FUNCTION GLB_OF_isOnline%:
RETURN FALSE
ENDFUNCTION

FUNCTION GLB_OF_Achive: achievementID$
ENDFUNCTION

FUNCTION GLB_OF_HighScore: leadID$, score%
ENDFUNCTION
?ENDIF

FUNCTION OpenFeintDummy:

ENDFUNCTION
Hardware: iMac 27", MacBook Air, PC 3.5Ghz Quad
Developing Tools: GLBasic SDK, Gideros Studio, PureBasic
Developing for: iOS, Android, Windows, OS X, webOS, HTML5

matchy

Okay...you are half way there. Now just reuse the OpenF delegate.m objc functions with the GameC code to match the parameters!

Millerszone

Quote from: matchy on 2011-Jan-30
Okay...you are half way there. Now just reuse the OpenF delegate.m objc functions with the GameC code to match the parameters!

Thanks matchy, I'll work on it later this week.

Hardware: iMac 27", MacBook Air, PC 3.5Ghz Quad
Developing Tools: GLBasic SDK, Gideros Studio, PureBasic
Developing for: iOS, Android, Windows, OS X, webOS, HTML5

Millerszone

Before I go any further, can someone check to see if I'm going in the right direction
with the code below, or am I still missing a lot of the code.

Thank you.

GameCenter.gbas
Code (glbasic) Select

?IFDEF IPHONE
IMPORT "C" int authenticateGameCenter()
IMPORT "C" int closeGameCenter()
IMPORT "C" void reportGameCenterScore(int score, int category)
IMPORT "C" void unlockGameCenterAchievement(int achivementID)
IMPORT "C" int showGameCenterLeaderboard()
IMPORT "C" int showGameCenterAchievements()
?ELSE
FUNCTION authenticateGameCenter:
ENDFUNCTION

FUNCTION closeGameCenter:
ENDFUNCTION

FUNCTION reportGameCenterScore: score, category
ENDFUNCTION

FUNCTION unlockGameCenterAchievement: achivementID
ENDFUNCTION

FUNCTION showGameCenterLeaderboard:
ENDFUNCTION

FUNCTION showGameCenterAchievements:
ENDFUNCTION
?ENDIF

FUNCTION gameCenterDummy:

ENDFUNCTION
Hardware: iMac 27", MacBook Air, PC 3.5Ghz Quad
Developing Tools: GLBasic SDK, Gideros Studio, PureBasic
Developing for: iOS, Android, Windows, OS X, webOS, HTML5


Millerszone

Quote from: matchy on 2011-Feb-02
Yes and they should match the delegate external methods.

http://www.glbasic.com/forum/index.php?topic=3901.msg29935#msg29935

Well I'm only down to 3 errors. I'll check the delegate external methods.
I'll have to continue tomorrow.

Xcode errors:
Hardware: iMac 27", MacBook Air, PC 3.5Ghz Quad
Developing Tools: GLBasic SDK, Gideros Studio, PureBasic
Developing for: iOS, Android, Windows, OS X, webOS, HTML5


blackway

Hi, sorry for bump up this thread   ;)

Any news about Game Center wrapper???

Cheers!

Millerszone

Quote from: blackway on 2011-Jun-01
Hi, sorry for bump up this thread   ;)

Any news about Game Center wrapper???

Cheers!

I've been busy, so lately I haven't worked on game center. It's still on my list of
things to do.
Hardware: iMac 27", MacBook Air, PC 3.5Ghz Quad
Developing Tools: GLBasic SDK, Gideros Studio, PureBasic
Developing for: iOS, Android, Windows, OS X, webOS, HTML5

spicypixel

Quote from: Millerszone on 2011-Jun-01
I've been busy, so lately I haven't worked on game center. It's still on my list of
things to do.

Awesome ;)
http://www.spicypixel.net | http://www.facebook.com/SpicyPixel.NET

Comps Owned - ZX.81, ZX.48K, ZX.128K+2, Vic20, C64, Atari-ST, A500.600.1200, PC, Apple Mini-Mac.