The Elder Scrolls IV - Oblivion

Informations

Créateur Messages
GNU_Raziel

Information

Cet installateur a été accepté par l'équipe.

Informations

Plate-formes :
Téléchargements : 138131
Wine: 2.22

Retours d'expérience

Description

Code source

#!/bin/bash
# Date : (2010-09-06 14:00)
# Last revision : see changelog
# Wine version used : 1.3.1, 1.3.28, 1.5.28, 2.18
# Distribution used to test : Debian Testing x64 - Linux Mint Debian Edition x64 - AntergOS KDE x64
# Author : GNU_Raziel
# Licence : Retail

# CHANGELOG
# [GNU_Raziel] (2010-09-06 14:00)
#   Initial script
# [Lazalatin] (2017-10-14 12:00)
#   Wine 1.5.28 -> 2.18
#   Install d3dx9 and directmusic for optimal gaming experience
# [Dadu042] (2020-01-09 10:00)
#   Wine 2.18 -> 2.22 (to avoid multiple versions installed. Perhaps 3.0.3 would work fine too).

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

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

# Starting the script
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,STEAM,LOCAL"

# Installing mandatory dependencies
if [ "$INSTALL_METHOD" == "STEAM" ]; then
        POL_Call POL_Install_steam
fi

# Asking about memory size of graphic card
POL_SetupWindow_VMS $GAME_VMS

# Set Graphic Card information keys for wine
POL_Wine_SetVideoDriver

if [ "$INSTALL_METHOD" == "STEAM" ]; then
        POL_SetupWindow_menu "$(eval_gettext 'Which edition do you have?')" "$TITLE" "Game of the Year~Game of the Year Deluxe Edition" "~"
        if [ "$APP_ANSWER" == "Game of the Year" ]; then
                STEAM_ID="22330"
        else
                STEAM_ID="900883"
        fi

        # Mandatory pre-install fix for steam
        POL_Call POL_Install_steam_flags "$STEAM_ID"

        # Shortcut done before install for steam version
        POL_Shortcut "steam.exe" "$TITLE" "$TITLE.png" "steam://rungameid/22330" "Game;RolePlaying;"
        POL_Shortcut "steam.exe" "Steam ($TITLE)" "" "" "Game;"
fi

# 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"
        POL_Wine start /unix "$CDROM/setup.exe"
        POL_Wine_WaitExit "$TITLE"
elif [ "$INSTALL_METHOD" == "STEAM" ]; then
        # Steam install
        POL_SetupWindow_message "$(eval_gettext 'When $TITLE download by Steam is finished, do 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"
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

# Install d3dx9 and directmusic for optimal gaming experience
POL_Call POL_Install_d3dx9 # Otherwise game will not run
POL_Call POL_Install_directmusic # Otherwise music will not play

# 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
if [ "$INSTALL_METHOD" != "STEAM" ]; then
        POL_Shortcut "OblivionLauncher.exe" "$TITLE" "ElderScroll4_Oblivion.xpm" "" "Game;RolePlaying;"

        # 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"
fi

POL_SetupWindow_Close
exit 0

Contributions

Filters:

Contribuer
Membre Messages
Dadu042 Jeudi 9 Janvier 2020 à 10:11
Dadu042

Information

Cette mise à jour a été acceptée par l'équipe

Differences

@@ -1,17 +1,26 @@
 #!/bin/bash
 # Date : (2010-09-06 14:00)
-# Last revision : (2017-10-14 12:00)
+# Last revision : see changelog
 # Wine version used : 1.3.1, 1.3.28, 1.5.28, 2.18
 # Distribution used to test : Debian Testing x64 - Linux Mint Debian Edition x64 - AntergOS KDE x64
 # Author : GNU_Raziel
 # Licence : Retail
 
+# CHANGELOG
+# [GNU_Raziel] (2010-09-06 14:00)
+#   Initial script
+# [Lazalatin] (2017-10-14 12:00)
+#   Wine 1.5.28 -> 2.18
+#   Install d3dx9 and directmusic for optimal gaming experience
+# [Dadu042] (2020-01-09 10:00)
+#   Wine 2.18 -> 2.22 (to avoid multiple versions installed. Perhaps 3.0.3 would work fine too).
+
 [ "$PLAYONLINUX" = "" ] && exit 0
 source "$PLAYONLINUX/lib/sources"
 
 TITLE="The Elder Scrolls 4 - Oblivion"
 PREFIX="TheElderScrolls4_Oblivion"
