0% found this document useful (0 votes)
20 views

Default Servercmdline

The document provides instructions and examples for configuring command line parameters for a game server. It lists many optional parameters for configuring settings like the server port, maximum players, logging levels, and file paths. Parameters can customize the server MOTD, description, map rotation settings, permissions, and more. Comments explain the use and purpose of most parameters.

Uploaded by

Jacob Lanes
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
20 views

Default Servercmdline

The document provides instructions and examples for configuring command line parameters for a game server. It lists many optional parameters for configuring settings like the server port, maximum players, logging levels, and file paths. Parameters can customize the server MOTD, description, map rotation settings, permissions, and more. Comments explain the use and purpose of most parameters.

Uploaded by

Jacob Lanes
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 3

// example servercmdline.txt file (1.

2)
// to use this file, add -Cconfig/servercmdline.txt to your servers commandline
//
// * you can't use cubescript here!
// * everything after '//' in a line will be ignored
// * one commandline parameter per line only
// * you have to use the '-' characters for the switches
// * you can separate the switch and it's argument by whitespace
//
// see docs/commandline.html for full parameter descriptions

// example MOTD:
-o \f3server using example cmdline file (config/servercmdline.txt)\n\f2feel free
to change this :)

// Remove these if you do not wish to use the defaults


-r config/default.maprot.cfg
-X config/default.serverpwd.cfg
-B config/default.serverblacklist.cfg
-K config/default.nicknameblacklist.cfg
-g config/default.forbidden.cfg
-I config/default.serverinfo
-O config/default.motd

// commonly used commandline switches:

// -o // MOTD
// -n // server description
// -n1 // custom server description prefix
// -n2 // custom server description suffix
// -f // port, 1..65534, default 28770
// -c // max client number, 1..256, default 12
// -cb // max bot number, 0..256, default 64
// -D // number of demos to keep in RAM, default 5

// the switches o, n, n1 and n2 support coloring and character escaping; 'o' also
supports escaped newlines
// the available colors are: 0: green, 1: blue, 2: yellow, 3: red, 4: gray, 5:
white, 6: dark brown, 7: dark red
// example multiline MOTD: -o line 1\nline 2\nline 3
// example colored server description: -n \f3red\f1blue

// change these, if you don't like the defaults:

// -kA // AFK limit (in seconds), > 30, default 45


// -kB // time in minutes a banned player will stay banned, default 20
// -kl // lag prevention vs client trust
// 0 - do not trust - always use server positions, default head delta,
NOT RECOMMENDED
// 1 - trust head deltas (default)
// 2 - trust positions - recommended if well administered, but prone to
OPK hacks
// -r // server maprot file, default config/maprot.cfg
// -X // server passwords file, default config/serverpwd.cfg
// -B // server IP blacklist file, default config/serverblacklist.cfg
// -K // server nickname blacklist file, default config/nicknameblacklist.cfg
// -g // server forbidden words file, default config/forbidden.cfg
// -P // voting permission string (read docs/commandline.html)
// k kick players
// b ban players (and remove bans)
// q subdue a player
// m change mastermode (open/private)
// f force a player to the other team
// a enable/disable autoteam, change bot balance
// s shuffle the teams
// r record a demo of the next game (if autorecording is disabled)
// c clear all demos on server
// d change server description
// e vote for coopedit mode
// p vote for a gamemode that is not supported by the map (default: no
one can)
// default: kbqMfasRCDE (lowercase: a user can vote for it; uppercase:
admin role is required to vote)
// -M // sendmap permission string (read docs/commandline.html)
// c create new map (initial map upload)
// u update existing map (same or newer revision)
// r revert existing map to older revision
// d delete map (default: no one can)
// default: CRU (lowercase: any user is allowed to do it; uppercase:
admin role is required)
// -Z // sendmap/incoming limit in MB (default = 10MB)
// -I // serverinfo text filename prefix, default config/serverinfo
// -O // MOTD text filename prefix, default config/motd

// rarely used switches:

// -p // serverpassword, for passworded servers


// -k0 // ignore authserv bans (allow globally banned players to use the server)
// -a // ignore authserv privileges (only local admins can gain privileges)
// -N // syslog identity string
// -F // syslog facility, 0..7, default 6
// -x // adminpasswd, don't use, use serverpwd.cfg instead
// -W // demopath, path & file prefix to store recorded demos at
// -V // verbose logging (enable this via commandline, until you're sure, there
are no errors in your config left)
// -C // import commandline options from file (can be used recursively)
// -l // If set to 0, disable game status logging from server logs
// -T // Add timestamps to every line of the console and file logs.
// -LF // Sets the logging level for file logs (0..5), default 2
// -LS // Sets the logging level for syslog logging (0..5), default 5
// The following levels can be selected (-LF & -LS):
// 0 DEBUG: logs all messages
// 1 VERBOSE: logs all messages of level VERBOSE and above (same as
console log, when using the -V switch)
// 2 INFO: logs all messages of level INFO and above (same as console
without -V switch)
// 3 WARNING: log only messages of level WARNING and above
// 4 ERROR: log only messages of level ERROR
// 5 do not write to the log
// -A // Restricts voting for a map/mode to admins. This switch can be used
several times.

// these switches control the naming of demos (see -W)


// --demofilenameformat="%Mmin_%G_%w_%H_%n" // default: "%w_%h_%n_%Mmin_%G"
// --demotimestampformat="%H%M_%Y%m%d" // default: "%Y%m%d_%H%M"
// --demotimelocal=1 // default: 0
// don't use these switches, unless you really know what you're doing:

// -u // uprate
// -i // ip, only for machines with multiple network interfaces
// -m // masterserver URL (exception: use "-m localhost", if you don't want AC
to register at a masterserver at all)

You might also like