BASIC

Author Topic: [iPhone] OpenFeint  (Read 31089 times)

Offline trucidare

  • Administrator
  • Prof. Inline
  • *******
  • Posts: 1377
  • Bachelor of Fail
    • View Profile
[iPhone] OpenFeint
« on: 2010-Feb-01 »
Hi There,

Now time for OpenFeint :)

1. Download the Xcode.rar file.
2. Unrar it
3. Go to X:/Program Files/GLBasic/Compiler/platform/iPhone
4. Rename XCode folder to XCode - Non OF
5. Copy the unrared XCode folder to X:/Program Files/GLBasic/Compiler/platform/iPhone
6. Run GLBasic
7. Open your Project
8. Add following OpenFeint.gbas to your Project
9. Write your Game
10. add the functions declared in 8 to your game
11. Compile
12. Copy to mac
13. Compile Xcode Project with XCode
14 Be happy

for questions answer in this thread.

Known Issues

-> table content in OpenFeint are slow, hope for a quick solution but not sure how. (tab and wait after some time it will click with row) - solved
-> Slowdown after some playing some level. (thanks Kittie for finding the bug) Working on solution. - thanks kittie for solving.

Download Link -> http://www.davis.org.au/trucidare/XCode.rar
(Thanks to Hatanostick for Hosting)

Some Infos:

-> OpenFeint Version 2.4.3
-> libGLBOpenFeint.a Version 1.5
-> Wrapper Version 1.2

Post you Problems, Questions or Requests.


« Last Edit: 2010-Feb-19 by trucidare »
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 Kitty Hello

  • code monkey
  • Administrator
  • Prof. Inline
  • *******
  • Posts: 10638
  • here on my island the sea says 'hello'
    • View Profile
    • http://www.glbasic.com
Re: [iPhone] OpenFeint
« Reply #1 on: 2010-Feb-01 »
trucidare: Can't you make the thing, so we can download the SDK sperately from the OF server and make the GLBasic specific package smaller?
Would be easer to update OF then, too...

Offline trucidare

  • Administrator
  • Prof. Inline
  • *******
  • Posts: 1377
  • Bachelor of Fail
    • View Profile
Re: [iPhone] OpenFeint
« Reply #2 on: 2010-Feb-01 »
Update OpenFeint is only copy new OpenFeint into XCode->Glbasic->OpenFeint
Then OpenFeint is the newest.

I can remove OpenFeint from XCode project but you must add it by yourselfe.
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

Mindfield

  • Guest
Re: [iPhone] OpenFeint
« Reply #3 on: 2010-Feb-01 »
Sweet!  So, is there any documentation on how to use it for n00bs?

Offline trucidare

  • Administrator
  • Prof. Inline
  • *******
  • Posts: 1377
  • Bachelor of Fail
    • View Profile
Re: [iPhone] OpenFeint
« Reply #4 on: 2010-Feb-01 »
Read the first post. 14 Steps to luck :D
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 fjsantosb

  • Dr. Type
  • ****
  • Posts: 258
    • View Profile
    • Tip Tap Games - iPhone, iPad and iPod Touch Games
Re: [iPhone] OpenFeint
« Reply #5 on: 2010-Feb-01 »
Hi there,

Awesome work! I was looking for that some time ago, I will try on my next project.

King Regards, fjsantos.

« Last Edit: 2010-Feb-01 by fjsantosb »
Francisco Santos Belmonte founder of Tip Tap Games.
Website: www.tiptapgames.com
Twitter: www.twitter.com/tiptapgames
Facebook: http://dld.bz/dYVd
iPhone News & Sales: www.gamesappetizer.com

Mindfield

  • Guest
Re: [iPhone] OpenFeint
« Reply #6 on: 2010-Feb-01 »
Read the first post. 14 Steps to luck :D

Well, that part I got, I meant more how to use it within the game -- how to trigger achievements, post high scores, that sort of thing.

Offline Kitty Hello

  • code monkey
  • Administrator
  • Prof. Inline
  • *******
  • Posts: 10638
  • here on my island the sea says 'hello'
    • View Profile
    • http://www.glbasic.com
