Selaa lähdekoodia

Improved app 90 fix

Found x2 app 90 manifest files are required. I have created firstpass
and secondpass files. First pass downloads all manifest files . Then
second pass changes the manifest files to download the mod files

First pass app 90 downloads half life and cstrike files
Second pass  app 90 downloads the mod files.
Daniel Gibbs 12 vuotta sitten
vanhempi
commit
eef76fe3d3

+ 0 - 1
CounterStrikeConditionZero/appmanifest/appmanifest_90.acf

@@ -16,7 +16,6 @@
 	"FullValidateOnNextUpdate"		"1"
 	"FullValidateOnNextUpdate"		"1"
 	"UserConfig"
 	"UserConfig"
 	{
 	{
-		"betakey"		"beta"
 		"mod"		"czero"
 		"mod"		"czero"
 	}
 	}
 	"MountedDepots"
 	"MountedDepots"

+ 22 - 0
CounterStrikeConditionZero/appmanifest/firstpass/appmanifest_10.acf

@@ -0,0 +1,22 @@
+"AppState"
+{
+	"appid"		"10"
+	"Universe"		"1"
+	"StateFlags"		"1090"
+	"installdir"		"Half-Life"
+	"LastUpdated"		"0"
+	"UpdateResult"		"0"
+	"SizeOnDisk"		"0"
+	"buildid"		"0"
+	"LastOwner"		"0"
+	"BytesToDownload"		"0"
+	"BytesDownloaded"		"0"
+	"AutoUpdateBehavior"		"0"
+	"AllowOtherDownloadsWhileRunning"		"0"
+	"UserConfig"
+	{
+	}
+	"MountedDepots"
+	{
+	}
+}

+ 22 - 0
CounterStrikeConditionZero/appmanifest/firstpass/appmanifest_70.acf

@@ -0,0 +1,22 @@
+"AppState"
+{
+	"appid"		"70"
+	"Universe"		"1"
+	"StateFlags"		"1090"
+	"installdir"		"Half-Life"
+	"LastUpdated"		"0"
+	"UpdateResult"		"0"
+	"SizeOnDisk"		"0"
+	"buildid"		"0"
+	"LastOwner"		"0"
+	"BytesToDownload"		"0"
+	"BytesDownloaded"		"0"
+	"AutoUpdateBehavior"		"0"
+	"AllowOtherDownloadsWhileRunning"		"0"
+	"UserConfig"
+	{
+	}
+	"MountedDepots"
+	{
+	}
+}

+ 22 - 0
CounterStrikeConditionZero/appmanifest/firstpass/appmanifest_80.acf

@@ -0,0 +1,22 @@
+"AppState"
+{
+	"appid"		"80"
+	"Universe"		"1"
+	"StateFlags"		"1090"
+	"installdir"		"Half-Life"
+	"LastUpdated"		"0"
+	"UpdateResult"		"0"
+	"SizeOnDisk"		"0"
+	"buildid"		"0"
+	"LastOwner"		"0"
+	"BytesToDownload"		"0"
+	"BytesDownloaded"		"0"
+	"AutoUpdateBehavior"		"0"
+	"AllowOtherDownloadsWhileRunning"		"0"
+	"UserConfig"
+	{
+	}
+	"MountedDepots"
+	{
+	}
+}

+ 28 - 0
CounterStrikeConditionZero/appmanifest/firstpass/appmanifest_90.acf

@@ -0,0 +1,28 @@
+"AppState"
+{
+	"appid"		"90"
+	"Universe"		"1"
+	"StateFlags"		"1026"
+	"installdir"		"Half-Life"
+	"LastUpdated"		"0"
+	"UpdateResult"		"0"
+	"SizeOnDisk"		"0"
+	"buildid"		"0"
+	"LastOwner"		"76561199609412640"
+	"BytesToDownload"		"419436096"
+	"BytesDownloaded"		"0"
+	"AutoUpdateBehavior"		"0"
+	"AllowOtherDownloadsWhileRunning"		"0"
+	"UserConfig"
+	{
+	}
+	"MountedDepots"
+	{
+	}
+	"SharedDepots"
+	{
+		"1"		"70"
+		"11"		"10"
+		"71"		"70"
+	}
+}

+ 31 - 0
CounterStrikeConditionZero/appmanifest/secondpass/appmanifest_90.acf

@@ -0,0 +1,31 @@
+"AppState"
+{
+	"appid"		"90"
+	"Universe"		"1"
+	"StateFlags"		"4"
+	"installdir"		"Half-Life"
+	"LastUpdated"		"1390662869"
+	"UpdateResult"		"0"
+	"SizeOnDisk"		"41586625"
+	"buildid"		"63549"
+	"LastOwner"		"76561199609699388"
+	"BytesToDownload"		"224501136"
+	"BytesDownloaded"		"224501136"
+	"AutoUpdateBehavior"		"0"
+	"AllowOtherDownloadsWhileRunning"		"0"
+	"UserConfig"
+	{
+		"mod"		"czero"
+	}
+	"MountedDepots"
+	{
+		"4"		"3196956435784640171"
+	}
+	"SharedDepots"
+	{
+		"1"		"70"
+		"11"		"10"
+		"71"		"70"
+		"81"		"80"
+	}
+}

+ 41 - 14
CounterStrikeConditionZero/csczserver

@@ -554,16 +554,31 @@ echo ""
 #
 #
 
 
 fn_csczappmanifest(){
 fn_csczappmanifest(){
-echo "Downloading appmanifest files (app 90 fix)"
-echo "================================="
-sleep 1
-mkdir -v "${filesdir}/1ea271ace3aa6eb2cbade5b6f37851d19ffb9e6f"
-cd "${filesdir}/1ea271ace3aa6eb2cbade5b6f37851d19ffb9e6f"
-wget https://raw.github.com/dgibbs64/linuxgameservers/master/CounterStrikeConditionZero/appmanifest/appmanifest_10.acf
-wget https://raw.github.com/dgibbs64/linuxgameservers/master/CounterStrikeConditionZero/appmanifest/appmanifest_70.acf
-wget https://raw.github.com/dgibbs64/linuxgameservers/master/CounterStrikeConditionZero/appmanifest/appmanifest_80.acf
-wget https://raw.github.com/dgibbs64/linuxgameservers/master/CounterStrikeConditionZero/appmanifest/appmanifest_90.acf
-echo ""
+appdir="${filesdir}/1ea271ace3aa6eb2cbade5b6f37851d19ffb9e6f"
+if [ ${pass} == 1 ]; then
+	echo "Creating appmanifest directory. (app 90 fix)"
+	sleep 2
+	mkdir -v "${filesdir}"
+	mkdir -v "${appdir}"
+	cd "${appdir}"
+	echo "Removing any existing appmanifest files. (app 90 fix)"
+	sleep 2
+	rm -f appmanifest_10.acf appmanifest_70.acf appmanifest_90.acf
+elif [ ${pass} == 2 ]; then
+	echo "Downloading firstpass appmanifest files. (app 90 fix)"
+	sleep 2
+	cd "${appdir}"
+	wget https://raw.github.com/dgibbs64/linuxgameservers/master/CounterStrikeConditionZero/appmanifest/firstpass/appmanifest_10.acf
+	wget https://raw.github.com/dgibbs64/linuxgameservers/master/CounterStrikeConditionZero/appmanifest/firstpass/appmanifest_70.acf
+	wget https://raw.github.com/dgibbs64/linuxgameservers/master/CounterStrikeConditionZero/appmanifest/firstpass/appmanifest_80.acf
+	wget https://raw.github.com/dgibbs64/linuxgameservers/master/CounterStrikeConditionZero/appmanifest/firstpass/appmanifest_90.acf
+elif [ ${pass} == 3 ]; then
+	echo "Downloading secondpass appmanifest files. (app 90 fix)"
+	sleep 2
+	cd "${appdir}"	
+	rm -f appmanifest_90.acf
+	wget https://raw.github.com/dgibbs64/linuxgameservers/master/CounterStrikeConditionZero/appmanifest/secondpass/appmanifest_90.acf
+fi
 }
 }
 
 
 fn_header(){
 fn_header(){
@@ -599,14 +614,13 @@ echo ""
 }
 }
 
 
 fn_steaminstall(){
 fn_steaminstall(){
-echo "Installing ${gamename} Server"
-echo "================================="
 sleep 1
 sleep 1
 mkdir -pv "${filesdir}"
 mkdir -pv "${filesdir}"
 cd "${rootdir}/steamcmd"
 cd "${rootdir}/steamcmd"
 STEAMEXE=steamcmd ./steamcmd.sh +login ${steamuser} ${steampass} +force_install_dir "${filesdir}" +app_update ${appid} validate +quit
 STEAMEXE=steamcmd ./steamcmd.sh +login ${steamuser} ${steampass} +force_install_dir "${filesdir}" +app_update ${appid} validate +quit
-STEAMEXE=steamcmd ./steamcmd.sh +login ${steamuser} ${steampass} +force_install_dir "${filesdir}" +app_update ${appid} validate +quit
-STEAMEXE=steamcmd ./steamcmd.sh +login ${steamuser} ${steampass} +force_install_dir "${filesdir}" +app_update ${appid} validate +quit
+}
+
+fn_success(){
 echo ""
 echo ""
 echo "================================="
 echo "================================="
 while true; do
 while true; do
@@ -689,8 +703,21 @@ while true; do
 done
 done
 fn_header
 fn_header
 fn_steamdl
 fn_steamdl
+
+echo "Installing ${gamename} Server"
+echo "================================="
+pass=1
 fn_csczappmanifest
 fn_csczappmanifest
+pass=2
+fn_csczappmanifest
+fn_steaminstall
+fn_steaminstall
+pass=3
+fn_csczappmanifest
+fn_steaminstall
+fn_steaminstall
 fn_steaminstall
 fn_steaminstall
+fn_success
 fn_steamfix
 fn_steamfix
 fn_loginstall
 fn_loginstall
 echo "Configuring ${gamename} Server"
 echo "Configuring ${gamename} Server"

+ 3 - 3
DayOfDefeat/dodserver

@@ -563,7 +563,7 @@ if [ ${pass} == 1 ]; then
 	cd "${appdir}"
 	cd "${appdir}"
 	echo "Removing any existing appmanifest files. (app 90 fix)"
 	echo "Removing any existing appmanifest files. (app 90 fix)"
 	sleep 2
 	sleep 2
-	rm -rf "${appdir}/*"
+	rm -f appmanifest_10.acf appmanifest_70.acf appmanifest_90.acf
 elif [ ${pass} == 2 ]; then
 elif [ ${pass} == 2 ]; then
 	echo "Downloading firstpass appmanifest files. (app 90 fix)"
 	echo "Downloading firstpass appmanifest files. (app 90 fix)"
 	sleep 2
 	sleep 2
@@ -576,7 +576,7 @@ elif [ ${pass} == 3 ]; then
 	sleep 2
 	sleep 2
 	cd "${appdir}"	
 	cd "${appdir}"	
 	rm -f appmanifest_90.acf
 	rm -f appmanifest_90.acf
-	https://raw2.github.com/dgibbs64/linuxgameservers/master/DayOfDefeat/appmanifest/secondpass/appmanifest_90.acf
+	wget https://raw2.github.com/dgibbs64/linuxgameservers/master/DayOfDefeat/appmanifest/secondpass/appmanifest_90.acf
 fi
 fi
 }
 }
 
 
@@ -630,7 +630,7 @@ while true; do
 	* ) echo "Please answer yes or no.";;
 	* ) echo "Please answer yes or no.";;
 	esac
 	esac
 done
 done
-echo ""	
+echo ""
 }
 }
 
 
 fn_steamfix(){
 fn_steamfix(){