LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Games
User Name
Password
Linux - Games This forum is for all discussion relating to gaming in Linux.

Notices


Reply
  Search this Thread
Old 05-23-2004, 10:01 PM   #1
zephalim
LQ Newbie
 
Registered: May 2004
Distribution: Fedora Core 1
Posts: 7

Rep: Reputation: 0
another HL with wine


Hello, I'm trying to get HL working with wine, but I cannot insert the cd key when I am asked for it. I have tried closing all windows and that did not work. I looked in the config (winecfg) and tried to make a virtual windows but that did not seem to work. I must have changed something because I now get the error -

[root@imbris games]# wine hl.exe
Invalid path L"c:\\windows" for L"windows" directory: does not exist.
Perhaps you have not properly edited your Wine configuration file (/root/.wine/config)

When I try to access the config file I type -
[root@imbris games]# /root/.wine/config

and get -
bash: /root/.wine/config: Permission denied

I am doing this as root so I fail to see how permission is denied. I did not find the how to file at linuxgames to be of any help. I went to transgaming but did not understand the CVS version.. how does that work? I couldn't find a download, but found a script. Is that what the CVS is? Do I somehow use the script to get that version of winex working?

I am using the latest version of wine with Fedora Core 1 and Gnome.
 
Old 05-24-2004, 01:25 AM   #2
Guru3
Member
 
Registered: Sep 2003
Location: //home/sweden
Distribution: RedHat 9, Fedora Core 1
Posts: 360

Rep: Reputation: 31
Re: another HL with wine

Quote:
Originally posted by zephalim
When I try to access the config file I type -
[root@imbris games]# /root/.wine/config

and get -
bash: /root/.wine/config: Permission denied
When you type the file name in like that it is trying to run it, and it does not have executable permissions, hence permission denied to run it. (Plus, it's not something you would normally want to run anyway...) Try typing in
Code:
gedit /root/.wine/config
and then you should be able to edit it. As for not being able to put the cd-key in, I remember having to deal with this before... I'll see if I can't figure out how again.
 
Old 05-24-2004, 01:38 AM   #3
motub
Senior Member
 
Registered: Sep 2003
Location: The Netherlands
Distribution: Gentoo (main); SuSE 9.3 (fallback)
Posts: 1,607

Rep: Reputation: 46
Firstly, Wine is a userspace program. It is not meant to be run as root, and this is not recommended, and may well be the main reason it is not working properly.

Secondly, you got a "permission denied" error because config is a text file, but you did not specify a text editor in the command you used to "run" (open) it. So the shell tried to execute the command you gave (its default action for unqualified commands), but it is not an executable file, so permission is denied to execute it.

The command you wanted was <name_of_preferred_text_editor> ~/.wine/config.

The problem with the invalid directories is mentioned in Wine Weekly Newsletter Issue 221; basically, in the .wine directory there should be a subdirectory called dosdevices which contains symlinks to the devices and drives configured in /.wine/config. I'm not sure when these symlinks are created; most likely the first time you run Wine after configuring it. But you should check and see if this directory exists (once you have configured Wine as a user, rather than as root), and compare it to the drives configured in ~/.wine/config.

Quote:
I went to transgaming but did not understand the CVS version.. how does that work? I couldn't find a download, but found a script. Is that what the CVS is? Do I somehow use the script to get that version of winex working?
CVS (Concurrent Version System) is not a "version" per se, it is uncompiled pure source code, and the CVS repository is used by the developers of a program to include and test patches and upgrades to the program. Consider it like a shared document edited by several members of a corporate workgroup.

But I think you've gotten a little confused. If you went to Transgaming, you're dealing with WineX, not Wine. WineX is a commercial program (you have to subscribe at 5 USD per month for a minimum of 3 months to get the full binary files, which are the only things "guaranteed" to work to whatever extent they guarantee that any part of WineX works).

WineX is only available for "free" via CVS, and the CVS repository is not intended to give users a free version of WineX, so the source is rather old, and various proprietary functionality is not present. The script you found (I assume from here) is just to automate the process of downloading WineX via CVS, compiling the source code, and installing the compiled programs and support files.

On the other hand, Wine is an open source program which is available in both source and binary form for free. Because Wine does not use proprietary licenses from companies like InstallShield and whoever else Transgaming has licenses from, certain functions (like copy protection) are (usually) working under (the binary version of) WineX, but (usually) not under Wine. WineX has also gotten licences or inside information allowing them to "hack" WineX to run certain specific games (The Sims Gaming Edition, Morrowind), whereas Wine may not run these games. However, Wine is improving every day, and often runs many of the programs/games that you might pay for Crossover Office or WineX in order to run.

Certainly I can run Half-Life under Wine, so the first likelihood of what's going wrong is that you're running Wine as root and not as a user, which is how Wine is intended to run.

You might also want to take a look at Frank's Corner, a great site with many tips on how to get Wine working, as well as how to install certain specific programs, including Half-Life.

Hope this helps clarify things for you.
 
Old 05-24-2004, 09:44 AM   #4
zephalim
LQ Newbie
 
Registered: May 2004
Distribution: Fedora Core 1
Posts: 7

Original Poster
Rep: Reputation: 0
Thank you both for your help. I did access my config file but now I have no idea how to edit it ;p. I went to Frank's Corner and asked how to edit my config file. Hopefully they will have the answer. It seems like a really useful site. As for HL working I tried having no other windows open and I also tried pasting the cd-key. I messed up the config file by checking a few boxes in 'winecfg'. I was trying to emulate a windows desktop so that the window would pop up and I could type my cd-key.
 
Old 05-24-2004, 11:06 AM   #5
motub
Senior Member
 
Registered: Sep 2003
Location: The Netherlands
Distribution: Gentoo (main); SuSE 9.3 (fallback)
Posts: 1,607

Rep: Reputation: 46
Since you know where the config file is, why don't you post it here, too?

The HL window does not "pop up", and that is not the meaning of "emulating a Windows desktop" in any case.

Most games run fullscreen by default. Using the "Desktop=" setting in Wine will make that "full screen" a window on your desktop of the specified resolution, so that if you normally have a desktop of 1280x1024, let's say, HL will run (fullscreen in it's opinion) in a window of 800x600. But the cd key screen is not a separate popup window as far as I recall, and won't become one, no matter what you set Wine to do.

