Half-Life, Debian, Sid, Wine, Crap, VooDoo, Banshee, OpenGL, Mesa, Glide

Moritz Angermann moritz.angermann at gmx.net
Sun Aug 12 09:48:02 CDT 2001


Well. i got s.th. for you and i think i'll give this to crazney
(lhl.linuxgames.com)

#1 a step by step HL tutorial

#2 my questions.

--------------------------------------------------------------------------
## 1 ## a step by step HL tutorial
######################################
--------------------------------------------------------------------------

yea, well, i got HL working.
On my Debian SID box, without any compiling.
and here is my step by step tutorial.
you just need to get, or o.k. i got it and i guess thats' why it workes.
As base i set the acctual XFree4.1.0 ( SID ) and the 2.4.7-ac7 ( some
one told me  XF4.1.0 would use modified DRM modules. and advides me to
use the ac-7 patch. otherwise the ac-9 didn't not work on my kernel (
what did alan do ? ) ) Kernel.
Addidtionaly i installed the following packages.
( they are for a VooDoo Banshee based system, may work on other systems
too )
btw. the *-dev did i just install, cuz i wanted to see if an other/newer
wine version would work better ). 

-----------------
xlibmesa-dev
xlibmesa3
xlibosmesa-dev
xlibosmesa3

glide2-bin       // do i realy nee this ? with glide3 ?
libglide3
libglide3-dev

wine
wine-doc
wine-utils
winesetuptk    // a bit faster configuration
libwine
libwine-dev
------------------

check if your /etx/X11/XFConfig-4 looks like this: 
------------------
Section "Module"
    Load        "dbe"   # Double buffer extension
    SubSection  "extmod"
      Option    "omit xfree86-dga"   # don't initialise the DGA
extension
    EndSubSection
    Load        "type1"
    Load        "freetype"
    Load        "glx"
    Load        "dri"
EndSection
Section "Files"
    RgbPath     "/usr/X11R6/lib/X11/rgb"
    FontPath   "/usr/X11R6/lib/X11/fonts/misc/"
    FontPath   "/usr/X11R6/lib/X11/fonts/75dpi/:unscaled"
    FontPath   "/usr/X11R6/lib/X11/fonts/100dpi/:unscaled"
    FontPath   "/usr/X11R6/lib/X11/fonts/Type1/"
    FontPath   "/usr/X11R6/lib/X11/fonts/Speedo/"
    FontPath   "/usr/X11R6/lib/X11/fonts/75dpi/"
    FontPath   "/usr/X11R6/lib/X11/fonts/100dpi/"
EndSection
Section "ServerFlags"
EndSection
Section "InputDevice"
    Identifier  "Keyboard1"
    Driver      "Keyboard"
    Option "AutoRepeat" "500 30"
    Option "XkbRules"   "xfree86"
    Option "XkbModel"   "pc102"
    Option "XkbLayout"  "de"
EndSection
Section "InputDevice"
    Identifier  "Mouse1"
    Driver      "mouse"
    Option "Protocol"    "PS/2"
    Option "Device"      "/dev/psaux"
EndSection
Section "Monitor"
    HorizSync   35 - 90.0
    VertRefresh 60-150
EndSection
Section "Device"
    Identifier  "Standard VGA"
    VendorName  "Unknown"
    BoardName   "Unknown"
EndSection
Section "Device"
    Identifier  "Voodoo Banshee (generic)"
    Driver      "tdfx"
EndSection
Section "Screen"
    Identifier  "Screen 1"
    Device      "Voodoo Banshee (generic)"
    Monitor     "My Monitor"
    DefaultDepth 16

    Subsection "Display"
        Depth       8
        Modes       "1280x1024"
        ViewPort    0 0
    EndSubsection
    Subsection "Display"
        Depth       16
        Modes       "1280x1024"
        ViewPort    0 0
    EndSubsection
    Subsection "Display"
        Depth       24
        Modes       "1280x1024"
        ViewPort    0 0
    EndSubsection
EndSection
Section "ServerLayout"
    Identifier  "Simple Layout"
    Screen "Screen 1"
    InputDevice "Mouse1" "CorePointer"
    InputDevice "Keyboard1" "CoreKeyboard"
EndSection
Section "DRI"
Mode 0666
EndSection
------------------

