sv ru pl en fr

Applications

Choose a category

The Elder Scrolls IV - Oblivion

Informations

This script is signed by PlayOnLinux.

Source code

#!/bin/bash
# Date : (2010-06-09 14-00)
# Last revision : (2011-10-02 11:26)
# Wine version used : 1.3.1, 1.3.28
# Distribution used to test : Debian Testing x64
# Author : GNU_Raziel
# Licence : Retail

[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"

TITLE="The Elder Scrolls 4 - Oblivion"
PREFIX="TheElderScrolls4_Oblivion"
WORKING_WINE_VERSION="1.3.29"
GAME_VMS="128"

# Starting the script
rm "$POL_USER_ROOT/tmp/*.jpg"
POL_GetSetupImages "http://files.playonlinux.com/resources/setups/oblivion/top.jpg" "http://files.playonlinux.com/resources/setups/oblivion/left.jpg" "$TITLE"
POL_SetupWindow_Init

# Starting debugging API
POL_Debug_Init

POL_SetupWindow_presentation "$TITLE" "2K Games" "http://www.elderscrolls.com/games/oblivion_overview.htm" "GNU_Raziel" "$PREFIX"

# Setting prefix path
POL_Wine_SelectPrefix "$PREFIX"

# Downloading wine if necessary and creating prefix
POL_System_SetArch "x86"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"

# Choose between DVD and Digital Download version
POL_SetupWindow_InstallMethod "DVD,LOCAL"

# Installing mandatory dependencies
POL_Call POL_Install_d3dx9

# Begin game installation
if [ "$INSTALL_METHOD" == "DVD" ]; then
        # Asking for CDROM and checking if it's correct one
        POL_SetupWindow_message "$(eval_gettext 'Please insert game media into your disk drive\nif not already done.')" "$TITLE"
        POL_SetupWindow_cdrom
        POL_SetupWindow_check_cdrom "OblivionLauncher.exe"
        cd "$WINEPREFIX"/dosdevices
        ln -s "$CDROM" d:
        POL_Wine start /unix "$CDROM/setup.exe"
        POL_Wine_WaitExit "$TITLE"
else
        # Asking then installing DDV of the game
        cd $HOME
        POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run:')" "$TITLE"
        SETUP_EXE="$APP_ANSWER"
        POL_Wine start /unix "$SETUP_EXE"
        POL_Wine_WaitExit "$TITLE"
fi

# Asking about memory size of graphic card
POL_SetupWindow_VMS $GAME_VMS

## Fix for this game
# Set Graphic Card information keys for wine
POL_Wine_SetVideoDriver

# Sound problem fix - pulseaudio related
[ "$POL_OS" = "Linux" ] && Set_SoundDriver "alsa"
[ "$POL_OS" = "Linux" ] && Set_SoundEmulDriver "Y"
## End Fix

## Begin Common PlayOnMac Section ##
[ "$POL_OS" = "Mac" ] && Set_Managed "Off"
## End Section ##

# Cleaning temp
if [ -e "$WINEPREFIX/drive_c/windows/temp/" ]; then
        rm -rf "$WINEPREFIX/drive_c/windows/temp/*"
        chmod -R 777 "$POL_USER_ROOT/tmp/"
        rm -rf "$POL_USER_ROOT/tmp/*"
fi

# Setting mandatory game modifications
GAME_PATH=`find $WINEPREFIX -name "OblivionLauncher.exe" | sed s/OblivionLauncher.exe//g`
cd "$GAME_PATH"
mv "Oblivion_default.ini" "Oblivion_default.ini.save"
cat "Oblivion_default.ini.save" | sed s/bForce1XShaders=1/bForce1XShaders=0/g | sed s/bSaveOnInteriorExteriorSwitch=1/bSaveOnInteriorExteriorSwitch=0/g | sed s/bUseWaterShader=1/bUseWaterShader=0/g > "Oblivion_default.ini"

# Making shortcut
POL_Shortcut "OblivionLauncher.exe" "$TITLE" "ElderScroll4_Oblivion.xpm" ""

# Warning about update
POL_SetupWindow_message "$(eval_gettext 'If you do not have "Shivering Isle" addon\n you must update this game before using it.')" "$TITLE"

POL_SetupWindow_Close
exit 0

Signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEABECAAYFAk6I9qoACgkQ5TH6yaoTykd8sACgldslrSBjNlQHWHJP5zWv8imr
tfQAn3X6IhMKL4JUG8/QE+uWo5PgTpTO
=Ridp
-----END PGP SIGNATURE-----
	Date : 03 October 2011 01:41:30
Signed by : PlayOnLinux
E-Mail : gpg@playonlinux.com
Comment : PlayOnLinux and PlayOnMac scripting keys
Fingerprint : 45B56114D9EA1640D68135CCE531FAC9AA13CA47

Known install files

Il n'y a rien à voir ici