How To run an OpenArena server on linux

Server config tips & tricks, howtos, examples, questions & answers...

How To run an OpenArena server on linux

Postby itachi » Sun 24 Jun 2012 03:28

1) download the latest OA from the website
Code: Select all
http://openarena.ws/download.php


2) extract the game in /home and rename the directory (or create a symlink), so the path to the game will be:
Code: Select all
/home/openarena


3) in the home of the user under wich the server will run (shurley NOT root), create a folder .openarena
Code: Select all
/home/itachi/.openarena


4) in here, you will make some folders like CTF for hosting a ctf server, TDM for tdm etc
Code: Select all
/home/itachi/.openarena/CTF


5) in the CTF folder we put the server config file and the server start command
Code: Select all
/home/itachi/.openarena/CTF/server.cfg
/home/itachi/.openarena/CTF/server.sh


6) the server.sh file should contain :
Code: Select all
#!/bin/dash
/home/openarena/oa_ded.i386 +set fs_game CTF +exec server.cfg +set dedicated 2 +set net_port 27960


7) the server.sh must be marked as executable :
Code: Select all
chmod +x /home/itachi/.openarena/CTF/server.sh


8) we create another file for running the ctf server in the background
Code: Select all
/home/itachi/.openarena/ctf.sh

and we mark-it as executable too
Code: Select all
chmod +x /home/itachi/.openarena/ctf.sh


9) in the file we put this command (must have screen installed)
Code: Select all
#!/bin/dash
screen -S ctf -d -m /home/itachi/.openarena/CTF/server.sh


NOTE:
this suppose you know how to create directories and files and how to edit them.
mkdir creates a folder
touch creates a file
you may edit files with nano
User avatar
itachi
supeR,Bot
supeR,Bot
 
Posts: 82
Joined: Sat 14 Feb 2009 01:31
Location: Paris, France

Re: How To run an OpenArena server on linux

Postby itachi » Sun 24 Jun 2012 03:46

Insta Freeze TDM (with railjump)

1) create a TDM directory in the .openarena folder
Code: Select all
/home/itachi/.openarena/TDM


2) download and extract directly in that folder the ultra freeze from
Code: Select all
http://planetquake.gamespy.com/View.php?view=Quake3.Detail&id=1793


you will have now in the TDM folder all the PK3 files of the mod and the other misc files that comes with it

3) create the server.cfg file in that folder, and paste in the content
Code: Select all
/home/itachi/.openarena/TDM/server.cfg


4) edit the file and set rcon and ref passwords and configure the download url
in order to have a good download speed, you need to have already a webserver where you can host the PK3s of the mod. let's assume your domain is oa.mydomain.com at the root of that domain you must create a TDM folder and copy all the PK3s in here (PK3s of the mod, custom maps [if any], z-pro-skin-models, textures etc.)

5) for the rest of the files, is as usual, described in the previous post
Code: Select all
/home/itachi/.openarena/TDM/server.sh

Code: Select all
/home/itachi/.openarena/tdm.sh

make shure (if you create this files) to make them executable (chmod +x) and to edit them adequately (replace CTF in the 1st post with TDM as requested in this example)


server.cfg --------------------------------------------------
Code: Select all
set cl_wwwDownload 1
set sv_allowDownload 1
set sv_dlUrl "http://www.webserver.tld"
set sv_master2 "master0.gamespy.com"
set sv_master3 "dpmaster.deathmask.net"
set sv_wwwDlDisconnected 1
set sv_wwwDownload 1

//
// ---------- Example Configuration ----------
//
// This is an example server configuration file for Unlagged Freeze Tag.
// The settings in this file are for a "Hook & Rail" server.  Most of the
// defaults should be fine, but check through just to make sure it's as
// you like it.  Make sure you set sv_hostname and g_motd!


//
// ---------- Server Settings ----------
//

// Set sv_hostname to what you want your server name to be on server lists
seta sv_hostname "^1supeR^0,^7Insta^1Freeze"

// This will be displayed when clients connect
seta g_motd "Watch them giblets fly!"

// This will force everyone to use the same PK3
seta sv_pure "1"

// Total clients allowed to connect
seta sv_maxclients "12"

// Be a tyrant with these
seta sv_maxPing "0"
seta sv_minPing "0"

// Limit bandwidth
seta sv_maxRate "10000"

// Memory settings
seta com_hunkMegs "56"
seta com_soundMegs "8"
seta com_zoneMegs "16"

// Protect against chat floods
seta g_floodProtect "1"
// sv_floodProtect is kinda botched (a blanket suppression for all
// ad-hoc commands, badly-implemented to boot), so I've disabled
// it in favor of a more specific solution: g_floodProtect
seta sv_floodProtect "0"

// Master servers
//seta sv_master2 "master0.gamespy.com"
//seta sv_master3 ""
//seta sv_master4 ""
//seta sv_master5 ""

// Allow clients to download PK3s that they haven't got
seta sv_allowDownload "1"
// Make sure it's in the right place ("ufreeze", not "baseq3")
// If you're running this on Linux, put it in ~/.q3a/ufreeze or it won't upload
// Also, make sure you remove the old PK3 when you upgrade!

// For the sake of your players, make sure this is 1:
seta g_smoothClients "1"
// This smooths out players who are laggy and skipping around.  There is
// absolutely no downside, and UFreeze's server-only implementation of it
// takes less bandwidth than Quake 3's normal server-client implementation.