so after all this, and the compiled kernel with the DRM tdfx module for
VooDoo banshee, you start x and try glxinfo. this should report s.th.
like : 
------------------
name of display: :0.0
display: :0  screen: 0
direct rendering: Yes
server glx vendor string: SGI
server glx version string: 1.2
server glx extensions:
    GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_EXT_import_context
client glx vendor string: SGI
client glx version string: 1.2
client glx extensions:
    GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_EXT_import_context
GLX extensions:
    GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_EXT_import_context
OpenGL vendor string: VA Linux Systems, Inc.
OpenGL renderer string: Mesa DRI VoodooBanshee 20010501 x86/MMX/3DNow!
OpenGL version string: 1.2 Mesa 3.4.2
OpenGL extensions:
    GL_ARB_transpose_matrix, GL_EXT_abgr, GL_EXT_clip_volume_hint, 
    GL_EXT_compiled_vertex_array, GL_EXT_histogram,
GL_EXT_packed_pixels, 
    GL_EXT_paletted_texture, GL_EXT_polygon_offset,
GL_EXT_rescale_normal, 
    GL_EXT_stencil_wrap, GL_EXT_texture3D, GL_EXT_texture_object, 
    GL_EXT_texture_lod_bias, GL_EXT_vertex_array, GL_HP_occlusion_test, 
    GL_MESA_window_pos, GL_MESA_resize_buffers, GL_NV_texgen_reflection,
    GL_PGI_misc_hints, GL_SGI_color_matrix, GL_SGI_color_table, 
    GL_SGIS_pixel_texture, GL_SGIS_texture_edge_clamp,
GL_SGIX_pixel_texture
glu version: 1.3
glu extensions:
    GLU_EXT_nurbs_tessellator, GLU_EXT_object_space_tess

   visual  x  bf lv rg d st colorbuffer ax dp st accumbuffer  ms  cav
 id dep cl sp sz l  ci b ro  r  g  b  a bf th cl  r  g  b  a ns b eat
----------------------------------------------------------------------
0x23 16 tc  0 16  0 r  .  .  5  6  5  0  0  0  0  0  0  0  0  0 0 None
0x24 16 tc  0 16  0 r  .  .  5  6  5  0  0  0  8  0  0  0  0  0 0 Slow
0x25 16 tc  0 16  0 r  .  .  5  6  5  0  0  0  0 16 16 16  0  0 0 Slow
0x26 16 tc  0 16  0 r  .  .  5  6  5  0  0  0  8 16 16 16  0  0 0 Slow
0x27 16 tc  0 16  0 r  .  .  5  6  5  0  0 16  0  0  0  0  0  0 0 None
0x28 16 tc  0 16  0 r  .  .  5  6  5  0  0 16  8  0  0  0  0  0 0 Slow
0x29 16 tc  0 16  0 r  .  .  5  6  5  0  0 16  0 16 16 16  0  0 0 Slow
0x2a 16 tc  0 16  0 r  .  .  5  6  5  0  0 16  8 16 16 16  0  0 0 Slow
0x2b 16 tc  0 16  0 r  y  .  5  6  5  0  0  0  0  0  0  0  0  0 0 None
0x2c 16 tc  0 16  0 r  y  .  5  6  5  0  0  0  8  0  0  0  0  0 0 Slow
0x2d 16 tc  0 16  0 r  y  .  5  6  5  0  0  0  0 16 16 16  0  0 0 Slow
0x2e 16 tc  0 16  0 r  y  .  5  6  5  0  0  0  8 16 16 16  0  0 0 Slow
0x2f 16 tc  0 16  0 r  y  .  5  6  5  0  0 16  0  0  0  0  0  0 0 None
0x30 16 tc  0 16  0 r  y  .  5  6  5  0  0 16  8  0  0  0  0  0 0 Slow
0x31 16 tc  0 16  0 r  y  .  5  6  5  0  0 16  0 16 16 16  0  0 0 Slow
0x32 16 tc  0 16  0 r  y  .  5  6  5  0  0 16  8 16 16 16  0  0 0 Slow
0x33 16 dc  0 16  0 r  .  .  5  6  5  0  0  0  0  0  0  0  0  0 0 None
0x34 16 dc  0 16  0 r  .  .  5  6  5  0  0  0  8  0  0  0  0  0 0 Slow
0x35 16 dc  0 16  0 r  .  .  5  6  5  0  0  0  0 16 16 16  0  0 0 Slow
0x36 16 dc  0 16  0 r  .  .  5  6  5  0  0  0  8 16 16 16  0  0 0 Slow
0x37 16 dc  0 16  0 r  .  .  5  6  5  0  0 16  0  0  0  0  0  0 0 None
0x38 16 dc  0 16  0 r  .  .  5  6  5  0  0 16  8  0  0  0  0  0 0 Slow
0x39 16 dc  0 16  0 r  .  .  5  6  5  0  0 16  0 16 16 16  0  0 0 Slow
0x3a 16 dc  0 16  0 r  .  .  5  6  5  0  0 16  8 16 16 16  0  0 0 Slow
0x3b 16 dc  0 16  0 r  y  .  5  6  5  0  0  0  0  0  0  0  0  0 0 None
0x3c 16 dc  0 16  0 r  y  .  5  6  5  0  0  0  8  0  0  0  0  0 0 Slow
0x3d 16 dc  0 16  0 r  y  .  5  6  5  0  0  0  0 16 16 16  0  0 0 Slow
0x3e 16 dc  0 16  0 r  y  .  5  6  5  0  0  0  8 16 16 16  0  0 0 Slow
0x3f 16 dc  0 16  0 r  y  .  5  6  5  0  0 16  0  0  0  0  0  0 0 None
0x40 16 dc  0 16  0 r  y  .  5  6  5  0  0 16  8  0  0  0  0  0 0 Slow
0x41 16 dc  0 16  0 r  y  .  5  6  5  0  0 16  0 16 16 16  0  0 0 Slow
0x42 16 dc  0 16  0 r  y  .  5  6  5  0  0 16  8 16 16 16  0  0 0 Slow
------------------
( hmm does anyone know why i have sooo much 'Slow' ? - how could i
change that ? )