-WORKING_WINE_VERSION="2.18"
+WORKING_WINE_VERSION="2.22"
 GAME_VMS="128"
 
 # Starting the script

Nouveau code source

#!/bin/bash
# Date : (2010-09-06 14:00)
# Last revision : see changelog
# Wine version used : 1.3.1, 1.3.28, 1.5.28, 2.18
# Distribution used to test : Debian Testing x64 - Linux Mint Debian Edition x64 - AntergOS KDE x64
# Author : GNU_Raziel
# Licence : Retail

# CHANGELOG
# [GNU_Raziel] (2010-09-06 14:00)
#   Initial script
# [Lazalatin] (2017-10-14 12:00)
#   Wine 1.5.28 -> 2.18
#   Install d3dx9 and directmusic for optimal gaming experience
# [Dadu042] (2020-01-09 10:00)
#   Wine 2.18 -> 2.22 (to avoid multiple versions installed. Perhaps 3.0.3 would work fine too).

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

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

# Starting the script
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,STEAM,LOCAL"

# Installing mandatory dependencies
if [ "$INSTALL_METHOD" == "STEAM" ]; then
        POL_Call POL_Install_steam
fi

# Asking about memory size of graphic card
POL_SetupWindow_VMS $GAME_VMS

# Set Graphic Card information keys for wine
POL_Wine_SetVideoDriver

if [ "$INSTALL_METHOD" == "STEAM" ]; then
        POL_SetupWindow_menu "$(eval_gettext 'Which edition do you have?')" "$TITLE" "Game of the Year~Game of the Year Deluxe Edition" "~"
        if [ "$APP_ANSWER" == "Game of the Year" ]; then
                STEAM_ID="22330"
        else
                STEAM_ID="900883"
        fi

        # Mandatory pre-install fix for steam
        POL_Call POL_Install_steam_flags "$STEAM_ID"

        # Shortcut done before install for steam version
        POL_Shortcut "steam.exe" "$TITLE" "$TITLE.png" "steam://rungameid/22330" "Game;RolePlaying;"
        POL_Shortcut "steam.exe" "Steam ($TITLE)" "" "" "Game;"
fi

# 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"
        POL_Wine start /unix "$CDROM/setup.exe"
        POL_Wine_WaitExit "$TITLE"
elif [ "$INSTALL_METHOD" == "STEAM" ]; then
        # Steam install
        POL_SetupWindow_message "$(eval_gettext 'When $TITLE download by Steam is finished, do 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"
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

# Install d3dx9 and directmusic for optimal gaming experience
POL_Call POL_Install_d3dx9 # Otherwise game will not run
POL_Call POL_Install_directmusic # Otherwise music will not play

# 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
if [ "$INSTALL_METHOD" != "STEAM" ]; then
        POL_Shortcut "OblivionLauncher.exe" "$TITLE" "ElderScroll4_Oblivion.xpm" "" "Game;RolePlaying;"

        # 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"
fi

POL_SetupWindow_Close
exit 0

Réponses

Lazalatin Samedi 14 Octobre 2017 à 14:13
Lazalatin

Warning

Cette mise à jour n'a pas été approuvée par l'équipe.
Utilisez-la à vos risques et périls

Messages

I have an improvement to propose.

I added POL Calls for installing d3dx9 for setting all neccessary dx9 calls and directmusic in order to be able to play with music.

Maybe calling d3dx9 component is a bit too much of an overhead but this way it worked for me with current wine 

Regards, Lazalatin

Differences

@@ -1,8 +1,8 @@
 #!/bin/bash
 # Date : (2010-09-06 14:00)
-# Last revision : (2012-04-21 21:00)
-# Wine version used : 1.3.1, 1.3.28, 1.5.28
-# Distribution used to test : Debian Testing x64 - Linux Mint Debian Edition x64
+# Last revision : (2017-10-14 12:00)
+# Wine version used : 1.3.1, 1.3.28, 1.5.28, 2.18
+# Distribution used to test : Debian Testing x64 - Linux Mint Debian Edition x64 - AntergOS KDE x64
 # Author : GNU_Raziel
 # Licence : Retail
 
