Advertisement
DieFeM

terraria_linux64.xml

Jul 29th, 2018
271
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 2.92 KB | None | 0 0
  1. <game_config>
  2.     <game_key>terraria_linux64</game_key>
  3.     <protocol>gameq</protocol>
  4.     <gameq_query_name>terraria</gameq_query_name>
  5.     <installer>steamcmd</installer>
  6.     <game_name>Terraria</game_name>
  7.     <server_exec_name>TerrariaServer_run</server_exec_name>
  8.     <query_port type="add">101</query_port>
  9.     <cli_template>%IP% %PORT% %PLAYERS% %CONTROL_PASSWORD% -world%HOME_PATH%\Save\Worlds\%HOSTNAME%.wld %AUTOCREATE% -worldname %HOSTNAME% %SEED% -secure -worldpath%HOME_PATH%\Save\Worlds\ -banlist%HOME_PATH%\banlist.txt -savedirectory%HOME_PATH%\Save</cli_template>
  10.     <cli_params>
  11.         <cli_param id="IP" cli_string="-ip" options="s" />
  12.         <cli_param id="PORT" cli_string="-port" options="s" />
  13.         <cli_param id="PLAYERS" cli_string="-maxplayers" options="s" />
  14.         <cli_param id="CONTROL_PASSWORD" cli_string="-password" options="s" />
  15.         <cli_param id="HOME_PATH" cli_string="" options="s" />
  16.         <cli_param id="HOSTNAME" cli_string="" />
  17.     </cli_params>
  18.     <console_log>ServerLog.txt</console_log>
  19.     <max_user_amount>8</max_user_amount>
  20.     <mods>
  21.         <mod key="default">
  22.             <name>None</name>
  23.             <installer_name>105600</installer_name>
  24.         </mod>
  25.     </mods>
  26.     <replace_texts>
  27.         <text key="port">
  28.             <default>ServerPort":\s\d*</default>
  29.             <var>ServerPort":</var>
  30.             <filepath>tshock/config.json</filepath>
  31.             <options>s</options>
  32.         </text>
  33.         <text key="query_port">
  34.             <default>RestApiPort":\s\d*</default>
  35.             <var>RestApiPort":</var>
  36.             <filepath>tshock/config.json</filepath>
  37.             <options>s</options>
  38.         </text>
  39.     </replace_texts>
  40.     <server_params>
  41.         <param key="-autocreate" type="select" id="AUTOCREATE">
  42.             <option value="1">Small</option>
  43.             <option value="2">Medium</option>
  44.             <option value="3">Large</option>
  45.             <options>s</options>
  46.             <desc>The size of the world to be created.</desc>
  47.         </param>
  48.             <param key="-seed" type="text" id="SEED">
  49.             <default>MyAwesomeSeed</default>
  50.             <options>s</options>
  51.             <desc>Seed used to generate your world</desc>
  52.         </param>
  53.     </server_params>
  54.     <post_install>
  55. echo '#!/bin/bash
  56. wine-mono TerrariaServer.exe $@
  57. ' > TerrariaServer_run
  58. chmod +x TerrariaServer_run
  59. if [ -d GeoIP.dat ]; then
  60.     echo "Updating tShock"
  61.     wget https://github.com/Pryaxis/TShock/releases/download/v4.3.25/tshock_4.3.25.zip
  62.     unzip -o tshock_4.3.25.zip
  63.     rm tshock_4.3.25.zip
  64.     echo "tShock updated successfully"
  65. else
  66.     echo -e "tShock not found.\nDowloading tShock"
  67.     wget https://github.com/Pryaxis/TShock/releases/download/v4.3.25/tshock_4.3.25.zip
  68.     echo "Installing tShock"
  69.     unzip -o tshock_4.3.25.zip
  70.     rm tshock_4.3.25.zip
  71.     echo "tShock installed successfully"
  72. fi
  73. if [ -f "serverconfig.txt.bak" ]
  74. then
  75.     echo "File serverconfig.txt.bak found. OK!"
  76. else
  77.     echo -e "File serverconfig.txt.bak not found.\nGenerating new serverconfig.txt.bak"
  78.     cp -R serverconfig.txt serverconfig.txt.bak
  79. fi
  80.     </post_install>
  81.     <configuration_files>
  82.         <file description="Server Configurations">serverconfig.txt</file>
  83.     </configuration_files>
  84. </game_config>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement