You learn UnrealScript mainly by reading other people's code. Removing code without an important reason (download size reduction and lack of helpfulness are not important in that sense) is extremely antisocial IMHO.
#!/bin/shURL="https://www.utzone.de/forum/downloads.php?do=file&id=1194_UT2004-Mega-Pack-Linux-+-LinuxPatch-3369.2"FILE=ut2004megapack-linux.tar.bz2if test -f "$FILE"; then echo "$FILE exists."tar -jxvf $FILEcd UT2004MegaPack/sudo cp -R * /usr/local/games/ut2004/else echo "$FILE does not exist."echo "Download $FILE URL= $URL"fi
#!/bin/shsudo mv /usr/local/games/ut2004/System/openal.so /usr/local/games/ut2004/System/openal.so.baksudo ln -s /usr/lib/x86_64-linux-gnu/libopenal.so.1 /usr/local/games/ut2004/System/openal.so
Download Unreal tournament 2004 DVDhttps://archive.org/details/ut-2004-dvdMegapackedit path to your ut2004 path "/usr/local/games/ut2004/"Code: [Select]#!/bin/shURL="https://www.utzone.de/forum/downloads.php?do=file&id=1194_UT2004-Mega-Pack-Linux-+-LinuxPatch-3369.2"FILE=ut2004megapack-linux.tar.bz2if test -f "$FILE"; then echo "$FILE exists."tar -jxvf $FILEcd UT2004MegaPack/sudo cp -R * /usr/local/games/ut2004/else echo "$FILE does not exist."echo "Download $FILE URL= $URL"fisudo apt-get install libstdc++5sudo ln -s /usr/lib/x86_64-linux-gnu/libSDL-1.2.so.0 /path/to/your/folder/UT2004/System/libSDL-1.2.so.0Soundfixsudo apt-get install libopenal1Code: [Select]#!/bin/shsudo mv /usr/local/games/ut2004/System/openal.so /usr/local/games/ut2004/System/openal.so.baksudo ln -s /usr/lib/x86_64-linux-gnu/libopenal.so.1 /usr/local/games/ut2004/System/openal.so
cd Downloadssudo mkdir /media/yourUsername/UT2004_DVDsudo mount UT2004_DVD.ISO /media/yourUsername/UT2004_DVD -o loop
cd /media/yourUsername/UT2004_DVDsudo sh linux-installer.sh
sudo umount /media/yourUsername/UT2004_DVD
sudo apt-get install xserver-xorg-video-intel-hwe-18.04
X Error of failed request: BadValue (integer parameter out of range for operation) Major opcode of failed request: 153 (XFree86-VidModeExtension) Minor opcode of failed request: 10 (XF86VidModeSwitchToMode) Value in failed request: 0x6800016 Serial number of failed request: 235 Current serial number in output stream: 237AL lib: (EE) alc_cleanup: 2 devices not closed
sudo dpkg --add-architecture i386sudo apt updatesudo apt install libstdc++5:i386sudo apt-get install libopenal1:i386sudo apt-get install libsdl1.2debian:i386
# Let's boogie!if [ -x "${UT2004_DATA_PATH}/ut2004-bin" ]then cd "${UT2004_DATA_PATH}/" exec "./ut2004-bin" $*fi
# Let's boogie!if [ -x "${UT2004_DATA_PATH}/ut2004-bin-linux-amd64" ]then cd "${UT2004_DATA_PATH}/" exec "./ut2004-bin-linux-amd64" $*fi
cd /usr/local/games/ut2004sh ./ut2004
exec ./ut2004-bin-linux-amd64