GLBasic forum

Main forum => GLBasic - en => Topic started by: Millerszone on 2010-Dec-01

Title: OpenFeint and iPad not working... is it time for "Game Center" *update*
Post by: Millerszone on 2010-Dec-01
With Xcode I have to build with armv7 for the iPad or I get warnings. I think I read that OpenFeint needs to
be armv6 to work, is this true?

Is anyone using OpenFeint and GLBasic on the iPad?


Title: Re: OpenFeint and iPad armv7
Post by: blackway on 2010-Dec-02
Hi Millerszone....
I guess that you are talking about trucidare's wrapper.... Sadly I'm the one that is giving you the bad news.... After IOS 4.x the wrapper isn't working anymore....   If you are building for Iphone\Ipod you can build using armv6 and you don't get any error or warning... but when you run the game (if it doesn't crash) you will see in the debug console a lot of warnings about memory leaks... I saw the memory leaks when I implemented Openfeint in Roll'n'Fall and I submited the game to App Store because the game runs ok anyway...but , I never though that some customer could have crashes at start because of that and I got a few bad reviews....   :(
The solution was submit a new version without Openfeint support....  Now I think that all the people here must know about this issue... Maybe Gernot or Trucidare must edit the post and erase the link to the wrapper...
Greetings....


Title: Re: OpenFeint and iPad armv7
Post by: Millerszone on 2010-Dec-02
Thanks for the info blackway.

If that's the case, then it's probably not be worth updating the wrapper for OpenFeint,
now with "Game Center" available for all iplatforms, that looks like the way to go.

Maybe we can all pitch in and get a "Game Center" wrapper working.
Title: Re: OpenFeint and iPad not working... it's time for "Game Center"
Post by: blackway on 2010-Dec-02
Anybody said Trucidare????  :whistle:
Title: Re: OpenFeint and iPad not working... it's time for "Game Center"
Post by: trucidare on 2010-Dec-02
who said?
Title: Re: OpenFeint and iPad not working... it's time for "Game Center"
Post by: Kitty Hello on 2010-Dec-02
IMO game center sucks big time. I have only one friend there and no idea how to get more.
Title: Re: OpenFeint and iPad not working... it's time for "Game Center"
Post by: Slydog on 2010-Dec-02
I can imagine Game Center must suck right now.
It's marketed as more of a social experience, so without friends, it's not very social!

The 'BEST' method is to offer both Game Center and OpenFeint and let the user decide which one he prefers.

Now, can somebody make a wrapper that combines both of those, with a single method for connecting to either.
Well, maybe not the easiest idea!  :D
Title: Re: OpenFeint and iPad not working... it's time for "Game Center"
Post by: blackway on 2010-Dec-02
Quotewho said?
It's a joke.... or isn't it? :P
You are the wrapper man!  :good:

Maybe Gernot is right about Game Center but Apple is pushing it and it's a good marketing tool for our games "the game supports Game Center"

Bye!
Title: Re: OpenFeint and iPad not working... it's time for "Game Center"
Post by: trucidare on 2010-Dec-02
i can try to make an open wrapper for new openfeint - openfeint interacts with game center now, so both are given
Title: Re: OpenFeint and iPad not working... it's time for "Game Center"
Post by: Millerszone on 2010-Dec-02
Quote from: Slydog on 2010-Dec-02
The 'BEST' method is to offer both Game Center and OpenFeint and let the user decide which one he prefers.

Now, can somebody make a wrapper that combines both of those, with a single method for connecting to either.
Well, maybe not the easiest idea!  :D

Quote from: trucidare on 2010-Dec-02
i can try to make an open wrapper for new openfeint - openfeint interacts with game center now, so both are given

That's what I wanted to hear.
I'll take either one for now.

Thanks!
Title: Re: OpenFeint and iPad not working... is it time for "Game Center"
Post by: blackway on 2010-Dec-02
Quote from: trucidare on 2010-Dec-02
i can try to make an open wrapper for new openfeint - openfeint interacts with game center now, so both are given

Greaaaaaaaaaaaaaat !!!!  :nw:
Title: Re: OpenFeint and iPad not working... is it time for "Game Center"
Post by: trucidare on 2010-Dec-03
if anyone got crystal sdk - let me know - this is a new one and performant clone of open feint
Title: Re: OpenFeint and iPad not working... is it time for "Game Center"
Post by: mykyl66 on 2010-Dec-03
Game center may suck but needed in this day and age as is the ability for in app purchases and anything else that keeps us from competing fully and properly in the ios market. Customers like features, features sell. In the current market place these kind of things are no longer a nice to have but a necessity to fully compete with others out there.

By the way open the game center app and choose the friends tab to add friends.

Mike
Title: Re: OpenFeint and iPad not working... is it time for "Game Center"
Post by: Wampus on 2010-Dec-03
*sigh* I dislike Game Center but since it is available on all iDevices and can be assumed a permanent feature supported indefinitely by Apple it makes sense to use it.
Title: Re: OpenFeint and iPad not working... is it time for "Game Center"
Post by: Kitty Hello on 2010-Dec-06
As said, the ne OpenFeint seems to have them both. That's probably the best way to go.
Title: Re: OpenFeint and iPad not working... is it time for "Game Center"
Post by: Leginus on 2010-Dec-07
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 :)
Title: Re: OpenFeint and iPad not working... is it time for "Game Center"
Post by: Wampus on 2010-Dec-07
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.
Title: Re: OpenFeint and iPad not working... is it time for "Game Center"
Post by: blackway on 2010-Dec-13
Hi Trucidare....
Any news about the wrapper??  :P
Thanks....


