IL2 : Sturmovik

Informatie

Creator Bericht
david Anonymous

Information

This installer has been approved by the team.

Informatie

Platforms:
Downloads: 16490
Wine: System

Feedbacks

Omschrijving

You take the control of one aircraft during the WWII and accomplish various missions as bombing, hunting and stuf like that. You must have minimal hardware configuration at least.

OpenGL is managed so you wont need to install DirectX

david.

Broncode

#!/bin/bash
# Date: (17/12/09)
# Last revision: (17/12/09)
# Distribution used to test: Ubuntu Jaunty
# Wine version used: 1.0.1
# Author: david
# Game : IL-2 : Sturmovik

#Vérifier que PlayOnLinux est bien exécuté avant
[ "$PLAYONLINUX" = "" ] && exit 0 
 
#Charger les librairies
source "$PLAYONLINUX/lib/sources"
  
#Fonction de patching
patch()
{
cd $HOME
POL_SetupWindow_browse "Please select the patch file" "Patch selection" ""
wine "$APP_ANSWER"
}

#Initialisation
POL_SetupWindow_Init

#Presentation
POL_SetupWindow_presentation "IL-2 : Sturmovik" "Ubisoft" "http://www.ubi.com/" "david" "Sturmovik"
 
#Installation de Wine
POL_SetupWindow_install_wine "1.0.1"
 
#Détection du cd-rom
POL_SetupWindow_cdrom
POL_SetupWindow_check_cdrom "setup.exe" 
 
#Préparation de Wine
select_prefix "$REPERTOIRE/wineprefix/Sturmovik"
POL_SetupWindow_prefixcreate

#Notes
POL_SetupWindow_message "Please note that if you want to improve speed of the game, \n you can do it by enabling Virtual Desktop using wine configurator\nor disabling some graphical effects\n\nYou don't need to install DirectX because the game manage \nan OpenGL driver\n\nIf you play to the game with a keyboard, don't forget\nto disable the joystick :-)"

#Configuration de Wine
Set_GLSL "On"
Set_OS "winxp"


#Récupération de la variable d'environement PROGRAMFILES
#PROGRAMFILES=`wine cmd /c echo "%ProgramFiles%"`
#PROGRAMFILES=${PROGRAMFILES:3}

PROGRAMFILES="Program Files"
POL_LoadVar_PROGRAMFILES
 
POL_SetupWindow_wait_next_signal "Installation in progress..." "IL-2 : Sturmovik"
wine "$CDROM/setup.exe"
POL_SetupWindow_detect_exit

        POL_SetupWindow_question "Do you have a post-installation patch you would like to install?" "Post-installation patch"
        PATCH=$APP_ANSWER

        if [ "$PATCH" = "TRUE" ]
        then
                patch
        fi


#Création Icone
convert "$CDROM/il2.ico" "$REPERTOIRE/icones/32/IL-2 : Sturmovik.xpm" 
 
#Création Launcher 
POL_SetupWindow_make_shortcut "Sturmovik" "$PROGRAMFILES/Ubi Soft/IL2 Sturmovik" "il2.exe" "$REPERTOIRE/icones/32/IL-2 : Sturmovik.xpm" "IL-2 : Sturmovik" 
 
Set_WineVersion_Assign "1.0.1" "IL-2 : Sturmovik"

POL_SetupWindow_reboot
  
POL_SetupWindow_Close


exit

Contributions

Filters:

Contribute
Member Bericht