diff --git a/CounterStrikeConditionZero/appmanifest/appmanifest_90.acf b/CounterStrikeConditionZero/appmanifest/appmanifest_90.acf index c40e8fb29..2153cd261 100644 --- a/CounterStrikeConditionZero/appmanifest/appmanifest_90.acf +++ b/CounterStrikeConditionZero/appmanifest/appmanifest_90.acf @@ -16,7 +16,6 @@ "FullValidateOnNextUpdate" "1" "UserConfig" { - "betakey" "beta" "mod" "czero" } "MountedDepots" diff --git a/CounterStrikeConditionZero/appmanifest/firstpass/appmanifest_10.acf b/CounterStrikeConditionZero/appmanifest/firstpass/appmanifest_10.acf new file mode 100644 index 000000000..586496e4c --- /dev/null +++ b/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" + { + } +} diff --git a/CounterStrikeConditionZero/appmanifest/firstpass/appmanifest_70.acf b/CounterStrikeConditionZero/appmanifest/firstpass/appmanifest_70.acf new file mode 100644 index 000000000..e65320c84 --- /dev/null +++ b/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" + { + } +} diff --git a/CounterStrikeConditionZero/appmanifest/firstpass/appmanifest_80.acf b/CounterStrikeConditionZero/appmanifest/firstpass/appmanifest_80.acf new file mode 100644 index 000000000..74abe34ad --- /dev/null +++ b/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" + { + } +} diff --git a/CounterStrikeConditionZero/appmanifest/firstpass/appmanifest_90.acf b/CounterStrikeConditionZero/appmanifest/firstpass/appmanifest_90.acf new file mode 100644 index 000000000..520313d9c --- /dev/null +++ b/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" + } +} diff --git a/CounterStrikeConditionZero/appmanifest/secondpass/appmanifest_90.acf b/CounterStrikeConditionZero/appmanifest/secondpass/appmanifest_90.acf new file mode 100644 index 000000000..2373e5421 --- /dev/null +++ b/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" + } +} diff --git a/CounterStrikeConditionZero/csczserver b/CounterStrikeConditionZero/csczserver index 79d0e1364..222564c12 100644 --- a/CounterStrikeConditionZero/csczserver +++ b/CounterStrikeConditionZero/csczserver @@ -554,16 +554,31 @@ echo "" # 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(){ @@ -599,14 +614,13 @@ echo "" } fn_steaminstall(){ -echo "Installing ${gamename} Server" -echo "=================================" sleep 1 mkdir -pv "${filesdir}" 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 +} + +fn_success(){ echo "" echo "=================================" while true; do @@ -689,8 +703,21 @@ while true; do done fn_header fn_steamdl + +echo "Installing ${gamename} Server" +echo "=================================" +pass=1 fn_csczappmanifest +pass=2 +fn_csczappmanifest +fn_steaminstall +fn_steaminstall +pass=3 +fn_csczappmanifest +fn_steaminstall +fn_steaminstall fn_steaminstall +fn_success fn_steamfix fn_loginstall echo "Configuring ${gamename} Server" diff --git a/DayOfDefeat/dodserver b/DayOfDefeat/dodserver index 8d3a134b0..5b65a8622 100644 --- a/DayOfDefeat/dodserver +++ b/DayOfDefeat/dodserver @@ -563,7 +563,7 @@ if [ ${pass} == 1 ]; then cd "${appdir}" echo "Removing any existing appmanifest files. (app 90 fix)" sleep 2 - rm -rf "${appdir}/*" + 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 @@ -576,7 +576,7 @@ elif [ ${pass} == 3 ]; then sleep 2 cd "${appdir}" 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 } @@ -630,7 +630,7 @@ while true; do * ) echo "Please answer yes or no.";; esac done -echo "" +echo "" } fn_steamfix(){