GLBasic forum

Codesnippets => Userlibs [ *.gbal] => Topic started by: trucidare on 2010-Feb-07

Title: [iPhone] Agon
Post by: trucidare on 2010-Feb-07
Hi there,

now closed OpenFeint discussion and opened Agon.

Ok first i post my Wrapper for GLBasic. Some new functions, hope its easy to use.

More infos soon :D

Ok Now time for Release!!! :D

Step by Step Guid:

1. -> Download XCode.rar from : http://davis.org.au/Trucidare/XCode.rar (http://davis.org.au/trucidare/XCode.rar) and Unrar it
1a. -> Go to X:/Program Files/GLBasic/Compiler/platform/iPhone
1b. -> Rename XCode folder to XCode - Non AGN
1c. -> Copy the unrared XCode folder to X:/Program Files/GLBasic/Compiler/platform/iPhone
2. -> Download GLBAgon.gbas from : http://davis.org.au/Trucidare/GLBAgon.gbas (http://davis.org.au/trucidare/GLBAgon.gbas.zip)
3. -> Open your Game
4. -> Add GLBAgon.gbas to your Project
5. -> Call GLB_AGN_Init() at start of your Program
6. -> Call GLB_AGN_Create("Your Secret from AGON Developer Dashboard",ServerType) // Servertypes are in GLBAgon.gbas
7. -> Call all other Agon Commands
8. -> Before you can add Achivements and Highscores to AGON you must Call GLB_AGN_StartGameSession() // i think its the best you start the session only if you are in the Game, not Menu
9. -> Dont Forget to Close the Session
10. -> Build for iPhone
11. -> Copy to Mac
12. -> Download Bundle from AGON Developer Dashboard
13. -> Copy it to xcode folder parallel to Media Folder
14. -> Open Xcode Project
15. -> Change Info.plist
16. -> Compile and have Fun :D

Known issues:

-> Colors dont work yet - vars lost values from function a to funtion b - dont understand why.
-> opening the dashboard two times it will crash (bug send to agon, hope for fix) ((crashes only if the user is online - offline users dont have any crashes))

Thanks and have fun
trucidare



[attachment deleted by admin]
Title: Re: [iPhone] Agon
Post by: MikeHart on 2010-Feb-07
Thank you for the work you put into this  :good:
Title: Re: [iPhone] Agon
Post by: fjsantosb on 2010-Feb-07
Hi Trucidare,

Great Work! I will download inmmediately!
A little question, have I only to download the 'bundle pack' of agon and add to xcode project or I have to do anything else?

King Regards, fjsantos.
Title: Re: [iPhone] Agon
Post by: trucidare on 2010-Feb-07
i will create a xcode project that you copy to your glbasic directory. then you only open it on a mac copy your bundle into resources and compile.

debug my wrapper lib at this moment. My Xcode cached all so i have the same problem for some hours. :/
Title: Re: [iPhone] Agon
Post by: fjsantosb on 2010-Feb-07
Thanks for you reply trucidare,

I know understand how i must use it.
I will implement my achievements sheet, and some leaderboards to test later.

Thanks again for share your work!

King Regards, fjsantos.

pd->Have you twitter?
Title: Re: [iPhone] Agon
Post by: trucidare on 2010-Feb-07
Ok some news :D

- now a sheet is shown when you earned a award.

ToDo:

- fileName for Award Background
- fix setColors (some glbasic to objc issue?? 40 in glbasic results xxxxxx value in lib)
- add new highscore sheet like award sheet.

no i have no twitter.


edit:// here some shots. (it auto rotates to landscape :D nice work AGON :D)



[attachment deleted by admin]
Title: Re: [iPhone] Agon
Post by: fjsantosb on 2010-Feb-07
Wow!! Impressive.

I review the wrapper and yep, its some changes in any points.
I wonder if you do a little tutorial about his use?

King Regards, fjsantos.
Title: Re: [iPhone] Agon
Post by: trucidare on 2010-Feb-07
i will post a simple example.
cant get colors to work, the UIColor pointer looses data from function a to function b. dont know why.

i took about 2 hours for the earned award sheet, highscore sheet will be simple after that.

But today i only want to see a movie and have sunday ;)

tomorrow i will continue.

thanks and regards
trucidare
Title: Re: [iPhone] Agon
Post by: fjsantosb on 2010-Feb-07
Great work so far!

I will work on awards of 'Enerbrix'.

I wish you a great sunday!

Have you see 'Avatar' or 'Sherlock Holmes'? I like both of them. :)

King Regards, fjsantos.
Title: Re: [iPhone] Agon
Post by: codegit on 2010-Feb-08
@trucidare  :nw: Awesome!!!
Title: Re: [iPhone] Agon
Post by: trucidare on 2010-Feb-08
Hier noch ein paar impressionen. ---> <--- so kurz vorm release

[attachment deleted by admin]
Title: Re: [iPhone] Agon
Post by: fjsantosb on 2010-Feb-08
Looks Really Great!

Title: Re: [iPhone] Agon
Post by: trucidare on 2010-Feb-08
Release in first post!
Title: Re: [iPhone] Agon
Post by: fjsantosb on 2010-Feb-08
Great Work trucidare!

I wil test inmmediately and post impressions!

King Regards, fjsantos.
Title: Re: [iPhone] Agon
Post by: fjsantosb on 2010-Feb-08
Hi trucidare,

This is the problems i have found (problems that you have mentioned before).

First of all, and as personal note, i have to say that i like more the OpenFeint interface, i think is more clear, easy to use and cute (and it's more extended between the players).

- I didn't use colors (if enough to me, but would be great to use colors too).
- As you reported, interface crash, when open twice (which is really bad).
- I noticed that the use of AGON its more 'difficult' or 'ugly' than previous (OpenFeint).

Conclusion: I can't use on my project yet, cause inestability :(, which is a pity.

Great work so far!

King Regards, fjsantos.

Title: Re: [iPhone] Agon
Post by: trucidare on 2010-Feb-08
Yep, its a problem with the crash, but if you play only and show one times to agon its not a problem. hope for fast fix from agon developers.

colors in work and difficult hmm i like the interface.

thanks for testing
Title: Re: [iPhone] Agon
Post by: MikeHart on 2010-Feb-08
nice work but I wonder about the crash. When I compile the sample that comes with Agon, I can open and close the leaderboard again and agin, no crashes at all.
Title: Re: [iPhone] Agon
Post by: trucidare on 2010-Feb-08
yep iÃ,´m wondering too. it doesnt crash if user is offline, only with online. but it crashes in libagon.a not in my lib. so not my fault.
Title: Re: [iPhone] Agon
Post by: Kitty Hello on 2010-Feb-09
But the Agon example program does not crash when it's online?
Title: Re: [iPhone] Agon
Post by: trucidare on 2010-Feb-09
yep right.
i dont know why its crashing after adding this to glbasic.

i rewrite my lib now and i send a mail to agon with my crashstack
Title: Re: [iPhone] Agon
Post by: trucidare on 2010-Feb-09
Ok ive rewrote my lib but the crash problem is still there.
my bug report is now found on agon board hope for fast fix.

if you want to test just click the (x) if the Loading AGON online screen apears. So it does not crash.

Title: Re: [iPhone] Agon
Post by: backslider on 2010-Nov-22
Hey Trucidare!

Have you changed the Download of the XCode Folder in the first post?
The folder only contains OpenFeint stuff, or is that right?
The Frameworks (in the xcodeproj) after compiling are also OpenFeint and not Agon...

cheers