NSLW |
Mardi 7 Juillet 2009 à 12:35
|
NSLW
|
Hello,
I wrote script which installs Test Drive Unlimited. It also can patch the game or install Megapack after it's been installed.
Wine version : 1.1.25
Distribution : Fedora
Distribution Version : 11 (32 bit)
Graphics card : Nvidia, GeForce 9xxx
Drivers of the graphics card : 185.18.14
Comments:
-no sound
-graphical corruptions
Icon for the game:
#!/bin/bash
# Date : (2009-07-06 12-00)
# Last revision : (2009-07-06 12-00)
# Wine version used : 1.1.25
# Distribution used to test : Fedora 11
# Author : NSLW
# Licence : Retail
# Depend : ImageMagick
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
#fetching PROGRAMFILES environmental variable
PROGRAMFILES=`wine cmd /c echo "%ProgramFiles%"`
PROGRAMFILES=${PROGRAMFILES:3}
TYTUL="Test Drive Unlimited"
PREFIX="TDU"
#procedure for patching TDU
patch_tdu()
{
POL_SetupWindow_browse "Select patch file" "$TYTUL" ""
POL_SetupWindow_wait_next_signal "Installation in progress..." "$TYTUL"
wine "$APP_ANSWER"
POL_SetupWindow_detect_exit
POL_SetupWindow_message "Patch for $TYTUL has been installed successfully" "$TYTUL"
}
Install_megapack()
{
POL_SetupWindow_browse "Select Megapack file" "$TYTUL" ""
POL_SetupWindow_wait_next_signal "Installation in progress..." "$TYTUL"
wine "$APP_ANSWER"
POL_SetupWindow_detect_exit
POL_SetupWindow_message "Patch for $TYTUL has been installed successfully" "$TYTUL"
}
Get_Latest_Wine_Version()
{
wget http://mulx.playonlinux.com/wine/linux-i386/LIST --output-document="$REPERTOIRE/tmp/LIST"
xyz=`cat "$REPERTOIRE/tmp/LIST" | sed -e 's/\\.//g' | cut -d';' -f2 | sort -n | tail -n1`
echo "$(echo $xyz | cut -c1-1).$(echo $xyz | cut -c2-2).$(echo $xyz | cut -c3-4)"
}
POL_SetupWindow_make_icon_for_shortcut()
{
convert "$HOME/.local/share/icons/$2" -geometry 32X32 "$REPERTOIRE/icones/32/$1"
}
POL_SetupWindow_Init
POL_SetupWindow_presentation "$TYTUL" "Atari" "www.testdriveunlimited.com" "NSLW" "$PREFIX"
select_prefix "$REPERTOIRE/wineprefix/$PREFIX"
LATESTVERSION=$(Get_Latest_Wine_Version)
CHOSENWINEVERSION="$LATESTVERSION"
Use_WineVersion "$CHOSENWINEVERSION"
#asking about patching or updating Wine version
if [ -e "$REPERTOIRE/configurations/installed/$TYTUL" ]; then
POL_SetupWindow_menu "What do you want to do?" "Actions" "Patch game~Install Megapack" "~"
if [ "$APP_ANSWER" == "Patch game" ]; then
patch_tdu
elif [ "$APP_ANSWER" == "Install Megapack" ]
then
Install_megapack
fi
POL_SetupWindow_Close
exit
fi
POL_SetupWindow_cdrom
POL_SetupWindow_check_cdrom "setup.exe"
POL_SetupWindow_prefixcreate
#adding CD-ROM as drive d: to winecfg
cd "$WINEPREFIX/dosdevices"
ln -s "$CDROM" d:
cd "$WINEPREFIX/drive_c/windows/temp/"
echo "[HKEY_LOCAL_MACHINE\\\\Software\\\\Wine\\\\Drives]" > cdrom.reg
echo "\\"d:\\"=\\"cdrom\\"" >> cdrom.reg
regedit cdrom.reg
sleep 5
tricks fontsmooth-enable
#starting installation
POL_SetupWindow_wait_next_signal "Installation in progress..." "$TYTUL"
cd "$CDROM"
msiexec /i ISScript11.Msi /q
wine "setup.exe"
POL_SetupWindow_detect_exit
cd "$WINEPREFIX/drive_c/windows/temp/"
#setting Multisampling to enabled and OffscreenRenderingMode to backbuffer
echo "[HKEY_CURRENT_USER\\\\Software\\\\Wine\\\\Direct3D]" > multisampling.reg
echo "\\"Multisampling\\"=\\"enabled\\"" >> multisampling.reg
echo "\\"OffscreenRenderingMode\\"=\\"backbuffer\\"" >> multisampling.reg
regedit multisampling.reg
#setting MouseWarpOverride to disable
echo "[HKEY_CURRENT_USER\\\\Software\\\\Wine\\\\DirectInput]" > mwo.reg
echo "\\"MouseWarpOverride\\"=\\"disable\\"" >> mwo.reg
regedit mwo.reg
#asking about memory size
POL_SetupWindow_menu_list "How much memory do your graphic card have got?" "$TYTUL" "32-64-128-256-384-512-768-890-1024-2048" "-" "256"
VMS="$APP_ANSWER"
echo "[HKEY_CURRENT_USER\\\\Software\\\\Wine\\\\Direct3D]" > vms.reg
echo "\\"VideoMemorySize\\"=\\"$VMS\\"" >> vms.reg
regedit vms.reg
#cleaning temp
#cd "$WINEPREFIX/drive_c/windows/temp/"
#rm -rf *
#making shortcut
POL_SetupWindow_make_shortcut "$PREFIX" "$PROGRAMFILES/Atari/Test Drive Unlimited" "TestDriveUnlimited.exe" "" "$TYTUL" "" ""
Set_WineVersion_Assign "$CHOSENWINEVERSION" "$TYTUL"
POL_SetupWindow_make_icon_for_shortcut "$TYTUL" "fccb_testdriveunlimited.0.xpm"
POL_SetupWindow_message "$TYTUL has been installed successfully" "$TYTUL"
#asking about patching
POL_SetupWindow_question "Do you want to patch your game?" "$TYTUL"
if [ "$APP_ANSWER" == "TRUE" ] ;then
patch_tdu
fi
#asking about megapack
POL_SetupWindow_question "Do you've got Test Drive® Unlimited Megapack?" "$TYTUL"
if [ "$APP_ANSWER" == "TRUE" ] ;then
Install_megapack
fi
POL_SetupWindow_message_image "Please note that this game has a copy protection system\\nand sadly, it prevents Wine from running the game.\\n\\nPlayOnLinux will not provide any help concerning any illegal\\nstuff." "Note about copy protection" "/usr/share/playonlinux/themes/tango/warning.png"
POL_SetupWindow_Close
exit
|
mum1989 |
Mercredi 8 Juillet 2009 à 21:06
|
mum1989
|
great job, but I tested (without your POL script) with my configuration and the sound work
I used wine 1.1.24, you can see my test here (mum1989) :
http://appdb.winehq.org/objectManager.php?sClass=version&iId=7370
Edité par mum1989
Archlinux , Kde4
Pc portable Toshiba Satellite X200-21E
|
NSLW |
Jeudi 9 Juillet 2009 à 8:15
|
NSLW
|
What settings did you use? I've got sound only in logo films at the beginning and with Wine-1.1.24 doesn't work.
|
mum1989 |
Jeudi 9 Juillet 2009 à 10:03
|
mum1989
|
I use the default settings, (I use alsa).
I set wine in backbuffer. (fbo does'nt work with wine 1.1.24)
I set wine "windows vista" for the mouse work.
The next day, i will try with wine 1.1.25, and I will test if the sound work.
Archlinux , Kde4
Pc portable Toshiba Satellite X200-21E
|
NSLW |
Jeudi 9 Juillet 2009 à 12:22
|
NSLW
|
I use the default settings, (I use alsa).
If so then the above script should work for you.
I set wine in backbuffer. (fbo does'nt work with wine 1.1.24)
I set wine "windows vista" for the mouse work.
This is already done in script.
|
mum1989 |
Lundi 13 Juillet 2009 à 18:32
|
mum1989
|
I try with wine 1.1.25 and the sound works wery well too.
I start the game on my Microsoft Windows partition, (I didn't install the game)
Directx installed.
I've upload a screenshot of my wine's config :
http://img164.imageshack.us/img164/1512/configtdu.jpg
Archlinux , Kde4
Pc portable Toshiba Satellite X200-21E
|