Difference between revisions of "SourceMod Configuration"

From AlliedModders Wiki
Jump to: navigation, search
m
m
Line 12: Line 12:
  
 
The <tt>admin_levels.cfg</tt> should never be edited.
 
The <tt>admin_levels.cfg</tt> should never be edited.
 +
 +
=Admin Menu=
 +
For editing <tt>adminmenu_cfgs.txt</tt> or <tt>adminmenu_sorting.txt</tt>, see [[Admin_Menu_Configuration_%28SourceMod%29|Admin Menu Configuration]].
  
 
=Core Configuration=
 
=Core Configuration=
Line 21: Line 24:
 
*Menu Sounds
 
*Menu Sounds
  
=Admin Menu=
+
=Databases or SQL=
For editing <tt>adminmenu_cfgs.txt</tt> or <tt>adminmenu_sorting.txt</tt>, see [[Admin_Menu_Configuration_%28SourceMod%29|Admin Menu Configuration]].
+
The <tt>addons/sourcemod/configs/databases.cfg</tt> file allows you to create named SQL database configurations.  Plugins use these named configurations to establish database connections. For more information on editing this file, see [[http://wiki.alliedmods.net/SQL_Admins_%28SourceMod%29#Configuration|Configuring SQL]].
  
 
=Map Lists=
 
=Map Lists=
Line 31: Line 34:
 
More documentation is contained inside the file header.
 
More documentation is contained inside the file header.
  
=Databases or SQL=
 
The <tt>addons/sourcemod/configs/databases.cfg</tt> file allows you to create named SQL database configurations.  Plugins use these named configurations to establish database connections.  For more information on editing this file, see [[http://wiki.alliedmods.net/SQL_Admins_%28SourceMod%29#Configuration|Configuring SQL]].
 
  
 
[[Category:SourceMod Documentation]]
 
[[Category:SourceMod Documentation]]

Revision as of 22:42, 14 December 2007

This document overviews some of the configuration concepts in SourceMod.

Configuration Types

SourceMod's configuration files fall into two folders:

  • cfg/sourcemod - These are .cfg files which contain cvars/commands. They can be run via 'exec' in the server console.
  • addons/sourcemod/configs - These are files that contain special or advanced formats. Take care when editing them; they cannot be run via the server console.

Admins

The admin_levels.cfg should never be edited.

Admin Menu

For editing adminmenu_cfgs.txt or adminmenu_sorting.txt, see Admin Menu Configuration.

Core Configuration

The addons/sourcemod/configs/core.cfg file contains settings that will rarely need to be changed. Here you can change settings related to:

  • Logging
  • Server Language
  • Chat Trigger Behavior
  • Admin Password Variable
  • Menu Sounds

Databases or SQL

The addons/sourcemod/configs/databases.cfg file allows you to create named SQL database configurations. Plugins use these named configurations to establish database connections. For more information on editing this file, see [SQL].

Map Lists

The addons/sourcemod/configs/maplists.cfg file is used to configure how SourceMod builds lists of maps. Each section is a named list that can be used by plugins. If a plugin requests a list that does not exist, it will fall back to a default section, then to the file referenced via the mapcyclefile cvar, and finally to the list of maps in the maps folder.

By tweaking this file, you can consolidate all map lists into one file, or use separate map lists for individual needs.

More documentation is contained inside the file header.