Game Development Community

Need help chaning files into .app

by Jon Reesman · in Technical Issues · 08/23/2008 (3:07 pm) · 7 replies

I just finished my game and want to turn it into a .app but I've tried everything.

#1
08/23/2008 (4:07 pm)
What are you using? This is such a general question, that it is wide, wide open. I can guess that you're trying to create the app bundle on a Mac, but beyond that I'm not sure what you're trying to do.
#2
08/24/2008 (12:23 pm)
Ya, im trying to make it on a mac.
#3
08/24/2008 (2:01 pm)
What engine? What version of the engine? If it's TGB, just select "File->Build Game…" from the menus. If it's TGE, check out the directory structure on an existing demo. You can make a copy of the app bundle for Torque and put your resource files inside it.

In TGE 1.5.2, the default bundle is "Torque SDK/example/Torque Demo OSX". Copy this somewhere (cmd-c to copy, click on your desktop and cmd-v to paste it there). Right-click/ctrl-click the copy and select "Show Package Contents".

Navigate to "Contents/Resources". This is where you want to copy your script directories. One game.cs in there, and client/data/server directories along with it.
#4
08/24/2008 (3:03 pm)
Im using TGE 1.5.2, I put the Torque Demo on the my desktop, inserted the resource files, but when I click it, the icon appears at the bottom and it doesn't respond. But thats the best instructions I've gotten yet.
#5
08/24/2008 (3:40 pm)
While debugging, you can put the app bundle and the resources in the same directory, rather than putting resources inside the app, and use the setLogMode function to switch on logging. Maybe the console.log can tell you where things go wrong.
#6
08/25/2008 (7:34 pm)
I put the app bundle in the same directory, but what is the [setLogMode]? Sorry I am new to [Torque]. Also, the console.log said it couldn't find the main.cs.
#7
08/26/2008 (6:08 am)
SetLogMode() is a script command, but you seem to have logging on anyway. If the log says it can't find main.cs, check your directory structure again.

Here's an example:
con.structive.net/tut.png
The main.cs there is the toplevel one, as found in the example directory, and it refers to tutorial.base as its default directory. The top main.cs ends with a call to loadMyMission(), which is a function defined in tutorial.base/main.cs.