//
// ---------- Game Settings ----------
//

// Add these numbers up for the features you want
//DF_NO_FALLING   8
//DF_FIXED_FOV   16
//DF_NO_FOOTSTEPS   32
//DF_NO_ITEMRESET   64
//DF_NO_TEAMRESET   128
//DF_WEAPONS_STAY   256
//DF_NO_PLAYERCLIP   512
//DF_NIGHTMARE   1024

// Nightmare (one-shot kill), no falling damage
set dmflags "1032"

// 0 - Free For All, 1 - Tournament,
// 3 - Team Deathmatch, 4 - Capture the Flag
set g_gametype "3"

// Suicides of all kinds get some kind of penalty
// (Falling/drowning is a freeze, 3-second wait on
// lava/slime/voids/death fog)
set g_hardcore "1"

// Set how long the aforementioned penalty is here
set g_llamaPenalty "3"

// Fraglimit is meaningless in FT
set fraglimit "0"

// Time before "sudden death" or a forced win based on captures
set timelimit "15"

// Allow sudden death
set g_doSuddenDeath "1"

// Set capturelimit to the number of team wins required before going on
set capturelimit "15"

// Change these to speed up/slow down the game
set g_thawTime "2.0"
set g_autoThawTime "60"

// Change these to control spawn frags and reverse spawn frags
set g_noDamageTime 2.0
set g_noAttackTime 1.0
//set g_noFreezeTime 2.0

// Enable rcon (remote console) by setting this
set rconPassword "YOUR-RCON-PASS-HERE"

// Enable referee functions by setting this password
// (Some are useful for even casual play and you may want to give a
// trusted player limited command ability)
set ref_password "YOUR-REF-PASS"

// Set to "1" if you'd like your referees to automatically log in by
// setting their "ref_login" cvar
set g_refAutologin "0"

// Standard FT has this off - leave it
set g_friendlyFire "0"

// Players will join a team immediately
set g_teamAutoJoin "1"

// Force teams to be balanced within two players
set g_teamForceBalance "1"

// Force clients to respawn in 10 seconds
set g_forceRespawn "10"

// Uncomment this to turn on rail jumping
set g_railJumpKnock 160

// Uncomment this to double knockback
//set g_knockback "2000"

// Grappling hook
set g_grapple "0"

// Hook fly and pull speed
set g_grappleSpeed "1800"
set g_grapplePullSpeed "1200"

// Set this to the file name you want game events logged to
set g_log "server.log"

// If you've got IPs you always want banned, uncomment the next line
// and replace the IP addresses with real ones
//seta g_banIPs "192.168.1.111 172.21.4.233"

// Turn on IP banning
set g_filterBan "1"

// Kick after 2 minutes of not moving
set g_inactivity "120"

// Allow players to vote
set g_allowVote "1"

// Change these settings to disable voting on specific things
set vote_capturelimit "0"
set vote_timelimit "0"
set vote_warmup "0"
set vote_friendlyfire "0"
set vote_gametype "0"
set vote_grapple "0"
set vote_lagcomp "0"
set vote_kick "1"
set vote_remove "1"
set vote_putblue "1"
set vote_putred "1"
set vote_map "0"
set vote_restart "1"
set vote_nextmap "1"
set vote_railjump "0"
set vote_opinion "1"
set vote_config "0"

// Don't enable vote_config unless you've at least LOOKED in
// the votecfgs directory

// Enable bot support
set bot_enable "1"

// Bots can chat (set to "1" to shut them up)
set bot_nochat "1"

// This sets the minimum number of players on a team
// If there aren't enough players, bots will spawn in to fill slots
set bot_minplayers "2"

// Default bot difficulty level
// 1 - I Can Win!, 2 - Bring It On,
// 3 - Hurt Me Plenty, 4 - Hardcore,
// 5 - Nightmare!
set g_spSkill "3"

// Add these up
//Machinegun   1
//Shotgun   2
//Grenade Launcher   4
//Rocket Launcher   8
//Lightning Gun   16
//Railgun   32
//Plasma Gun   64
//BFG10K   128
//Nailgun   256
//Prox Launcher   512
//Chaingun   1024
//Gauntlet   2048

// Start with a railgun
set wpflags "32"

// Limit these weapons, weak gauntlet
set weaponlimit "4095"

// Disable items.  See "itemlist.txt" for a full list of items.
set disable_holdable_medkit "1"
set disable_holdable_teleporter "1"
set disable_item_armor_body "1"
set disable_item_armor_combat "1"
set disable_item_armor_shard "1"
set disable_item_enviro "1"
set disable_item_flight "1"
set disable_item_haste "1"
set disable_item_health "1"
set disable_item_health_large "1"
set disable_item_health_mega "1"
set disable_item_health_small "1"
set disable_item_invis "1"
set disable_item_quad "1"
set disable_item_regen "1"


//
// ---------- Example Map Rotation ----------
//
// Please make modifications to this.

set m1 "map mlca1   ;set nextmap vstr m2"
set m2 "map oa_shine   ;set nextmap vstr m3"
set m3 "map oa_rpg3dm2   ;set nextmap vstr m1"

// Wait a bit and start the first map
//wait
vstr m1
User avatar
itachi
supeR,Bot
supeR,Bot
 
Posts: 82
Joined: Sat 14 Feb 2009 01:31
Location: Paris, France


Return to Servers -- New servers, informations, configs...



Who is online

Users browsing this forum: No registered users and 1 guest


cron