Re: [iPhone] OpenFeint
« Reply #7 on: 2010-Feb-01 »
See the functions it exports (I'll make a GBAS wrapper for convenience). It's very easy. You just set up a score table or an achievement, then trigger the GLB_Of_UnlockAchievement(my_id). Totally trivial.

Use at your own risk and give us feedback, helping to improve it.

SEE ATTACHEMENT

Offline trucidare

  • Administrator
  • Prof. Inline
  • *******
  • Posts: 1377
  • Bachelor of Fail
    • View Profile
Re: [iPhone] OpenFeint
« Reply #8 on: 2010-Feb-01 »
Nice, i didnt know that preprocessors are working.
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 fjsantosb

  • Dr. Type
  • ****
  • Posts: 258
    • View Profile
    • Tip Tap Games - iPhone, iPad and iPod Touch Games
Re: [iPhone] OpenFeint
« Reply #9 on: 2010-Feb-01 »
Hi there,

I am testing OpenFeint (very insteresting), and trying imagine how to works.
I have a few question about the use of the differents commands, so i tell you how i am trying to use and please correct me when wrong.

- At the first of my app, i use GLB_Of_Init, with parameters (third parameter is the name of the app?).
- When i want to use OpenFeint i use GLB_Of_ShowDashboard() then I do a while .. wend loop while GLB_Of_isDashboardClosed() is 0.
- What's the purpose of GLB_Of_isOnline(), check if user in OpenFeint online?
- I can imagine the other commands what are used for.

King Regards, fjsantos.
Francisco Santos Belmonte founder of Tip Tap Games.
Website: www.tiptapgames.com
Twitter: www.twitter.com/tiptapgames
Facebook: http://dld.bz/dYVd
iPhone News & Sales: www.gamesappetizer.com

Offline codegit

  • Dr. Type
  • ****
  • Posts: 270
    • View Profile
Re: [iPhone] OpenFeint
« Reply #10 on: 2010-Feb-02 »
This is just AWESOME. Thank you!!  :)
------------------------------------------
1 X Acer TravelMate 4270, laptop, XP PRO
1 X Dell Studio 17 laptop, Windows 7
1 X MacBook Pro 2,2 GHz Core 2 Duo, 2 GB RAM, 160 GB HDD, 9400M
2 X iTouch
1 X HTC Desire (Android 2.1)
iPad soon to be added

Offline Kitty Hello

  • code monkey
  • Administrator
  • Prof. Inline
  • *******
  • Posts: 10638
  • here on my island the sea says 'hello'
    • View Profile
    • http://www.glbasic.com
Re: [iPhone] OpenFeint
« Reply #11 on: 2010-Feb-02 »
The "GLB_Of_IsOnline" checks if you're connected. I use that to disable the "OpenFeint" menu button.

ShowDashboard shows the thing. Yes, you oughta IDLE here. We should make that in the library so it's easier to use. But you could fade your screen out while it fades in...

Mindfield

  • Guest
Re: [iPhone] OpenFeint
« Reply #12 on: 2010-Feb-03 »
See the functions it exports (I'll make a GBAS wrapper for convenience). It's very easy. You just set up a score table or an achievement, then trigger the GLB_Of_UnlockAchievement(my_id). Totally trivial.

Use at your own risk and give us feedback, helping to improve it.

SEE ATTACHEMENT

Awesome!  This looks like a piece of cake.  Well, it will be when I get the language down, but I can wrap my head around this quite easily.  Nice.  I was hoping to have OF support out of the gate for my first game. :)

Offline fjsantosb

  • Dr. Type
  • ****
  • Posts: 258
    • View Profile
    • Tip Tap Games - iPhone, iPad and iPod Touch Games
Re: [iPhone] OpenFeint
« Reply #13 on: 2010-Feb-04 »
Hi There,

I was testing OpenFeint last days to include with my next project 'Defeat the Darkness' and i have found the following:

- I noticed some slowdowns after open OpenFeint (from 60 fps to 30 - 40), as trucidare posted.
- I noticed that horizontal resolution for OpenFeint doesn't work ('Defeat the Darkness' is an horizontal game, but when OpenFeint opens, do in Vertical mode). Is there anyway to change orientation?

And as a extra question, i wonder if we can update the OpenFeint version and how?

Thanks in advance.

King Regards, fjsantos.
Francisco Santos Belmonte founder of Tip Tap Games.
Website: www.tiptapgames.com
Twitter: www.twitter.com/tiptapgames
Facebook: http://dld.bz/dYVd
iPhone News & Sales: www.gamesappetizer.com

Offline trucidare

  • Administrator
  • Prof. Inline
  • *******
  • Posts: 1377
  • Bachelor of Fail
    • View Profile
Re: [iPhone] OpenFeint
« Reply #14 on: 2010-Feb-04 »
Orientation come with update.
Slowdown issue not found yet :( i´m working on it and next update fix both

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