Ok, here is what works for me:
I am running Gutsy and wine 0.9.46 (out of the box).
In wine config:
- Applications > Add application: hl2.exe
- Applications: select hl2.exe then Windows Version: Windows 98 (if I try Win XP the system crashes)
- Applications > Add application:steam.exe
- Applications: select steam.exe then Windows Version: Windows XP (Steam will not install under 98 )
- Audio > Sound Drivers > ALSA Driver (and only ALSA!)
- Audio > Hardware Acceleration: Full
- Audio > Default Sample Rate: 44100 and Def. Bits Per Sample: 16
- Audio > Driver Emulation: checked
- Graphics > Check the 2 top boxes
- Graphics > Direct3D: Hardware
- Graphics > Check Allow Pixel Shader
Starting Steam
I start the game I want to run directly. Earlier this was the only way I could get it to work righ because I use 2x19' monitors and TwinView and the game would start trying to fill both monitors (both in full screen and windowed mode). Steam seems to have updated something, because now the window for the game stays the way it should even if you switch (through Steam) from, say, CSS to Portal.
I use the following command line to start a game:
Code:
:~$ env WINEPREFIX="/home/jomar/.wine" WINEDEBUG="-all" wine "C:\Program Files\Steam\steam.exe" -applaunch 240 -window -width 1240 -gl -dxlevel81
- The env WINEPREFIX="/home/jomar/.wine" part is there so if you put it in the "Launcher" under icon - it will know where to run the program from.
- The WINEDEBUG="-all" part turn off the error messages from wine. Not turning this off is the main reason ppl only get 1-5 FPS. (the system is too busy producing error messages)
- wine "C:\Program Files\Steam\steam.exe" starts the game
- -applaunch 240 tells it to start CS:S (exchange with 440 for TF2, 400 for Portal, etc)
- -window starts the game in windowed mode (rather than fullscreen)
- -width 1240 sets the window to 1240 by 930 (you can also use -hight xxx but you don't have to give both width and hight. The game defaults to 4:3)
- -gl -dxlevel81sets the DirectX to use (-dxlevel7, -dxlevel80 and -dxlevel9 are also valid) 81 worked for me.
Hope this can be of help
Bookmarks