[cod] WaW Punkbuster Homepath
Morpheus
morpheus at clantoc.org
Mon Aug 13 05:30:21 EDT 2012
Hi,
for my cod5 server, pb folder is located at the same level where the
binary is. Here is my startscript :
#!/bin/bash
SCREENNAME="codwaw_public"
APP_PATH=/home/games/codwaw/
IP=xx.xx.xx.xx
PORT=xxxx
CFG=server.cfg
FSGAME=""
FSHOMEPATH=$APP_PATH
cd $APP_PATH
usage() {
echo "---------------------------------------------------------------------"
echo "Usage: `basename $0` (start|stop|restart)"
echo "---------------------------------------------------------------------"
exit 2
}
if [ -z $1 ]; then
usage
fi
test -x $APP_PATH/codwaw_lnxded || exit 0
start() {
test_session=`screen -list|grep $SCREENNAME|wc -l`
if [ $test_session -eq 1 ]; then
echo "---------------------------------------------------------------------"
echo "Lancement du serveur : Une session est déjà lancée"
echo "---------------------------------------------------------------------"
else
echo "---------------------------------------------------------------------"
echo "Lancement du serveur : Debut de la sequence"
echo "---------------------------------------------------------------------"
screen -dmS $SCREENNAME ./codwaw_lnxded +set fs_basepath
$APP_PATH +set fs_homepath $FSHOMEPATH +set dedicated 2 +set fs_game
$FSGAME +exec $CFG +set sv_punkbuster 1 +set g_antilag 1 +set net_ip $IP
+set net_port $PORT +map_rotate
echo "---------------------------------------------------------------------"
echo "Lancement du serveur : Fin de la sequence"
echo "---------------------------------------------------------------------"
fi
}
stop() {
echo "---------------------------------------------------------------------"
echo "Arret du serveur : Debut de la sequence"
echo "---------------------------------------------------------------------"
screen -dr $SCREENNAME -X quit
echo "---------------------------------------------------------------------"
echo "Arret du serveur : Fin de la sequence"
echo "---------------------------------------------------------------------"
}
case "$1" in
start)
start
;;
stop)
stop
;;
restart)
stop
sleep 1
start
;;
*)
usage
;;
esac
exit 0
You may need to give absolute paths for your fs_homepath and fs_basepath
vars.
Morpheus
Le 13/08/2012 11:21, Mathis Klooß a écrit :
> Hey There,
>
> i need some help for my Startscript -> COD:WW (cod5)
>
> how can i change the Punkbuster Homepath?
> so actualy the homepath ist : $HOME/.codwaw/pb/
>
> how can i set the correct punkbuster path? -> $HOME/server/cod5-bolt/pb
> /*
> Thanks
> Gunah
>
> Startscript:*
> cd $HOME/server/cod5-bolt
>
> ./codwaw_lnxded \
> +set net_ip *[ServerIP]* \
> +set net_port 28960 \
> +set dedicated 2 \
> +set fs_basepath ./ \
> +set fs_homepath ./ \
> +set sv_punkbuster 1 \
> +set ui_maxclients 24 \
> +set sv_maxclients 24 \
> +set sv_pure 1 \
> +exec start.cfg/
>
>
> _______________________________________________
> cod mailing list
> cod at icculus.org
> http://icculus.org/mailman/listinfo/cod
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://icculus.org/pipermail/cod/attachments/20120813/3e0b26f4/attachment.htm>
More information about the cod
mailing list