ソースを参照

transfer script added

Paul Klumpp 12 年 前
コミット
ac803f9dba
3 ファイル変更10 行追加3 行削除
  1. 4 1
      q2compile/make_and_put_all.sh
  2. 3 1
      q2srv/q2a_mm.lua
  3. 3 1
      q2srv/q2a_pub.lua

+ 4 - 1
q2compile/make_and_put_all.sh

@@ -123,7 +123,10 @@ for idx in ${!repo[*]}; do
 			fi
 		;;
 		q2a_mvd)
-			cp mvd.lua $q2srv/plugins/
+			cp -v mvd.lua $q2srv/plugins/
+			if [ ! -f "$q2srv/plugins/mvd_transfer.sh" ]; then
+				cp -uv mvd_transfer.sh $q2srv/plugins/
+			fi
 		;;
 		gs_starter)
 			cp -v gs_starter.sh $q2srv/

+ 3 - 1
q2srv/q2a_mm.lua

@@ -3,6 +3,8 @@
 -- 
 -- rename to "config.lua" and place this to quake 2 root
 --
+-- "--" are commented lines
+--
 
 plugins = {
     lrcon = {
@@ -20,7 +22,7 @@ plugins = {
     },
     mvd = {
         --mvd_webby = 'http://mvd2.quadaver.org',
-        --exec_script_on_system_after_recording = '/home/gameservers/quake2/plugins/woot.sh',
+        --exec_script_on_system_after_recording = '/home/gameservers/quake2/plugins/mvd_transfer.sh',
         --exec_script_cvars_as_parameters = {"q2a_mvd_file", "game", "hostname"},
         --needs_cvar_q2a_mvd_autorecord = false
     }

+ 3 - 1
q2srv/q2a_pub.lua

@@ -3,11 +3,13 @@
 -- 
 -- rename to "config.lua" and place this to quake 2 root
 --
+-- "--" are commented lines
+--
 
 plugins = {
     mvd = {
 	--mvd_webby = 'http://mvd2.quadaver.org',
-	--exec_script_on_system_after_recording = '/home/gameservers/quake2/plugins/woot.sh',
+	--exec_script_on_system_after_recording = '/home/gameservers/quake2/plugins/mvd_transfer.sh',
 	--exec_script_cvars_as_parameters = {"q2a_mvd_file", "game", "hostname"},
 	--needs_cvar_q2a_mvd_autorecord = false
     }