[cod] Where to place server.cfg?

Clanwarz clanwarz at gmail.com
Thu Dec 20 15:55:52 EST 2007


+set fs_homepath $USR

must be

+set fs_homepath /home/$USR


and the config should be in /home/$USR/main/server.cfg



--jay








On Dec 20, 2007 2:34 PM, Georgecooldude <georgecooldude at gmail.com> wrote:

> Hi Guys
>
> I'm running 1.4 linux server and am now trying to configure a server.cfgfile. I must be doing something wrong as I cannot get it to pickup my
> server.cfg file. Each time I connect to the server it says "cod4host" as
> the hostname and not what I have configured it as.
>
> Here is my directory structure
>
> /home/games/cod4files (all my cod4 files are here)
>
> /home/cod4srv (this is the directory for my user account called cod4srv)
>
> This is the startup script I'm using. (Between the dashes)
>
>
> ---------------------------------------------------------------------------------
> cod4srv at srv01:~$ cat start
> #Call of Duty 4 Start Script
> # ---------------------------
>
> export LD_LIBRARY_PATH=":"
>
> # Make sure you have the correct ip and user name set below
> # ---------------------------------------------------------
>
> IP=192.168.1.15
> USR=cod4srv
> INSTALL=/home/games/cod4files/data
>
> # Let's make sure the server is not running
> # -----------------------------------------
> screen -S $USR -X quit
> killall -9 cod4_lnxded
>
> # Now the command line that starts the server
> # ------------------------------------------
>
> screen -A -m -d -S $USR $INSTALL/cod4_lnxded \
> +set net_ip $IP +set net_port 28960 +set fs_basepath \
> $INSTALL +set fs_homepath $USR +set sv_punkbuster 1 \
> +set sv_pure 1 +exec server.cfg +map_rotate
>
> echo ""
> echo "Cod4-Server running under user $USR has been started"
> echo ""
>
>
> # End of File
> #*********************************************************************************************
>
>
> ---------------------------------------------------------------------------------
>
>
>
> When i start the server using ./start no matter where it seems I put my
> server.cfg file it is not picking it up. Where abouts should I be placing
> the server.cfg file? I'm looking to run more than 1 server from the base
> install so I cannot place it in cod4files/data/main.
>
> Thanks in advance.
> George
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://icculus.org/pipermail/cod/attachments/20071220/4e6cc5f5/attachment.htm>


More information about the Cod mailing list