Is what you're saying that you can type in the CD key and HL will not accept it, or that you are unable to type in the box for it, or what?

What drive is HL installed on (a mounted Windows partition, or did you install it again to a native partition)?

What I'm thinking is that when you put in your CD key, HL has to write a file with what that key was, so that the next time it runs, it knows that you've entered a legit key. This file is normally created in the game directory (as well as sometimes in the Registry). I'm also thinking that maybe you're running HL from an NTFS partition, or from someplace where you don't have write permission, so HL can't write its little authorization file, and thus stops you cold.

Is that possible?
 
Old 05-24-2004, 07:46 PM   #6
zephalim
LQ Newbie
 
Registered: May 2004
Distribution: Fedora Core 1
Posts: 7

Original Poster
Rep: Reputation: 0
No, what I'm saying is that I can't even select the window to enter my cd key. I can hit 'ok' and 'cancel' but cannot type my cd key. It's a common problem.

WINE REGISTRY Version 2
;; All keys relative to \\Machine\\Software\\Wine\\Wine\\Config

;; If you think it is necessary to show others your complete config for a
;; bug report, filter out empty lines and comments with
;; grep -v "^;" ~/.wine/config | grep '.'

[wine]
"Windows" = ""
"System" = ""
"Temp" = ""
"Path" = ""
"Profile" = ""
"GraphicsDriver" = "x11drv"
;"ShowDirSymlinks" = "1"
;"ShowDotFiles" = "1"
"ShellLinker" = "wineshelllink"

# [wineconf]

[Version]
; Windows version to imitate (win95,win98,winme,nt351,nt40,win2k,winxp,win2k3,win20,win30,win31)
;"Windows" = ""
; DOS version to imitate
;"DOS" = "6.22"

