Applications

Choose a category

accessories
Accessories
development
Development
education
Education
functions
Functions
games
Games
graphics
Graphics
internet
Internet
multimedia
Multimedia
office
Office
other
Other
patches
Patches
testing
Testing

S.T.A.L.K.E.R. - Shadow Of Chernobyl

Magic number : 201

#!/bin/bash
if [ "$PLAYONLINUX" = "" ]
then
exit 0
fi
source "$PLAYONLINUX/lib/sources"
 
cfg_check
 
if [ "$POL_LANG" == "fr" ]; then
LNG_GDI_DL="Téléchargement de gdiplus..."
LNG_DX9_DL="Téléchargement de la mise a jour DirectX9.0c pour Wine..."
LNG_DX9_INSTALL="L'installation de la mise a jour DirectX9.0c pour Wine va débuter."
LNG_WAIT_END="Appuyez sur \"Suivant\" UNIQUEMENT quand l'installation du jeu\nsera terminée sous peine de devoir recommencer l'installation."
elif [ "$POL_LANG" == "de" ]; then
LNG_GDI_DL="Lade gdiplus herunter..."
LNG_DX9_DL="Lade Wine DirectX9.0c Update herunter..."
LNG_DX9_INSTALL="Starte die DirectX9.0c Update Installation..."
LNG_WAIT_END="Klicke ERST auf "Weiter" wenn die Spielinstallation abgeschlossen ist. Ansonsten muss die Installation wiederholt werden."
else
LNG_GDI_DL="Downloading gdiplus..."
LNG_DX9_DL="Downloading Wine DirectX9.0c Update..."
LNG_DX9_INSTALL="DirectX9.0c Update installation will begin."
LNG_WAIT_END="Click on \"Next\" ONLY when the game installation is finished\nor you will have to redo the installation."
fi
 
cd $REPERTOIRE/tmp
rm *.jpg
wget "http://upload.wikimedia.org/wikipedia/en/b/b3/Shadow_of_Chernobyl_cover.jpg" --output-document="$REPERTOIRE/tmp/STALKER.jpg"
convert "$REPERTOIRE/tmp/STALKER.jpg" -scale 150x356\! "$REPERTOIRE/tmp/left.jpg"
 
POL_SetupWindow_Init "" "$REPERTOIRE/tmp/left.jpg"
POL_SetupWindow_presentation "S.T.A.L.K.E.R. - Shadow Of Chernobyl" "THQ" "http://www.stalker-game.com/" "GNU_Raziel" "STALKER-ShadowOfChernobyl"
 
POL_SetupWindow_cdrom
POL_SetupWindow_check_cdrom "setup-1c.bin"
 
select_prefixe "$REPERTOIRE/wineprefix/STALKER-ShadowOfChernobyl/"
POL_SetupWindow_prefixcreate
 
if [ ! -e $REPERTOIRE/ressources/ ]; then
mkdir -p $REPERTOIRE/ressources/
fi
cd $REPERTOIRE/ressources/
if [ ! -e $REPERTOIRE/ressources/D3DX9_XX_dll_\(32Bit_All\).zip ]; then
POL_SetupWindow_download "$LNG_DX9_DL" "S.T.A.L.K.E.R. - Shadow Of Chernobyl" "http://mulx.playonlinux.com/files/D3DX9_XX_dll_(32Bit_All).zip"
fi
 
cd $WINEPREFIX/drive_c/windows/temp/
unzip $REPERTOIRE/ressources/D3DX9_XX_dll_\(32Bit_All\).zip
POL_SetupWindow_message "$LNG_DX9_INSTALL" "S.T.A.L.K.E.R. - Shadow Of Chernobyl"
Set_OS "winxp"
wine c:\\windows\\temp\\D3DX9_XX_dll_\(32Bit_All\)\\Install\\DXSETUP.exe
 
wine "$CDROM/setup.exe"
POL_SetupWindow_message "$LNG_WAIT_END" "S.T.A.L.K.E.R. - Shadow Of Chernobyl"
 
Set_Managed "On"
Set_DXGrab "On"
 
echo "[HKEY_CURRENT_USER\\Software\\Wine\\Direct3D]" > $REPERTOIRE/tmp/fbo.reg
echo "\"OffscreenRenderingMode \"=\"fbo\"" >> $REPERTOIRE/tmp/fbo.reg
regedit $REPERTOIRE/tmp/fbo.reg
 
POL_SetupWindow_reboot
 
convert  "$HOME/.local/share/icons/*_stalker.png" -geometry 32x32 "$REPERTOIRE/icones/32/S.T.A.L.K.E.R. - Shadow Of Chernobyl"
 
POL_SetupWindow_make_shortcut "STALKER-ShadowOfChernobyl" "Program Files/THQ/S.T.A.L.K.E.R. - Shadow of Chernobyl/bin" "XR_3DA.exe" "" "S.T.A.L.K.E.R. - Shadow Of Chernobyl" "" "\"-dsound -nodistort\""
 
POL_SetupWindow_Close
exit
Il n'y a rien à voir ici