GLBASIC iTouch and OpenFeint

Previous topic - Next topic

trucidare

Found another social network similar to OpenFeint...

http://developer.agon-online.com/

is a static lib + header
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

I think OpenFeint is the most used out there. PLUS+ seems a big one, too. But the most games these days have OF.

MikeHart

Quote from: matchy on 2010-Jan-20
MH, The latest OpenFeint is 2.4.1.  8)

Matchy, I used 2.2 before but downloaded 2.4.2 yesterday.  ;)

trucidare

i created a simple xcode project for use with openFeint. some fine tune and add leaderboards then i release it.
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

trucidare

#34
Now time for Testing :D

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 lines:
-> IMPORT "C" void GLB_Of_Init(const char* key, const char* secret, const char* displayName)
-> 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)
-> IMPORT "C" int GLB_Of_isDashboardClosed()
-> IMPORT "C" void iPhonePumpEvents(unsigned long milisecs)

Or import the Attached Wrapper 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 :D

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

Download Link -> http://rapidshare.com/files/339338189/XCode.rar.html

Please load up this file to another private server, because 10 times download limit.

Thanks

[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

For Step 8 -> please provide a .gbas file that has the wrappers ;)
As usual, ace work.

trucidare

Pfew had forgotten that i can save gbas ob mac :D

Forgoten to say: You can use the same xcode project for every project. OpenFeint will be only enabled with calling GLB_Of_Init. Who do not use OpenFeint dont call this function ;)
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

codegit

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

Dude, I can't wait to try this out. I'll stick it into WizSticks. I'll have the gems for the Archivements.

trucidare

Hope for the solution for the slow down issue - after this all is perfect.

P.S. its the same slowdown that stops my CocoaTouch project, if this solved CocoaTouch is not far away
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

matchy

Tested OK and works fine!  =D

bigsofty

Can't test, iMac getting repaired... but sounds great, congrats on getting this far Trucidare  :booze:
Cheers,

Ian.

"It is practically impossible to teach good programming style to students that have had prior exposure to BASIC.  As potential programmers, they are mentally mutilated beyond hope of regeneration."
(E. W. Dijkstra)

Hatonastick

#42
The file can also be downloaded via: http://www.davis.org.au/trucidare/XCode.rar

Trucidare, if you update send me a message and I'll update the version I'm hosting if you like.  I wouldn't mind hosting GLB-related files for people if they need it (heck its not like I'm doing much with the bandwidth) although I would have to ask why you don't just put it in the GLB showroom. :)

trucidare

Because the file size.
Thanks, i send you a mail if an update is online.
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

Hatonastick

No problem mate.  If you or anyone else needs GLB-specific files hosted just shoot me a message.

I've noticed lately a few DNS problems with my server which is odd, which may cause my server to 'randomly' disappear from time to time.  Don't panic if that happens as it's usually temporary.  Mind you the problem could just be the DNS server my home network uses ie. an issue with our ISP which wouldn't be the first time.  Anyway that's enough thread-stealing from me. :)