The forum

Witcher installation strange issue

Author Replies
simolnx Thursday 13 August 2009 at 20:58

First of all, hi everyone and thx for this project that is bringing a little more games to linux in an easier way. I wish to thank also GNU_Raziel for the terrific scripts he made.

So, now with my problem i have a strange issue with the witcher installation. I own the normal edition so i start with the normal script. Installation starts, directx are updated and stop. Nothing cames up to start installation ( note CD is detected correctly tho i can install it via wine ).

I attach my config :

Athlon x2 4600 ( 939 )
4Gb ram
NVIDIA 8800GT 512Mb
Fedora 11 x64

Thx for every help i could eventually get.

simolnx, italy

Edited by simolnx

NSLW Sunday 16 August 2009 at 17:35

Hi simolnx,
Please try this script

# Date : (2009-08-16 17-30)
# Last revision : (2009-08-16 17-30)
# Wine version used : N/A
# Distribution used to test : N/A
# Author : NSLW
# Licence : Retail
# Depend : -

[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"

#fetching PROGRAMFILES environmental variable
PROGRAMFILES=`wine cmd /c echo "%ProgramFiles%"`
if [ "$POL_LANG" == "fr" ]; then
LNG_WITCHER_WARNING="Attention, ce jeu ne sera pleinement utilisable que par\\nles possésseurs de Nvidia GeForce 8 ou supérieurs."
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\\nsous peine de devoir recommencer l'installation."
LNG_WITCHER_VMS="Quelle est la quantité de mémoire (Mo) de votre carte graphique ?\\n(minimum pour ce jeu : 256)" 
LNG_WITCHER_WARNING_VMS="Attention, votre carte graphique ne possède pas assez de mémoire\\npour faire fonctionner correctement ce jeu."  
LNG_WITCHER_WARNING="Warning, this game will be usable only if you have an Nvidia GeForce 8 or later."
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."
LNG_WITCHER_VMS="How much memory does your graphics board have?\\n(minimum for this game : 256)" 
LNG_WITCHER_WARNING_VMS="warning, your graphic card do not have enough memory to play this game."
rm *.jpg
wget $SITE/setups/witcher/left.jpg
POL_SetupWindow_Init "" "$REPERTOIRE/tmp/left.jpg"
POL_SetupWindow_presentation "The Witcher" "CD Projekt" "" "GNU_Raziel" "TheWitcher"
POL_SetupWindow_message_image "$LNG_WITCHER_WARNING" "The Witcher" "$PLAYONLINUX/themes/tango/warning.png"
POL_SetupWindow_check_cdrom "setup.exe"
select_prefixe "$REPERTOIRE/wineprefix/TheWitcher/"
if [ ! -e $REPERTOIRE/ressources/ ]; then
mkdir -p $REPERTOIRE/ressources/
cd $REPERTOIRE/ressources/
if [ ! -e $REPERTOIRE/ressources/ ]; then
POL_SetupWindow_download "$LNG_GDI_DL" "The Witcher" ""

cd "$REPERTOIRE/ressources"
#downloading winetricks
if [ "`sha1sum < winetricks | sed 's/ .*//'`" != "e71457524b2f9a0c81369745ea9018d9278565b2" ]; then
wget --output-document=winetricks

WINETRICKSDX=`cat winetricks | grep \\/directx | cut -d'_' -f2`
WINETRICKSDXLINK=`cat winetricks | grep \\/directx | cut -d'/' -f5,6,7,8`

#downloading DirectX
if [ ! -e "$HOME/.winetrickscache/directx_${WINETRICKSDX}_redist.exe" ]; then
mkdir "$HOME/.winetrickscache"
cd "$HOME/.winetrickscache"
POL_SetupWindow_download "$LNG_DX9_DL" "The Witcher" "$WINETRICKSDXLINK/directx_${WINETRICKSDX}_redist.exe"

#installing DirectX
cd "$REPERTOIRE/ressources"
POL_SetupWindow_wait_next_signal "$LNG_DX9_INSTALL" "The Witcher"
bash winetricks -q directx9

cd $WINEPREFIX/drive_c/windows/system32/
unzip $REPERTOIRE/ressources/
Set_OS "winxp"

wine d:\\\\setup.exe
POL_SetupWindow_message "$LNG_WAIT_END" "The Witcher"
echo "[HKEY_CURRENT_USER\\Software\\Wine\\Direct3D]" > $TEMP/thewitcher.reg
echo "\\"DirectDrawRenderer\\"=\\"opengl\\"" >> $TEMP/thewitcher.reg
echo "\\"RenderTargetLockMode\\"=\\"textex\\"" >> $TEMP/thewitcher.reg
echo "\\"OffscreenRenderingMode\\"=\\"fbo\\"" >> $TEMP/thewitcher.reg
POL_SetupWindow_menu_list "$LNG_WITCHER_VMS" "The Witcher" "32-64-128-256-384-512-768-1024-2048" "-" "256"
if [ "$VMS" -lt "256" ]; then
	POL_SetupWindow_message_image "$LNG_WITCHER_WARNING_VMS" "The Witcher" "$PLAYONLINUX/themes/tango/warning.png"
echo "\\"VideoMemorySize\\"=\\"$VMS\\"" >> $TEMP/thewitcher.reg
regedit $TEMP/thewitcher.reg
Set_Managed "On"
Set_DXGrab "On"
POL_SetupWindow_make_shortcut "The Witcher" "$PROGRAMFILES/The Witcher/" "launcher.exe" "The Witcher.xpm"