File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed
Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change 33# Author: Daniel Gibbs
44# Contributors: https://linuxgsm.com/contrib
55# Website: https://linuxgsm.com
6- # Description: Compresses unreal maps .
6+ # Description: Compresses unreal resources .
77
88commandname=" MAP-COMPRESSOR"
99commandaction=" Compressing Maps"
@@ -33,13 +33,10 @@ find "${serverfiles}" \( -name "*.ut2.uz2" -o -name "*.rom.uz2" -o -name "*.utx.
3333echo -e " Searching for Unreal Engine files to compress..."
3434echo -e " Look in game config file for maps"
3535
36- # mapext=$(awk -F= '/^[[:space:]]*MapExt[[:space:]]*=/ {gsub(/^[ \t"]+|[ \t"]+$/, "", $2); print $2; exit}' "${servercfgfullpath}")
37- # echo "Detected map extension: $mapext"
38-
3936# List of extensions to compress (excluding .ogg)
4037exts=" ut2 kfm rom u ucl upl ini int utx uax ukx usx"
4138
42- # Remove old compressed files for these extensions
39+ # Remove any old compressed files for these extensions
4340for ext in $exts ; do
4441 find " ${serverfiles} " -name " *.${ext} .uz2" -type f -exec rm -fv {} \;
4542done
You can’t perform that action at this time.
0 commit comments