8 changed files with 213 additions and 7 deletions
@ -0,0 +1,27 @@ |
|||||
|
#!/bin/bash |
||||
|
# LGSM fn_kffix function |
||||
|
# Author: Daniel Gibbs |
||||
|
# Website: http://danielgibbs.co.uk |
||||
|
# Version: 011214 |
||||
|
|
||||
|
echo "Applying ${gamename} Server Fixes" |
||||
|
echo "=================================" |
||||
|
echo "Applying WebAdmin ROOst.css fix." |
||||
|
echo "http://forums.tripwireinteractive.com/showpost.php?p=585435&postcount=13" |
||||
|
sed -i 's/none}/none;/g' "${filesdir}/Web/ServerAdmin/ROOst.css" |
||||
|
sed -i 's/underline}/underline;/g' "${filesdir}/Web/ServerAdmin/ROOst.css" |
||||
|
sleep 1 |
||||
|
echo "Applying WebAdmin CharSet fix." |
||||
|
echo "http://forums.tripwireinteractive.com/showpost.php?p=442340&postcount=1" |
||||
|
sed -i 's/CharSet="iso-8859-1"/CharSet="utf-8"/g' "${systemdir}/UWeb.int" |
||||
|
sleep 1 |
||||
|
echo "applying server name fix." |
||||
|
sleep 1 |
||||
|
echo "forcing server restart..." |
||||
|
sleep 1 |
||||
|
cd "${rootdir}" |
||||
|
${selfname} start |
||||
|
sleep 5 |
||||
|
${selfname} restart |
||||
|
sleep 5 |
||||
|
${selfname} stop |
@ -0,0 +1,27 @@ |
|||||
|
#!/bin/bash |
||||
|
# LGSM fn_rofix function |
||||
|
# Author: Daniel Gibbs |
||||
|
# Website: http://danielgibbs.co.uk |
||||
|
# Version: 011214 |
||||
|
|
||||
|
echo "Applying ${gamename} Server Fixes" |
||||
|
echo "=================================" |
||||
|
echo "Applying WebAdmin ROOst.css fix!" |
||||
|
echo "http://forums.tripwireinteractive.com/showpost.php?p=585435&postcount=13" |
||||
|
sed -i 's/none}/none;/g' "${filesdir}/Web/ServerAdmin/ROOst.css" |
||||
|
sed -i 's/underline}/underline;/g' "${filesdir}/Web/ServerAdmin/ROOst.css" |
||||
|
sleep 1 |
||||
|
echo "Applying WebAdmin CharSet fix!" |
||||
|
echo "http://forums.tripwireinteractive.com/showpost.php?p=442340&postcount=1" |
||||
|
sed -i 's/CharSet="iso-8859-1"/CharSet="utf-8"/g' "${systemdir}/uweb.int" |
||||
|
sleep 1 |
||||
|
echo "applying server name fix." |
||||
|
sleep 1 |
||||
|
echo "forcing server restart..." |
||||
|
sleep 1 |
||||
|
cd "${rootdir}" |
||||
|
${selfname} start |
||||
|
sleep 5 |
||||
|
${selfname} restart |
||||
|
sleep 5 |
||||
|
${selfname} stop |
@ -0,0 +1,33 @@ |
|||||
|
#!/bin/bash |
||||
|
# LGSM fn_ut2k4compressmaps function |
||||
|
# Author: Daniel Gibbs |
||||
|
# Website: http://danielgibbs.co.uk |
||||
|
# Version: 011214 |
||||
|
|
||||
|
fn_rootcheck |
||||
|
clear |
||||
|
echo "${gamename} Map Compressor" |
||||
|
echo "============================" |
||||
|
echo "Will compress all maps in:" |
||||
|
echo "" |
||||
|
pwd |
||||
|
echo "" |
||||
|
echo "Compressed maps saved to:" |
||||
|
echo "" |
||||
|
echo "${compressedmapsdir}" |
||||
|
echo "" |
||||
|
while true; do |
||||
|
read -p "Start compression [y/N]" yn |
||||
|
case $yn in |
||||
|
[Yy]* ) break;; |
||||
|
[Nn]* ) echo Exiting; return 1;; |
||||
|
* ) echo "Please answer yes or no.";; |
||||
|
esac |
||||
|
done |
||||
|
mkdir -pv "${compressedmapsdir}" > /dev/null 2>&1 |
||||
|
rm -rfv "${filesdir}/Maps/*.uz2" |
||||
|
cd "${systemdir}" |
||||
|
for map in `ls "${filesdir}/Maps"`; do |
||||
|
./ucc-bin compress "../Maps/${map}" --nohomedir |
||||
|
done |
||||
|
mv -fv "${filesdir}/Maps/*.uz2" "${compressedmapsdir}" |
@ -0,0 +1,54 @@ |
|||||
|
#!/bin/bash |
||||
|
# LGSM fn_ut99filesdl function |
||||
|
# Author: Daniel Gibbs |
||||
|
# Website: http://danielgibbs.co.uk |
||||
|
# Version: 011214 |
||||
|
|
||||
|
echo "Downloading Server Files" |
||||
|
echo "=================================" |
||||
|
cd "${rootdir}" |
||||
|
mkdir -pv "${filesdir}" |
||||
|
cd "${filesdir}" |
||||
|
if [ ! -f ut-server-436.tar.gz ]; then |
||||
|
wget -nv -N http://danielgibbs.co.uk/wp-content/uploads/ut-server-436.tar.gz |
||||
|
else |
||||
|
echo "ut-server-436.tar.gz already downloaded!" |
||||
|
fi |
||||
|
echo "Running MD5 checksum to verify the file" |
||||
|
sleep 1 |
||||
|
echo "MD5 checksum: 10cd7353aa9d758a075c600a6dd193fd" |
||||
|
md5check=$(md5sum ut-server-436.tar.gz|awk '{print $1;}') |
||||
|
echo "File returned: ${md5check}" |
||||
|
if [ "${md5check}" != "10cd7353aa9d758a075c600a6dd193fd" ]; then |
||||
|
echo "MD5 checksum: FAILED!" |
||||
|
read -p "Retry download? [y/N]" yn |
||||
|
case $yn in |
||||
|
[Yy]* ) rm -fv ut-server-436.tar.gz; fn_filesdl;; |
||||
|
[Nn]* ) echo Exiting; exit;; |
||||
|
* ) echo "Please answer yes or no.";; |
||||
|
esac |
||||
|
else |
||||
|
echo "MD5 checksum: PASSED" |
||||
|
fi |
||||
|
if [ ! -f UTPGPatch451.tar.bz2 ]; then |
||||
|
wget -nv -N http://danielgibbs.co.uk/wp-content/uploads/UTPGPatch451.tar.bz2 |
||||
|
else |
||||
|
echo "UTPGPatch451.tar.bz2 already downloaded!" |
||||
|
fi |
||||
|
echo "Running MD5 checksum to verify the file" |
||||
|
sleep 1 |
||||
|
echo "MD5 checksum: 77a735a78b1eb819042338859900b83b" |
||||
|
md5check=$(md5sum UTPGPatch451.tar.bz2|awk '{print $1;}') |
||||
|
echo "File returned: ${md5check}" |
||||
|
if [ "${md5check}" != "77a735a78b1eb819042338859900b83b" ]; then |
||||
|
echo "MD5 checksum: FAILED!" |
||||
|
read -p "Retry download? [y/N]" yn |
||||
|
case $yn in |
||||
|
[Yy]* ) rm -fv UTPGPatch451.tar.bz2; fn_filesdl;; |
||||
|
[Nn]* ) echo Exiting; exit;; |
||||
|
* ) echo "Please answer yes or no.";; |
||||
|
esac |
||||
|
else |
||||
|
echo "MD5 checksum: PASSED" |
||||
|
fi |
||||
|
echo "" |
@ -0,0 +1,23 @@ |
|||||
|
#!/bin/bash |
||||
|
# LGSM fn_ut99fix function |
||||
|
# Author: Daniel Gibbs |
||||
|
# Website: http://danielgibbs.co.uk |
||||
|
# Version: 011214 |
||||
|
|
||||
|
echo "Applying ${gamename} Server Fixes" |
||||
|
echo "=================================" |
||||
|
echo "enabling UdpServerUplink." |
||||
|
{ |
||||
|
echo "[IpServer.UdpServerUplink]" |
||||
|
echo "DoUplink=True" |
||||
|
echo "UpdateMinutes=1" |
||||
|
echo "MasterServerAddress=unreal.epicgames.com" |
||||
|
echo "MasterServerPort=27900" |
||||
|
echo "Region=0" |
||||
|
}|tee -a "${systemdir}/${ini}" > /dev/null 2>&1 |
||||
|
sleep 1 |
||||
|
echo "removing dead mplayer.com master server." |
||||
|
sed -i '/master.mplayer.com/d' "${systemdir}/${ini}" |
||||
|
sleep 1 |
||||
|
echo "inserting qtracker.com master server." |
||||
|
sed -i '66i\ServerActors=IpServer.UdpServerUplink MasterServerAddress=master.qtracker.com MasterServerPort=27900' "${systemdir}/${ini}" |
@ -0,0 +1,42 @@ |
|||||
|
#!/bin/bash |
||||
|
# LGSM fn_ut99install function |
||||
|
# Author: Daniel Gibbs |
||||
|
# Website: http://danielgibbs.co.uk |
||||
|
# Version: 011214 |
||||
|
|
||||
|
echo "Installing ${gamename} Server" |
||||
|
echo "=================================" |
||||
|
sleep 1 |
||||
|
mkdir -pv "${filesdir}" |
||||
|
cd "${filesdir}" |
||||
|
echo "Extracting ut-server-436.tar.gz" |
||||
|
sleep 1 |
||||
|
tar -zxvf ut-server-436.tar.gz ut-server/ --strip-components=1 |
||||
|
echo "Extracting UTPGPatch451.tar.bz2" |
||||
|
sleep 1 |
||||
|
tar -jxvf UTPGPatch451.tar.bz2 |
||||
|
while true; do |
||||
|
read -p "Was the install successful? [y/N]" yn |
||||
|
case $yn in |
||||
|
[Yy]* ) break;; |
||||
|
[Nn]* ) fn_retryinstall;; |
||||
|
* ) echo "Please answer yes or no.";; |
||||
|
esac |
||||
|
done |
||||
|
while true; do |
||||
|
read -p "Remove ut-server-436.tar.gz? [y/N]" yn |
||||
|
case $yn in |
||||
|
[Yy]* ) rm -fv ut-server-436.tar.gz; break;; |
||||
|
[Nn]* ) break;; |
||||
|
* ) echo "Please answer yes or no.";; |
||||
|
esac |
||||
|
done |
||||
|
while true; do |
||||
|
read -p "Remove UTPGPatch451.tar.bz2? [y/N]" yn |
||||
|
case $yn in |
||||
|
[Yy]* ) rm -fv UTPGPatch451.tar.bz2; break;; |
||||
|
[Nn]* ) break;; |
||||
|
* ) echo "Please answer yes or no.";; |
||||
|
esac |
||||
|
done |
||||
|
echo "" |
Loading…
Reference in new issue