Tomb Raider Legend

Informations

Créateur Messages
malownu Anonymous

Information

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

Informations

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

Retours d'expérience

Code source

#!/bin/bash
# Date : (2009-05-29 11-00)
# Last revision : (2009-06-21 11-00)
# Wine version used : N/A 
# Distribution used to test : N/A
# Author : NSLW
# Licence : Retail

#Translated from V2 to V3
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"

#fetching PROGRAMFILES environmental variable
PROGRAMFILES=`wine cmd /c echo "%ProgramFiles%"`
PROGRAMFILES=${PROGRAMFILES:3}

#Definition des variables
LONG_NAME="Tomb Raider Legend"
PREFIX="TombRaiderLegend"
EDITOR="Eidos Interactive"
WEBSITE="http://www.tombraider.com/legend/"
AUTHOR="malownu - Modifications/Standardisation par GNU_Raziel and NSLW"
 
wget http://upload.wikimedia.org/wikipedia/en/thumb/a/a4/TombRaiderLegend.jpg/256px-TombRaiderLegend.jpg --output-document="$REPERTOIRE/tmp/leftnotscaled.jpeg"
convert "$REPERTOIRE/tmp/leftnotscaled.jpeg" -scale 150x356\! "$REPERTOIRE/tmp/left.jpeg"
POL_SetupWindow_Init "" "$REPERTOIRE/tmp/left.jpeg"

POL_SetupWindow_presentation "$LONG_NAME" "$EDITOR" "$WEBSITE" "$AUTHOR" "$PREFIX" 

 
if [ "$POL_LANG" == "fr_FR.UTF-8" ]
then
LNG_WAIT_END="Appuyez sur "Suivant" UNIQUEMENT quand l'installation du jeu sera terminée sous peine de devoir recommencer l'installation." 
else
LNG_WAIT_END="Click on "Next" ONLY when the game installation is finished or you will have to redo the installation."
fi 
 
select_prefix "$REPERTOIRE/wineprefix/$PREFIX"
POL_SetupWindow_prefixcreate

POL_SetupWindow_cdrom
POL_SetupWindow_check_cdrom "setup.exe"
cd "$WINEPREFIX/dosdevices"
ln -s $CDROM d:
 
cd "$WINEPREFIX/drive_c/windows/temp/" 
echo "[HKEY_LOCAL_MACHINE\\Software\\Wine\\Drives]" > cdrom.reg
echo "\"d:\"=\"cdrom\"" >> cdrom.reg
regedit cdrom.reg
POL_SetupWindow_message "Wait 5 seconds then click next" "$LONG_NAME"
 
#Configuration de wine
Set_OS "winxp"
Set_SoundDriver alsa
 
cd "$CDROM"
wine "setup.exe"
POL_SetupWindow_message "$LNG_WAIT_END" "$LONG_NAME"

#simuler_reboot
POL_SetupWindow_reboot
POL_SetupWindow_make_shortcut "$PREFIX" "$PROGRAMFILES/Tomb Raider - Legend" "trl.exe" "" "$LONG_NAME" "" ""

POL_SetupWindow_message "$LONG_NAME has been installed successfully" "$LONG_NAME"
POL_SetupWindow_message_image "Please note that this game has a copy protection system\nand sadly, it prevents Wine from running the game.\n\nPlayOnLinux will not provide any help concerning any illegal\nstuff." "Note about copy protection" "/usr/share/playonlinux/themes/tango/warning.png"

POL_SetupWindow_Close
exit

Contributions

Filters:

Contribuer
Membre Messages
nhoudelot Dimanche 8 Mai 2016 à 0:30
nhoudelot Anonymous

Warning

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

Messages

Hello,

well this script works, but is a bit outdated
Did a major update to it

Differences

@@ -1,68 +1,78 @@
 #!/bin/bash
 # Date : (2009-05-29 11-00)
-# Last revision : (2009-06-21 11-00)
-# Wine version used : N/A 
-# Distribution used to test : N/A
-# Author : NSLW
+# Last revision : (2016-05-07)
+# Wine version used : 1.8.2
+# Distribution used to test : Mint 17.3
+# Author : malownu,NSLW,GNU_Raziel,Nicolas HOUDELOT
 # Licence : Retail
+#
+# Changelog
+# (2016-05-07) - Nicolas HOUDELOT
+# - update & fix deprecated functions
+# - fix images at installation
+# - bump to wine 1.8.2
 