; Be careful here, wrong DllOverrides settings have the potential
; to pretty much kill your setup.
[DllOverrides]
; some dlls you may want to change
"oleaut32" = "builtin, native"
"ole32" = "builtin, native"
"comdlg32" = "builtin, native"
"shell32" = "builtin, native"
"shfolder" = "builtin, native"
"shlwapi" = "builtin, native"
"shdocvw" = "builtin, native"
"advapi32" = "builtin, native"
"msvcrt" = "native, builtin"
"mciavi.drv" = "native, builtin"
"mcianim.drv" = "native, builtin"
"msi" = "native, builtin"
; you can specify applications too
; this one will apply for all notepad.exe
;"*notepad.exe" = "native, builtin"
; this one will apply only for a particular file
;"C:\\windows\\regedit.exe" = "native, builtin"
; default for all other dlls
"*" = "builtin, native"

[x11drv]
; Number of colors to allocate from the system palette
"AllocSystemColors" = "100"
; Use a private color map
"PrivateColorMap" = "N"
; Favor correctness over speed in some graphics operations
"PerfectGraphics" = "N"
; Color depth to use on multi-depth screens
;;"ScreenDepth" = "16"
; Allow the window manager to manage created windows
"Managed" = "Y"
; Use a desktop window of 640x480 for Wine
;"Desktop" = "640x480"
; Use XFree86 DGA extension if present
; (make sure /dev/mem is accessible by you !)
"UseDGA" = "Y"
; Use XVidMode extension if present
"UseXVidMode" = "Y"
; Use XRandR extension if present
"UseXRandR" = "Y"
; Use the take focus protocol
"UseTakeFocus" = "Y"
; Enable DirectX mouse grab
"DXGrab" = "N"
; Create the desktop window with a double-buffered visual
; (useful to play OpenGL games)
"DesktopDoubleBuffered" = "N"
; Run in synchronous mode (useful for debugging X11 problems)
;;"Synchronous" = "Y"
;
; Use the Render extension to render client side fonts (default "Y")
;;"ClientSideWithRender" = "Y"
; Fallback on X core requests to render client side fonts (default "Y")
;;"ClientSideWithCore" = "Y"
; Set both of the previous two to "N" in order to force X11 server side fonts
;
; Anti-alias fonts if using the Render extension (default "Y")
;;"ClientSideAntiAliasWithRender" = "Y"
; Anti-alias fonts if using core requests fallback (default "Y")
;;"ClientSideAntiAliasWithCore" = "Y"
;

[fonts]
;Read the Fonts topic in the Wine User Guide before adding aliases
;See a couple of examples for russian users below
"Resolution" = "96"
"Default" = "-adobe-helvetica-"
"DefaultFixed" = "fixed"
"DefaultSerif" = "-adobe-times-"
"DefaultSansSerif" = "-adobe-helvetica-"

;; default TrueType fonts with russian koi8-r encoding
;"Default" = "-monotype-arial-*-*-*--*-*-*-*-*-*-koi8-r"
;"DefaultFixed" = "-monotype-courier new-*-*-*--*-*-*-*-*-*-koi8-r"
;"DefaultSerif" = "-monotype-times new roman-*-*-*--*-*-*-*-*-*-koi8-r"
;"DefaultSansSerif" = "-monotype-arial-*-*-*--*-*-*-*-*-*-koi8-r"
;; default cyrillic bitmap X fonts
;"Default" = "-cronyx-helvetica-"
;"DefaultFixed" = "fixed"
;"DefaultSerif" = "-cronyx-times-"
;"DefaultSansSerif" = "-cronyx-helvetica-"

; the TrueType font dirs you want to make accessible to wine
[FontDirs]
;"dir1" = "/usr/X11R6/lib/X11/fonts/TrueType"
;"dir2" = "/usr/share/fonts/truetype"
;"dir3" = "/usr/X11R6/lib/X11/fonts/TT"
;"dir4" = "/usr/share/fonts/TT"

[ppdev]
;; key: io-base of the emulated port
;; value : parport-device{,timeout}
;; timeout for auto closing an open device ( not yet implemented)
;"378" = "/dev/parport0"
;"278" = "/dev/parport1"
;"3bc" = "/dev/parport2"

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

[ports]
;"read" = "0x779,0x379,0x280-0x2a0"
;"write" = "0x779,0x379,0x280-0x2a0"

