PDA

View Full Version : Doom3 Port in the making


sblevin
07-05-2005, 07:19 AM
Well - It's STARTING to execute! YAYYYYYYYY!

Now the problem is linux compat open GL support - GRRRRRRRRRRRRRR

The NVidia river PBI seems not to install support in the /compat/linux/usr/X11R6/libs folder.

I think I read that the full nvidia driver install does do this - but last time I tried building and installing that I lost X altogether.

Ill try again and see how I go!

GRRRRRRR - just uninstalled the nvidia PBI and now no X ..... trying to copy back old settings .................copied ...........killall kdm ...........YAYYYY! X is back!

Stay tuned for Part Two:

NVidia Compat GL support: Tribulations of St Blevin, the Martyr Saint of Coffs Harbour.

sblevin
07-05-2005, 09:35 AM
Nooooooooooooooooooooooooooooooooooooooooooooo!

sh-2.05b$ /compat/linux/usr/local/games/doom3/doom3
DOOM 1.3.1302 linux-x86 May 12 2005 14:56:44
found interface eth0 - 192.168.128.105/255.255.255.0
found interface lo0 - loopback
couldn't stat exe path link /proc/1010/exe
------ Initializing File System ------
Loaded pk4 /usr/compat/linux/usr/local/games/doom3/base/game01.pk4 with checksum 0xe9d5adcf
Loaded pk4 /usr/compat/linux/usr/local/games/doom3/base/game02.pk4 with checksum 0x80401dd2
Loaded pk4 /usr/compat/linux/usr/local/games/doom3/base/game03.pk4 with checksum 0x351c23e8
Loaded pk4 /usr/compat/linux/usr/local/games/doom3/base/pak000.pk4 with checksum 0x28d208f1
Loaded pk4 /usr/compat/linux/usr/local/games/doom3/base/pak001.pk4 with checksum 0x40244be0
Loaded pk4 /usr/compat/linux/usr/local/games/doom3/base/pak002.pk4 with checksum 0xc51ecdcd
Loaded pk4 /usr/compat/linux/usr/local/games/doom3/base/pak003.pk4 with checksum 0xcd79d028
Loaded pk4 /usr/compat/linux/usr/local/games/doom3/base/pak004.pk4 with checksum 0x765e4f8b
Loaded pk4 /usr/compat/linux/usr/local/games/doom3/base/pak005.pk4 with checksum 0x8ffc3621
Loaded pk4 /usr/compat/linux/usr/local/games/doom3/base/pak006.pk4 with checksum 0x95b65ab
Loaded pk4 /usr/compat/linux/usr/local/games/doom3/base/pak007.pk4 with checksum 0x666bdb3c
Current search path:
/home/sblevin/.doom3/base
/usr/compat/linux/usr/local/games/doom3/base
/usr/compat/linux/usr/local/games/doom3/base/pak007.pk4 (38 files)
/usr/compat/linux/usr/local/games/doom3/base/pak006.pk4 (48 files)
/usr/compat/linux/usr/local/games/doom3/base/pak005.pk4 (63 files)
/usr/compat/linux/usr/local/games/doom3/base/pak004.pk4 (5137 files)
/usr/compat/linux/usr/local/games/doom3/base/pak003.pk4 (4676 files)
/usr/compat/linux/usr/local/games/doom3/base/pak002.pk4 (6120 files)
/usr/compat/linux/usr/local/games/doom3/base/pak001.pk4 (8972 files)
/usr/compat/linux/usr/local/games/doom3/base/pak000.pk4 (2698 files)
/usr/compat/linux/usr/local/games/doom3/base/game03.pk4 (2 files)
/usr/compat/linux/usr/local/games/doom3/base/game02.pk4 (2 files)
/usr/compat/linux/usr/local/games/doom3/base/game01.pk4 (2 files)
game DLL: 0x0 in pak: 0x0
Addon pk4s:
file system initialized.
--------------------------------------
----- Initializing Decls -----
------------------------------
------- Initializing renderSystem --------
using ARB renderSystem
renderSystem initialized.
--------------------------------------
5206 strings read from strings/english.lang
Couldn't open journal files
execing editor.cfg
execing default.cfg
couldn't exec DoomConfig.cfg
couldn't exec autoexec.cfg
5206 strings read from strings/english.lang
----- Initializing Sound System ------
sound system initialized.
--------------------------------------
----- R_InitOpenGL -----
Setup X display connection
dlopen(libGL.so.1)
Initializing OpenGL display
Using XFree86-VidModeExtension Version 2.2
DGA DirectVideo Mouse (Version 2.0) initialized
Free86-VidModeExtension Activated at 640x480
Couldn't get a visual
dlopen(libGL.so.1)
Initializing OpenGL display
Using XFree86-VidModeExtension Version 2.2
DGA DirectVideo Mouse (Version 2.0) initialized
Free86-VidModeExtension Activated at 640x480
Couldn't get a visual
idRenderSystem::Shutdown()
Fatal X Error:
Major opcode of failed request: 105
Minor opcode of failed request: 0
Serial number of failed request: 38
BadValue (integer parameter out of range for operation)
Fatal X Error:
Major opcode of failed request: 2
Minor opcode of failed request: 0
Serial number of failed request: 42
BadWindow (invalid Window parameter)
Fatal X Error:
Major opcode of failed request: 4
Minor opcode of failed request: 0
Serial number of failed request: 43
BadWindow (invalid Window parameter)
Sys_Error: Unable to initialize OpenGL
sh-2.05b$

sblevin
07-05-2005, 12:54 PM
Doom3 dedicated server is running - a start perhaps?

sblevin
07-05-2005, 01:04 PM
GASP!....it will only run if I'm running in 24 bit colour depth ..... changing ....restarting X ...........
/compat/linux/bin/sh
/compat/linux/usr/local/games/doom3/doom3 .................

