Script install Steam version of Torchlight. Icons used from GOG version script.
Icons:
Torchlight_Steam-48x48.png
Torchlight_Steam-22x22.png
left.png
top.png
Script:
#!/bin/bash
# Date : (2016-09-07 14-00)
# Last revision : (2016-09-08 18-00)
# Wine version used : 1.8.4
# Distribution used to test : Arch Linux x64
# Author : Pavello
# Script licence :
# Program licence : retail
# Depend :
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
TITLE="Torchlight (Steam)"
PREFIX="Torchlight_Steam"
EDITOR="Runic Games"
GAME_URL="http://www.torchlightgame.com/"
AUTHOR="Pavello"
WORKING_WINE_VERSION="1.8.4"
GAME_VMS="64"
# Starting the script
POL_GetSetupImages "http://files.playonlinux.com/resources/setups/$PREFIX/top.jpg" "http://files.playonlinux.com/resources/setups/$PREFIX/left.jpg" "$TITLE"
POL_SetupWindow_Init
# Starting debugging API
POL_Debug_Init
POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX"
# Setting prefix path
POL_Wine_SelectPrefix "$PREFIX"
# Downloading wine if necessary and creating prefix
POL_System_SetArch "auto"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
# Choose between Digital Download version
POL_SetupWindow_InstallMethod "STEAM"
# Installing mandatory dependencies
POL_Call POL_Install_vcrun2008
POL_Call POL_Install_steam
# Mandatory pre-install fix for steam
STEAM_ID="41500"
POL_Call POL_Install_steam_flags "$STEAM_ID"
# Asking about memory size of graphic card
POL_SetupWindow_VMS $GAME_VMS
# Set Graphic Card information keys for wine
POL_Wine_SetVideoDriver
## Begin Common PlayOnMac Section ##
[ "$POL_OS" = "Mac" ] && Set_Managed "Off"
## End Section ##
# Making shortcut
POL_Shortcut "steam.exe" "$TITLE" "" "steam://rungameid/$STEAM_ID"
# Begin game installation
if [ "$INSTALL_METHOD" == "STEAM" ]; then
POL_SetupWindow_message "$(eval_gettext 'When $TITLE download by Steam is finished,\nDo NOT click on Play.\n\nClose COMPLETELY the Steam interface, \nso that the installation script can continue')" "$TITLE"
cd "$WINEPREFIX/drive_c/$PROGRAMFILES/Steam"
POL_Wine start /unix "steam.exe" steam://install/$STEAM_ID
POL_Wine_WaitExit "$TITLE"
fi
POL_SetupWindow_Close
exit 0
Screenshots:
Edited by Pavello