PDA

View Full Version : Advanced Dedicated Server Help


rudedog
10-26-2005, 04:21 PM
From the online manual for CoD2 (disk 1)


Remember that you can start a dedicated server from in-game, changing all of the most common values from within the UI, from the Start Server menu.


IMPORTANT NOTE: Activision® Customer Support does not support console commands. Please do not call with questions or problems that arise from the use of console commands.

Command Line Options


Command line options must be set on the command line and will not work if executed in a config file.

net_ip

If you are on a multi-homed server and the default IP is not what you want to use for your Call of Duty® 2 server, the net_ip command will need to be used. This must be set on the command line in the following form.

Usage: +set net_ip <ip address>
Sample: CoD2MP.exe +set dedicated 1 +set net_ip 192.168.0.0

net_port

Changing the default server port requires the net_port command be run on the command line. It is useful for running multiple servers on the same computer or making the server somewhat more private. The default port is 28960 and is incremented automatically by 1 if another server is started without a specified port.

Usage: +set net_port
Sample: CoD2MP.exe +set dedicated 1 +set net_port 28961



Server Only Settings


Server settings are only used only on the server and may be used at the console or command line. Command line usage requires a +set before each command.

For example:
+set sv_maxclients 16

sv_maxclients

sv_maxclients - sets the maximum amount of clients that can connect to the server. The default setting is 20.

Usage: sv_maxclients

sv_hostname

sv_hostname - sets the server name that will show up in the master server list. The name must be enclosed in quotes if a space is in the name.

Usage: sv_hostname "<servername>"

sv_pure

sv_pure - controls crc/zip check of client pk3 files to make sure the pk3 file has not been modified for cheating or other purposes. Client pk3 files must match that of the server to connect. The default is set to 1, or on. Set to 0 to turn off check.

Usage: sv_pure 1

Server Console Commands


Server console commands are used from the server console or the remote console.

status

status - shows the client number (num), score, ping, player name (name), client IP address (address), and port connected through (qport). Client number is used in conjunction with the clientkick command.

Usage: status

kick

kick - removes a player from the server. It is particularly useful for removing disruptive players. To kick a player, type kick and then the player's name.

Usage: kick <playername>

rcon_password

rconpassword - sets remote console password so clients may change server settings without direct access to the server console. The default is set to none. Client can control the server by entering commands on the console with the format of \rconpassword mypass and then adding server commands after the \rcon command.

Usage: /rcon login <password>

killserver

killserver - will stop all server services from running but leaves the Call of Duty 2 executable running on the server.

Usage: killserver

Zimnick
10-26-2005, 06:41 PM
Actually, its now rcon_password, and to log in, you have to type in:
/rcon login <password>

Oh, and I went through and compiled a list of I'm pretty sure almost every console command in client and server console. There are quite a few lol.

rudedog
10-26-2005, 06:57 PM
Thanks, updated. LOL even activision/IW make mistakes.

Zimnick
10-27-2005, 04:06 AM
Lol, no problem. I don't know if you've gone through and done it yet, but here's that list of all the client and server console dvars in the game...

CoD2 Client dvarlist (http://zimnick.net/twl/client_dvarlist.htm)
CoD2 Server Console dvarlist (http://zimnick.net/twl/server_dvarlist.htm)

rudedog
10-27-2005, 07:24 AM
yes, I dumped the dvar list last night but have not gone through them yet. Had to get to bed LOL

rudedog
10-28-2005, 08:24 AM
FYI, just been told that all the rcon/cfg stuff is the same as cod and uo exept the rcon password stuff.