The forum

Call of Chtulhu: Dark Corners of the Earth

Author Replies
Jompa Monday 29 March 2010 at 2:42
Jompa

I had problems installing "Call of Chtulhu: Dark Corners of the Earth" from PlayOnLinux, so i checked the script and updated it to look like more POL 3 :)

Wine version : 1.1.25
Distribution : Ubuntu 9.10
Graphics card : Nvidia, GeForce 8800GT
Drivers : 195.36.15

#!/bin/bash
# Last Revision: (2010-03-28)
# Distribution used to test: Ubuntu 9.10
# Wine version used: 1.1.25
# Author: Bacatta
# Script updated by: Jompa
[ "$PLAYONLINUX" = "" ] && exit 0 

source "$PLAYONLINUX/lib/sources"

Title="Call of Chtulhu: Dark Corners of the Earth"
Prefix="CoCDCotE"

if [ "$POL_LANG" = "sv" ]; then
LNG_MEM="Hur mycke minne har ditt grafikkort?"
LNG_INSTALL="Installerar..."
else
LNG_MEM="How much memory do your graphic card have got?"
LNG_INSTALL="Installing..."
fi
 
cd "$REPERTOIRE/tmp"
rm *.jpg
wget http://upload.wikimedia.org/wikipedia/en/2/2c/Call_of_Cthulhu_-_Dark_Corners_of_the_Earth_Coverart.png --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" "Bethesda Softworks" "http://www.callofcthulhu.com/" "Bacatta" "$Prefix"
 
POL_SetupWindow_cdrom
POL_SetupWindow_check_cdrom "setup.exe"

POL_SetupWindow_install_wine "1.1.25"
Use_WineVersion "1.1.25"
 
select_prefix "$REPERTOIRE/wineprefix/$Prefix"
POL_SetupWindow_prefixcreate
 
#fetching PROGRAMFILES environmental variable
PROGRAMFILES="Program Files"
POL_LoadVar_PROGRAMFILES

POL_SetupWindow_menu "$LNG_MEM" "$Title" "32-64-128-256-384-512-768-896-1024-2048" "-" "128"
VMS="$APP_ANSWER"

#Réglage DirectDrawRenderer
cd "$WINEPREFIX/drive_c/windows/temp"
echo "[HKEY_CURRENT_USER\\\\Software\\\\Wine\\\\Direct3D]" > OGL.reg
echo "\\"OffscreenRenderingMode\\"=\\"fbo\\"" >> OGL.reg
echo "\\"VideoMemorySize\\"=\\"$VMS\\"" >> OGL.reg
regedit OGL.reg
 
POL_SetupWindow_wait_next_signal "$LNG_INSTALL" "$Title"
wine "$CDROM/setup.exe"
POL_SetupWindow_detect_exit
 
convert  "$CDROM/CoCDCoTE.ico" -geometry 32x32 "$REPERTOIRE/icones/32/$Title"
POL_SetupWindow_make_shortcut "$Prefix" "$PROGRAMFILES/Bethesda Softworks/Call Of Cthulhu DCoTE/Engine" "CoCDCoTELauncher.exe" "" "$Title"

Set_WineVersion_Assign "1.1.25" "$Title"

POL_SetupWindow_Close
exit
NSLW Monday 29 March 2010 at 9:37
NSLW

Script updated. Thanks for your contribution.

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