The forum

Dark Age of Camelot

Author Replies
Jompa Monday 29 March 2010 at 2:49

Since both of the DAoC scripts that are in the PlayOnLinux are pretty outdated i made a new one. :) Also there is no EU version anymore so i just added the US version of the game. :)

Wine version : 1.1.30
Distribution : Ubuntu 9.10
Graphics card : Nvidia, GeForce 8800GT
Drivers : 195.36.15
Comments : For some odd reason you need to add the installation directories before the install or ells it won't let you pass that.

# Date: (2010-03-16)
# Release Date: (2010-03-28)
# Distribution used to test: Ubuntu 9.10
# Wine version used: 1.1.30
# Author: Jompa
# Based on the Borderlands script by: Berillions

#Vérifier que PlayOnLinux est bien exécuté avant
[ "$PLAYONLINUX" = "" ] && exit 0 

#Charger les librairies
source "$PLAYONLINUX/lib/sources"

Title="Dark Age of Camelot : Labyrinth of the Minotaur"

if [ "$POL_LANG" = "sv" ]; then
LNG_MEM="Hur mycke minne har ditt grafikkort?"
LNG_PIXEL="Du lär checka av 'Pixel Shaders On' i wine config. \\nAnnars kommer spelet att krasha."
LNG_MEM="How much memory do your graphic card have got?"
LNG_PIXEL="You need to uncheck the 'Pixel Shaders On' in wine config. \\nOr ells the game will crash"

cd "$REPERTOIRE/tmp"
rm *.jpg
wget --output-document="$REPERTOIRE/tmp/$Prefix.jpg"
convert "$REPERTOIRE/tmp/$Prefix.jpg" -scale 150x356\\! "$REPERTOIRE/tmp/left.jpg"

POL_SetupWindow_Init "" "$REPERTOIRE/tmp/left.jpg"

POL_SetupWindow_presentation "$Title" "Mythic Entertainment" "" "Jompa" "$Prefix"

POL_SetupWindow_download "Downloading the setup file.." "$Title" ""

POL_SetupWindow_install_wine "1.1.30"
Use_WineVersion "1.1.30"

select_prefix "$REPERTOIRE/wineprefix/$Prefix"

PROGRAMFILES="Program Files"

#Installing DirectX 9 and gecko
POL_Call POL_Install_d3dx9
POL_Call POL_Install_gecko

#Taille de la mémoire graphique
POL_SetupWindow_menu "$LNG_MEM" "$Title" "32-64-128-256-384-512-768-896-1024-2048" "-" "128"

#Réglage Direct3D
cd "$WINEPREFIX/drive_c/windows/temp"
cat << EOF > OGL.reg
regedit OGL.reg

#Configuration de Wine
Set_OS winxp

#Need to create the installetion directories before the install or ells the installetion won't work.
cd "$HOME/.PlayOnLinux/wineprefix/$Prefix/drive_c/Program Files"
mkdir "Electronic Arts"
cd "Electronic Arts"
mkdir "Dark Age of Camelot"

POL_SetupWindow_wait_next_signal "$LNG_INSTALL" "$Title"
wine "$REPERTOIRE/tmp/DAoCSetup.exe"

POL_SetupWindow_make_shortcut "$Prefix" "$PROGRAMFILES/Electronic Arts/Dark Age of Camelot" "camelot.exe" "" "$Title"

Set_WineVersion_Assign "1.1.30" "$Title"

POL_SetupWindow_message_image "$LNG_PIXEL" "$Title" "$PLAYONLINUX/themes/tango/warning.png"


Edited by Jompa

NSLW Monday 29 March 2010 at 9:34

POL_SetupWindow_download "Downloading the setup file.." "$Title" ""
You should check if the DAoCSetup.exe is already downloaded. Second thing is that you don't know where you download it. Third thing is that you download it before checking if the user has installation media.

cd "$HOME/.PlayOnLinux/wineprefix/$Prefix/drive_c/Program Files"
This won't work for e.g. Spanish users.
Jompa Monday 29 March 2010 at 12:51

Alright thank you so much for the feedback, i will fix the problems. :)