lgsm local mirror
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

32 lines
828 B

#!/bin/bash
# LGSM compress_unreal2_maps.sh function
# Author: Daniel Gibbs
# Website: https://gameservermanagers.com
# Description: Compresses unreal maps.
local commandaction="Unreal Map Compressor"
local function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
check.sh
clear
echo "${gamename} Map Compressor"
echo "================================="
echo "Will compress all maps in:"
echo ""
pwd
echo ""
echo "Compressed maps saved to:"
echo ""
echo "${compressedmapsdir}"
echo ""
if ! fn_prompt_yn "Start compression?" Y; then
echo Exiting; return
fi
mkdir -pv "${compressedmapsdir}" > /dev/null 2>&1
rm -rfv "${filesdir}/Maps/"*.ut2.uz2
cd "${systemdir}"
for map in "${filesdir}/Maps/"*; do
./ucc-bin compress "${map}" --nohomedir
done
mv -fv "${filesdir}/Maps/"*.ut2.uz2 "${compressedmapsdir}"
core_exit.sh