-#Translated from V2 to V3
 [ "$PLAYONLINUX" = "" ] && exit 0
 source "$PLAYONLINUX/lib/sources"
 
-#fetching PROGRAMFILES environmental variable
-PROGRAMFILES=`wine cmd /c echo "%ProgramFiles%"`
-PROGRAMFILES=${PROGRAMFILES:3}
-
 #Definition des variables
-LONG_NAME="Tomb Raider Legend"
+TITLE="Tomb Raider Legend"
 PREFIX="TombRaiderLegend"
 EDITOR="Eidos Interactive"
 WEBSITE="http://www.tombraider.com/legend/"
-AUTHOR="malownu - Modifications/Standardisation par GNU_Raziel and NSLW"
- 
-wget http://upload.wikimedia.org/wikipedia/en/thumb/a/a4/TombRaiderLegend.jpg/256px-TombRaiderLegend.jpg --output-document="$REPERTOIRE/tmp/leftnotscaled.jpeg"
-convert "$REPERTOIRE/tmp/leftnotscaled.jpeg" -scale 150x356\! "$REPERTOIRE/tmp/left.jpeg"
-POL_SetupWindow_Init "" "$REPERTOIRE/tmp/left.jpeg"
-
-POL_SetupWindow_presentation "$LONG_NAME" "$EDITOR" "$WEBSITE" "$AUTHOR" "$PREFIX" 
-
- 
-if [ "$POL_LANG" == "fr_FR.UTF-8" ]
-then
-LNG_WAIT_END="Appuyez sur "Suivant" UNIQUEMENT quand l'installation du jeu sera terminée sous peine de devoir recommencer l'installation." 
-else
-LNG_WAIT_END="Click on "Next" ONLY when the game installation is finished or you will have to redo the installation."
-fi 
- 
-select_prefix "$REPERTOIRE/wineprefix/$PREFIX"
-POL_SetupWindow_prefixcreate
+AUTHOR="malownu,GNU_Raziel and NSLW,Nicolas HOUDELOT"
+WINEVERSION="1.8.2"
+GAME_VMS=64
+
+LNG_INSERT_MEDIA="$(eval_gettext 'Please insert $TITLE media into your disk drive\nif not already done.')"
+LNG_SUCCES="$(eval_gettext '$TITLE has been installed successfully.')"
+LNG_CPSWARN="$(eval_gettext 'Please note that this game has a copy protection system\nand sadly, it prevents Wine from running the game.\n\nPlayOnLinux will not provide any help concerning any illegal\nstuff.')"
+
+POL_GetSetupImages "https://upload.wikimedia.org/wikipedia/en/thumb/7/7b/Tomb_Raider_-_Legend.png/64px-Tomb_Raider_-_Legend.png" "https://upload.wikimedia.org/wikipedia/en/thumb/7/7b/Tomb_Raider_-_Legend.png/150px-Tomb_Raider_-_Legend.png"  "$TITLE"
+POL_SetupWindow_Init
+POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$WEBSITE" "$AUTHOR" "$PREFIX"
+
+POL_System_SetArch "auto"
+POL_Wine_SelectPrefix "$PREFIX"
+POL_Wine_PrefixCreate "$WINEVERSION"
 
-POL_SetupWindow_cdrom
-POL_SetupWindow_check_cdrom "setup.exe"
-cd "$WINEPREFIX/dosdevices"
-ln -s $CDROM d:
- 
-cd "$WINEPREFIX/drive_c/windows/temp/" 
-echo "[HKEY_LOCAL_MACHINE\\Software\\Wine\\Drives]" > cdrom.reg
-echo "\"d:\"=\"cdrom\"" >> cdrom.reg
-regedit cdrom.reg
-POL_SetupWindow_message "Wait 5 seconds then click next" "$LONG_NAME"
- 
 #Configuration de wine
 Set_OS "winxp"
-Set_SoundDriver alsa
- 
-cd "$CDROM"
-wine "setup.exe"
-POL_SetupWindow_message "$LNG_WAIT_END" "$LONG_NAME"
+#asking about memory size of graphic card
+POL_SetupWindow_VMS $GAME_VMS
+# 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
+
+## PlayOnMac Section
+[ "$POL_OS" = "Mac" ] && Set_Managed "Off"
+## End Section
+
+## Installer ##
+POL_SetupWindow_message "$LNG_INSERT_MEDIA"
+POL_SetupWindow_cdrom
+POL_SetupWindow_check_cdrom "setup.exe"
+POL_Wine start /unix "$CDROM/setup.exe"
+POL_Wine_WaitExit "$TITLE"
+
+# 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
 
 #simuler_reboot
