<game_config>
  <game_key>GarrysMod_linux</game_key>
 <protocol>lgsl</protocol>
  <lgsl_query_name>source</lgsl_query_name>
  <installer>steamcmd</installer>
  <game_name>Garrys Mod</game_name>
  <server_exec_name>srcds_run</server_exec_name>
  <cli_template>%GAME_TYPE% %PID_FILE% %MAP% %IP% %PORT% %PLAYERS%</cli_template>
  <cli_params>
    <cli_param id="PID_FILE" cli_string="-pidfile" options="s" />
    <cli_param id="IP" cli_string="+ip" options="s" />
    <cli_param id="PORT" cli_string="-port" options="s" />
    <cli_param id="PLAYERS" cli_string="+maxplayers" options="s" />
    <cli_param id="GAME_TYPE" cli_string="-game" options="s" />
  </cli_params>
  <max_user_amount>128</max_user_amount>
  <control_protocol>rcon2</control_protocol>

<mods>
    <mod key="garrysmod">
      <name>none</name>
          <installer_name>4020</installer_name>
          <installer_login>anonymous</installer_login>
    </mod>
  </mods>


  <replace_texts>
    <text key="control_password">
      <default>rcon_password.*</default>
      <var>rcon_password</var>
      <filepath>garrysmod/cfg/server.cfg</filepath>
      <options>sq</options>
    </text>
    <text key="home_name">
      <default>hostname.*</default>
      <var>hostname</var>
      <filepath>garrysmod/cfg/server.cfg</filepath>
      <options>sq</options>
    </text>
  </replace_texts>
  <server_params>
    <param id="MAP" key="+map" type="text">
      <default>gm_construct</default>
      <caption>Map</caption>
      <desc>Set the map the server will start.</desc>
    </param>
    <param key="+gamemode" type="text">
      <default>terrortown</default>
      <caption>Gamemode</caption>
      <desc>Set the gamemode the server will use.</desc>
    </param>
    <param key="-insecure" type="checkbox_key_value">
      <caption>Disable Valve Anti-Cheat</caption>
      <desc>Will start the server without Valve Anti-Cheat technology.</desc>
    </param>
   <param key="+host_workshop_collection" type="text">
      <caption>Workshop Collection</caption>
      <desc>Set the Workshop collection id. For help, go to http://wiki.garrysmod.com/page/Workshop_for_Dedicated_Servers </desc>
    </param>
   <param key="-authkey" type="text">
      <caption>Steam API Key</caption>
      <desc>Set the Steam API key for workshop usage, you can get one by going to: http://steamcommunity.com/dev/apikey</desc>
    </param>
	<param key="+sv_setsteamaccount" type="text">
      <caption>Steam Account Login Token</caption>
      <desc>Manage your steam tokens &lt;a href=https://steamcommunity.com/dev/managegameservers target=_blank&gt;here&lt;/a&gt;</desc>
    </param>
   <param key="+sv_loadingurl" type="text">
      <caption>Loading URL</caption>
      <desc>URL to show to clients while joining the server. Please remove http:// from URL or it will not work.</desc>
    </param>
    <param key="-nomaster" type="checkbox_key_value">
      <caption>Disable master server communication</caption>
    </param>

<param key="-nohltv" type="checkbox_key_value">
<default>checked</default>
 <caption>No SourceTV</caption>
      <desc>Disables SourceTV and closes its port.</desc>
    </param>

  </server_params>
  <list_players_command>status</list_players_command>
  <player_info_regex>#\#\s*(\d*)\s*\"(.*)\".*#</player_info_regex>
  <player_info>
    <index key="1">userid</index>
    <index key="2">Name</index>
  </player_info>
  <player_commands>
    <command key="Kick" type="hidden">
	  <string>kick "%Name%"</string>
	</command>
    <command key="Ban" type="select">
	  <option value="0">Permanent</option>
	  <option value="15">15m</option>
	  <option value="30">30m</option>
      <option value="60">1h</option>
	  <option value="1440">1D</option>
	  <option value="10080">1W</option>
	  <option value="43200">30D</option>
	  <string>banid %input% %userid% kick</string>
	</command>
	<command key="Change Nick" type="text">
	  <default>new nick</default>
	  <string>sm_rename #%userid% "%input%"</string>
	</command>
  </player_commands>
<post_install>
</post_install>
<pre_start>
</pre_start>

  <lock_files>
	srcds_linux
	srcds_run
   </lock_files>
   <configuration_files>
 <file description="The server config file">garrysmod/cfg/server.cfg</file>
</configuration_files>
</game_config>
