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.
#!/bin/bash
# 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"
Prefix="DAoCLotM"
if [ "$POL_LANG" = "sv" ]; then
LNG_MEM="Hur mycke minne har ditt grafikkort?"
LNG_INSTALL="Installerar..."
LNG_PIXEL="Du lär checka av 'Pixel Shaders On' i wine config. \\nAnnars kommer spelet att krasha."
else
LNG_MEM="How much memory do your graphic card have got?"
LNG_INSTALL="Installing..."
LNG_PIXEL="You need to uncheck the 'Pixel Shaders On' in wine config. \\nOr ells the game will crash"
fi
cd "$REPERTOIRE/tmp"
rm *.jpg
wget http://upload.wikimedia.org/wikipedia/en/9/9e/DAOCanniversarycover.jpg --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" "Mythic Entertainment" "http://www.darkageofcamelot.com/" "Jompa" "$Prefix"
POL_SetupWindow_download "Downloading the setup file.." "$Title" "http://l3-cdn2.nap.eamythic.com/daocpatch/installer/DAoCSetup.exe"
POL_SetupWindow_install_wine "1.1.30"
Use_WineVersion "1.1.30"
select_prefix "$REPERTOIRE/wineprefix/$Prefix"
POL_SetupWindow_prefixcreate
PROGRAMFILES="Program Files"
POL_LoadVar_PROGRAMFILES
#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"
VMS="$APP_ANSWER"
#Réglage Direct3D
cd "$WINEPREFIX/drive_c/windows/temp"
cat << EOF > OGL.reg
[HKEY_CURRENT_USER\\\\Software\\\\Wine\\\\Direct3D]"VideoMemorySize"="$VMS"
EOF
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_detect_exit
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"
POL_SetupWindow_Close
exit
Edité par Jompa