Game Development Community

New to xcode + tge

by Del Chafe III · in Torque Game Engine · 12/19/2006 (11:10 pm) · 3 replies

Hi, I'm a noob.

I got xcode 2.4.1 and TGE 1.5 downloaded and installed. Opened up the xcode project file easy enough. Set build products to ../example. Everything seems to compile with a 'build succeeded' and if I click 'run' it runs the example TGE app.

But I can't figure out where exactly stuff is in the directory structure. I'm pretty new to mac in the first place. I looked in '/torque sdk/example' but that was already there, right? Where did my built binaries go?

If I copy '/torque sdk/example' to '/torque sdk/testgame' and set the build product to ../testgame will it build there? Will I then be able to start modifying testgame assets and there?

About the author

Recent Threads


#1
12/20/2006 (12:15 am)
Your built binary is inside of an app bundle in the example directory, which is where you want it to be. If you made a release build, it'll be [IIRC] "Torque Demo OSX" and debug is "Torque Demo Debug OSX"

Just do all your work in example, and when the time comes to do a release, you can copy all your work inside of the app bundle and release it. - which is stuff that's a little more detailed and probably a little further down the line than you need. Take it on good faith that that bit won't be hard :-)

Gary (-;
#2
12/20/2006 (10:39 am)
Yes, the SDK comes with the targets already compiled and in place in /example. You likely just re-compiled on top of them. Check their file modified dates and you'll probably see that you're looking right at what you built. Change the build product directory to "/testgame" and that's where it will go.

Gary, where's the info on copying everything inside the app bundle? I've been looking for that so I can release my wii test app.
#3
12/20/2006 (10:48 am)
Oh never mind, I found it in the source:

workingUrl = CFURLCreateCopyAppendingPathComponent(kCFAllocatorSystemDefault,bundleUrl,CFSTR("Contents/Resources"),true);

Basically, copy "Main.cs" and the data directories inside MyAppName/Contents/Resources/ and TGE will find them. Nice and simple.