Page 1 of 3

TUTORIAL FOR BUILD AND START GAME EDITOR GAME ON YOUR IPHONE

PostPosted: Wed Aug 25, 2010 8:56 am
by alexandrefredenucci
Hi all !

I hope my tutorial will help someone ^^

I use iPhone SDK 3.1.3 with XCode 3.2.1 (you can download old sdk here http://iphonesdkdev.blogspot.com/2010/0 ... e-sdk.html)

after you have installed iphone sdk and made Provisioning Profiles, like it's explain on the apple dev site http://developer.apple.com/iphone/index.action

download game editor..
go to bin folder in the root folder
open geapp_iphone folder
open geapp.xcodeproj

1/ put your geapp.dat (exported with game editor) in Ressources folder
Image

2/ a pop up appear, configure like that and click add
Image

3/ your game is added in the xcode project
Image

4/ right click on the "gameEditor iPhone Player" and select Get Info
Image

5/ now go to properties tab and change Identifier
Image

6/ with your App IDs, then go to Build tab
Image

7/ go to the Code Signing
Image

8/ and select your iphone developer profile
Image
Image

9/ above you can select where your .app is build
Image

10/ then click build and run, the game start on your iphone !
Image

geapp.xcodeproj is now configure, you have just to change the geapp.dat in ressources folder and click build for test every update of your game :wink:

Re: TUTORIAL FOR BUILD AND START GAME EDITOR GAME ON YOUR IP

PostPosted: Wed Aug 25, 2010 9:30 am
by akr
Alexandre, I am very happy to have your tutorial here!!! Hope that I can also help with tuts on future but at the moment my time is eaten up doing development.

Btw you can use the newest SDK as long as u set the "iPhone OS Deployment Target" to OS 3.1.2. (Was the way I brought wobong to appstore.)

This is because multitasking on OS 4 is not tested yet.

andreas

Re: TUTORIAL FOR BUILD AND START GAME EDITOR GAME ON YOUR IP

PostPosted: Fri Aug 27, 2010 1:57 am
by Chai
Dear alexandrefredenucci;
Thank you very much. This tutorial helps me a lot.

Re: TUTORIAL FOR BUILD AND START GAME EDITOR GAME ON YOUR IP

PostPosted: Sat Aug 28, 2010 1:43 am
by zxcvbnm
Excellent work on your tutorial!!! Thank you for your contrubution to game editor , this will help many members to come.

Re: TUTORIAL FOR BUILD AND START GAME EDITOR GAME ON YOUR IP

PostPosted: Wed Oct 06, 2010 5:13 pm
by Leeesaw
Thanks for the awesome tutorial.
Does anyone know how to make multitouch work? Right now I am using buttons and telling to work on mouse click... but this doesnt work for pressing more than one of them at a time (if you are pressing jump at the same time as forward)

Re: TUTORIAL FOR BUILD AND START GAME EDITOR GAME ON YOUR IP

PostPosted: Mon Oct 25, 2010 4:33 pm
by Chai
this is important tutorial.

Re: TUTORIAL FOR BUILD AND START GAME EDITOR GAME ON YOUR IP

PostPosted: Mon Oct 25, 2010 5:28 pm
by Hblade
Leeesaw wrote:Thanks for the awesome tutorial.
Does anyone know how to make multitouch work? Right now I am using buttons and telling to work on mouse click... but this doesnt work for pressing more than one of them at a time (if you are pressing jump at the same time as forward)


I think you can make "multitouch" by making a "mouse over" event on the buttons rather than MouseDown.

Re: TUTORIAL FOR BUILD AND START GAME EDITOR GAME ON YOUR IP

PostPosted: Sun Jan 23, 2011 6:23 pm
by sonicfire
I know this topic is a bit old, but what should i use today?
geapp for direct testing on the iphone or geplayer with ftp-uploading and stuff? :-)

Specs:
osx 10.6.6
XCode 3.2.5 (1760)
iPod Touch 3g, iOS 4.2.1

EDIT: i´m in the developer-program, provisioning profiles are set up.

any help would be really appreciated , thanks! :)

Re: TUTORIAL FOR BUILD AND START GAME EDITOR GAME ON YOUR IP

PostPosted: Sun Jan 23, 2011 6:56 pm
by sonicfire
that´s what i get...(with specs i mentioned before).
does this has something to do with my stupidity or with latest xcode + ios sdk? :(

a bit lost here!

Re: TUTORIAL FOR BUILD AND START GAME EDITOR GAME ON YOUR IP

PostPosted: Sun Jan 23, 2011 7:07 pm
by akr
I took geapp and latest xcode. Then I changed "edit active target" / base sdk to latest ios 4.2.1. Pressed build and got no error.

So it seems that you changed anything beyond that. Try that from scratch until you find your problem.

Re: TUTORIAL FOR BUILD AND START GAME EDITOR GAME ON YOUR IP

PostPosted: Sun Jan 23, 2011 7:14 pm
by sonicfire
thanks, akr! :)

so i should use geapp instead of geplayer here? just curious.

Re: TUTORIAL FOR BUILD AND START GAME EDITOR GAME ON YOUR IP

PostPosted: Sun Jan 23, 2011 7:18 pm
by sonicfire
THANKS AGAIN!! it works! how cool is that ...
:D <- keep´s smiling

Re: TUTORIAL FOR BUILD AND START GAME EDITOR GAME ON YOUR IP

PostPosted: Sun Jan 23, 2011 7:55 pm
by akr
geplayer and geapp should behave same. geplayer is for downloading your datfile to iphone and geapp is for submitting your app including datfile to appstore.
Refer to iphone faq in general section.

greetings
andreas

Re: TUTORIAL FOR BUILD AND START GAME EDITOR GAME ON YOUR IP

PostPosted: Sun Jan 23, 2011 8:36 pm
by sonicfire
ok, thanks. think i´m fine with geapp :)

one questions, though: in my game i use load & savevars to save highscores to disk, however when i restart the app (geapp icon / mygame) on ipod, the score is always back to zero (file not there or not saved or something). i dont mean restarting it through xcode which would re-upload it to the phone.

is that because of using geapp? hope my quesion makes sense.

Re: TUTORIAL FOR BUILD AND START GAME EDITOR GAME ON YOUR IP

PostPosted: Mon Jan 24, 2011 12:02 pm
by akr
geapp saves its file to the documents folder of the iphone app sandbox.

Dont have the direct link to the apple sdk documentation but this link here shows it also:

http://oreilly.com/iphone/excerpts/ipho ... e-sdk.html

Normally the documents folder gets erased only if the app is reinstalled or deleted.

Start or termination of the app should keep the documents saved persistent.