iTorque 2D Pro - re-deploy game files to iOS simulator without clean and build in XCode [Solved]
by darbotron · in iTorque 2D · 11/03/2011 (2:34 am) · 2 replies
Hi all,
We're writing our iTorque 2D game primarily in C++, and have hit an issue that, whilst not actually stopping us from working, is a big problem...
Essentially, if we make any changes to data in the TGB (and obviously save them!) then they don't show up when we run our code from Xcode unless we do a clean and build, which takes forever.
Clearly this is not great, and is adding a significant overhead to our development.
Does anyone know a way around this?
e.g. XCode must use a tool to deploy the files to simulator, or there must be some way to ask XCode to update the files without a full clean, or if the files are just copied somewhere else for the simulator to use, where is that?
Any and all help totally appreciated!
Regards,
Alex
We're writing our iTorque 2D game primarily in C++, and have hit an issue that, whilst not actually stopping us from working, is a big problem...
Essentially, if we make any changes to data in the TGB (and obviously save them!) then they don't show up when we run our code from Xcode unless we do a clean and build, which takes forever.
Clearly this is not great, and is adding a significant overhead to our development.
Does anyone know a way around this?
e.g. XCode must use a tool to deploy the files to simulator, or there must be some way to ask XCode to update the files without a full clean, or if the files are just copied somewhere else for the simulator to use, where is that?
Any and all help totally appreciated!
Regards,
Alex
About the author
Technical Course Lead at Gamer Camp www.gamercamp.co.uk I was a founding member of FreeStyleGames, the creators of DJ Hero. I've been working in games since 1996, as both a programmer and a game designer.
#2
That has totally fixed this.
Hope I can offer you some help one day :)
Alex
11/03/2011 (10:14 am)
Cheers Daniel! you are ace. That has totally fixed this.
Hope I can offer you some help one day :)
Alex
Daniel Liverance
Blinker Studios
Number one is NEVER run the game from the iTorque Game Builder. This is because it will generate ".DSO" files, and even though you update scripts and such, it will not update on the device because it will be reading from the precompiled files that were copied over.
So if you have them, delete them all.
Also one more thing. In the build phases under your project in XCode, run this script.
touch "../../projectFiles/data"
it just touches the data file where all your scripts and stuff are, and it lets XCode know to copy everything over that is new because the data file has been "changed".
I use both of these techniques and I never have to clean and rebuild my projects. (I do all of the programming in C++ as well).
Hope this helps.