Title: Re: OpenFeint and iPad not working... is it time for "Game Center"
Post by: Millerszone on 2011-Jan-30
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 (http://www.garagegames.com/community/forums/viewthread/122529/1)
Title: Re: OpenFeint and iPad not working... is it time for "Game Center" *update*
Post by: 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?
Title: Re: OpenFeint and iPad not working... is it time for "Game Center" *update*
Post by: Millerszone on 2011-Jan-30
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
Title: Re: OpenFeint and iPad not working... is it time for "Game Center" *update*
Post by: 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!
Title: Re: OpenFeint and iPad not working... is it time for "Game Center" *update*
Post by: Millerszone on 2011-Jan-31
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.

Title: Re: OpenFeint and iPad not working... is it time for "Game Center" *update*
Post by: Millerszone on 2011-Feb-02
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
Title: Re: OpenFeint and iPad not working... is it time for "Game Center" *update*
Post by: 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
Title: Re: OpenFeint and iPad not working... is it time for "Game Center" *update*
Post by: Millerszone on 2011-Feb-02
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:
(http://www.americantc.com/games/GameCenterError.jpg)
Title: Re: OpenFeint and iPad not working... is it time for "Game Center" *update*
Post by: matchy on 2011-Feb-02
http://www.glbasic.com/forum/index.php?topic=3901.msg29935#msg29935
Title: Re: OpenFeint and iPad not working... is it time for "Game Center" *update*
Post by: blackway on 2011-Jun-01
Hi, sorry for bump up this thread   ;)

Any news about Game Center wrapper???

Cheers!
Title: Re: OpenFeint and iPad not working... is it time for "Game Center" *update*
Post by: Millerszone on 2011-Jun-01
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.
Title: Re: OpenFeint and iPad not working... is it time for "Game Center" *update*
Post by: spicypixel on 2011-Jun-01
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 ;)
Title: Re: OpenFeint and iPad not working... is it time for "Game Center" *update*
Post by: blackway on 2011-Jun-02
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.

One man army?  =D

Maybe Matchy or Trucidare can help?
Game Center is a must have for any game under IOS these days.... :'(

Cheers....

Title: Re: OpenFeint and iPad not working... is it time for "Game Center" *update*
Post by: Wampus on 2011-Jun-02
Quote from: blackway on 2011-Jun-02
Game Center is a must have for any game under IOS these days.... :'(

I dunno, I think its good to support it but it doesn't seem like a killer app. Very few people care about comparing high scores, achievements and whatnot unless its in an interesting environment. Steam, XBox and PSN all do that better, IMO. Also, when it comes to multiplayer gaming, wouldn't the GLBasic NET commands actually be easier to deal with?
Title: Re: OpenFeint and iPad not working... is it time for "Game Center" *update*
Post by: blackway on 2011-Jun-05
Quote from: Ragaril on 2011-Jun-02
Quote from: blackway on 2011-Jun-02
Game Center is a must have for any game under IOS these days.... :'(

I dunno, I think its good to support it but it doesn't seem like a killer app. Very few people care about comparing high scores, achievements and whatnot unless its in an interesting environment. Steam, XBox and PSN all do that better, IMO. Also, when it comes to multiplayer gaming, wouldn't the GLBasic NET commands actually be easier to deal with?

I think that Apple care about it  and that's a good point!  =D
Title: Re: OpenFeint and iPad not working... is it time for "Game Center" *update*
Post by: Millerszone on 2011-Jun-06
In just 9 months Apple has 50 million Game Center users. To put that into perspective Xbox Live has been around for about eight years and they have around 30 million users.
Title: Re: OpenFeint and iPad not working... is it time for "Game Center" *update*
Post by: Kitty Hello on 2011-Jun-06
I have ONE friend in Gamecenter. I have no idea how to find others. For me it totally sucks.
Title: Re: OpenFeint and iPad not working... is it time for "Game Center" *update*
Post by: spicypixel on 2011-Jun-07
Quote from: Kitty Hello on 2011-Jun-06
I have ONE friend in Gamecenter. I have no idea how to find others. For me it totally sucks.

I have none I'm jealous you managed to find one lol. I too cannot work out how to find others??? It sucks ass!
Title: Re: OpenFeint and iPad not working... is it time for "Game Center" *update*
Post by: Kitty Hello on 2011-Jun-07
My name is "GLBASIC". So, now you have a friend XD.