From 5981ef81afcc3b5917cb71e673658ce0af4733af Mon Sep 17 00:00:00 2001 From: esteel Date: Thu, 1 Jun 2006 23:26:14 +0000 Subject: [PATCH] Added short info and example files for dedicated servers git-svn-id: svn://svn.icculus.org/nexuiz/trunk@1492 f962a42d-fe04-0410-a3ab-8c8b0445ebaa --- Docs/server/readme.txt | 15 ++++++++++ Docs/server/server.cfg | 54 ++++++++++++++++++++++++++++++++++ Docs/server/server_linux.sh | 7 +++++ Docs/server/server_mac.sh | 1 + Docs/server/server_windows.bat | 8 +++++ 5 files changed, 85 insertions(+) create mode 100644 Docs/server/readme.txt create mode 100644 Docs/server/server.cfg create mode 100755 Docs/server/server_linux.sh create mode 100755 Docs/server/server_mac.sh create mode 100644 Docs/server/server_windows.bat diff --git a/Docs/server/readme.txt b/Docs/server/readme.txt new file mode 100644 index 000000000..c66a80bb4 --- /dev/null +++ b/Docs/server/readme.txt @@ -0,0 +1,15 @@ +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 . + +After you have adjusted the config file you can start the server by +executing the server script. The options in the config file are most +interesting and important ones. You can find more information about +setting up a dedicated server in the Nexuiz Wiki: +http://savage747.sa.funpic.de/wiki/pmwiki.php?n=Main.DedicatedServer +http://savage747.sa.funpic.de/wiki/pmwiki.php?n=Main.GameTweaks diff --git a/Docs/server/server.cfg b/Docs/server/server.cfg new file mode 100644 index 000000000..9a200bb99 --- /dev/null +++ b/Docs/server/server.cfg @@ -0,0 +1,54 @@ +maxplayers "8" // number of players allowed on the server +set "port" "26000" // the port used by the server +set "sv_public" "1" // "1" if the server should on the servers list or "0" if not +set "hostname" "my server (special things)" // this name will appear on the server list +set "sv_motd" "don't drink and frag" // this message is displayed on connect +set "sv_maxrate" "10000" // limits client connections to this rate in bytes/seconds +set "sys_ticrate" "0.05" // how long a server frame is. 0.1 = 10 fps, 0.02 = 50 fps. Makes things smoother but creates more traffic +set "g_antilag" "0" // experimental antilag feature "1" to enable or "0" to disable +set "sv_cheats" "0" // "1" will enable fly/god and other cheats "0" does disable them + +set "log_file" "server.log" // server console output will also be copied to this file +set "sv_clientcommands" "0" // "1" allows you to issue client side commands to the server +set "sv_clientcommands_password" "hackme" // you will then need to authenticate with this password +set "rcon_password" "" // you can also use rcon if this password is set and will need to authenticate with this password + +set "sv_vote_commands" "restart timelimit fraglimit chmap g_grappling_hook" // players can vote for those commands +set "sv_vote_call" "1" // "1" will allow people to call votes "0" will disable this feature +set "sv_vote_master" "1" // "1" will allow people to become votemasters "0" will disable this feature +set "sv_vote_timeout" "300" // how long a vote will run at max +set "sv_vote_wait" "120" // how long a votecaller has to wait if his vote did not pass + +set "sv_ready_restart" "0" // "1" to allow players to restart the server when all of them signal they are ready + +set "sv_defaultcharacter" "0" // "1" will force a specific model for all players +set "sv_defaultplayermodel" "models/player/nexus.zym" // this model will be used +set "sv_defaultplayerskin" "0" // this skin number will be forced for all players +set "g_fullbrightplayers" "0" // "1" to make players fullbright +set "g_fullbrightitems" "0" // "1" to make items fullbright + +set "g_grappling_hook" "0" // "1" to enable the grappling hook + +set "g_balance_teams" "1" // "1" will automaticly balance teams when someone is joining +set "g_balance_teams_force" "0" // "1" to automaticly balance teams even during a game + +set "bot_number" "0" // number of bots to add +set "skill" "10" // to bots skill level + +// remove the // from the beginning of one g_maplist line to play those maps only +// arena mode (1on1 tourney) +//set "g_maplist" "arena_aggressor arena_aneurysm arena_basement arena_basementctf arena_bleach arena_darkzone arena_downer arena_evilspace arena_farewell arena_runningman arena_runningman_1on1remix arena_silvercity arena_skyway arena_slimepit arena_soylent arena_starship arena_stormkeep arena_toxic arena_warfare" +// ctf mode +//set "g_maplist" "ctf_basementctf ctf_dismal ctf_runningmanctf" +// dm mode (free for all) +//set "g_maplist" "dm_aggressor dm_aneurysm dm_basement dm_bleach dm_bloodprison dm_darkzone dm_downer dm_evilspace dm_farewell dm_runningman dm_runningman_1on1remix dm_silvercity dm_skyway dm_slimepit dm_soylent dm_starship dm_stormkeep dm_toxic dm_warfare" +// domination mode +//set "g_maplist" "dom_aggressor dom_aneurysm dom_basement dom_bleach dom_darkzone dom_downer dom_evilspace dom_runningman dom_runningman_1on1remix dom_silvercity dom_skyway dom_slimepit dom_soylent dom_starship dom_stormkeep dom_toxic" +// lms mode (last man standing) +//set "g_maplist" "lms_aggressor lms_basement lms_bleach lms_bloodprison lms_downer lms_evilspace lms_farewell lms_runningman lms_runningman_1on1remix lms_skyway lms_slimepit lms_soylent lms_starship lms_stormkeep lms_toxic lms_warfare" +// rune mode +//set "g_maplist" "rune_aggressor rune_aneurysm rune_basement rune_bleach rune_darkzone rune_downer rune_evilspace rune_runningman rune_runningman_1on1remix rune_silvercity rune_skyway rune_slimepit rune_soylent rune_starship rune_stormkeep rune_toxic" +// tdm mode (team deatch match) +//set "g_maplist" "tdm_aggressor tdm_aneurysm tdm_basement tdm_bleach tdm_darkzone tdm_downer tdm_evilspace tdm_farewell tdm_runningman tdm_runningman_1on1remix tdm_silvercity tdm_skyway tdm_slimepit tdm_soylent tdm_starship tdm_stormkeep tdm_toxic tdm_warfare" +// create your own list here +//set "g_maplist" "" diff --git a/Docs/server/server_linux.sh b/Docs/server/server_linux.sh new file mode 100755 index 000000000..cc27ac5a5 --- /dev/null +++ b/Docs/server/server_linux.sh @@ -0,0 +1,7 @@ +#!/bin/sh + +executable="nexuiz-linux-686-dedicated" +executable="nexuiz-linux-x86_64-dedicated" + +cd "`dirname \"${0}\"`" +exec ./${executable} "${@}" +exec server.cfg diff --git a/Docs/server/server_mac.sh b/Docs/server/server_mac.sh new file mode 100755 index 000000000..92696c3b4 --- /dev/null +++ b/Docs/server/server_mac.sh @@ -0,0 +1 @@ +#!/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_windows.bat b/Docs/server/server_windows.bat new file mode 100644 index 000000000..6cd37e3a2 --- /dev/null +++ b/Docs/server/server_windows.bat @@ -0,0 +1,8 @@ +@echo off + +setlocal +set executable=nexuiz -dedicated + +%~d0 +cd "%~p0" +.\%executable% %* +exec server.cfg -- 2.39.2