BTW, thanks to whoever mentioned emulating the sound drivers, to prevent all movies from hanging (it didn't always occur to me, but sometimes that was really annoying).
Anyway, I haven't found any explanation of wine audio hardware emulation. Can it have problems with other applications? Do you know if there's a way to set sound emulation in the wine command which calls a single program, instead of setting it for wine in general? I mean, I've seen that you can emulate a desktop by running, for instance,wine explorer /desktop=Planescape:Torment,1280x943 torment.exeIs there a way to change sound options for that particular program through command line?
Yes. I dont even install games anymore in wine. Most of them i have zipped on my harddrive. I delete the ~/.wine dir often.
Anyway the process i use is to have a shell (.sh) executable file putting in the commands i need to make it work. Sometimes i add some game specific registry settings like the game dir to morrowind (so it can be portable) or the resolution in vampire the masquerade bloodlines, etc).
I keep this file in a folder before the game itself so it's easy to find when i unzip the game. Like so:
-Torment
-Torment.sh (turn executable)
-Torment (real game folder, fully official patched with a no-cd too)
I keep the non-official patches outside to patch when i unzip (since they are always changing anyway)
In the case of torment the file is:
As you can see, in Torment, it's a fiddly process.#!/bin/bash
GAME_PATH=$(dirname "$(readlink -f "$0")")
cd "$GAME_PATH/Torment"
#bug on wine sound with torment
wine reg add "HKCU\\Software\\Wine\\Appdefaults\\Torment.exe\\DirectSound" /v "HardwareAcceleration" /t REG_SZ /d "Emulation"
#bug with resolutions and movies on torment - only works on virtual desktop, but without the resolution mod, it won't fil
#the screen, so i change and restore the resolution - if you use the resolution mod to set it to your habitual desktop
#resolution you don't need to change the normal resolution.
#set normal resolution to game resolution
xrandr -s 640x480
#set a virtual destop for the game (only) on the game resolution
wine reg add "HKCU\\Software\\Wine\\Appdefaults\\Torment.exe\\Explorer" /v "Desktop" /t REG_SZ /d "Torment.exe"
wine reg add "HKCU\\Software\\Wine\\Explorer\\Desktops" /v "Torment.exe" /t REG_SZ /d "640x480"
#run the game and restore the normal resolution after
wine "Torment.exe" && xrandr -s 1024x768
Do you see that HKCU\\Software\\Wine\\Appdefaults\\Torment.exe\\ part? You can use that kind of structure to set up most normal wine specific registry keys that you find on the wine wiki, but specific to a exe name so it doesn't affect other games.
This is just how i do it, you may prefer to use different prefixes to play different games, etc.
BTW something i just thought. Can you check if the file after patching in 32 bits and 64 bits (in linux and windows i guess) is the same?