• 1 Post
  • 19 Comments
Joined 2 years ago
cake
Cake day: July 9th, 2023

help-circle

  • Debian Linux Script…

    TR1X-Debian-3.sh

    
    #!/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
    
    




  • over_clox@lemmy.worldtolinuxmemes@lemmy.worldSystem requirements
    link
    fedilink
    arrow-up
    36
    arrow-down
    1
    ·
    4 hours ago

    I’ll take the computer on the right to the car wash and pressure wash it, then go find an air compressor to quickly dry it out.

    Sure it might need a new fan and perhaps hard drive and other mechanical parts, but that looks almost totally salvageable.

    Fun fact: Linux can actually run on faulty RAM, if you configure the kernel to just avoid the bad RAM regions.


  • I had always wanted one of these as a kid, but my parents never got me one.

    Later on in life, I did actually pick one up somewhere, but apparently one of the gears was broken, so it didn’t work. And that was before the era of 3D printing, and I couldn’t figure any good way to fix the gear myself. ☹️

    Fun fact about these things, they actually only have one motor for all the movements, those joysticks directly control which gears mesh to transfer the movements.