Last active
January 31, 2020 10:31
-
-
Save R3V1Z3/fa9551aa799218a2f508 to your computer and use it in GitHub Desktop.
A bash script to install Future Pinball on Ubuntu and derivatives like Elementary OS and Linux Mint.Information and further discussion here: http://r3dux.org/2012/02/how-to-configure-future-pinball-to-play-in-linux-through-wine/#comment-7630
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# install wine beta, as of 2015-07-13 | |
sudo add-apt-repository ppa:ubuntu-wine/ppa | |
sudo apt-get update | |
sudo apt-get install wine1.7 | |
# install extra libraries needed for FP | |
winetricks corefonts vcrun6 wsh56 | |
cd $HOME | |
# ensure 7zip is installed | |
sudo apt-get install p7zip-full | |
wget http://r3dux.org/files/FuturePinball-PlayOnLinux.7z | |
wget http://r3dux.org/files/DLLs/oleaut32.dll | |
wget https://raw.githubusercontent.com/Ugotsta/Ugotsta.github.io/master/images/projects/chrome-ball.png | |
# extract the archive then remove it | |
7za x FuturePinball-PlayOnLinux.7z | |
rm FuturePinball-PlayOnLinux.7z | |
# setup new WINEPREFIX | |
WINEPREFIX=~/FuturePinball winecfg | |
# create executable script to start FP | |
echo "#!/bin/bash" > future-pinball.sh | |
echo "WINEPREFIX=~/FuturePinball wine ~/FuturePinball/drive_c/Games/Future\ Pinball/Future\ Pinball.exe" >> future-pinball.sh | |
chmod +x future-pinball.sh | |
# copy needed dll to new FP folder | |
cp oleaut32.dll ~/FuturePinball/drive_c/Games/Future\ Pinball/ | |
# copy newly created launch script and icon to FuturePinball folder | |
cp future-pinball.sh chrome-ball.png ~/FuturePinball/ | |
# create menu item to easily launch FP | |
echo "[Desktop Entry]" > futurepinball.desktop | |
echo "Version=1.0" >> futurepinball.desktop | |
echo "Name=Future Pinball" >> futurepinball.desktop | |
echo "Exec=$HOME/FuturePinball/future-pinball.sh" >> futurepinball.desktop | |
echo "StartupNotify=true" >> futurepinball.desktop | |
echo "Terminal=false" >> futurepinball.desktop | |
echo "Type=Application" >> futurepinball.desktop | |
echo "Categories=Game;" >> futurepinball.desktop | |
echo "Icon=$HOME/FuturePinball/chrome-ball.png" >> futurepinball.desktop | |
sudo cp futurepinball.desktop /usr/share/applications/ | |
# download Stern's 1977 Pinball table: http://www.martin-brunker.de/index.php/future-pinball/nachbauten.html | |
wget http://www.martin-brunker.de/images/fp_spieltische/spieltische/pinball_v1.0.zip | |
# extract to /tables/ folder | |
7za e pinball_v1.0.zip -o$HOME/FuturePinball/drive_c/Games/Future\ Pinball/Tables/ | |
# cleanup files | |
rm pinball_v1.0.zip future-pinball.sh oleaut32.dll chrome-ball.png futurepinball.desktop |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment