Browse Source

fixes for map compressor

pull/820/merge
Daniel Gibbs 9 years ago
parent
commit
77e6999375
  1. 8
      lgsm/functions/compress_unreal2_maps.sh
  2. 9
      lgsm/functions/compress_ut99_maps.sh

8
lgsm/functions/compress_unreal2_maps.sh

@ -19,7 +19,7 @@ echo ""
echo "${compressedmapsdir}"
echo ""
while true; do
read -p "Start compression [y/N]" yn
read -e -i "y" -p "Start compression [Y/n]" yn
case $yn in
[Yy]* ) break;;
[Nn]* ) echo Exiting; return;;
@ -27,9 +27,9 @@ while true; do
esac
done
mkdir -pv "${compressedmapsdir}" > /dev/null 2>&1
rm -rfv "${filesdir}/Maps/*.uz2"
rm -rfv "${filesdir}/Maps/"*.uz2
cd "${systemdir}"
for map in "${filesdir}/Maps/*"; do
./ucc-bin compress "../Maps/${map}" --nohomedir
./ucc-bin compress "${map}" --nohomedir
done
mv -fv "${filesdir}/Maps/*.uz2" "${compressedmapsdir}"
mv -fv "${filesdir}/Maps/"*.uz2 "${compressedmapsdir}"

9
lgsm/functions/compress_ut99_maps.sh

@ -19,7 +19,7 @@ echo ""
echo "${compressedmapsdir}"
echo ""
while true; do
read -p "Start compression [y/N]" yn
read -e -i "y" -p "Start compression [Y/n]" yn
case $yn in
[Yy]* ) break;;
[Nn]* ) echo Exiting; return;;
@ -27,9 +27,10 @@ while true; do
esac
done
mkdir -pv "${compressedmapsdir}" > /dev/null 2>&1
rm -rfv "${filesdir}/Maps/*.unr.uz"
rm -rfv "${filesdir}/Maps/"*.unr.uz
cd "${systemdir}"
for map in "${filesdir}/Maps/*"; do
./ucc-bin compress "../Maps/${map}" --nohomedir
./ucc-bin compress "${map}" --nohomedir
done
mv -fv "${filesdir}/Maps/*.unr.uz" "${compressedmapsdir}"
echo "mv -fv ${filesdir}/Maps/*.unr.uz ${compressedmapsdir}"
mv -fv "${filesdir}/Maps/"*.unr.uz "${compressedmapsdir}"

Loading…
Cancel
Save