Game Development Community

dev|Pro Game Development Curriculum

MacCmdLine.txt Alternative

by Paul Scott · 12/01/2004 (3:59 pm) · 4 comments

Download Code File

Using MacCmdLine.txt to open the show tool, or use a different mod, or somesuch action, can be a pain. The win32 crowd makes 'shortcuts' to the exe, that include command line arguments. Mac 'aliases' cannot contain command line args.

But MacOSX is frankly just a really slick version of BSD unix. And all unix like operating systems live and breath command line arguments. Thanks to the way the mac platform code was written, it pays attention to MacCmdLine.txt AND actual command line args.

Enter the Terminal. You can go to the Terminal application to get a unix shell, where you can manually run the executable in your Torque app's package, including any arguments you want. But this is still a pain.

If you name a file 'something.command', and open it, it will be run by the Terminal application just like a unix script.

So, here are some .command scripts:
- RunShowTool.command
- RunBase.command
- RunFPS.command
- RunRacing.command

Sent these to a couple of friends, both torque vets, they liked them, so I'm submitting them to the community. I've been using them for a little over a year.

The scripts look for an executable named "Torque Demo OSX.app". If yours is named anything else, replace every instance of 'Torque\ Demo\ OSX' in the files with the name of your torque app package. The slashes escape out any spaces.

Stick em in the same folder as your torque executable.
Double click them to run the script. I keep them in the Dock, myself.

#1
12/02/2004 (7:35 am)
Thanks !
#2
12/05/2004 (6:47 am)
Think I might link to these for our Mac players in Lore, our mapping command runs as a mod, this might make it easier for em :)

Thanks!
#3
07/01/2005 (7:39 am)
Hello. I can't seem to be able to download the .tgz file. :(
#4
07/15/2005 (2:13 pm)
Um. Bumping this thread since the download part doesn't seem to be working. :(

Clicking on the file just reloads the page.