Forum

[script] The Elder Scrolls III: Morrwind (Steam)

Författare Svar
drewy Saturday 28 December 2013 at 1:51
drewyAnonymous

All credit goes to rezvan as I used his System Shock 2 (Steam) script and modified it. This works flawlessly on my machine running Ubuntu 12.04 x64. (For some reason it never promted me to specify my video RAM even though there is a call to
POL_SetupWindow_VMS
.)

#!/bin/bash
# Date : (2013-12-27 01-33)
# Last revision : (2013-12-27 01-33)
# Wine version used : 1.7.8
# Distribution used to test : Linux Ubuntu 12.04 LTS x64
# Author : drewy
  
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
 
TITLE="The Elder Scrolls III Morrowind (Steam)"
PREFIX="morrowind"
WORKING_WINE_VERSION="1.7.8"
EDITOR="Bethesda"
GAME_URL="http://elderscrolls.com/morrowind/"
AUTHOR="drewy"
GAME_VMS="256"
 
# 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
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_Wine_PrefixCreate "$WORKING_WINE_VERSION"
 
# Installing mandatory dependencies
POL_Call POL_Install_steam
 
# Begin game installation
POL_SetupWindow_menu "$(eval_gettext 'You want install with ?')" "$TITLE" "$(eval_gettext 'Download on Steam Store-Steam Backup Restore')" "-"
 
if [ "$APP_ANSWER" = "$(eval_gettext 'Download on Steam Store')" ]; then
    cd "$WINEPREFIX/drive_c/$PROGRAMFILES/Steam"
    POL_Wine "steam.exe" steam://install/22320
    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"
    POL_Wine_WaitExit "$TITLE"
else
    cd "$WINEPREFIX/drive_c/$PROGRAMFILES/Steam"
    POL_Wine "steam.exe"
    POL_SetupWindow_message "$(eval_gettext 'When $TITLE Restore by Steam is finished,\nDo NOT click on Play.\n\nClose COMPLETELY the Steam interface, \nso that the installation script can continue.')" "$TITLE"
    POL_Wine_WaitExit "$TITLE"
fi
 
# Asking about memory size of graphic card
POL_SetupWindow_VMS "$GAME_VMS"
 
# Making shortcut
POL_Shortcut "morrowind.exe" "$TITLE"
 
POL_SetupWindow_Close
exit 0



petch Saturday 28 December 2013 at 10:27
petch
Developer

The script looks ok by itself, but it would be great if it could also support the installation methods of the existing script (DVD, LOCAL).
Actually I wonder if other maintainers would agree to add this script instead of replacing existing one.