you can also try glxgears to see a smal performence test.

next step is to install HL( SETUP.EXE from CD .... the patches ...)

Now it's time for Speed increesing, so shutdown your X, (
crtl+alt+backspace )

create a new file /etc/X11/hlxcfg lookin' s.th. like : 
------------------
Section "Module"
    Load        "dbe"   # Double buffer extension
    SubSection  "extmod"
      Option    "omit xfree86-dga"   # don't initialise the DGA
extension
    EndSubSection
    Load        "type1"
    Load        "freetype"
    Load        "glx"
    Load        "dri"
EndSection
Section "Files"
    RgbPath     "/usr/X11R6/lib/X11/rgb"
    FontPath   "/usr/X11R6/lib/X11/fonts/misc/"
    FontPath   "/usr/X11R6/lib/X11/fonts/75dpi/:unscaled"
    FontPath   "/usr/X11R6/lib/X11/fonts/100dpi/:unscaled"
    FontPath   "/usr/X11R6/lib/X11/fonts/Type1/"
    FontPath   "/usr/X11R6/lib/X11/fonts/Speedo/"
    FontPath   "/usr/X11R6/lib/X11/fonts/75dpi/"
    FontPath   "/usr/X11R6/lib/X11/fonts/100dpi/"
EndSection
Section "ServerFlags"
EndSection
Section "InputDevice"
    Identifier  "Keyboard1"
    Driver      "Keyboard"
    Option "AutoRepeat" "500 30"
    Option "XkbRules"   "xfree86"
    Option "XkbModel"   "pc102"
    Option "XkbLayout"  "de"
EndSection
Section "InputDevice"
    Identifier  "Mouse1"
    Driver      "mouse"
    Option "Protocol"    "PS/2"
    Option "Device"      "/dev/psaux"
EndSection
Section "Monitor"
    HorizSync   35 - 90.0
    VertRefresh 60-150
EndSection
Section "Device"
    Identifier  "Standard VGA"
    VendorName  "Unknown"
    BoardName   "Unknown"
EndSection
Section "Device"
    Identifier  "Voodoo Banshee (generic)"
    Driver      "tdfx"
EndSection
Section "Screen"
    Identifier  "Screen 1"
    Device      "Voodoo Banshee (generic)"
    Monitor     "My Monitor"
    DefaultDepth 16

    Subsection "Display"
        Depth       8
        Modes       "1280x1024"
        ViewPort    0 0
    EndSubsection
    Subsection "Display"
        Depth       16
        Modes       "640x480" // this is the best resolution, i was told
        ViewPort    0 0
    EndSubsection
    Subsection "Display"
        Depth       24
        Modes       "1280x1024"
        ViewPort    0 0
    EndSubsection
