找回密码
 注册
查看: 877|回复: 3

Run Doom ]|[ under GNU/Linux

[复制链接]
发表于 2004-8-19 21:10:17 | 显示全部楼层 |阅读模式
http://www.linux-militia.net/howtos/doom3/doom3.html

Doom III and Winex CVS
Rob Smith [email protected]
V0.03 2004-08-04

Abstract
This howto will walk you though installing transgamings winex via cvs,
patching it and installing Doom III so you can frag with the rest of the
world.

Introduction
This howto will walk you though installing transgamings winex via cvs,
patching it and installing Doom III so you can frag with the rest. Get out
your chainsaw and make sure it's full of gas, because you'll need it!

Copyright
Copyright  2004-08-03 by Rob Smith.
You are free:
# to copy, distribute, display, and perform the work
# to make derivative works
# to make commercial use of the work
Under the following conditions:
# Attribution. You must give the original author credit.
# Share Alike.
# If you alter, transform, or build upon this work, you may distribute the
resulting work only under a license identical to this one.
For any reuse or distribution, you must make clear to others the license
terms of this work.
Any of these conditions can be waived if you get permission from the author.

#
Disclaimer
Use the information in this document at your own risk. I disavow any
potential liability for the contents of this document. Use of the concepts,
examples, and/or other content of this document is entirely at your own
risk.

All copyrights are owned by their owners, unless specifically noted
otherwise. Use of a term in this document should not be regarded as
affecting the validity of any trademark or service mark. Naming of
particular products or brands should not be seen as endorsements.

You are strongly recommended to take a backup of your system before major
installation and backups at regular intervals.

Credits
I have to thank rcrit for the install script, and the first version of the
patch, and peteH for updating the patch. Also all of transgaming, they are
wonderful I tell ya! Also thank you Choubaka for getting the commands for
the WinexCVS script.

Technologies
We shall be working with a few programs, some of which you might never have
worked with before, so I shall list a few of them with a short description.
# CVS: Concurrent Versioning System, software for accessing source code
repositories
# Patch: Patch is a program that will take a special file and update the
source code as defined in the patch file.
# Winex: Winex is a program that will allow you to run windows programs on
linux. It's not perfect, but it's quite good.
# Doom 3: The best looking game on the market as of now, and most likly for
awhile ;)

I am also going to assume you are running gentoo linux. If you are not, the
only difference with the install instructions will be how you install a
missing program. You can check with your distro's documentation on the
recommended way to install programs.

Implementation
Ok, this may take awhile, so bear with me, the end is worth it!

*Note: any line starting with a >> means you are to type that command into
the console. Don't type the >> or the space right after the >>, but type
the rest. Also, and lines starting with a R> means run that line as root.

go get this the winexcvs script and save it to your home directory. Let's
run it
>> wget http://cvscedega.linux-gamers.net/WineCVS.sh
>> sh WineCVS.sh

You got the menu? Press g, then 0. press "c". There will be another menu.
press "c" again, to "checkout"
now, press "r" to run it, and then 0.
When prompted about directorys that don't exist, press Y to create them
When prompted about a cvs password, type in 'cvs' without the quotes
if you get prompted about a error log, just type y to see, but it's
doubtful there are any actual errors in there.
now let's patch the source
>> cd ~/.WineCVS/sources/cvscedega/winex/
>> wget
http://www.linux-militia.net/howtos/doom3/GlobalMemoryStatusExFixed.patch
>> dos2unix GlobalMemoryStatusExFixed.patch
>> patch -p0 < GlobalMemoryStatusExFixed.patch

Hope it worked. change back to the directory where the WineCVS.sh resides.
>> cd ~

run it.
>> sh WineCVS.sh
press "c", and "r" for "recompile", then r for run, then select 0 for the
profile. the script should now start the configure and make steps.

And sit back and grab a burrito or two, cause it's gonna take awhile Whee
Ok! Rock on! Now we download the doom3 installer and run it or you can
follow the instructions found here.

>> wget http://www.linux-militia.net/howtos/doom3/doom3_installer.sh
>> chmod +x doom3_installer.sh
>> ./doom3_installer.sh

Now just follow the instructions and install doom! Whee!

