Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

A Quake3 launcher script for GameRanger Apps
I got sick of trying to join a Quake3 game from GameRanger and having to have Quake3 open up, quit it, open the GameRanger.cfg file, get the IP, etc so I made up a shell script to pretty much do that for me. This script will search your HD for your Quake3 folder and the GameRanger.cfg file, load in your settings, and launch Q3 with those settings while killing any other open copies. Enjoy!

Read the rest of the article for the script...

You'll need to create this as an executable shell script. Instructions can be found elsewhere on macosxhints if you're not certain how to do that (in a nutshell, enter into a command-line editor like pico or vi, save the file, and then 'chmod 755 script_name'). Here it is:
ps -x | grep -e "MacQuake3" | awk '{print $1}' | head -1|read Q3PID
kill $Q3PID
find ~/ -name "quake3"|read QDIR

if [ ${QDIR}='' ]; then
find /Volumes -name "quake3"|read QDIR
fi

echo $QDIR
cd "$QDIR"

pwd

if [ -e "GameRanger.cfg" ]; then
cat -v GameRanger.cfg | sed 's/^M/ +/g'|read STARTVAL
ls -R "$QDIR"|grep -e 'uake3.app'|read APPNAME
$APPNAME/Contents/MacOS/Quake3 +"$STARTVAL"

else
echo "The file GameRanger.cfg does not exist. Please launch a game from GR to create it"
fi
[Editor's note: I have not tried this myself ... the script looks like it should do what's been described, though.]
    •    
  • Currently 2.00 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (1 vote cast)
 
[3,363 views]  

A Quake3 launcher script for GameRanger | 1 comments | Create New Account
Click here to return to the 'A Quake3 launcher script for GameRanger' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Easiest
Authored by: Mato on Jan 23, '02 08:25:02AM

I think there's an easiest way to connect to Q3 server under osX : use only mortal ( http://homepage.mac.com/only_mortal/ ). It's a cocoa Q2, Q3 and Wolfenstein browser that worked perfectly for me. It's better than GamerRanger cause you dont need classic for it, wich is good cause classic really slow down Q3.



[ Reply to This | # ]