Debian Linux Script…
#!/bin/bash
if [ -f ~/Desktop/TR1X-3.0.2-Debian/TR1X.sh ]; then
# Simply run the game startup script and exit...
pushd ./
cd ~/Desktop/TR1X-3.0.2-Debian
./TR1X.sh
popd
exit
else
# Create temporary download folder
if [ ! -d /tmp/TR1X-download ]; then
mkdir /tmp/TR1X-download
fi
# Download and extract game engine tarball
pushd ./
cd /tmp/TR1X-download
if [ ! -f TR1X-3.0.2-Debian.tar.gz ]; then
wget http://web.archive.org/web/20231122035737if_/https://files.catbox.moe/lc2sqz.gz
mv lc2sqz.gz TR1X-3.0.2-Debian.tar.gz
fi
if [ ! -d ~/Desktop/TR1X-3.0.2-Debian ]; then
mkdir ~/Desktop/TR1X-3.0.2-Debian
fi
pushd ./
cd ~/Desktop/TR1X-3.0.2-Debian
if [ ! -f TR1X ]; then
tar -xvf /tmp/TR1X-download/TR1X-3.0.2-Debian.tar.gz
fi
popd
popd
# Nude Raider Title Screen
if [ ! -f /tmp/TR1X-download/titleh.png ]; then
pushd ./
cd /tmp/TR1X-download
wget https://tinyurl.com/nr1xtitle
mv nr1xtitle titleh.png
rm ~/Desktop/TR1X-3.0.2-Debian/data/titleh.png
cp titleh.png ~/Desktop/TR1X-3.0.2-Debian/data/titleh.png
popd
fi
pushd ./
cd /tmp/TR1X-download
if [ -f /tmp/TR1X-download/titleh.png ]; then
if [ ! -f /tmp/TR1X-download/tombraid.rar ]; then
wget https://tinyurl.com/nuderaid
mv nuderaid tombraid.rar
fi
else
if [ ! -f /tmp/TR1X-download/tombraid.rar ]; then
wget https://tinyurl.com/wombraid
mv wombraid tombraid.rar
fi
fi
type -P unrar > /dev/null && echo || sudo apt-get install unrar
unrar x /tmp/TR1X-download/tombraid.rar /tmp/TR1X-download
if [ -f /tmp/TR1X-download/titleh.png ]; then
7z x /tmp/TR1X-download/nuderaid.iso
else
7z x /tmp/TR1X-download/tombraid.iso
fi
cp /tmp/TR1X-download/Data/*.* ~/Desktop/TR1X-3.0.2-Debian/data
mkdir ~/Desktop/TR1X-3.0.2-Debian/fmv
cp /tmp/TR1X-download/Fmv/*.* ~/Desktop/TR1X-3.0.2-Debian/fmv
if [ ! -f /tmp/TR1X-download/music.zip ]; then
wget https://tinyurl.com/tr1xmusic
mv tr1xmusic music.zip
fi
if [ ! -d ~/Desktop/TR1X-3.0.2-Debian/music ]; then
mkdir ~/Desktop/TR1X-3.0.2-Debian/music
unzip /tmp/TR1X-download/music.zip -d ~/Desktop/TR1X-3.0.2-Debian
fi
popd
# Modern TR1X doesn't recognize the original PCX images
rm ~/Desktop/TR1X-3.0.2-Debian/data/*.pcx
# Clean temporary files
if [ -d /tmp/TR1X-download ]; then
rm -r /tmp/TR1X-download
fi
# Generate startup script...
if [ ! -f ~/Desktop/TR1X-3.0.2-Debian/TR1X.sh ]; then
rm ~/Desktop/TR1X-3.0.2-Debian/TR1X.sh
echo "#!/bin/bash" > ~/Desktop/TR1X-3.0.2-Debian/TR1X.sh
echo "./TR1X" >> ~/Desktop/TR1X-3.0.2-Debian/TR1X.sh
chmod 755 ~/Desktop/TR1X-3.0.2-Debian/TR1X.sh
fi
# Initialize the game...
# if [ -f ~/Desktop/TR1X-3.0.2-Debian/TR1X.sh ]; then
# pushd ./
# cd ~/Desktop/TR1X-3.0.2-Debian
# ./TR1X.sh
# popd
# fi
fi
I get bored sometimes.
Hope the script didn’t give you any trouble.
If you comment out the title screen download section, it’ll install regular Tomb Raider instead.