Просмотр исходного кода

Added PixARK xml

- Windows support only
- It is running under Linux/Wine (wine-3.5)
Rocco27 8 лет назад
Родитель
Сommit
432e6aa7e4

BIN
images/icons/pixark.png


+ 79 - 0
modules/config_games/server_configs/pixark_win64.xml

@@ -0,0 +1,79 @@
+<game_config>
+  <game_key>pixark_win64</game_key>
+  <protocol>lgsl</protocol>
+  <lgsl_query_name>pixark</lgsl_query_name>
+  <installer>steamcmd</installer>
+  <game_name>PixARK</game_name>
+  <server_exec_name>PixARKServer.exe</server_exec_name>
+  <cli_template>%MAP%?listen%PLAYERS%%IP%%PORT%%QUERY_PORT%%CONTROL_PASSWORD% %DBE% %NHD% %CWN% %SEED% -nosteamclient -game -server -log</cli_template>
+  <cli_params>
+    <cli_param id="MAP" cli_string="" />
+    <cli_param id="IP" cli_string="?Multihome=" />
+    <cli_param id="PORT" cli_string="?Port=" />
+    <cli_param id="PLAYERS" cli_string="?MaxPlayers=" />
+    <cli_param id="CONTROL_PASSWORD" cli_string="?ServerAdminPassword=" />
+  </cli_params>
+  <reserve_ports>
+    <port type="add" id="QUERY_PORT" cli_string="?QueryPort=">19238</port>
+  </reserve_ports>
+  <map_list>maplist.txt</map_list>
+  <console_log>ShooterGame/Saved/Logs/ShooterGame.log</console_log>
+  <exe_location>ShooterGame/Binaries/Win64</exe_location>
+  <max_user_amount>70</max_user_amount>
+  <mods>
+    <mod key="default">
+      <name>None</name>
+      <installer_name>824360</installer_name>
+      <installer_login>anonymous</installer_login>
+    </mod>
+  </mods>
+  <replace_texts>
+    <text key="home_name">
+      <default>SessionName=.*</default>
+      <var>SessionName=</var>
+      <filepath>ShooterGame/Saved/Config/WindowsServer/GameUserSettings.ini</filepath>
+    </text>
+  </replace_texts>
+  <server_params>
+    <param key="-cubeworld=" type="text" id="CWN">
+      <options>ns</options>
+      <desc>Name of your world.</desc>
+    </param>
+    <param key="-Seed=" type="text" id="SEED">
+      <options>ns</options>
+      <desc>Defines the map generation seed.</desc>
+    </param>
+    <param key="-NoBattlEye" type="checkbox_key_value" id="DBE">
+      <desc>Disables BattlEye.</desc>
+    </param>
+    <param key="-NoHangDetection" type="checkbox_key_value" id="NHD">
+      <desc>Disables hang detection.</desc>
+    </param>
+  </server_params>
+  <custom_fields>
+    <field key="RCON Port" type="text">
+      <default>RCONPort=.*</default>
+      <default_value>27020</default_value>
+      <var>RCONPort=</var>
+      <filepath>ShooterGame/Saved/Config/WindowsServer/GameUserSettings.ini</filepath>
+      <options>sq</options>
+      <access>admin</access>
+      <desc>Port of remote control.</desc>
+    </field>
+  </custom_fields>
+  <post_install>
+    maplist="maplist.txt"
+    if [ -s "$maplist" ]
+      then
+        echo "File $maplist found. OK!"
+      else
+        echo "File $maplist not found."
+        echo "Generating new maplist file in $maplist!"
+        touch $maplist
+        echo CubeWorld_Light> $maplist
+    fi
+  </post_install>
+  <configuration_files>
+    <file description="Server Configurations">ShooterGame/Saved/Config/WindowsServer/GameUserSettings.ini</file>
+  </configuration_files>
+</game_config>

+ 4 - 0
protocol/lgsl/lgsl_protocol.php

@@ -102,6 +102,7 @@ if (!function_exists('lgsl_version')) { // START OF DOUBLE LOAD PROTECTION
 		"ns2"			=> "Natural Selection 2",
 		"openttd"		=> "Open Transport Tycoon Deluxe",
 		"painkiller"	=> "PainKiller",
+		"pixark"		=> "PixARK",
 		"plainsight"	=> "Plain Sight",
 		"prey"			=> "Prey",
 		"quakeworld"	=> "Quake World",
@@ -252,6 +253,7 @@ if (!function_exists('lgsl_version')) { // START OF DOUBLE LOAD PROTECTION
 		"openttd"		=> "22",
 		"painkiller"	=> "08",
 		"painkiller_"	=> "09",
+		"pixark"		=> "05",
 		"plainsight"	=> "32",
 		"prey"			=> "10",
 		"quakeworld"	=> "07",
@@ -399,6 +401,7 @@ if (!function_exists('lgsl_version')) { // START OF DOUBLE LOAD PROTECTION
 		"ns2"			=> "steam://connect/{IP}:{S_PORT}",
 		"openttd"		=> "http://wwww.openttd.org",
 		"painkiller"	=> "qtracker://{IP}:{S_PORT}?game=Painkiller&action=show",
+		"pixark"		=> "steam://connect/{IP}:{Q_PORT}",
 		"plainsight"	=> "http://www.plainsightgame.com",
 		"prey"			=> "qtracker://{IP}:{S_PORT}?game=Prey&action=show",
 		"quakeworld"	=> "qtracker://{IP}:{S_PORT}?game=QuakeWorld&action=show",
@@ -513,6 +516,7 @@ if (!function_exists('lgsl_version')) { // START OF DOUBLE LOAD PROTECTION
 			case "murmur"			: $c_to_q = 2;		$c_def = 64738;	$q_def = 64740;	$c_to_s = 0;	break;
 			case "ns2"				: $c_to_q = 1;		$c_def = 27015;	$q_def = 27016;	$c_to_s = 1;	break;
 			case "painkiller"		: $c_to_q = 123;	$c_def = 3455;	$q_def = 3578;	$c_to_s = 0;	break;
+			case "pixark"			: $c_to_q = 19238;	$c_def = 7777;	$q_def = 27015;	$c_to_s = 0;	break;
 			case "ravenshield"		: $c_to_q = 1000;	$c_def = 7777;	$q_def = 8777;	$c_to_s = 0;	break;
 			case "redorchestra"		: $c_to_q = 1;		$c_def = 7758;	$q_def = 7759;	$c_to_s = 0;	break;
 			case "redorchestra2"	: $c_to_q = 19238; 	$c_def = 7777; 	$q_def = 27015; $c_to_s = 0;  	break;