<game_config>
  <game_key>7daystodie_linux64</game_key>
  <installer>steamcmd</installer>
  <game_name>7 Days to Die</game_name>
  <server_exec_name>7DaysToDieServer.x86_64</server_exec_name>
  <cli_template>-logfile output_log.txt  -batchmode -nographics -dedicated -configfile=serverconfig.xml</cli_template>
  <console_log>output_log.txt</console_log>
  <max_user_amount>64</max_user_amount>
  <mods>
    <mod key="7daystodie1">
      <name>Stable</name>
      <installer_name>294420</installer_name>
      <installer_login>anonymous</installer_login>
    </mod>
    <mod key="7daystodie2">
      <name>Unstable build</name>
      <installer_name>294420</installer_name>
      <installer_login>anonymous</installer_login>
      <betaname>latest_experimental</betaname>
    </mod>
  </mods>
  <replace_texts>
    <text key="port">
      <default>property</default>
      <var>ServerPort</var>
      <filepath>serverconfig.xml</filepath>
      <options>tagValueByName</options>
    </text>
    <text key="max_players">
      <default>property</default>
      <var>ServerMaxPlayerCount</var>
      <filepath>serverconfig.xml</filepath>
      <options>tagValueByName</options>
    </text>
    <text key="control_password">
      <default>property</default>
      <var>ControlPanelPassword</var>
      <filepath>serverconfig.xml</filepath>
      <options>tagValueByName</options>
    </text>
    <text key="control_password">
      <default>property</default>
      <var>TelnetPassword</var>
      <filepath>serverconfig.xml</filepath>
      <options>tagValueByName</options>
    </text>
    <text key="home_path">
      <default>(.*)(property\s+name=&quot;SaveGameFolder&quot;\s+value=&quot;)(.*)(&quot;)(.*&gt;)(.*&lt;.*&gt;.*)</default>
      <var>  &lt;${2}%key%/Saves${4}/&gt;${6}</var>
      <filepath>serverconfig.xml</filepath>
      <options>key-regex</options>
    </text>
  </replace_texts>
<post_install>
rm serverconfig.*
wget http://files.iaregamer.com/installers/7dtd/serverconfig.xml
</post_install>
  <environment_variables>
    export LD_LIBRARY_PATH=.
  </environment_variables>
  <lock_files>
 7DaysToDieServer.x86_64
  </lock_files>
  <configuration_files>
    <file description="Server Configurations">serverconfig.xml</file>
    <file description="Admin Configurations">Saves/serveradmin.xml</file>
  </configuration_files>
</game_config>
