Berillions |
Monday 19 October 2009 at 22:23
|
Berillions
|
Hello, i create a script for Rainbow Six Vegas. Works correctly, no graphic bug.
Wine version : 1.1.31
Distribution : Frugalware-Current
Carte Graphique : Nvidia, GeForce GTX275
Drivers carte graphique : 185.18.36
Game's icon :
#!/bin/bash
# Date: (2009-10-03 18-45)
# Distribution used to test: Frugalware Current
# Wine version used: 1.1.30
# Author: Berillions
# Graphic Card : GeForce GTX275
# Drivers : 185.18.36
#fetching PROGRAMFILES environmental variable
PROGRAMFILES=`wine cmd /c echo "%ProgramFiles%"`
PROGRAMFILES=${PROGRAMFILES:3}
#Vérifier que PlayOnLinux est bien exécuté avant
[ "$PLAYONLINUX" = "" ] && exit 0
#Charger les librairies
source "$PLAYONLINUX/lib/sources"
Title="Rainbow Six Vegas"
Prefix="R6Vegas"
if [ "$POL_LANG" == "fr" ]; then
LNG_MEM="La taille de votre mémoire graphique?"
LNG_WAIT_END="Appuyez sur \\"Suivant\\" UNIQUEMENT quand l'installation du jeu sera\\nterminée sous peine de devoir recommencer l'installation."
LNG_FILEPATCH="Selectionner le patch à installer pour $Title"
LNG_INST="Patch pour $Title installé avec succès"
LNG_ACTION="Que voulez-vous faire?"
LNG_WAIT="Patientez durant l'installation"
else
LNG_MEM="How much memory do your graphic card have got?"
LNG_WAIT_END="Click on \\"Next\\" ONLY when the game installation
is finished or you will have to redo the installation."
LNG_FILEPATCH="Select patch file for $Title"
LNG_INST="Patch for $Title has been installed successfully"
LNG_ACTION="What do you want to do?"
LNG_WAIT="Wait during the installation"
fi
patch_R6V()
{
POL_SetupWindow_browse "$LNG_FILEPATCH" "$Title" ""
wine "$APP_ANSWER"
POL_SetupWindow_message "$LNG_INST" "$Title"
}
cd "$REPERTOIRE/tmp"
rm *.jpg
wget http://upload.wikimedia.org/wikipedia/en/c/ce/Tcr6vcov11.jpg --output-document="$REPERTOIRE/tmp/$Prefix.jpg"
convert "$REPERTOIRE/tmp/$Prefix.jpg" -scale 150x356\\! "$REPERTOIRE/tmp/left.jpg"
POL_SetupWindow_Init "" "$REPERTOIRE/tmp/left.jpg"
#Presentation
POL_SetupWindow_presentation "$Title" "Ubisoft" "http://www.rainbowsixgame.com" "Berillions" "$Prefix"
#Installation de Wine
POL_SetupWindow_install_wine "1.1.31"
POL_SetupWindow_menu "$LNG_INST" "Actions" "Install game~Patch Game" "~"
if [ "$APP_ANSWER" == "Patch Game" ]; then
select_prefix "$REPERTOIRE/wineprefix/$Prefix"
patch_R6V
POL_SetupWindow_Close
exit
fi
#Détection du cd-rom
POL_SetupWindow_cdrom
POL_SetupWindow_check_cdrom "setup.exe"
select_prefix "$REPERTOIRE/wineprefix/$Prefix"
POL_SetupWindow_prefixcreate
#Taille de la mémoire graphique
POL_SetupWindow_menu_list "$LNG_MEM" "$Title" "32-64-128-256-384-512-768-896-1024-2048" "-" "128"
VMS="$APP_ANSWER"
if [ "$VMS" -lt "128" ]; then
POL_SetupWindow_message_image "$LNG_VMS_ERROR" "$Title" "$PLAYONLINUX/themes/tango/warning.png"
fi
#Réglage DirectDrawRenderer
cd "$WINEPREFIX/drive_c/windows/temp"
echo "[HKEY_CURRENT_USER\\\\Software\\\\Wine\\\\Direct3D]" > OGL.reg
echo "\\"VideoMemorySize\\"=\\"$VMS\\"" >> OGL.reg
regedit OGL.reg
#Configuration de Wine
Set_OS winxp
wine "$CDROM/setup.exe"
POL_SetupWindow_message "$LNG_WAIT_END" "$Title"
POL_SetupWindow_make_shortcut "$Prefix" "$PROGRAMFILES/Ubisoft/Tom Clancy's Rainbow Six Vegas/Binaries/" "R6Vegas_Launcher.exe" "" "$Title"
#Création Icone
convert "$CDROM/autorun.ico" -geometry 32X32 "$REPERTOIRE/icones/32/$Title"
Set_WineVersion_Assign "1.1.31" "$Title"
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" "$PLAYONLINUX/themes/tango/warning.png"
POL_SetupWindow_Close
exit
Edited by Berillions
|
NSLW |
Monday 19 October 2009 at 22:28
|
NSLW
|
Script is good but again heading is wrong :p
Hello, i create a script for Age Of Mythology
|
Berillions |
Monday 19 October 2009 at 22:51
|
Berillions
|
argh!!! i'm noob to copy-paste.... :p
Thanks :)
|
zedtux |
Tuesday 20 October 2009 at 13:36
|
zedtux
|
patch_R6V()
{
POL_SetupWindow_browse "$LNG_FILEPATCH" "$Title" ""
wine "$APP_ANSWER"
POL_SetupWindow_message "$LNG_INST" "$Title"
}
Just to know:
It couldn't be a good practice to check the Mime Type of the selected file before run it using
`file -bi "$APP_ANSWER"` ?
|
Bilbo_745 |
Saturday 11 October 2014 at 9:49
|
Bilbo_745
|
ps : Est-ce que l'administrateur pourrait corriger la faute de frappe dans le titre de ce sujet, svp ?
|
Bilbo_745 |
Sunday 19 October 2014 at 11:02
|
Bilbo_745
|
Bonjour,
J'ai essayé d'installer "Rainbow Six Vegas" avec ce script, mais il y a un problème dès le début qui dit : "impossible de trouver le cdrom".
Auriez-vous une solution, svp ?
|
Dadu042 |
Sunday 19 May 2019 at 12:33
|
Dadu042
|
> ps : Est-ce que l'administrateur pourrait corriger la faute de frappe dans le titre de ce sujet, svp ?
Corrigé.
> J'ai essayé d'installer "Rainbow Six Vegas" avec ce script, mais il y a un problème dès le début qui dit : "impossible de trouver le cdrom".
Certainement une protection anti copie trop efficace même avec les originaux...
|