From c9990554941c0194f777a9dcdf82914b69ccb57c Mon Sep 17 00:00:00 2001 From: esteel Date: Fri, 22 Jun 2007 00:43:38 +0000 Subject: [PATCH] added dedicated server scripts to start in pro mode, mentioned it in readme.txt and changed the order of parameters in the existing scripts git-svn-id: svn://svn.icculus.org/nexuiz/trunk@2771 f962a42d-fe04-0410-a3ab-8c8b0445ebaa --- Docs/server/readme.txt | 31 ++++++++++++++++-------------- Docs/server/server_linux.sh | 2 +- Docs/server/server_mac.sh | 2 +- Docs/server/server_pro_linux.sh | 9 +++++++++ Docs/server/server_pro_mac.sh | 1 + Docs/server/server_pro_windows.bat | 8 ++++++++ Docs/server/server_windows.bat | 2 +- 7 files changed, 38 insertions(+), 17 deletions(-) create mode 100755 Docs/server/server_pro_linux.sh create mode 100755 Docs/server/server_pro_mac.sh create mode 100644 Docs/server/server_pro_windows.bat diff --git a/Docs/server/readme.txt b/Docs/server/readme.txt index fa4370522..eb8311b9a 100644 --- a/Docs/server/readme.txt +++ b/Docs/server/readme.txt @@ -1,24 +1,27 @@ -In this subdirectoriy you will find scripts and a config file that can -be used to start a dedicated server on linux, mac or windows systems. -You will need to copy the right script into your Nexuiz main -directory, where the normal binaries are. You then need to copy and -ADJUST the config file which is called server.cfg. You can copy it -either into the Nexuiz/data directory where the big data*.pk3 file is -or when running linux or a mac you can as well copy it into a special -directory called ~/.nexuiz/data . +In this subdirectory you will find scripts and a config file that can +be used to start a dedicated Nexuiz server on linux, mac or windows +systems. You will need to copy the right script into your Nexuiz main +directory, where the normal binaries are. There are two scrips for +each sytems, one to start a normal Nexuiz server and one to start it +with the new 'Pro' settings. You then need to copy and ADJUST the +config file which is called server.cfg. You can copy it either into +the Nexuiz/data directory where the big data*.pk3 file is or when +running on linux or mac you can as well copy it into a special +directory called ~/.nexuiz/data -An important thing is to make sure that your firewall does allow to -contact your server. This typicly means you will have to open or -forward the port (see the line in your config.cfg for the -right port number) to the computer running your server. How to do -this does depend on your computer setup. +An important thing is to make sure that your firewall does allow +players to contact your server. This typicly means you will have to +open or forward the port (see the line that sets the variable port in +your config.cfg for the right port number, default is 26000) to the +computer running your server. How to do this does depend on your +computer setup. If you plan to install custom maps on your server you should read the file Docs/mapdownload.txt to learn how to setup automatic map download. After you have setup everything and have adjusted the config file you -can start the server by executing the server script. The options in +can start the server by starting the server script. The options in the config file are only the most interesting and important ones. You can find more information about setting up a dedicated server in the Nexuiz Wiki: diff --git a/Docs/server/server_linux.sh b/Docs/server/server_linux.sh index 13a1df767..4ed056adc 100755 --- a/Docs/server/server_linux.sh +++ b/Docs/server/server_linux.sh @@ -6,4 +6,4 @@ case "$(uname -m)" in esac cd "`dirname \"${0}\"`" -exec ./${executable} "${@}" +exec server.cfg +exec ./${executable} +exec server.cfg "${@}" diff --git a/Docs/server/server_mac.sh b/Docs/server/server_mac.sh index 92696c3b4..4388927ec 100755 --- a/Docs/server/server_mac.sh +++ b/Docs/server/server_mac.sh @@ -1 +1 @@ -#!/bin/sh executable="nexuiz-osx-ppc-dedicated" cd "`dirname \"${0}\"`" exec ./${executable} "${@}" +exec server.cfg \ No newline at end of file +#!/bin/sh executable="nexuiz-osx-ppc-dedicated" cd "`dirname \"${0}\"`" exec ./${executable} +exec server.cfg "${@}" \ No newline at end of file diff --git a/Docs/server/server_pro_linux.sh b/Docs/server/server_pro_linux.sh new file mode 100755 index 000000000..40c8584f8 --- /dev/null +++ b/Docs/server/server_pro_linux.sh @@ -0,0 +1,9 @@ +#!/bin/sh + +case "$(uname -m)" in + x86_64) executable="nexuiz-linux-x86_64-dedicated" ;; + *) executable="nexuiz-linux-686-dedicated" ;; +esac + +cd "`dirname \"${0}\"`" +exec ./${executable} -game pro +exec server.cfg "${@}" diff --git a/Docs/server/server_pro_mac.sh b/Docs/server/server_pro_mac.sh new file mode 100755 index 000000000..28470e1f9 --- /dev/null +++ b/Docs/server/server_pro_mac.sh @@ -0,0 +1 @@ +#!/bin/sh executable="nexuiz-osx-ppc-dedicated" cd "`dirname \"${0}\"`" exec ./${executable} -game pro +exec server.cfg "${@}" \ No newline at end of file diff --git a/Docs/server/server_pro_windows.bat b/Docs/server/server_pro_windows.bat new file mode 100644 index 000000000..e3149b9c8 --- /dev/null +++ b/Docs/server/server_pro_windows.bat @@ -0,0 +1,8 @@ +@echo off + +setlocal +set executable=nexuiz -dedicated + +%~d0 +cd "%~p0" +.\%executable% -game pro +exec server.cfg %* diff --git a/Docs/server/server_windows.bat b/Docs/server/server_windows.bat index 6cd37e3a2..8850825ea 100644 --- a/Docs/server/server_windows.bat +++ b/Docs/server/server_windows.bat @@ -5,4 +5,4 @@ set executable=nexuiz -dedicated %~d0 cd "%~p0" -.\%executable% %* +exec server.cfg +.\%executable% +exec server.cfg %* -- 2.39.2