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:
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[Editor's note: I have not tried this myself ... the script looks like it should do what's been described, though.]
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
•
[3,360 views]

