Game Development Community

Compile process.

by Kiplring · in iTorque 2D · 05/23/2010 (10:33 pm) · 4 replies

I do add a script file following sequence.

iT2D 1.4 beta2 with xcode in snowleopard.

1. Create a cs file with finder.
2. Reload xcode. ( It is weird. File adding function in xcode project created by TGB doesn't work properly.)
3. Do scripting.
4. Push "Play game" button in TGB.( .dso file is generated here.)
5. Quit TGBGame Debugger.
6. Compile and execute application in iPhone device.

Question
1. There is no faster way to compile?
2. File adding function in xcode project created by TGB doesn't work properly. <= Is everyone same?
3. There is no other way to generate .dso file except "Play game" in TGB?


#1
05/24/2010 (3:22 am)
1. The process is fast. The long time to compile only happens on the first go (or if you clean), because no object files exist at that point.
After that only the sources that changed will be recompiled.

2. File adding in which way or for which purpose? To use it outside of iTGB?

3. Play the application itself with the script block uncommented in main.cs that compiles all scripts, level and fonts. You will be going to run it anyway normally to test if you didn't forget level datablocks etc etc
#2
06/26/2010 (2:49 am)
Marc I disagree. While technically, the process is fast, it is ridiculous to have to do so many steps to see your results. The dso's should be updated automatically through xcode.
#3
06/26/2010 (5:51 am)
I'm not sure what you talk about but obviously not the thing about which the thread is about, compilation.

As for updating the dsos: send bug reports to apple its their software that does not pick up filechanges and rebuild.
I commonly just "touch" the common or the scripts folder which makes xcode copying over the things.


Also if you have such a large problem you technically should potentially not use scripting at all, then you don't have to worry about it.
#4
06/28/2010 (4:38 am)
I've actually found the build time to be very short, around 15 seconds from saving a script change to testing it on the device...

CTRL-S - save the file in TorqueDev
CMD-TAB - to TGB
F5 - run the game
CMD-Q - immediately quit the game
CMD-TAB - to Xcode
CMD-Enter - runs the game on the hardware

With the latest iT2D I haven't had any trouble with Xcode not detecting new files or file changes.

Also - for most coding, running in iT2D on the Mac is enough and I only run on the hardware every half hour or so.