Skip to content
rickatnight11 edited this page Feb 27, 2011 · 9 revisions

Usage

Deploy SRCDS

To deploy a new installation of SRCDS run use the --deploy switch. This can be used in several ways:

srcdsm.py --deploy

This is the minimum amount of syntax required to deploy a new installation of SRCDS. The script will prompt for the name and location of the new deployment.

srcdsm.py --deploy [srcds_deployment_name]
Ex: srcdsm.py --deploy srcds1

If srcds1 is not the name of a currently deployed SRCDS installation, this syntax will deploy a new SRCDS installation called srcds1 into the current directory.

srcdsm.py --deploy [srcds_deployment_name] [srcds_deployment_path]
Ex: srcdsm.py --deploy srcds1 /home/srcds/srcds1

srcds1 is not the name of a currently deployed SRCDS installation, this syntax will deploy a new SRCDS installation called srcds1 into the path provided.

Install Game

To install a new instance of a game, use the --install switch. This can be used in several ways:

srcdsm.py --install

This is the minimum amount of syntax required to install a new game. This script will prompt for the game-type and SRCDS deployment to install the game into.

srcdsm.py --install [game-type]
Ex: srcdsm.py --install cstrike

If this command is run while inside a known SRCDS deployment, the script will install a new instance of Counter-Strike (or whatever game-type is specified) into that deployment. Otherwise, the script will prompt for the SRCDS deployment into which it will install an instance of the supplied game-type.

srcdsm.py --install [game-type] [srcds_deployment_name]
Ex: srcdsm.py --install cstrike srcds1

If srcds1 is a known SRCDS deployment name, the script will install a new instance of Counter-Strike (or whatever game-type is specified) into that deployment.

srcdsm.py --install [game-type] [srcds_deployment_path]
Ex: srcdsm.py --install cstrike /home/srcds/srcds1

If the provided path is a known SRCDS deployment, the script will install a new instance of Counter-Strike (or whatever game-type is specified) into that deployment.

Start a Game

To start a game, use the --start switch. This can be used in several ways:

srcdsm.py --start

If --start switch is used without any arguments, the script will prompt first for which SRCDS deployment to start a game from and then for which installed game to actually start.

srcdsm.py --start [game-type]
Ex: srcdsm.py --start cstrike

If a game-type argument is provided, the script will prompt for which installed instance of the provided game-type to start.

srcdsm.py --start [srcds_deployment_name]
Ex: srcdsm.py --start srcds1

If a SRCDS deployment name argument is used, the script will prompt for the game installed into that deployment to be started.

srcdsm.py --start [srcds_deployment_name] [game-type]
Ex: srcdsm.py --start srcds1 cstrike

If both SRCDS deployment name and game-type arguments are provided, the script will start an instance of the provided game-type installed into the provided deployment.

Stop a Game

To stop a game, use the --stop switch. This can be used in several ways:

srcdsm.py --stop

Clone this wiki locally