Translation(s): none

(!) ?Discussion


Presentation

icone.png You don't know Half-Life 2, really !!

screenshot.png

Note: This document is also ready for Counter-Strike: Source game.

How-to

Basic Installation

Half-Life 2 (or Counter-Strike: Source) is not a native Linux software ... but it's very easy to install it under your Debian !

Packages needed:

Other things needed:

Instructions:

Wine Configuration

This is recommanded Wine Configuration. Go to:

K > System > Wine Configuration

Note that it's important to disable Pixel Shader option

wine-applications.png wine-display.png

wine-sound.png

References

Get tahoma.ttf font

The easy way : download it from Google search

Or Get it from Microsoft

download tahoma32.exe from http://support.microsoft.com/kb/188081/, then extract it, then copy it :

cd /tmp
wget http://download.microsoft.com/download/office97pro/fonts/1/w95/en-us/tahoma32.exe
apt-get install cabextract || echo "You need 'contrib' in /etc/apt/sources.list"
cabextract tahoma32.exe
mkdir -p ~/.wine/drive_c/windows/fonts
mv Tahoma*.TTF ~/.wine/drive_c/windows/fonts/

Error messages and solutions

Place new comments at the top

Add new comments, don't edit old ones

Errors

x11settings:X11DRV_ChangeDisplaySettingsEx No matching mode found(800x600x32)

:$ bash -x ./run.sh
+ WINEDEBUG=fixme-all
+ wine 'C:/Program Files/Valve/Steam/Steam.exe' -fullscreen -dxlevel 70 -width 1024 -height 768 -applaunch 220 -heapsize 256000 +map_background none
Invoking /usr/lib/wine/wine.bin C:/Program Files/Valve/Steam/Steam.exe -fullscreen -dxlevel 70 -width 1024 -height 768 -applaunch 220 -heapsize 256000 +map_background none ...
err:ntlm:SECUR32_initNTLMSP ntlm_auth was not found or is outdated. Make sure that ntlm_auth >= 3.0.25 is in your path.
err:ole:CoGetClassObject class {9a5ea990-3034-4d6f-9128-01f3c61022bc} not registered
err:ole:CoGetClassObject no class object {9a5ea990-3034-4d6f-9128-01f3c61022bc} could be created for context 0x1
err:systray:delete_icon invalid tray icon ID specified: 1
err:ole:CoGetClassObject class {9a5ea990-3034-4d6f-9128-01f3c61022bc} not registered
err:ole:CoGetClassObject no class object {9a5ea990-3034-4d6f-9128-01f3c61022bc} could be created for context 0x1
err:x11settings:X11DRV_ChangeDisplaySettingsEx No matching mode found(800x600x32)! (XRandR)

Error:

err:x11settings:X11DRV_ChangeDisplaySettingsEx No matching mode found(800x600x32)! (XRandR)

Solution: Direct rendering is not active

glxinfo | egrep  "NVIDIA|direct"
direct rendering: Yes
server glx vendor string: NVIDIA Corporation
client glx vendor string: NVIDIA Corporation
OpenGL vendor string: NVIDIA Corporation
OpenGL version string: 1.5.8 NVIDIA 96.39

Reference: here

Unhandled page fault on read access to 0x00000000 at address (nil) (thread 0046)

wine: Unhandled page fault on read access to 0x00000000 at address (nil) (thread 0046), starting debugger...
Unhandled exception: page fault on read access to 0x00000000 in 32-bit code (0x00000000).
Register dump:
 CS:0073 SS:007b DS:007b ES:007b FS:0033 GS:003b
 EIP:00000000 ESP:0034e414 EBP:0034e444 EFLAGS:00010206(   - 00      - RIP1)
 EAX:052d0ca8 EBX:00000000 ECX:052d0c60 EDX:011899bc
 ESI:2051cf14 EDI:00000000
Stack dump:
0x0034e414:  200e817e 00000001 2028aa27 00000000
0x0034e424:  00000000 00000000 0034e420 0034df78
0x0034e434:  0034e48c 20289c8c 2032a210 00000000
0x0034e444:  0034e460 2028aaab 00000000 00000000
0x0034e454:  00000001 2028a39c 00000000 0034e49c
0x0034e464:  2028a4a8 20000000 00000000 00000000

Solution: disable Shader Pixel in Wine configuration