Game Development Community

ITGB Development Best Practices

by Dave Young · in iTorque 2D · 01/09/2009 (5:01 am) · 3 replies

I am brand new to deving for the iPhone and in TGB really, though I've owned it for quite a while. It appears I am going to be doing quite a bit of iPhone dev for work here at Gamesville and I thought I would start a Best Practices thread to build on my own experiences and draw in others in this fledgeling iTGB community.

So, if you have a development process Best Practice to add in, something you've scientifically or empirically or even at the very least anecdotally seen to work well, please post it here.

#1
01/09/2009 (5:07 am)
My first contribution is to keep a base working copy of the xcode folder and game project around. I work with 2 iPod touches and go back and forth between them. One day I had a working build of the Gravity/Bounce sample project working on one iPod, and so I began to modify it in TGB to begin learning. Soon I discovered that after only changing some script and gui code I was suddenly unable to deploy to the device with an often seen provisioning error (0xE800003A) ApplicationVerificationFailed). I went through a bunch of things, clearing xcode caches, cleaning builds, rebooting, even wiping the ipod to no avail. Only when I went back to a freshly downloaded build did it work again.

So now I keep a working copy of my folder as often as possible. Until a more sniper based way of fixing the nasty deploy-to-device things that come up, it's going to serve me well.
#2
01/09/2009 (10:22 am)
From Bret Patterson:

1. You can't use resources. So don't create the resources folder, it causes the verification error.
2. You have to do a full clean build/re-add the files everytime or it might miss some things. I haven't found a good work around for this yet.

Note: Bret is totally on cue for #2, it seems to be the only reliable way to do it.

As far as importing resources go, the next best thing is to copy over the images you need into the project's game/data/images folder and import the image yourself as an imagemap and/or animation. Alternatively you could probably copy over the datablock definition itself from the original resource's folder into your project's datablocks.cs but you would need to change the path names to the images more than likely.
#3
01/17/2009 (3:21 pm)
I've gotten XCode to "refresh" my resource folder by deleting/recompiling all my DSOs