@@ -11,7 +11,7 @@
 
 TITLE="The Elder Scrolls 4 - Oblivion"
 PREFIX="TheElderScrolls4_Oblivion"
-WORKING_WINE_VERSION="1.5.28"
+WORKING_WINE_VERSION="2.18"
 GAME_VMS="128"
 
 # Starting the script
@@ -83,6 +83,10 @@
 	POL_Wine_WaitExit "$TITLE"
 fi
 
+# Install d3dx9 and directmusic for optimal gaming experience
+POL_Call POL_Install_d3dx9 # Otherwise game will not run
+POL_Call POL_Install_directmusic # Otherwise music will not play
+
 # Setting mandatory game modifications
 #GAME_PATH=`find $WINEPREFIX -name "OblivionLauncher.exe" | sed s/OblivionLauncher.exe//g`
 #cd "$GAME_PATH"

Nouveau code source

#!/bin/bash
# Date : (2010-09-06 14:00)
# Last revision : (2017-10-14 12:00)
# Wine version used : 1.3.1, 1.3.28, 1.5.28, 2.18
# Distribution used to test : Debian Testing x64 - Linux Mint Debian Edition x64 - AntergOS KDE 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="2.18"
GAME_VMS="128"

# Starting the script
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,STEAM,LOCAL"

# Installing mandatory dependencies
if [ "$INSTALL_METHOD" == "STEAM" ]; then
        POL_Call POL_Install_steam
fi

# Asking about memory size of graphic card
POL_SetupWindow_VMS $GAME_VMS

# Set Graphic Card information keys for wine
POL_Wine_SetVideoDriver

if [ "$INSTALL_METHOD" == "STEAM" ]; then
        POL_SetupWindow_menu "$(eval_gettext 'Which edition do you have?')" "$TITLE" "Game of the Year~Game of the Year Deluxe Edition" "~"
        if [ "$APP_ANSWER" == "Game of the Year" ]; then
                STEAM_ID="22330"
        else
                STEAM_ID="900883"
        fi

        # Mandatory pre-install fix for steam
        POL_Call POL_Install_steam_flags "$STEAM_ID"

        # Shortcut done before install for steam version
        POL_Shortcut "steam.exe" "$TITLE" "$TITLE.png" "steam://rungameid/22330" "Game;RolePlaying;"
        POL_Shortcut "steam.exe" "Steam ($TITLE)" "" "" "Game;"
fi

# 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"
        POL_Wine start /unix "$CDROM/setup.exe"
        POL_Wine_WaitExit "$TITLE"
elif [ "$INSTALL_METHOD" == "STEAM" ]; then
        # Steam install
        POL_SetupWindow_message "$(eval_gettext 'When $TITLE download by Steam is finished, do 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"
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

# Install d3dx9 and directmusic for optimal gaming experience
POL_Call POL_Install_d3dx9 # Otherwise game will not run
POL_Call POL_Install_directmusic # Otherwise music will not play

# 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
if [ "$INSTALL_METHOD" != "STEAM" ]; then
        POL_Shortcut "OblivionLauncher.exe" "$TITLE" "ElderScroll4_Oblivion.xpm" "" "Game;RolePlaying;"

        # 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"
fi

POL_SetupWindow_Close
exit 0

Réponses

Anonymous
Mercredi 25 Avril 2018 à 4:05
As noted in https://appdb.winehq.org/objectManager.php?sClass=version&iId=19444 (Steam), Steam needs to be run with '-no-cef-sandbox' to work. This installer made it further than the currently approved one (current crashes after updating steam, this one crashes after logging in due to CEF sandbox). After logging in, Steam will fail to launch even with this updated installer until you modify the launcher arguments. After modifying the arguments, launch steam and proceed installing Oblivion following the installer's instructions.

Adding '-no-cef-sandbox -no-dwrite' to the Steam arguments in PlayOnMac allows it to run after logging in, install, but then Oblivion crashes when it tries to load a save game or quit a current game. I was able to start a new game and save. I'll try to look into it later.
Jeudi 9 Janvier 2020 à 10:04
Script approved.
Sassinake Jeudi 12 Mai 2016 à 3:46
Sassinake Anonymous

Messages

Actually, this program ran for a couple years, with Nehrim and a medium modded version before that. Then I decided to reinstall a new version for a new mod. Had it working right up until yesterday. A bad mod crapped my installation. tried to save it...couldn't