Ok, once that's done, we have to download a 'fixed' executable and put it
in the directory doom 3 installed to, default is ~/doom3.
Then we have to ungzip it

>> cd ~/doom3/
>> mv Doom3.exe Doom3.exe.old
>> wget http://www.linux-militia.net/howtos/doom3/Doom3.exe.gz
>> gzip -d Doom3.exe.gz

Ok, now let's start her up!

>> ~/bin/cvscedega Doom3.exe

You will be prompted for the c drive, just press enter.

Booya, you should now be seeing the start of doom 3! Whee!

Troubleshooting
Help! I have compile errors?
Check out this site first, they might be able to answer any questions you
have

Help! Pthread Errors or unable to load x11drv or gl libarys!
If you get pthread errors or it can't load x11drv or gl libarys , you'll
have to add nptl to your use flags and reemerge glibc.

Help! I get hunk errors!
Now, if you got a lot of lines talking about hunks failing, we need to use
the program dos2unix on the patch file before it can be patched.
>> dos2unix GlobalMemoryStatusExFixed.patch

Help! I don't have dos2unix!
If you get something like "bash: dos2unix: command not found" Then we need
to install it, as root type the following:
>> emerge dos2unix
Once it's installed, try the previous command again and then try patching
the source again.

Help! I don't have the command patch!
If you get something along the lines of "bash: patch: command not found"
you need to install it. As root, type this:
>> emerge sys-devel/patch
After a little bit, it should be downloaded and installed. Whee!

Help! My colors look washed out or strange glitches! What's wrong?
Well, some people have reported that running doom 3 in 16 bit color mode
makes the colors all looked washed out, but running it in 24 bit color
mode, the colors are fine. Try running it in 24 bit color and see if that
helps.

Help! I can't play online!
You need to set your cdkey. Edit the file base/doomkey in your doom3
directory and type in cdkey without the dashes and without the last two
numbers. I.e, if your cdkey was 1234-5678-9012-2345-67, you would type in
123456789012345 on the first line of the doomkey file

Help! I'm getting Font Errors!
You need to install the freetype headers for your distro and start back at
the ./configure step above. That should fix it

Help! I get a error about copying /usr/lib/winex-cvs/.transgaming
You need to copy a existing ~/.wine or ~/.winex to ~/.transgaming. if you
don't have a ~/.wine or a ~/.winex, Install wine and run it once, then copy
the ~/.wine it created over to ~/.transgaming.

Help! cannot find '/home/username/doom3/Doom3.exe' even tho it's right
there!
Most likly you have a directory in /home/username called Doom3 or similar.
rename it to Doom3_cds or something else and then try to run doom 3

Help! hud.c:97: error: syntax error before "profile_font"?!?!
Gentoo users try this:
>> opengl-update xfree
>> opengl-update nvidia
Basically, they've been moving around some of the libary paths, and this
just forces them to reupdate. Hopefully this will fix it, just remember to
start at the configure stage above

Help! I get a blue screen that says something like: Error during
initialization. unloading Opengl dll
There's a little scroll bar that you can scroll up and see the actual
problem, please do that

Help! dll extraction to fs_savepath failed!
Ahh, you installed the game as root, you need to be able to write to the
game directory. Try installing the game as a normal user.

Doom 3's autodetect sets everything to low, but I have ____ video card?
what's up?
Doom 3 seems to use a d3d function to check the video card settings, This
function is not implimented, so it sets it all the min. Feel free to set it
higher and see how well it runs!

Getting Help
Feel free to hope on the cedega irc channel, irc.freenode.net #cedega and
ask someone there, and think about supporting transgaming by buying a
subscription!

Concluding Remarks
I hope this was helpful to you all, and happy fragging!
发表于 2004-8-19 22:06:21 | 显示全部楼层
爽  
收啦
回复

使用道具 举报

发表于 2004-8-20 16:37:01 | 显示全部楼层
咋个 不能玩阿  
没法安装  
回复

使用道具 举报

发表于 2004-8-23 23:15:49 | 显示全部楼层
谁能提供doom3的下载?谢谢
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2025-5-18 20:43 , Processed in 0.039776 second(s), 16 queries .

© 2001-2025 Discuz! Team. Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表