The Elder Scrolls III - Morrowind : Tribunal

Informations

Créateur Messages
Tutul

Information

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

Informations

Plate-formes :
Téléchargements : 16467
Wine: System

Retours d'expérience

Description

Ce script permet d'installer The Elder Scrolls 3 : Tribunal afin de profiter encore plus de l'univers de Morrowind.

Code source

#!/bin/bash
# Last revision : (2014-08-20 19:10)
# Author : Tutul
# License : GNU/GPL v3

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

TITLE="The Elder Scrolls 3 - Tribunal"
TITLE_REQUIRED="The Elder Scrolls 3 - Morrowind"
PREFIX="TES3_Morrowind"
EDITOR="Bethesda Softworks"
GAME_URL="http://bethsoft.com/"
AUTHOR="Tutul"

POL_GetSetupImages "http://files.playonlinux.com/resources/setups/morrowind/top.jpg" "http://files.playonlinux.com/resources/setups/morrowind/left.jpg" "$TITLE"
POL_SetupWindow_Init
POL_SetupWindow_SetID 711 

# Starting debugging API
POL_Debug_Init

POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX" 

if [ "$(POL_Wine_PrefixExists "$PREFIX")" = "False" ]; then
    POL_SetupWindow_message "$(eval_gettext 'This is an installer for an update or an addon;\nPlease install $TITLE_REQUIRED first')"
    POL_SetupWindow_Close
    exit
fi 

# Setting prefix path
POL_Wine_SelectPrefix "$PREFIX"

# Choose between DVD and Digital Download version
POL_SetupWindow_InstallMethod "DVD,LOCAL"
 
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_Call POL_Sudo_UnhideCdrom
        POL_SetupWindow_check_cdrom "Setup.exe"
  
        SETUP_EXE="$CDROM/Setup.exe"
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"
fi

# Run the install
POL_Wine_WaitBefore "$TITLE"
POL_Wine $SETUP_EXE
POL_Wine_WaitExit "$TITLE"

POL_SetupWindow_Close
exit 0

Contributions

Filters:

Contribuer
Membre Messages
Tutul Mercredi 20 Aoüt 2014 à 19:08
Tutul

Information

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

Messages

Français :

- Mise à jour du script pour les nouveaux standard

- Suppression des lignes obsolètes

 

English :

- Update script for new standard

- Elimination of obsolete lines

Differences

@@ -55,10 +55,5 @@
 POL_Wine $SETUP_EXE
 POL_Wine_WaitExit "$TITLE"
 
-## PlayOnMac Section
-[ "$PLAYONMAC" == "" ] && Set_Managed "On"
-[ "$PLAYONMAC" == "" ] || Set_Managed "Off"
-## End Section
-
 POL_SetupWindow_Close
 exit 0

Nouveau code source

#!/bin/bash
# Last revision : (2014-08-20 19:10)
# Author : Tutul
# License : GNU/GPL v3

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

TITLE="The Elder Scrolls 3 - Tribunal"
TITLE_REQUIRED="The Elder Scrolls 3 - Morrowind"
PREFIX="TES3_Morrowind"
EDITOR="Bethesda Softworks"
GAME_URL="http://bethsoft.com/"
AUTHOR="Tutul"

POL_GetSetupImages "http://files.playonlinux.com/resources/setups/morrowind/top.jpg" "http://files.playonlinux.com/resources/setups/morrowind/left.jpg" "$TITLE"
POL_SetupWindow_Init
POL_SetupWindow_SetID 711 

# Starting debugging API
POL_Debug_Init

POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX" 

if [ "$(POL_Wine_PrefixExists "$PREFIX")" = "False" ]; then
    POL_SetupWindow_message "$(eval_gettext 'This is an installer for an update or an addon;\nPlease install $TITLE_REQUIRED first')"
    POL_SetupWindow_Close
    exit
fi 

# Setting prefix path
POL_Wine_SelectPrefix "$PREFIX"

# Choose between DVD and Digital Download version
POL_SetupWindow_InstallMethod "DVD,LOCAL"
 
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_Call POL_Sudo_UnhideCdrom
        POL_SetupWindow_check_cdrom "Setup.exe"
  
        SETUP_EXE="$CDROM/Setup.exe"
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"
fi

# Run the install
POL_Wine_WaitBefore "$TITLE"
POL_Wine $SETUP_EXE
POL_Wine_WaitExit "$TITLE"

POL_SetupWindow_Close
exit 0

Réponses

Edité par Tutul

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