[Debug]
;"RelayExclude" = "RtlEnterCriticalSection;RtlLeaveCriticalSection"
;"RelayInclude" = "user32.CreateWindowA"
;"RelayFromExclude" = "user32;x11drv"
;"RelayFromInclude" = "sol.exe"
;"SnoopExclude" = "RtlEnterCriticalSection;RtlLeaveCriticalSection"
;"SpyExclude" = "WM_SIZE;WM_TIMER;"

[registry]
;These are all booleans. Y/y/T/t/1 are true, N/n/F/f/0 are false.
;Defaults are read all, write to Home
; Where to find the global registries
;"GlobalRegistryDir" = "/etc";
; Global registries (stored in /etc)
"LoadGlobalRegistryFiles" = "Y"
; Home registries (stored in ~user/.wine/)
"LoadHomeRegistryFiles" = "Y"
; Load Windows registries from the Windows directory
"LoadWindowsRegistryFiles" = "Y"
; TRY to write all changes to home registries
"WritetoHomeRegistryFiles" = "Y"
; Registry periodic save timeout in seconds
; "PeriodicSave" = "600"
; Save only modified keys
"SaveOnlyUpdatedKeys" = "Y"

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

; List of all directories directly contain .AFM files
[afmdirs]
"1" = "/usr/share/ghostscript/fonts"
"2" = "/usr/share/a2ps/afm"
"3" = "/usr/share/enscript"
"4" = "/usr/X11R6/lib/X11/fonts/Type1"

[WinMM]
; Uncomment the "Drivers" line matching your sound setting.

"Drivers" = "wineoss.drv" ; default for most common configurations
;"Drivers" = "winearts.drv" ; for KDE
;"Drivers" = "winealsa.drv" ; for ALSA users
;"Drivers" = "winejack.drv" ; for Jack sound server
;"Drivers" = "winenas.drv" ; for NAS sound system
;"Drivers" = "wineaudioio.drv" ; for Solaris machines
;"Drivers" = "" ; to disable sound
"WaveMapper" = "msacm.drv"
"MidiMapper" = "midimap.drv"

[dsound]
;; HEL only: Number of waveOut fragments ahead to mix in new buffers.
;"HELmargin" = "5"
;; HEL only: Number of waveOut fragments ahead to queue to driver.
;"HELqueue" = "5"
;; Max number of fragments to prebuffer
;"SndQueueMax" = "28"
;; Min number of fragments to prebuffer
;"SndQueueMin" = "12"
;; Forces emulation mode (using wave api)
;"HardwareAcceleration" = "Emulation"
;; Sets default playback device (0 - number of devices - 1)
;"DefaultPlayback" = "0" ; use first device (/dev/dsp)
;"DefaultPlayback" = "1" ; use second device (/dev/dsp1)
;"DefaultPlayback" = "2" ; use third device (/dev/dsp2)
;; Sets default capture device (0 - number of devices - 1)
;"DefaultCapture" = "0" ; use first device (/dev/dsp)
;"DefaultCapture" = "1" ; use second device (/dev/dsp1)
;"DefaultCapture" = "2" ; use third device (/dev/dsp2)

[Network]
;; Use the DNS (Unix) host name always as NetBIOS "ComputerName" (boolean, default "Y").
;; Set to N if you need a persistent NetBIOS ComputerName that possibly differs
;; from the Unix host name. You'll need to set ComputerName in
;; HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\ComputerName\ComputerName, too.
;"UseDnsComputerName" = "N"

;; sample AppDefaults entries

; 3 InstallShield versions who like to put their full screen window in front,
; without any chance to switch to another X11 application.
; So just catch them in a desktop window.

[AppDefaults\\_INS0432._MP\\x11drv]
"Desktop" = "640x480"

[AppDefaults\\_INS0466._MP\\x11drv]
"Desktop" = "640x480"

[AppDefaults\\_INS0576._MP\\x11drv]
"Desktop" = "640x480"

[AppDefaults\\_INS5176._MP\\x11drv]
"Desktop" = "640x480"

[AppDefaults\\_INS5576._MP\\x11drv]
"Desktop" = "640x480"

