Applications

Choose a category

accessories
Accessories
development
Development
education
Education
games
Games
graphics
Graphics
internet
Internet
multimedia
Multimedia
office
Office
other
Other

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

#!/bin/bash
if [ "$PLAYONLINUX" = "" ]
then
exit 0
fi
source "$PLAYONLINUX/lib/sources"
cfg_check

presentation "S.T.A.L.K.E.R. - Shadow Of Chernobyl" "THQ" "http://www.stalker-game.com/" "GNU_Raziel" "STALKER-ShadowOfChernobyl" 1 6

if [ "$POL_LANG" == "fr_FR.UTF-8" ]; 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 sera terminée sous peine de devoir recommencer l'installation."
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 or you will have to redo the installation."
fi

Ask_For_cdrom 2 6
Check_cdrom "setup-1c.bin"

protection_warning

mkdir -p $REPERTOIRE/wineprefix/STALKER-ShadowOfChernobyl
cd $REPERTOIRE/wineprefix/STALKER-ShadowOfChernobyl
select_prefixe "$(pwd)"
creer_prefixe 3 6

cd $WINEPREFIX/drive_c/windows/
mkdir temp
cd $WINEPREFIX/dosdevices
ln -sf $CDROM ./d:

cd $REPERTOIRE/tmp/
if [ ! -e $REPERTOIRE/tmp/D3DX9_dll_update.zip ]; then
telecharger "$LNG_DX9_DL" http://www.threelights.de/page/projects/d3dx9_xx_dll_files/D3DX9_dll_update.zip "" 4 6
fi
cd $WINEPREFIX/drive_c/windows/temp/
unzip $REPERTOIRE/tmp/D3DX9_dll_update.zip
message "$LNG_DX9_INSTALL" "" 5 6
Set_OS "winxp"
wine c:\\windows\\temp\\D3DX9_dll_update\\Install\\DXSETUP.exe

fonts_to_prefixe
wine d:\\setup.exe
message "$LNG_WAIT_END" "" 6 6

Set_Managed "On"
Set_DXGrab "On"
Set_GLSL "On"

echo "[HKEY_CURRENT_USER\\Software\\Wine\\Direct3D]" > $REPERTOIRE/tmp/fbo.reg
echo "\"OffscreenRenderingMode \"=\"fbo\"" >> $REPERTOIRE/tmp/fbo.reg
regedit $REPERTOIRE/tmp/fbo.reg

simuler_reboot
rm -rf $WINEPREFIX/drive_c/windows/temp/*

creer_lanceur "STALKER-ShadowOfChernobyl" "Program Files/THQ/S.T.A.L.K.E.R. - Shadow of Chernobyl/bin" "XR_3DA.exe" "STALKER-ShadowOfChernobyl.xpm" "S.T.A.L.K.E.R. - Shadow Of Chernobyl" "" "\"-dsound -nodistord\""
Set_WineVersion_Assign "0.9.57" "S.T.A.L.K.E.R. - Shadow Of Chernobyl"

end_install
exit