ソースを参照

Beyond the Wire Windows support (#538)

icon, protocol, and XML file.
®omano 5 年 前
コミット
7b95d5540f

BIN
images/icons/beyondthewire.png


+ 48 - 0
modules/config_games/server_configs/beyondthewire_win64.xml

@@ -0,0 +1,48 @@
+<game_config>
+  <game_key>beyondthewire_win64</game_key>
+  <protocol>lgsl</protocol>
+  <lgsl_query_name>beyondthewire</lgsl_query_name>
+  <installer>steamcmd</installer>
+  <game_name>Beyond the Wire</game_name>
+  <server_exec_name>WireGameServer.exe</server_exec_name>
+  <cli_template>%PORT% %QUERY_PORT% %PLAYERS% %TICKRATE% %MAP% -log</cli_template>
+  <cli_params>
+    <cli_param id="PORT" cli_string="Port=" />
+    <cli_param id="PLAYERS" cli_string="FIXEDMAXPLAYERS=" />
+  </cli_params>
+  <reserve_ports>
+    <port type="add" id="QUERY_PORT" cli_string="QueryPort=">19278</port>
+  </reserve_ports>
+  <console_log>WireGame/Saved/Logs/WireGame.log</console_log>
+  <max_user_amount>100</max_user_amount>
+  <mods>
+    <mod key="default">
+      <name>None</name>
+      <installer_name>1064780</installer_name>
+      <installer_login>anonymous</installer_login>
+    </mod>
+  </mods>
+  <server_params>
+  <param key="FIXEDMAXTICKRATE=" type="text" id="TICKRATE">
+      <default>35</default>
+      <options>ns</options>
+      <desc>MAX server tickrate.</desc>
+    </param>
+  <param key="RANDOM=" type="select" id="MAP">
+      <option value="ALWAYS">Always</option>
+      <option value="FIRST">First</option>
+      <option value="NONE">None</option>
+      <options>ns</options>
+      <desc>Randomize map rotation.</desc>
+    </param>
+  </server_params>
+  <configuration_files>
+    <file description="Server Configurations">WireGame/ServerConfig/Server.cfg</file>
+    <file description="MOTD - Message of the day">WireGame/ServerConfig/MOTD.cfg</file>
+    <!--<file description="RCON Configurations">WireGame/ServerConfig/Rcon.cfg</file>-->
+    <file description="Admin Configurations">WireGame/ServerConfig/Admins.cfg</file>
+    <file description="Map Rotation Configurations">WireGame/ServerConfig/MapRotation.cfg</file>
+    <file description="Server Messages Configurations">WireGame/ServerConfig/ServerMessages.cfg</file>
+    <file description="License Configurations">WireGame/ServerConfig/License.cfg</file>
+  </configuration_files>
+</game_config>

+ 4 - 0
protocol/lgsl/lgsl_protocol.php

@@ -37,6 +37,7 @@ if (!function_exists('lgsl_version')) { // START OF DOUBLE LOAD PROTECTION
 		"atlas"			=> "Atlas",
 		"avorion"		=> "Avorion",
 		"avp2"			=> "Aliens VS. Predator 2",
+		"beyondthewire"	=> "Beyond the Wire",
 		"bfbc2"			=> "Battlefield Bad Company 2",
 		"bfvietnam"		=> "Battlefield Vietnam",
 		"bf1942"		=> "Battlefield 1942",
@@ -201,6 +202,7 @@ if (!function_exists('lgsl_version')) { // START OF DOUBLE LOAD PROTECTION
 		"atlas"			=> "05",
 		"avorion"		=> "05",
 		"avp2"			=> "03",
+		"beyondthewire"	=> "05",
 		"bfbc2"			=> "30",
 		"bfvietnam"		=> "09",
 		"bf1942"		=> "03",
@@ -373,6 +375,7 @@ if (!function_exists('lgsl_version')) { // START OF DOUBLE LOAD PROTECTION
 		"atlas"			=> "steam://connect/{IP}:{Q_PORT}",
 		"avorion"		=> "steam://connect/{IP}:{S_PORT}",
 		"avp2"			=> "qtracker://{IP}:{S_PORT}?game=AliensversusPredator2&action=show",
+		"beyondthewire"	=> "steam://connect/{IP}:{S_PORT}",
 		"bfbc2"			=> "http://en.wikipedia.org/wiki/Battlefield_bad_company_2",
 		"bfvietnam"		=> "qtracker://{IP}:{S_PORT}?game=BattlefieldVietnam&action=show",
 		"bf1942"		=> "qtracker://{IP}:{S_PORT}?game=Battlefield1942&action=show",
@@ -539,6 +542,7 @@ if (!function_exists('lgsl_version')) { // START OF DOUBLE LOAD PROTECTION
 			case "arma3"			: $c_to_q = 1; 		$c_def = 2302; 	$q_def = 2303; 	$c_to_s = 0; 	break;
 			case "atlas"			: $c_to_q = 51800;	$c_def = 5761;	$q_def = 57561;	$c_to_s = 0;	break;
 			case "avorion"			: $c_to_q = 20; 	$c_def = 27000;	$q_def = 27020; $c_to_s = 0;  	break;
+			case "beyondthewire"	: $c_to_q = 19278; 	$c_def = 7777; 	$q_def = 27055; $c_to_s = 0;  	break;
 			case "bfbc2"			: $c_to_q = 0;		$c_def = 19567;	$q_def = 48888;	$c_to_s = 0;	break;
 			case "bfvietnam"		: $c_to_q = 0;		$c_def = 15567;	$q_def = 23000;	$c_to_s = 0;	break;
 			case "bf1942"			: $c_to_q = 0;		$c_def = 14567;	$q_def = 23000;	$c_to_s = 0;	break;