-POL_SetupWindow_reboot
-POL_SetupWindow_make_shortcut "$PREFIX" "$PROGRAMFILES/Tomb Raider - Legend" "trl.exe" "" "$LONG_NAME" "" ""
+POL_Wine_reboot
+#making shortcut
+POL_Shortcut "trl.exe" "$TITLE" "" "" "" "Game;Adventure;"
 
-POL_SetupWindow_message "$LONG_NAME has been installed successfully" "$LONG_NAME"
-POL_SetupWindow_message_image "Please note that this game has a copy protection system\nand sadly, it prevents Wine from running the game.\n\nPlayOnLinux will not provide any help concerning any illegal\nstuff." "Note about copy protection" "/usr/share/playonlinux/themes/tango/warning.png"
+POL_SetupWindow_message "$LNG_SUCCES" "$TITLE"
+POL_SetupWindow_message "$LNG_CPSWARN" "$TITLE"
 
 POL_SetupWindow_Close
-exit
\ No newline at end of file
+exit 0
\ No newline at end of file

Nouveau code source

#!/bin/bash
# Date : (2009-05-29 11-00)
# Last revision : (2016-05-07)
# Wine version used : 1.8.2
# Distribution used to test : Mint 17.3
# Author : malownu,NSLW,GNU_Raziel,Nicolas HOUDELOT
# Licence : Retail
#
# Changelog
# (2016-05-07) - Nicolas HOUDELOT
# - update & fix deprecated functions
# - fix images at installation
# - bump to wine 1.8.2

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

#Definition des variables
TITLE="Tomb Raider Legend"
PREFIX="TombRaiderLegend"
EDITOR="Eidos Interactive"
WEBSITE="http://www.tombraider.com/legend/"
AUTHOR="malownu,GNU_Raziel and NSLW,Nicolas HOUDELOT"
WINEVERSION="1.8.2"
GAME_VMS=64

LNG_INSERT_MEDIA="$(eval_gettext 'Please insert $TITLE media into your disk drive\nif not already done.')"
LNG_SUCCES="$(eval_gettext '$TITLE has been installed successfully.')"
LNG_CPSWARN="$(eval_gettext 'Please note that this game has a copy protection system\nand sadly, it prevents Wine from running the game.\n\nPlayOnLinux will not provide any help concerning any illegal\nstuff.')"

POL_GetSetupImages "https://upload.wikimedia.org/wikipedia/en/thumb/7/7b/Tomb_Raider_-_Legend.png/64px-Tomb_Raider_-_Legend.png" "https://upload.wikimedia.org/wikipedia/en/thumb/7/7b/Tomb_Raider_-_Legend.png/150px-Tomb_Raider_-_Legend.png"  "$TITLE"
POL_SetupWindow_Init
POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$WEBSITE" "$AUTHOR" "$PREFIX"

POL_System_SetArch "auto"
POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "$WINEVERSION"

#Configuration de wine
Set_OS "winxp"
#asking about memory size of graphic card
POL_SetupWindow_VMS $GAME_VMS
# 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

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

## Installer ##
POL_SetupWindow_message "$LNG_INSERT_MEDIA"
POL_SetupWindow_cdrom
POL_SetupWindow_check_cdrom "setup.exe"
POL_Wine start /unix "$CDROM/setup.exe"
POL_Wine_WaitExit "$TITLE"

# 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

#simuler_reboot
POL_Wine_reboot
#making shortcut
POL_Shortcut "trl.exe" "$TITLE" "" "" "" "Game;Adventure;"

POL_SetupWindow_message "$LNG_SUCCES" "$TITLE"
POL_SetupWindow_message "$LNG_CPSWARN" "$TITLE"

POL_SetupWindow_Close
exit 0

Réponses

cel_reloaded Samedi 11 Avril 2015 à 12:48
cel_reloaded Anonymous

Messages

Le jeu fonctionne bien avec une carte nVida GT430 avec les drivers "nouveau".

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