<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="home_name">
      <default>property</default>
      <var>ServerName</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>
  <custom_fields>
    <field key="Control Panel Enabled" type="select">
      <option value="false">False</option>
      <option value="true">True</option>
      <default>property</default>
      <default_value>false</default_value>
      <var>ControlPanelEnabled</var>
      <filepath>serverconfig.xml</filepath>
      <options>tagValueByName</options>
      <desc>Enable/Disable the web control panel.</desc>
    </field>
    <field key="Control Panel Port" type="text">
      <default>property</default>
      <default_value>8080</default_value>
      <var>ControlPanelPort</var>
      <filepath>serverconfig.xml</filepath>
      <options>tagValueByName</options>
      <access>admin</access>
      <desc>Port of the control panel webpage.</desc>
    </field>
    <field key="Telnet Enabled" type="select">
      <option value="false">False</option>
      <option value="true">True</option>
      <default>property</default>
      <default_value>true</default_value>
      <var>TelnetEnabled</var>
      <filepath>serverconfig.xml</filepath>
      <options>tagValueByName</options>
      <desc>Enable/Disable the Telnet.</desc>
    </field>
    <field key="Telnet Port" type="text">
      <default>property</default>
      <default_value>8081</default_value>
      <var>TelnetPort</var>
      <filepath>serverconfig.xml</filepath>
      <options>tagValueByName</options>
      <access>admin</access>
      <desc>Port of the Telnet server.</desc>
    </field>
    <field key="EAC Enabled" type="select">
      <option value="false">False</option>
      <option value="true">True</option>
      <default>property</default>
      <default_value>true</default_value>
      <var>EACEnabled</var>
      <filepath>serverconfig.xml</filepath>
      <options>tagValueByName</options>
      <desc>Enables/Disables EasyAntiCheat.</desc>
    </field>
    <field key="Game World" type="select">
      <option value="Navezgane">Navezgane</option>
      <option value="RWG">RWG</option>
      <default>property</default>
      <default_value>Navezgane</default_value>
      <var>GameWorld</var>
      <filepath>serverconfig.xml</filepath>
      <options>tagValueByName</options>
      <desc>Defines the map of the server.</desc>
    </field>
    <field key="WorldGen Seed" type="text">
      <default>property</default>
      <default_value>asdf</default_value>
      <var>WorldGenSeed</var>
      <filepath>serverconfig.xml</filepath>
      <options>tagValueByName</options>
      <desc>If RWG this is the seed for the generation of the new world. If a world with the resulting name already exists it will simply load it.</desc>
    </field>
    <field key="WorldGen Size" type="text">
      <default>property</default>
      <default_value>4096</default_value>
      <var>WorldGenSize</var>
      <filepath>serverconfig.xml</filepath>
      <options>tagValueByName</options>
      <desc>If RWG this controls the width and height of the created world. It is also used in combination with WorldGenSeed to create the internal RWG seed thus also creating a unique map name even if using the same WorldGenSeed. Has to be between 2048 and 16384, though large map sizes will take long to generate / download / load.</desc>
    </field>
    <field key="Game Name" type="text">
      <default>property</default>
      <default_value>My Game</default_value>
      <var>GameName</var>
      <filepath>serverconfig.xml</filepath>
      <options>tagValueByName</options>
      <desc>Whatever you want the game name to be. This affects the save game name as well as the seed used when placing decoration (trees etc) in the world. It does not control the generic layout of the world if creating an RWG world.</desc>
    </field>
    <field key="Max Spawned Zombies" type="text">
      <default>property</default>
      <default_value>60</default_value>
      <var>MaxSpawnedZombies</var>
      <filepath>serverconfig.xml</filepath>
      <options>tagValueByName</options>
      <access>admin</access>
      <desc>Making this number too large (more than about 80) may cause servers to run at poor framerates which will effect lag and play quality for clients.</desc>
    </field>
  </custom_fields>
<post_install>
wget http://files.iaregamer.com/installers/7dtd/serverconfig.xml
</post_install>
  <environment_variables>
    export LD_LIBRARY_PATH={OGP_HOME_DIR}/7DaysToDieServer_Data/Plugins/x86_64
  </environment_variables>
  <lock_files>
    7DaysToDieServer.x86
  </lock_files>
  <configuration_files>
    <file description="Server Configurations">serverconfig.xml</file>
    <file description="Admin Configurations">Saves/serveradmin.xml</file>
  </configuration_files>
</game_config>
