Skip to content

Instantly share code, notes, and snippets.

@wlerin
Created August 12, 2016 20:40
Show Gist options
  • Save wlerin/391a6da505244c60235e7d7a87a9c861 to your computer and use it in GitHub Desktop.
Save wlerin/391a6da505244c60235e7d7a87a9c861 to your computer and use it in GitHub Desktop.
Planecape: Torment with most popular mods installation script
#!/bin/env bash
#Please specify path to Plansecape: Torment installer
export PST=./setup_planescape_torment_2.0.0.8.exe
#Please specify path to Planescape: Torment with Widescreen mod.
export WINEPREFIX=~/.planescapetorment
if [[ ! -f $PST ]]; then
echo "Please specify valid path to Planescape: Torment installer"
exit
fi
echo "Installing needed mods"
#I had to give mirror links, because the girbberlings3 website was offline during the creation of
#the script. I will replace them as soon, as gibberlings3 website goes back up again
echo "Downloading Bigg's Widescreen mod"
wget -q --show-progress -nc https://lainfile.pw/7880 -O widescreen-v3.05.exe
echo "Downloading GhostDog's PST UI mod"
wget -q --show-progress -nc https://my.mixtape.moe/vuvlrq.7z -O Ghostdogs_PST_UI_mod_v2.2.7z
echo "Downloading Ultimate Fixpack"
wget -q --show-progress -nc https://lainfile.pw/8fb2 -O pstfixpack_v413.rar
echo "Downloading Unfinished Buisiness mod"
wget -q --show-progress -nc https://lainfile.pw/041f -O pstub_v412.rar
echo "Download Qwinn's PS:T Tweak Pack"
wget -q --show-progress -nc https://lainfile.pw/d133 -O psttweak_v412.rar
echo "Instaling game, please do not change default paths"
wine $PST 2> /dev/null
echo "Running PST in order to check if everything works"
export OLD_DIRECTORY=$(pwd)
cd $WINEPREFIX/drive_c/GOG\ Games/Planescape\ Torment
wine Torment.exe 2> /dev/null
cd $OLD_DIRECTORY
echo "Now mods will be installed, to get more information on what to do now, please read:"
echo "http://thunderpeel2001.blogspot.com/2009/01/planescape-torment-fully-modded.html"
read -p "Press [Enter] if you are ready to start installing the mods"
echo "Installing Bigg's Widescreen mod"
wine widescreen-v3.05.exe 2> /dev/null
read -p "Press [Enter] after widescreen mod is installed"
echo "Unpacking GhostDog's PST UI mod"
7z x Ghostdogs_PST_UI_mod_v2.2.7z -o$WINEPREFIX/drive_c/GOG\ Games/Planescape\ Torment
cd $WINEPREFIX/drive_c/GOG\ Games/Planescape\ Torment
echo "Installing GhostDogs's PST UI mod"
wine "Setup-GhostDog's-PST-UI.exe" 2>/dev/null
echo "Running the game in order to check if everything works"
wine Torment.exe 2> /dev/null
echo "Unpacking Ultimate Fixpack"
unrar x $OLD_DIRECTORY/pstfixpack_v413.rar -d .
wine Setup-PST-Fix.exe 2> /dev/null
echo "Unpacking Unfinished Buisiness mod"
unrar x $OLD_DIRECTORY/pstub_v412.rar -d .
wine Setup-PST-UB.exe 2> /dev/null
echo "Unpacking Qwinn's PST Tweak Pack"
unrar x $OLD_DIRECTORY/psttweak_v412.rar -d .
echo "Installing Qwinn's PST Tweak Pack"
wine Setup-PST-Tweak.exe 2> /dev/null
echo "Installing ddrawfix, please pick 3rd option"
wine setup-ddrawfix.exe 2> /dev/null
echo "export WINEPREFIX=$WINEPREFIX" > $OLD_DIRECTORY/Torment.sh
echo "cd $WINEPREFIX/drive_c/GOG\ Games/Planescape\ Torment/" >> $OLD_DIRECTORY/Torment.sh
echo "wine explorer /desktop=name,640x480 Torment.exe" >> $OLD_DIRECTORY/Torment.sh
chmod +x $OLD_DIRECTORY/Torment.sh
echo "Finished, launch the game with Torment.sh (you can put it anywhere), and thanks for using my tool"
echo "Also it would be very nice of you if you could star it on my gist: "
echo "https://gist.github.com/lich"
echo " - lich 2016"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment