DModule/CommandLine

From DevDracoBlue

Jump to: navigation, search
DModule-DocsDownloadProjectsCoding StyleAPIValuesDefinesModulesTutorialCommandline

Since DModule 0.13, we have a powerful Commandline-Interface for managing projects for DModule.

Contents

Project

Creating Projects

dmodule project create myproject

This command will create a new project called myproject.

Listing used Modules

The following example lists all modules referenced in the settings for the project myproject.

dmodule project modules myproject list

Example output:

Used modules in 'myproject'
  [ok] player     (modules.c)
  [ok] sfteamspwn (modules)

This also displays which module is loaded from which module-directory.

If there are modules, which are not possible to be found the dmodule will display following message:

  [--] myproject2

Add/Del Modules from project

If you want to remove a specific module from a project or add a new one, you can use the following command.

dmodule project module myproject add infotext

This one will add the infotext module to the project myproject. After that, a short report - like in list - will display the used modules. To remove a module use the following command.

dmodule project module myproject del infotext

You can remove/add multiple modules at once by using '" surround a whitspace delimited list.

dmodule project module myproject del "infotext cheat"

Listing Server Variables

Following command will list all server variables for the project myproject.

dmodule project var myproject

Output will be something like the following:

Server variables for 'myproject'
  weburl = www.DracoBlue.net
  hostname = My Project Server
  port = 2085
  announce = 1
  lanmode = 0
  mapname = San Andreas
  rcon_password = unsecurepassesrule
  maxplayers = 111

Setting Server Variables

If you want to set a specific server variable for a project, you can do that with the following command.

dmodule project var myproject mapname "San Andreas"

That one sets the mapname-server.cfg variable for the project myproject to the value San Andreas. The "-Characters are important to delimit the string correctly.

Personal tools
In other languages