WE HAVE GAMING - repeat WE HAVE GAMING!

Doom3 is up and running!!!

I did it! I did it! I did it! I did it! I did it! I did it! I did it! I did it! I did it! I did it! I did it! I did it! I did it! I did it! I did it! I did it! I did it! I did it! I did it! I did it! I did it! I did it! I did it! I did it! I did it! I did it! I did it! I did it! I did it! I did it! I did it! I did it! I did it! I did it! I did it! I did it! I did it! I did it! I did it! I did it! I did it! I did it!

Now for the instructions and PBI so YOU can do it too : )

bhna
07-05-2005, 01:59 PM
congratulations!!!

dean_fry
07-05-2005, 04:12 PM
yeaaaaaaaaaah!!! your are my hero!!

maybe it will be posted on "linuxgames" :D

great work!!!!!

sblevin
07-05-2005, 05:21 PM
OK - Thanks guys :D :D :D :D :D :D

DO NOT go out and buy a copy of Doom3 yet based on my success - the game is a resource PIG and will run like a three legged dog uphill on a hot day, even on a GOOD machine. See below for details on getting the (huge) demo version to see if your system will even cope at all with this monster.

It's 2:30 am here and this is getting too complicated to reliably do while tired : )

The PBI will be easy - The trillion page epic on how to configure your system to get nvidia open gl support working with linux binary compatability is taking longer than I thought.

I simply can NOT make a pbi for the whole setup. Drivers have to be compiled, and their installation alters existing installations of other support packages. The usual dependancy crapola. If you all had my hardware maybe .......

But - for those of you that want to try this, here are some steps to prepare.

1. Back up all your work, configs, wallpapers, pbi downloads, the lot.

You may well (probably) trash your Xsetup and be left with NO gui, and be forced to re-install, and lose ALL your work/file/everything in the process.

If you are clever enough to put on a second install of pc-bsd that's good - that's what I did, but I had to manually create the partitions, install the GAG bootloader, and install another copy of PCBSD into the new partition and tell it NOT to install the PCBSD bootloader, and then use GAG to select what to boot from.

If you can do that without any worries good. "Normal" people can't organise that and will toast their entire hard disk and lose everything.

If you DO make a clean installation, do NOT install the nVidia Driver PBI or Linux Binary Compatability PBI. They will get in the way. If you have already done so, then they will have to be removed and that will undoubtably screw your system and leave you with NO GUI AT ALL! I am making instructions on how you "MIGHT" be able to set up an existing system, so dont uninstall anything yet.

You should probably wait till Kris and some of us work out a nice "automatic" way to do this.

2. Make sure you can read files from your CD ROM drive. I put a disk in, open the desktop "Computer Icon" and dbl click the CD icon - check it mounts, and you can copy files to your home drive (or desktop). To eject a CD you right click on the CD icon, select "Unmount" and then right click on the CD icon and slect "Eject". If all thats working - cool.

If you do NOT have a copy of the DOOM3 retail game, but want to try the demo - it's huge - about 463 MB download from

http://darkstar.ist.utl.pt/pub/games/do ... mo.x86.run (http://darkstar.ist.utl.pt/pub/games/doom3-linux-1.1.1286-demo.x86.run)

or

http://www.hup.hu/~trey/DOOM3/doom3-lin ... mo.x86.run (http://www.hup.hu/~trey/DOOM3/doom3-linux-1.1.1286-demo.x86.run)

You really MUST burn this to a CD, or you may have to download it again after you trash your system 8 times getting the NVidia thing set up.

If you DO have a copy of the DOOM3 retail CD's it's MUCH easier. I will make a <10MB PBI for you instead. You can copy the required files directly off the install CD's. You will need a serial number - mine was on the back of the manual, not the case like the install docs say, and I think the installer will verify the serial number online before you can play - so warezed ones are, as usual, a bad idea. Get the demo if you don't own it yet.

3. If you have an ATI card, research on whether it will configure OpenGL support for Linux Binary Compatability. This is essential, as this is a linux package, and will call to the Linux X11 support in the /compat folder.

If anyone knows about ATI cards and FreeBSD support, and how to get it working with /compat then please let us know.

PC-BSD will have to support this stuff out-of-the-box, so lets get it worked out.

Like I said - it's probably just best if you put this off for a while untill PC-BSD has a "native" way of dealing with this stuff.

sblevin
07-05-2005, 05:32 PM
Before I go to bed, one last thing. You will need to print out the instructions I post up tomorrow. If you can't get your printer to work in PC-BSD yet (don't worry - Kris is working on that as well - Isn't he good!), then organise with a friend who CAN print to print out the instructions and drive them at HIGH SPEED to your place : )

There is the real likelyhood that you will trash your Xwindows setup, and need to follow the instructions on how you (might) be able to get it back. If you do NOT have the instructions at hand, you are guarenteed to fail and lose your X GUI.

Can I stress that enough?

If you do NOT have the instructions at hand, you are guarenteed to fail and lose your X GUI. guarenteed to fail guarenteed to fail guarenteed to fail guarenteed to fail guarenteed to fail guarenteed to fail guarenteed to fail.

OK!

The printed instructions should at least give you a chance of recovering your GUI from the command line.

sblevin
07-06-2005, 09:52 AM
It seems I overreacted. I will work with the existing dependancy PBI's that are available, and keep the "compile it yourself" stuff away from sight for now - It may reappear if we run into problems.

I have started a new thread ->
http://www.pcbsd.org/forums/viewtopic.php?t=719
for this packages support - please do not clutter it with idle chat, it's for application specific support - Thank you

ps WELL! Fancy ME telling anyone not to clutter things up with idle chat! I'm the worst offender in all history I think : )