<game_config>

 <game_key>dayzmod_win32</game_key>

<installer>steamcmd</installer>
<game_name>Arma 2 Operation Arrowhead</game_name>
<server_exec_name>server</server_exec_name><!-- arma2arrowhead -->
 <cli_template>%MODLIST% -cfg=cfg/basic.cfg -config=cfg/server.cfg -name=arma2oa -profiles=cfg %IP% %PORT%</cli_template>
  <cli_params>

    <cli_param id="IP" cli_string="-ip=" />
    <cli_param id="PORT" cli_string="-port=" />
    <cli_param id="PLAYERS" cli_string="-maxplayers=" />
  </cli_params>
<console_log>cfg/arma2oaserver.RPT</console_log>
<max_user_amount>64</max_user_amount>
<control_protocol>armabe</control_protocol>
 <mods>
<mod key='arma2oa'>
   <name>arma2oa</name>
   <installer_name></installer_name>
  </mod>
 </mods>


 <replace_texts>
  <text key="max_players">
   <default>(maxPlayers\s*=\s*)(.*)(;)</default>
   <var>maxPlayers = "%key%";</var>
   <filepath>cfg/server.cfg</filepath>
   <options>key-regex</options>
  </text>

 <text key="port">
    <default>Port =.*</default>
    <var>Port = %key% </var>
    <filepath>bec/config/config.cfg</filepath>
    <options>key-regex</options>
   </text>
 <text key="ip">
    <default>Ip =.*</default>
    <var>Ip = %key% </var>
    <filepath>bec/config/config.cfg</filepath>
    <options>key-regex</options>
   </text>
 </replace_texts>

<server_params>
 <param id="MODLIST" key="-mod=" type="text">
<default></default>
<option>ns</option>
 <caption>Mods ex: @cba;</caption>
 <desc>Semicolon after each mod and you MUST copy the KEY into your keys folder.
Make sure if you install a MOD, you list the name here or else it wont get loaded.
 </desc>
 </param>
</server_params>

<post_install>
wget files.iaregamer.com/installers/arma2oa/arma2oa_linux.tar.gz
tar -xzvf arma2oa_linux.tar.gz
rm arma2oa_linux.tar.gz

</post_install>
<lock_files>
server.exe
</lock_files>

<configuration_files>
 <file description="Server settings">cfg/server.cfg</file>
 <file description="Basic Network settings" >cfg/basic.cfg</file>
 <file description="BattlEye Rcon Password" >cfg/battleye/beserver.cfg</file>
</configuration_files>

</game_config>
