<game_config>
 <game_key>dayz_arma2oa_win32</game_key>
 <game_name>DayZ Mod (OA)</game_name>
 <server_exec_name>arma2oaserver.exe</server_exec_name>
 <cli_template>%MEMORY% %PORT% %PLAYERS% "-config=profile\server.cfg" "-cfg=profile\basic.cfg" -profiles=profile -noSound</cli_template>
 <cli_params>
   <cli_param cli_string="-port=" id="PORT"/>
   <cli_param id="PLAYERS" cli_string="-maxplayers=" />
 </cli_params>
 <reserve_ports>
    <port type="add" id="QUERY_PORT">1</port>
 </reserve_ports>
 <cli_allow_chars>;</cli_allow_chars>
 <console_log>profile/arma2oaserver.RPT</console_log>
 <max_user_amount>64</max_user_amount>
 <control_protocol>armabe</control_protocol>
 <mods>
  <mod key='dayzmod'>
   <name>none</name>
   <installer_name>dayzmod</installer_name>
  </mod>
 </mods>
 <replace_texts>
  <text key="home_name">
   <default>(hostName\s*=\s*")(.*)(";)</default>
   <var>hostName = "%key%";</var>
   <filepath>profile/server.cfg</filepath>
   <options>key-regex</options>
  </text>
  <text key="max_players">
   <default>(maxPlayers\s*=\s*)(.*)(;)</default>
   <var>maxPlayers = %key%;</var>
   <filepath>profile/server.cfg</filepath>
   <options>key-regex</options>
  </text>
  <text key="control_password">
   <default>(passwordAdmin\s*=\s*")(.*)(";)</default>
   <var>passwordAdmin = "%key%";</var>
   <filepath>profile/server.cfg</filepath>
   <options>key-regex</options>
  </text>
  <text key="control_password">
   <default>(RConPassword\s*)(.*)</default>
   <var>RConPassword %key%</var>
   <filepath>profile/BattlEye/BEServer.cfg</filepath>
   <options>key-regex</options>
  </text>
  <text key="port">
   <default>(steamPort\s*=\s*)(.*)(;)</default>
   <var>steamPort = %key%;</var>
   <filepath>profile/server.cfg</filepath>
   <options>key-regex</options>
  </text>
  <text key="query_port">
   <default>(steamQueryPort\s*=\s*)(.*)(;)</default>
   <var>steamQueryPort = %key%;</var>
   <filepath>profile/server.cfg</filepath>
   <options>key-regex</options>
  </text>
 </replace_texts>
 <server_params>
  <param id="MEMORY" key="-maxMem=" type="text">
   <option>ns</option>
   <default>2047</default>
   <caption>Max RAM allocated</caption>
   <desc>Maximum usable memory in MB, for example: 1024</desc>
  </param>
  <param key="-noPause" type="select">
    <option value="-mod=@DayZ;@Hive;">Vanilla</option>
    <option value="-mod=@DayZ_Epoch;@DayZ_Epoch_Server;">Epoch</option>
    <option value="-mod=@DayZOverwatch;@DayZ_Epoch;@DayZ_Epoch_Server;">Overpoch</option>
    <option value="-mod=@DayZOrigins;@DayZ_Epoch;@DayZ_Epoch_Server;">Origins</option>
    <option value="-mod=@DayZOverwatch;@DayZOrigins;@DayZ_Epoch;@DayZ_Epoch_Server;">Overpochins</option>
      <caption>DayZ Flavour</caption>
      <desc>Type of DayZ server you wish to run</desc>
    </param>
 </server_params>
</game_config>
