Game Development Community

Newbie question about run*.command

by Michael Rogers · in Torque Game Engine · 07/07/2005 (7:35 pm) · 3 replies

Hi,

I'm trying to run Finney's examples on Mac OS X. I thought if I'd installed, for example, CH4 in the examples directory, and then made a runCH4.command file -- just changing starter.fps to CH4 -- then I should be able to get it to run. Instead, nothing shows up. The only way that I can get the CH4 game to run is by moving TorqueDemo OSX into the CH4 directory and double clicking.

Help!

Michael

#1
07/10/2005 (1:08 am)
Note that the Run*.command files are using "-game".
This means that all the other folders are ignored... but those folders contain scripts that make the torque window actually appear on the screen!

The "-game" switch means to load up that folder as if it was the main one.
The "-mod" switch means to load up the normal stuff, but also load up that folder.

Try changing not just "starter.fps" to "CH4", but also changing "-game" to "-mod".
#2
07/10/2005 (1:37 am)
Wow I just learned something new! Thanks for that tip Paul!
#3
07/11/2005 (12:23 pm)
I tried changing -game to -mod, but still no luck: the Torque application launches -- at least it shows up in the Finder as running -- but no GUI at all appears. FWIW, here's my runCH4.command script:

#!/bin/tcsh
cd 'dirname $0'

Torque\ Demo\ OSX.app/Contents/MacOS/Torque\ Demo\ OSX -mod CH4

echo ""
echo ""
echo "Thanks for using the Torque Game Engine!"
echo "The Torque Demo Application has finished running."
echo "You may close this Terminal window at any time."

Thanks again for any help,

Michael