;[AppDefaults\\iexplore.exe\\DllOverrides]
;"shlwapi" = "native"
;"rpcrt4" = "native"
;"ole32" = "native"
;"shdocvw" = "native"
;"wininet" = "native"
;"shfolder" = "native"
;"shell32" = "native"
;"shell" = "native"
;"comctl32" = "native"
;
;[AppDefaults\\setup.exe\\x11drv]
;"Desktop" = "800x600"
;
;[AppDefaults\\sol.exe\\Version]
;"Windows" = "nt40"
;
;; Some games (Quake 2, UT) refuse to accept emulated dsound devices.
;; You can add an AppDefault entry like this for such cases.
;[AppDefaults\\pickygame.exe\\dsound]
;"EmulDriver" = "N"

# [/wineconf]


There is my config file.
 
Old 05-25-2004, 04:52 AM   #7
motub
Senior Member
 
Registered: Sep 2003
Location: The Netherlands
Distribution: Gentoo (main); SuSE 9.3 (fallback)
Posts: 1,607

Rep: Reputation: 46
Does it work if you change
Code:
; Enable DirectX mouse grab
"DXGrab" = "N"
to
Code:
; Enable DirectX mouse grab
"DXGrab" = "Y"
?

Seems like you might need the DX mouse for HL; if you don't want to use it for all Wine apps, then make an AppDefault setting for HL as listed in the examples near the bottom of the file, but just use it to set DXGrab to yes instead of anything else.

You might also want to set "DesktopDoubleBuffered" = "N" to "Y', as HL is natively OpenGL, iirc.

Hope this helps.
 
Old 05-25-2004, 09:18 AM   #8
Guru3
Member
 
Registered: Sep 2003
Location: //home/sweden
Distribution: RedHat 9, Fedora Core 1
Posts: 360

Rep: Reputation: 31
motub, that's the fix I was thinking of too.
 
Old 05-26-2004, 03:52 PM   #9
zephalim
LQ Newbie
 
Registered: May 2004
Distribution: Fedora Core 1
Posts: 7

Original Poster
Rep: Reputation: 0
I changed both of those arguments but I still cannot select the window.
 
Old 05-26-2004, 03:58 PM   #10
motub
Senior Member
 
Registered: Sep 2003
Location: The Netherlands
Distribution: Gentoo (main); SuSE 9.3 (fallback)
Posts: 1,607

Rep: Reputation: 46
OK, I'm still not getting this "select the window" thing, as the last time I installed HL, the cd-key screen was a full screen with a box, not a separate window. This is just regular old HL, right, not Blue Shift or whatever?

So tomorrow I'll try installing it and see what happens to me. Unfortunately that means I have to move some drives around, or I'd have done it already. You can figure out from my location what the time difference is from wherever you are (I'm posting this at 11 pm CET), so expect me back around lunchtime my time.
 
Old 05-26-2004, 08:38 PM   #11
zephalim
LQ Newbie
 
Registered: May 2004
Distribution: Fedora Core 1
Posts: 7

Original Poster
Rep: Reputation: 0
No Hurry . It is a separate window though, not a big screen. And yes this is just normal HL.
 
Old 06-03-2004, 06:26 AM   #12
awlred
LQ Newbie
 
Registered: May 2004
Posts: 17

Rep: Reputation: 0
I had that problem but found you can Copy and Paste to it, just open up an editor and type it in, copy then right click and select paste. badda-bing badda-boom hehe you're done
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Trouble running wine from src wine:error while loading shared libraries: libwine.so.1 brynjarh Linux - Newbie 2 05-28-2013 10:59 AM
Wine - Diablo II LOD TCP/IP doesn't work +where is my wine.conf brainlesspinkey Linux - Games 7 08-26-2007 08:10 AM
Link targets - problems with Wine (Though not Wine specific - Wine site doesn't help) Kevjml Linux - Newbie 1 01-13-2006 07:53 AM
wine [wine] config detailed settings...directory paths... breezewax Linux - Software 2 10-19-2004 06:15 PM
wine: chdir to /tmp/.wine-tom/server-306-33fca : No such file or directory Kinstonian Linux - Software 19 06-21-2003 05:16 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Games

All times are GMT -5. The time now is 03:28 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration