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

Vice City Multiplayer xml update

The XML files upgraded to use latest VCMP v0.4. This newest version released 2014 and has many changes compare to v0.3.

Changelog:
- Fixed "server_exec_name"
- Fixed "max_user_amount"
- Added to set "home_name" automatically by OGP in the config file
- Added to set "port" automatically by OGP in the config file
- Added to set "max_players" automatically by OGP in the config file
- Small fix in LGSL protocol
- Cosmetics corrections

Notes:
- The query protocol changed a little bit and it means the old one is not 100% compatible with v0.4, it works, but shows wrong informations
- I checked the game icon, but could not find a good official for VCMP, the one I found was terrible, so I keep the one in OGP
rocco27 8 лет назад
Родитель
Сommit
7933f4cd4c

+ 25 - 6
modules/config_games/server_configs/vicecitymp_linux32.xml

@@ -1,13 +1,32 @@
 <game_config>
-  <game_key>vcmp_linux32</game_key>
+  <game_key>vicecitymp_linux32</game_key>
   <protocol>lgsl</protocol>
   <lgsl_query_name>vcmp</lgsl_query_name>
   <game_name>Vice City Multiplayer</game_name>
-  <server_exec_name>vcmp.bin</server_exec_name>
-  <max_user_amount>1000</max_user_amount>
+  <server_exec_name>mpsvrrel32</server_exec_name>
+  <max_user_amount>100</max_user_amount>
   <mods>
-    <mod key="vcmp">
-      <name>none</name>
+    <mod key="default">
+      <name>None</name>
     </mod>
   </mods>
-</game_config>
+  <replace_texts>
+    <text key="port">
+      <default>port .*</default>
+      <var>port</var>
+      <filepath>server.cfg</filepath>
+      <options>s</options>
+    </text>
+    <text key="max_players">
+      <default>maxplayers .*</default>
+      <var>maxplayers</var>
+      <filepath>server.cfg</filepath>
+      <options>s</options>
+    </text>
+    <text key="home_name">
+      <default>ServerName</default>
+      <filepath>server.conf</filepath>
+      <options>tags</options>
+    </text>
+  </replace_texts>
+</game_config>

+ 32 - 0
modules/config_games/server_configs/vicecitymp_linux64.xml

@@ -0,0 +1,32 @@
+<game_config>
+  <game_key>vicecitymp_linux64</game_key>
+  <protocol>lgsl</protocol>
+  <lgsl_query_name>vcmp</lgsl_query_name>
+  <game_name>Vice City Multiplayer</game_name>
+  <server_exec_name>mpsvrrel64</server_exec_name>
+  <max_user_amount>100</max_user_amount>
+  <mods>
+    <mod key="default">
+      <name>None</name>
+    </mod>
+  </mods>
+  <replace_texts>
+    <text key="port">
+      <default>port .*</default>
+      <var>port</var>
+      <filepath>server.cfg</filepath>
+      <options>s</options>
+    </text>
+    <text key="max_players">
+      <default>maxplayers .*</default>
+      <var>maxplayers</var>
+      <filepath>server.cfg</filepath>
+      <options>s</options>
+    </text>
+    <text key="home_name">
+      <default>ServerName</default>
+      <filepath>server.conf</filepath>
+      <options>tags</options>
+    </text>
+  </replace_texts>
+</game_config>

+ 25 - 6
modules/config_games/server_configs/vicecitymp_win32.xml

@@ -1,13 +1,32 @@
 <game_config>
-  <game_key>vcmp_win32</game_key>
+  <game_key>vicecitymp_win32</game_key>
   <protocol>lgsl</protocol>
   <lgsl_query_name>vcmp</lgsl_query_name>
   <game_name>Vice City Multiplayer</game_name>
-  <server_exec_name>vcmp-svr.exe</server_exec_name>
-  <max_user_amount>1000</max_user_amount>
+  <server_exec_name>server.exe</server_exec_name>
+  <max_user_amount>100</max_user_amount>
   <mods>
-    <mod key="vcmp">
-      <name>none</name>
+    <mod key="default">
+      <name>None</name>
     </mod>
   </mods>
-</game_config>
+  <replace_texts>
+    <text key="port">
+      <default>port .*</default>
+      <var>port</var>
+      <filepath>server.cfg</filepath>
+      <options>s</options>
+    </text>
+    <text key="max_players">
+      <default>maxplayers .*</default>
+      <var>maxplayers</var>
+      <filepath>server.cfg</filepath>
+      <options>s</options>
+    </text>
+    <text key="home_name">
+      <default>ServerName</default>
+      <filepath>server.conf</filepath>
+      <options>tags</options>
+    </text>
+  </replace_texts>
+</game_config>

+ 32 - 0
modules/config_games/server_configs/vicecitymp_win64.xml

@@ -0,0 +1,32 @@
+<game_config>
+  <game_key>vicecitymp_win64</game_key>
+  <protocol>lgsl</protocol>
+  <lgsl_query_name>vcmp</lgsl_query_name>
+  <game_name>Vice City Multiplayer</game_name>
+  <server_exec_name>server64.exe</server_exec_name>
+  <max_user_amount>100</max_user_amount>
+  <mods>
+    <mod key="default">
+      <name>None</name>
+    </mod>
+  </mods>
+  <replace_texts>
+    <text key="port">
+      <default>port .*</default>
+      <var>port</var>
+      <filepath>server.cfg</filepath>
+      <options>s</options>
+    </text>
+    <text key="max_players">
+      <default>maxplayers .*</default>
+      <var>maxplayers</var>
+      <filepath>server.cfg</filepath>
+      <options>s</options>
+    </text>
+    <text key="home_name">
+      <default>ServerName</default>
+      <filepath>server.conf</filepath>
+      <options>tags</options>
+    </text>
+  </replace_texts>
+</game_config>

+ 1 - 1
protocol/lgsl/lgsl_protocol.php

@@ -432,7 +432,7 @@ if (!function_exists('lgsl_version')) { // START OF DOUBLE LOAD PROTECTION
 		"ut2003"		=> "qtracker://{IP}:{S_PORT}?game=UnrealTournament2003&action=show",
 		"ut2004"		=> "qtracker://{IP}:{S_PORT}?game=UnrealTournament2004&action=show",
 		"ut3"			=> "qtracker://{IP}:{S_PORT}?game=UnrealTournament3&action=show",
-		"vcmp"			=> "http://vicecitymultiplayer.com",
+		"vcmp"			=> "http://vc-mp.org",
 		"vietcong"		=> "qtracker://{IP}:{S_PORT}?game=Vietcong&action=show",
 		"vietcong2"		=> "qtracker://{IP}:{S_PORT}?game=Vietcong2&action=show",
 		"warsow"		=> "warsow://{IP}:{S_PORT}",