Panel/modules/config_games/server_configs/backup/tf2.xml
2025-09-11 13:29:15 -04:00

131 lines
4.7 KiB
XML

<game_config>
<game_key>tf2_linux32</game_key>
<installer>steamcmd</installer>
<game_name>Team Fortress 2</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 ../" />
<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="PLAYERS" cli_string="+maxplayers" options="s" />
<cli_param id="GAME_TYPE" cli_string="-game" options="s" />
</cli_params>
<maps_location>tf/maps/</maps_location>
<map_list>tf/maplist.txt</map_list>
<max_user_amount>32</max_user_amount>
<control_protocol>rcon2</control_protocol>
<mods>
<mod key="tf">
<name>none</name>
<installer_name>232250</installer_name>
<installer_login>anonymous</installer_login>
</mod>
</mods>
<replace_texts>
<text key="control_password">
<default>rcon_password.*</default>
<var>rcon_password</var>
<filepath>tf/cfg/server.cfg</filepath>
<options>sq</options>
</text>
<text key="home_name">
<default>hostname.*</default>
<var>hostname</var>
<filepath>tf/cfg/server.cfg</filepath>
<options>sq</options>
</text>
</replace_texts>
<server_params>
<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_pure" type="select">
<option value="-1">Do not apply any rules or restrict which files the client may load. (Default)</option>
<option value="0">Apply rules in cfg/pure_server_minimal.txt only</option>
<option value="1">Apply rules in cfg/pure_server_full.txt and then cfg/pure_server_whitelist.txt</option>
<option value="2">Apply rules in cfg/pure_server_full.txt</option>
<caption>Pure Server</caption>
<desc>A pure server is one that forces all clients on the server to use content that matches what is on the server.</desc>
</param>
<param key="-dev" type="checkbox_key_value">
<caption>Developer Messages.</caption>
<desc>Show developer messages.</desc>
</param>
<param key="-debuglog error.log" type="checkbox_key_value">
<caption>Error Logging</caption>
<desc>File Errors are Logged to.</desc>
</param>
<param key="-debug" type="checkbox_key_value">
<caption>Debugging</caption>
<desc>Turns on Debugging.</desc>
</param>
<param key="-nomaster" type="checkbox_key_value">
<caption>Disable master server communication</caption>
</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="-nohltv" type="checkbox_key_value">
<default>checked</default>
<caption>No SourceTV</caption>
<desc>Disables SourceTV and closes its port.</desc>
</param>
<param key="-tickrate" type="select">
<option value="64">64</option>
<option value="128">128</option>
<desc>Specifies server tickrate.</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>
cp tf/cfg/mapcycle_default.txt tf/cfg/mapcycle.txt
cp tf/cfg/motd_default.txt tf/cfg/motd.txt
cp tf/cfg/server_casual.cfg tf/cfg/server.cfg
</post_install>
<lock_files>
srcds_run
_start_server.sh
srcds_linux
</lock_files>
<configuration_files>
<file description="Server Config">tf/cfg/server.cfg</file>
<file description="Mapcycle">tf/cfg/mapcycle.txt</file>
<file description="MOTD-Message of the Day">tf/motd.txt</file>
<file description="Sourcemod Admins">tf/addons/sourcemod/configs/admins_simple.ini</file>
</configuration_files>
</game_config>