Forums

Red Alert 3 : Uprising

Auteur Réponses
Berillions Dimanche 18 Octobre 2009 à 18:48
Berillions

Hello, i create a script for Red Alert 3 : Uprising. 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.31 
# 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"
 
if [ "$POL_LANG" == "fr" ]; then
LNG_MEM="La taille de votre mémoire graphique? (Ex : 512)"
LNG_WAIT_END="Appuyez sur \\"Suivant\\" UNIQUEMENT quand l'installation du jeu sera\\nterminée sous peine de devoir recommencer l'installation."
LNG_WAIT="Patientez durant l'installation"
Title="Alerte Rouge 3 : La Revolte"
Prefix="AR3R"
else
LNG_MEM="How much memory do your graphic card have got? (Ex : 512)"
LNG_WAIT_END="Click on \\"Next\\" ONLY when the game installation
is finished or you will have to redo the installation."
LNG_WAIT="Wait during the installation"
Title="Red Alert 3 : Uprising"
Prefix="RA3U"
fi

cd "$REPERTOIRE/tmp"
rm *.jpg
wget http://upload.wikimedia.org/wikipedia/en/4/4a/RA3UprisingPack.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" "Electronic Arts" "http://www.commandandconquer.com/redalert/" "Berillions" "$Prefix"

#Installation de Wine
POL_SetupWindow_install_wine "1.1.31"

#Détection du cd-rom
POL_SetupWindow_cdrom
POL_SetupWindow_check_cdrom "EASetup.exe"

select_prefix "$REPERTOIRE/wineprefix/$Prefix"
POL_SetupWindow_prefixcreate

#Configuration de Wine
Set_OS winxp
 
wine "$CDROM/EASetup.exe"

POL_SetupWindow_message "$LNG_WAIT_END" "$Title"

POL_SetupWindow_menu "$LNG_RA3_VERS" "$Title" "French-English" "-"
 
if [ "$APP_ANSWER" == "French" ]; then
POL_SetupWindow_make_shortcut "$Prefix" "$PROGRAMFILES/Electronic Arts/C&C™ Alerte Rouge 3 La Révolte/" "RA3EP1.exe" "" "$Title"
else 
POL_SetupWindow_make_shortcut "$Prefix" "$PROGRAMFILES/Electronic Arts/Red Alert 3 Uprising/" "RA3EP1.exe" "" "$Title"
fi

#Création Icone
convert  "$CDROM/ra3ep1.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

Edité par Berillions


NSLW Dimanche 18 Octobre 2009 à 20:04
NSLW

What's that?
$FULL_NAME
Berillions Dimanche 18 Octobre 2009 à 21:25
Berillions

Corrected, thanks :)

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