[iPhone] OpenFeint

Previous topic - Next topic

trucidare

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.




[attachment deleted by admin]
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

Kitty Hello

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...

trucidare

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

Sweet!  So, is there any documentation on how to use it for n00bs?

trucidare

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

fjsantosb

#5
Hi there,

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

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

Mindfield

Quote from: trucidare 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.

Kitty Hello

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

[attachment deleted by admin]

trucidare

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

fjsantosb

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

codegit

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

Kitty Hello

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

Quote from: Kitty Hello 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

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. :)

fjsantosb

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

trucidare

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