Tonight, I reinstalled it all again. But I can't get it to start anymore. At all. 

I tried several times, several versions, several components, according to help on the internets. I removed --purged then reinstalled playonlinux. I reinstalled wine (which wasn't even really installed (?)).

I tried doing just the most basic possible installation: craps. It freezes right from the start. 

Is there a more complete way to wipe clean my installation so some sneaky crappy configuration file isn't spoiling everything ? I'm about to reinstall my whole system! (ubuntu 14.04)

I really love this game, but i'm not ready to get a new laptop just yet.

Thanks!

Réponses

Anonymous
Samedi 14 Mai 2016 à 0:58
~/.playonlinux is where the problem was.
LemonadeWarrior Dimanche 21 Février 2016 à 20:41
LemonadeWarrior

Messages

It appears to work well on Ubuntu 14.04 64-bit with no configuration... Good job.

Réponses

Dimanche 21 Février 2016 à 22:56
The only problem I have experienced is when i set it accidentally to something other than my native resolution. It messed up my screen and I had to restart my pc.
hynner Lundi 9 Février 2015 à 18:48
hynner Anonymous

Warning

Cette mise à jour n'a pas été approuvée par l'équipe.
Utilisez-la à vos risques et périls

Messages

It runs well but game shortcut doesn't work for Steam deluxe version. Deluxe version has to be run using  steam://rungameid/22330 as well.

Differences

@@ -56,7 +56,7 @@
 	POL_Call POL_Install_steam_flags "$STEAM_ID"
 
 	# Shortcut done before install for steam version
-	POL_Shortcut "steam.exe" "$TITLE" "$TITLE.png" "steam://rungameid/$STEAM_ID" "Game;RolePlaying;"
+	POL_Shortcut "steam.exe" "$TITLE" "$TITLE.png" "steam://rungameid/22330" "Game;RolePlaying;"
 	POL_Shortcut "steam.exe" "Steam ($TITLE)" "" "" "Game;"
 fi
 

Nouveau code source

#!/bin/bash
# Date : (2010-09-06 14:00)
# Last revision : (2012-04-21 21:00)
# Wine version used : 1.3.1, 1.3.28, 1.5.28
# Distribution used to test : Debian Testing x64 - Linux Mint Debian Edition 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.5.28"
GAME_VMS="128"

# Starting the script
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,STEAM,LOCAL"

# Installing mandatory dependencies
if [ "$INSTALL_METHOD" == "STEAM" ]; then
        POL_Call POL_Install_steam
fi

# Asking about memory size of graphic card
POL_SetupWindow_VMS $GAME_VMS

# Set Graphic Card information keys for wine
POL_Wine_SetVideoDriver

if [ "$INSTALL_METHOD" == "STEAM" ]; then
        POL_SetupWindow_menu "$(eval_gettext 'Which edition do you have?')" "$TITLE" "Game of the Year~Game of the Year Deluxe Edition" "~"
        if [ "$APP_ANSWER" == "Game of the Year" ]; then
                STEAM_ID="22330"
        else
                STEAM_ID="900883"
        fi

        # Mandatory pre-install fix for steam
        POL_Call POL_Install_steam_flags "$STEAM_ID"

        # Shortcut done before install for steam version
        POL_Shortcut "steam.exe" "$TITLE" "$TITLE.png" "steam://rungameid/22330" "Game;RolePlaying;"
        POL_Shortcut "steam.exe" "Steam ($TITLE)" "" "" "Game;"
fi

# 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"
        POL_Wine start /unix "$CDROM/setup.exe"
        POL_Wine_WaitExit "$TITLE"
elif [ "$INSTALL_METHOD" == "STEAM" ]; then
        # Steam install
        POL_SetupWindow_message "$(eval_gettext 'When $TITLE download by Steam is finished, do 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"
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

# 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
if [ "$INSTALL_METHOD" != "STEAM" ]; then
        POL_Shortcut "OblivionLauncher.exe" "$TITLE" "ElderScroll4_Oblivion.xpm" "" "Game;RolePlaying;"

        # 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"
fi

POL_SetupWindow_Close
exit 0

Réponses

This site allows content generated by members, and we promptly remove any content that infringes copyright according to our Terms of Service. To report copyright infringement, please send a notice to dmca-notice@playonlinux.com