|
|
@@ -4,18 +4,22 @@
|
|
|
<lgsl_query_name>source</lgsl_query_name>
|
|
|
<installer>steamcmd</installer>
|
|
|
<game_name>Dystopia</game_name>
|
|
|
- <server_exec_name>srcds_run</server_exec_name>
|
|
|
- <cli_template>%GAME_TYPE% %PID_FILE% %MAP% %IP% %PORT% %PLAYERS%</cli_template>
|
|
|
+ <server_exec_name>srcds_run.sh</server_exec_name>
|
|
|
+ <cli_template>-strictportbind %IP% %PORT% %CLIENT_PORT% %HLTV_PORT% %MAP% %PLAYERS%</cli_template>
|
|
|
<cli_params>
|
|
|
- <cli_param id="PID_FILE" cli_string="-pidfile" options="s" />
|
|
|
<cli_param id="MAP" cli_string="+map" options="s" />
|
|
|
- <cli_param id="IP" cli_string="+ip" options="s" />
|
|
|
- <cli_param id="PORT" cli_string="+port" 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>
|
|
|
+ <reserve_ports>
|
|
|
+ <port type="add" id="CLIENT_PORT" cli_string="+clientport ">5090</port>
|
|
|
+ <port type="add" id="HLTV_PORT" cli_string="+tv_port ">5105</port>
|
|
|
+ </reserve_ports>
|
|
|
<maps_location>dystopia/maps/</maps_location>
|
|
|
<map_list>dystopia/maplist.txt</map_list>
|
|
|
+ <exe_location>bin</exe_location>
|
|
|
<max_user_amount>32</max_user_amount>
|
|
|
<control_protocol>rcon2</control_protocol>
|
|
|
<mods>
|
|
|
@@ -25,35 +29,55 @@
|
|
|
<installer_login>anonymous</installer_login>
|
|
|
</mod>
|
|
|
</mods>
|
|
|
- <server_params>
|
|
|
- <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="-nohltv" type="checkbox_key_value">
|
|
|
- <caption>Half-life TV</caption>
|
|
|
- <desc>Will start the server without Half-life TV.</desc>
|
|
|
- </param>
|
|
|
- <param key="-restart" type="checkbox_key_value">
|
|
|
- <caption>Restart</caption>
|
|
|
- <desc>The server restarts when it crashes.</desc>
|
|
|
- </param>
|
|
|
- <param key="-nomaster" type="checkbox_key_value">
|
|
|
- <caption>Disable master server communication</caption>
|
|
|
- </param>
|
|
|
- <param key="-autoupdate" type="checkbox_key_value">
|
|
|
- <caption>Auto-update</caption>
|
|
|
- <desc>The server is searching for updates on startup.</desc>
|
|
|
- </param>
|
|
|
- <param key="-debug" type="checkbox_key_value">
|
|
|
- <caption>Debug Mode</caption>
|
|
|
- </param>
|
|
|
- <param key="-nobots" type="checkbox_key_value">
|
|
|
- <caption>Disable bots</caption>
|
|
|
- </param>
|
|
|
- <param key="-norestart" type="checkbox_key_value">
|
|
|
- <caption>No Restart</caption>
|
|
|
- <desc>Do not attempt to restart failed servers.</desc>
|
|
|
- </param>
|
|
|
- </server_params>
|
|
|
+ <replace_texts>
|
|
|
+ <text key="control_password">
|
|
|
+ <default>rcon_password.*</default>
|
|
|
+ <var>rcon_password</var>
|
|
|
+ <filepath>dystopia/cfg/server.cfg</filepath>
|
|
|
+ <options>sq</options>
|
|
|
+ </text>
|
|
|
+ </replace_texts>
|
|
|
+ <custom_fields>
|
|
|
+ <field key="sv_maxrate" type="text">
|
|
|
+ <default>sv_maxrate.*</default>
|
|
|
+ <default_value>0</default_value>
|
|
|
+ <var>sv_maxrate</var>
|
|
|
+ <filepath>dystopia/cfg/server.cfg</filepath>
|
|
|
+ <options>s</options>
|
|
|
+ <desc>Max bandwidth rate allowed on server ( bytes per second ), 0 == unlimited.</desc>
|
|
|
+ </field>
|
|
|
+ <field key="sv_minrate" type="text">
|
|
|
+ <default>sv_minrate.*</default>
|
|
|
+ <default_value>10000</default_value>
|
|
|
+ <var>sv_minrate</var>
|
|
|
+ <filepath>dystopia/cfg/server.cfg</filepath>
|
|
|
+ <options>s</options>
|
|
|
+ <desc>Min bandwidth rate allowed on server ( bytes per second ), 0 == unlimited.</desc>
|
|
|
+ </field>
|
|
|
+ </custom_fields>
|
|
|
+ <list_players_command>status</list_players_command>
|
|
|
+ <player_info_regex>#\#\s*(\d+)\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>
|
|
|
</game_config>
|