LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 09-23-2006, 08:45 PM   #1
dudeman41465
Member
 
Registered: Jun 2005
Location: Kentucky
Distribution: Debian
Posts: 794

Rep: Reputation: 56
Half Life 1 - Steam Version - Working in Wine - How I Did It


Ok, this is kind of along the same lines as my WoW in wine topic, kind of a how I did it record. This one will be quite a bit shorter, :P.

I cannot vouch for installing the game. I tried installing it a long time ago and failed because the Steam installer didn't look or operate right, but that of course was also on an older version of wine without my nvidia patch, so if you've installed wine according to my WoW walkthrough, it might work, but I won't promise you anything. I would think it would because to me Steam looks fine and runs with no hitches, whereas before it looked like crap. Anyway, what I did was just copy the "Steam" directory from my Windows hard drive into my '.wine/drive_c/program files' folder. Whenever you do this, sometimes you do not have permission to write to the files, and therefore, downloading new maps and saving your game is not possible. To fix this, after copying the folder, if you choose to get the game this way, run these commands as root, inserting the appropriate information such as your username and home folder:
Code:
chown yourusername yourhomefolder --recursive
Code:
chgrp yourusername yourhomefolder --recursive
Code:
chmod u+rwx yourhomefolder --recursive
Now, by default Steam looked and operated fine, but it didn't want to move behind Half Life when the game started, so to launch the game directly like windows does, you can make a launcher on your desktop, your games menu, or wherever. The command the launcher should execute is as follows. If you put Half Life in a folder other than your wine folder, please change it accordingly.
Code:
wine "C:\Program Files\Steam\Steam.exe" -applaunch 70
C:\ works because to wine, C:\ points to $HOME/.wine/drive_c, but if it's say just in your home directory, replacing that with '/home/yourusername/Steam' will work fine as well. The above command can also be ran directly from the command line, if you wish to do so for whatever reason. If you get an error about a certain area of the registry being in use, don't worry, just restart the game and let it re-load. For me, it works perfect, no glitches "anywhere" in the sound, graphics or anything. However I have noticed it doesn't like to die if you try offering it "KILL" signals from your process viewer, so don't do that unless it's absolutely necessary. I would advise exiting the game normally, then right clicking the Steam icon in your system tray and clicking exit on that. For optimum performance, you may wish to, before starting a game, go into your options and set the Graphics to "OpenGL", and not "Software" or "D3D". OpenGL is native to Linux, and by using it you may avoid some issues that may come from letting Wine try to emulate Direct3D.

Screenshot 1 (288.2 KB)
Screenshot 2 (580.4 KB)

Last edited by dudeman41465; 09-25-2006 at 03:15 AM.
 
Old 09-25-2006, 03:51 AM   #2
dudeman41465
Member
 
Registered: Jun 2005
Location: Kentucky
Distribution: Debian
Posts: 794

Original Poster
Rep: Reputation: 56
Multiplayer and Firewall

I believe I just resolved an issue causing some people to get kicked out of Internet games. If you get kicked out of multiplayer games as soon as you click to start, try allowing tcp port 27015 in your firewall settings. After doing this, the problem stopped for me.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Do you have a working Wine Half Life? WingNut Linux - Games 9 10-24-2006 07:46 PM
Steam Counter Strike and Half LIfe 2 Backup Surreale Linux - Software 2 07-02-2005 02:39 AM
Half-Life 2 without Steam drowbot Linux - Games 10 04-16-2005 03:16 PM
Steam problem: Half-Life works perfectly but can't create/join games with CS 1.6. pujolasdf Linux - Games 9 02-09-2005 11:20 AM
Half Life and wine 20040505 working, but.... Jonny_Michaels Linux - Games 8 05-25-2004 08:48 PM

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

All times are GMT -5. The time now is 10:44 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