EndSection
Section "ServerLayout"
    Identifier  "Simple Layout"
    Screen "Screen 1"
    InputDevice "Mouse1" "CorePointer"
    InputDevice "Keyboard1" "CoreKeyboard"
EndSection
Section "DRI"
Mode 0666
EndSection
------------------

Now lets check your wine config. in ~/.wine/config it should look like
this : 
------------------
WINE REGISTRY Version 2
[Drive A]
"Type" = "floppy"
"Path" = "/floppy"
"Label" = "/floppy"
"Device" = "/dev/fd0"

[Drive C]
"Path" = "/home/cone/.wine/fake_windows"
"Type" = "hd"
"Label" = "/home/cone/.wine/fake_windows"
"Filesystem" = "win95"

[Drive M]
"Type" = "cdrom"
"Path" = "/cdrom"
"Label" = "/cdrom"
"FS" = "win95"
"Device" = "/dev/cdrom"

[Drive R]
"Path" = "/zip"
"Type" = "floppy"
"Device" = "/dev/hdd"

[Drive X]
"Type" = "hd"
"Path" = "/tmp"
"Label" = "Tmp Drive"
"FS" = "win95"

[Drive Y]
"Type" = "network"
"Path" = "${HOME}"
"Label" = "Home"
"FS" = "win95"

[Drive Z]
"Type" = "network"
"Path" = "/"
"Label" = "Root"
"FS" = "win95"

[wine]
"Windows" = "C:\\Windows"
"System" = "C:\\Windows\\system"
"Path" = "C:\\Windows;C:\\Windows\\system;X:\\;Y:\\"
"Temp" = "X:\\"
"GraphicsDriver" = "x11drv"
"ShellLinker" = "wineshelllink"

[DllDefaults]
"DefaultLoadOrder" = "builtin, so, native"

[DllOverrides]
"kernel32" = "builtin"
"gdi32" = "builtin"
"user32" = "builtin"
"krnl386" = "builtin"
"gdi" = "builtin"
"user" = "builtin"
"toolhelp" = "builtin"
"comdlg32" = "builtin"
"commdlg" = "builtin"
"version" = "builtin"
"ver" = "builtin"
"shell32" = "builtin"
"shell" = "builtin"
"shlwapi" = "builtin"
"lz32" = "builtin"
"lzexpand" = "builtin"
"commctrl" = "builtin"
"comctl32" = "builtin"
"wsock32" = "builtin"
"winsock" = "builtin"
"advapi32" = "builtin"
"crtdll" = "builtin"
"ntdll" = "builtin"
"mpr" = "builtin"
"winspool.drv" = "builtin"
"ddraw" = "builtin"
"dinput" = "builtin"
"dsound" = "builtin"
"winmm" = "builtin"
"mmsystem" = "builtin"
"msvideo" = "builtin"
"msvfw32" = "builtin"
"mcicda.drv" = "builtin"
"mciseq.drv" = "builtin"
"mciwave.drv" = "builtin"
"mciavi.drv" = "builtin"
"mcianim.drv" = "builtin"
"msacm.drv" = "builtin"
"midimap.drv" = "builtin"
;"glide2x" = "so"
"glide3x" = "so"
"opengl32" = "builtin"
"shfolder" = "builtin"
"rpcrt4" = "builtin"
"w32skrnl" = "builtin"
"wnaspi32" = "builtin"
"wow32" = "builtin"
"system" = "builtin"
"display" = "builtin"
"wprocs" = "builtin"
"wineps" = "builtin"
"icmp" = "builtin"

[x11drv]
Display = :0.0
"Managed" = "N"
"Desktop" = "N"
"UseDGA" = "Y"
"UseXShm" = "N"
"DXGrab" = "N"
"DesktopDoubleBuffered" = "N"
"TextCP" = "0"

[fonts]
"Resolution" = "96"
"Default" = "-adobe-times-"

[serialports]
"Com1" = "/dev/ttyS0"
"Com2" = "/dev/ttyS1"
"Com3" = "/dev/modem,38400"
"Com4" = "/dev/modem"

[parallelports]
"Lpt1" = "/dev/lp0"

[spooler]
"LPT1:" = "|lpr"
"LPT2:" = "|gs -sDEVICE=bj200 -sOutputFile=/tmp/fred -q -"
"LPT3:" = "/dev/lp3"

[ports]

[spy]
"Exclude" = "WM_SIZE;WM_TIMER;"

[registry]
"LoadGlobalRegistryFiles" = "Y"
"LoadHomeRegistryFiles" = "Y"
"LoadWindowsRegistryFiles" = "Y"
"WritetoHomeRegistryFiles" = "Y"
"SaveOnlyUpdatedKeys" = "Y"

[Tweak.Layout]
"WineLook" = "Win95"

[Console]

[Clipboard]
"ClearAllSelections" = "0"
"PersistentSelection" = "1"


[Drive J]
"Path" = "/data/backup/c"
"Type" = "hd"
"Device" = ""
------------------
create the file startHL.sh in your HL directory.
------------------
#!/bin/sh
# starting X for HL
X :0 -xf86config hlxcfg

# seting the display for wine
export DISPLAY=":0"

# for infos
# export MESA_FX_INFO="1"

# set mesa for fullscreen
export MESA_GLX_FX="fullscreen"

# the following lines are to prevent the flashing white stripes and to
set the sound correct ( you might need to edit the '0.23' to a value
that fits your system.

# the line for default HL
cat valve/config.cfg |sed s/_snd_mixahead\ \"0.1\"/_snd_mixahead\
\"0.23\"/g|sed s/^M//g >valve/config.cfg && echo "gl_ztrick
\"0\"">>valve/config.cfg

# the line for DeatMatchClassic
cat dmc/config.cfg |sed s/_snd_mixahead\ \"0.1\"/_snd_mixahead\
\"0.23\"/g|sed 
s/^M//g >dmc/config.cfg && echo "gl_ztrick \"0\"">>dmc/config.cfg

# the line for TeamFortesClassic
cat tfc/config.cfg |sed s/_snd_mixahead\ \"0.1\"/_snd_mixahead\
\"0.23\"/g|sed 
s/^M//g >tfc/config.cfg && echo "gl_ztrick \"0\"">>tfc/config.cfg

# the line for CounterStrike
cat cstrike/config.cfg |sed s/_snd_mixahead\ \"0.1\"/_snd_mixahead\
\"0.23\"/g|
sed s/^M//g >cstrike/config.cfg && echo "gl_ztrick
\"0\"">>cstrike/config.cfg

#for other mods just copy the line from HL and modifi it for your needs.

#now start wine.
wine hl.exe -- hl.exe -gl -gldrv Default -w 640 -full -nojoy
-numericping -noipx -console
----------------------

so now you start your box without X, go to the dir where you installed
HL and run the startHL.sh file ( sh startHL.sh ) or first chmod 755 the
file ( chmod 755 startHL.sh ) and than start it ( ./startSH.sh )

this will start you HL. with OpenGL

--------------------------------------------------------------------------
##########################################################################
--------------------------------------------------------------------------

--------------------------------------------------------------------------
## 2 ## my questions
####################################################
--------------------------------------------------------------------------

#1
this just works with the default OpenGL driver. so i guess it wraps my 
Glide to OpenGL. but since i'Ve a Glide card ( voodoo banshee )
i guess i should use the MiniGL driver from HL or the wicketGL driver.
but when i try to select that. I get : 'Your Video Card doesn't support
the driver or. s.th. like that. SO what to do ?

#2 and ideas. how to increese the speed more ?

#3 and sugestions on the tutorial ? addition ? changes ?

#4 anyone who could test this tutorial ? // would be nice, thanks

#5 i've tried also the 20010731 build, but that didn't even let me start
HL with the comment : DDRAW.DLL not found

#6 the 20010629 buils seems to work pretty well, but you can't switch
dircetly to multiplayer, you need first, to start an other game like
new-game or load an old one.

#7 so does anyone know why i can't use my Glide Driver, i hope that
would be much faster. but i never know.

Thanks. and Greetings from here. :)

-- Moritz Angermann ( GeView, cone, (^-_-^), G-Schiht, fresse, GeSicht,
face, P2K, Prax, ... )

www.g-sicht.de




More information about the wine-users mailing list