Duke Nukem 3d Screenshot Duke3d ported to linux

Yet an other port by icculus... Duke Nukem 3D is now playable under our favorite OS. ( Does this game really need a presentation anymore ;) ). Search for your old cd, download and enjoy!

"Hail to the King, baby!"

Thanks to all who submitted it, there were quite a few.

License: unknown
Requirements:

  • SDL
  • SDL_mixer
  • Duke3d Atomic Edition CD-ROM
  • Requires installation under DOS (dosemu or MS DOS)

Sound:Play in X:Play in Console:Multiplayer:Network Play:3D Acceleration:Source Available:
yesyesnoyesyesnoyes
Suggest an update

Comments

Damn that was fast! The source has only been out for a couple of days!
Re: wow posted by T-1000 on Apr 5 2003 12:11 AM
yes, this is impressive!
John Connor ain't here posted by anonymous on Apr 5 2003 2:38 PM
Go poke a porcupine.

And anot*@#$ --

OK, I admit, I am unable to make it work. I started playing with CVS version since it started (when even didn't compile), but even today I can't get anything more than: black screen, menu with strange colors, or 1-9 numbers (for weapons). I think my problem is bad duke3d.grp file, but it's from Atomic Edition! If anyone played duke3d in Linux, please post output of "md5sum duke3d.grp". Thanks in advance!
Re: Is it working for anyone? posted by anonymous on Apr 5 2003 10:10 AM
The md5sum for the group file from the killaton collection is:

22b6938fe767e5cc57d1fe13080cd522 duke3d.grp

and the size is 44356548 bytes. I don't know if it's the same as the original one, but maybe we'll be lucky ;).

Oh, and the game is working for me.

Re: Is it working for anyone? posted by Jacek Poplawski on Apr 5 2003 10:40 AM
Thank you for answer, I have exactly same duke3d.grp file, so problem is not there. I will check game on different computers.
Re: Is it working for anyone? posted by randallray on Apr 7 2003 3:37 PM
Got it to work but sound was terrible!
Re: Is it working for anyone? posted by anonymous on Apr 11 2003 6:33 PM
I finally got the game working properly. If you follow the instructions from the cvs site your most of the way there. the parts they dont say is the DUKE3D.GRP should be lower case...duke3d.grp. LOOKUP.DAT is upper....make sure you copy all the files from the testdata dir of the cvs download. the only other part to watch for is in the DUKE3D.CFG...make sure the NumBits is set to 16 (or maybe 8 as someone else pointed out). Thats all ive done and the game runs great now ;)

hmm I got it to compile on my slackware 9

I had to remove the newest gcc (gcc-3.2) and install the gcc of slackware 8 (gcc-2.9)
It compiled fine after I did that.
I removed gcc-2.9, and installed 3.2 again.

Oterwise it doesn't compile with gcc-3.2

It probably works now, I don't have the duke data cd near...

I got it working without using dosemu because I had a duke3d.cfg on my Pentium90 which is my $10 Ebay DOS game special computer! Here are my instructions, also posted on Linuxgames, and a link to download my duke3d.cfg

# mkdir /usr/local/games/duke3d
# mount /cdrom
# cd /cdrom/atominst
# cp -a * /usr/local/games/duke3d
# cd /usr/local/games/duke3d
# rm *.exe ten/*.exe ten/_*
# chown -R root.games *
# chmod -R ugo-x *
# chmod -R ug+rw *
# chmod ugo+x ten

Then drop in the duke3d.cfg and set it -rw-rw-r--

http://www.gyrodynamic.net/misc/duke3d.cfg

Re: Not bad for an Alpha (and quick!) posted by anonymous on Apr 24 2003 9:55 PM
Ce Jeu est superbe, je le conseille à tous. This game is super, you have need of that! Le son pour cette alpha est tout de même pas si pire ;-). The sound is not so good, but this is a good beginning.
Re: Not bad for an Alpha (and quick!) posted by anonymous on May 9 2003 9:17 PM
why do we need to install the windows setup files for ten??
At last I run it! Problem was... lookup.dat file. I removed bastard, and game is working now! Best FPS ever is now playable in Linux!!!
Since I can now pass the "Errors in GAME.CON" trouble, the game seems to run, the full screen goes black and then:

Checking music inits. Checking sound inits. RTS Manager Started. Adding DUKE.RTS. Using .RTS file:DUKE.RTS Loading palette/lookups. STUB: CONTROL_Shutdown (CONTROL_Shutdown, control.c:251)

Any more idea?

Re: Still not working posted by Jacek Poplawski on Apr 7 2003 3:26 AM
I spend 3 days trying to make it work, so now I will try to help others. You need files: DEFS.CON, duke3d*, duke3d.cfg, duke3d.grp, DUKE.RTS, GAME.CON, tmpsong.mid (it's created in game), USER.CON, and nothing more! md5sum for duke3d.grp is 22b6938fe767e5cc57d1fe13080cd522, it may work with different one, but for sure it works with that one. other md5sums are: 844c7525d96f7b1c048b288bbff36e50 DEFS.CON, d54ee955de154402587912fd9358b4de GAME.CON, b5871e48c07f0205608ee1a471071f99 USER.CON, 9d29f9673bbdb56068acf7645c13749c DUKE.RTS. Good luck!
Re: Still not working posted by anonymous on Apr 7 2003 7:11 AM
My md5sum for duke3d.grp is 00776bd66a285ace80341fd91028d1fd and it is also working. At the moment I don't have any music although it is turned on (sound effects are OK). I can play tmpsong.mid using timidity or playmid, maybe I'll do that before I jump into the game...
Re: Still not working posted by anonymous on Apr 7 2003 7:25 AM

I had the _exact_ same problem with (except the .CON trouble) earlier. Here is how I got it working:

I downloaded the source from CVS (_today_) and followed the instructions at icculus. At that point, the game still didn't work, it complained about not finding 'LOOKUP.DAT'. But when I changed the name on DUKE3D.GRP to duke3d.grp the complaint disappeared and the game works!

Re: Still not working posted by anonymous on Apr 7 2003 10:16 AM
That was it, thanks a lot...
Now on to make sound working...
Re: Still not working posted by abszisse on Apr 7 2003 8:08 AM
Had the same problems first. I converted everthing to lower case and GAME.CON to upcase and then it worked!
It's probably easier to get this working in Dosemu!
Re: Easier in Dosemu posted by Jacek Poplawski on Apr 7 2003 2:38 PM
I wrote long reply to your post, removed all vulgar words, then decided there is no point to send so short message.
As 4 me, it's easier to play using Vmware
When I enable sound in duke3d.cfg (by setting the Music and Sound device to "0" instead of "13", for example), the game stops on this:

Checking music inits.
Checking sound inits.

Another thing: whatever I set in the .cfg file about mouse (mouse-aiming and so one), not only the game doesn't take it, but it's overwriting the config-file with the old settings.

An idea, someone? ;p
Re: Sound and mouse issues posted by inva on Apr 8 2003 3:54 AM
About the sound stuff: Have you set "NumBits" to either 8 or 16? That did the trick for me.
Re: Sound and mouse issues posted by anonymous on Apr 8 2003 7:44 AM
I should have checked that, thanks a lot :)

But the mouse problem is still open...
Re: Sound and mouse issues posted by anonymous on Apr 8 2003 8:52 AM
Duke's voice is high-pitched: what an hilarious bug :)
Re: Sound and mouse issues posted by anonymous on Apr 8 2003 11:10 PM
Doh, this is now fixed in the latest CVS version. I was used to it :/
Re: Sound and mouse issues posted by anonymous on Apr 9 2003 3:16 AM
What is with the graphics? The game is black in black, no texture can be seen at all! Except weapon numbers and the spaceship model in E2L1 out the window, I can't see no shit!
Re: Sound and mouse issues posted by anonymous on Aug 4 2003 3:55 AM
Thanks for the post about NumBits 16! Before I did that the sound was terrible. Now it is perfect. Now the linux version is better than the original Windows version, because it doesn't need the Atomic Edition CD in the drive to run.
Re: Sound and mouse issues posted by anonymous on Dec 11 2004 12:46 AM
Everything works fine, excluding sound. :/ how to get this thing working? Thnx.
my experiences: No logo at the start, greenish screen goes to white, explosions are heard and after that screen goes to black... i have managed to launch into the game, but screen remains to be black, nothing appears on the screen except for numbers for weapons. i can hear sounds, but that's it.
[seva@krait duke3d]$ rpm -qa | grep SDL
SDL_image-devel-1.2.2-5
SDL-devel-1.2.5-3
SDL_mixer-1.2.4-7
SDL_mixer-devel-1.2.4-7
SDL_net-1.2.4-5
SDL_image-1.2.2-5
SDL-1.2.5-3
SDL_net-devel-1.2.4-5
config:
ScreenMode=1
ScreenWidth=640
ScreenHeight=480
Anyone else with same problems?
Re: Duke Nukem 3d posted by anonymous on Apr 8 2003 7:58 AM
updated version from cvs works now. oh, the memories...
Re: Duke Nukem 3d posted by anonymous on Apr 9 2003 1:57 AM
I have the very same problem you had, but it does NOT go away with the latest CVS version. I tried the Shareware version, this reportedly works for other people by now.

But I get a blank bright colored screen, which colorcycles to black, I hit enter and the game starts, I can play BLIND, hear all the sound, but I can't see a damn thing except for weapon numbers! HELP!

Tanker

More info to help reproduce error? posted by anonymous on Apr 10 2003 8:34 PM
Are you guys using the same dist? Or the same type of AGP card?
Re: Duke Nukem 3d posted by anonymous on Apr 10 2003 9:26 PM
i'm using redhat9, latest CVS definitely works, here's a list of files in my /usr/local/games/duke3d:
[root@krait root]# ls -lag /usr/local/games/duke3d/
total 50500
drwxr-xr-x 4 seva 4096 Apr 9 15:06 .
drwxr-xr-x 6 root 4096 Apr 9 23:10 ..
-rw-r--r-- 1 seva 738 Dec 17 1998 COMMIT.DAT
-rw-rw-r-- 1 seva 35596 Apr 2 03:39 DEFS.CON
-rwxrwxr-x 1 seva 1470625 Apr 9 14:39 duke3d
-rw-rw-rw- 1 seva 5157 Apr 10 17:14 duke3d.cfg
-rw-r--r-- 1 seva 49381007 Apr 26 1997 duke3d.grp
lrwxrwxrwx 1 root 10 Apr 9 00:37 DUKE3D.GRP -> duke3d.grp
-rw-r--r-- 1 seva 188954 Apr 26 1997 DUKE.RTS
-rw-rw-r-- 1 seva 277348 Apr 9 15:03 game0.sav
-rw-rw-r-- 1 seva 143504 Apr 2 03:39 GAME.CON
-rw-rw-r-- 1 seva 14882 Apr 2 03:39 gnu.txt
-rw-rw-r-- 1 seva 10174 Apr 2 03:39 LOOKUP.DAT
-rw-r--r-- 1 seva 2642 Jul 2 1998 modem.pck
-rw-r--r-- 1 seva 208 Sep 8 2001 Readme.txt
-rw------- 1 seva 7185 Apr 10 17:08 TMPSONG.MID
-rw-r--r-- 1 seva 6188 Jul 2 1998 ULTRAMID.INI
-rw-rw-r-- 1 seva 45409 Apr 8 11:54 USER.CON
By the way, midi never works for me, as my card is onboard nforce i810 thingie. Perhaps timidity will be implemented one day in CVS :)
Re: Duke Nukem 3d posted by anonymous on Apr 13 2003 12:57 AM
Tanker here again:

Works fine now, after lowercasing all files and modifying duke.cfg a lot.

By the way, 640x480 is not the correct aspect for the game. It should be 640x400 as the origianl res. is 320x200.

Re: Duke Nukem 3d posted by inva on Apr 16 2003 9:44 AM
Who cares about aspect ratio? As long as the game window covers the entire screen it's gonna look fine, no matter what resolution you use. The original DOS version also provided 640x480 and 800x600 screen resolutions.
Re: Duke Nukem 3d posted by anonymous on Sep 19 2003 8:33 AM
DONT use the con files in the test directory, they screw up no only the Linux version, but also the dos and win versions. Just build the binary and move it to the duke dir with duke3d.grp and run it.
Thanks everyone for your numerous posts here...with a combination of them I actually got the game to run! Fantasitc! Sound and all.

Question, has anyone gotten it to run in a higher resolution other than the default?

Re: Duke Nukem 3d posted by anonymous on Apr 10 2003 11:18 PM
in duke3d.cfg you can set higher res i'm sure :)
[Screen Setup]
ScreenWidth=1024
ScreenHeight=768
it's very slow though (athlong1666(2ghz) with 512mb ddr and compiling wine :)
Has anyone made free levels, gfx, sounds, so that we can play this without the need for the proprietary CD or shareware files? The Freedoom project has the right idea. A similar venture for Duke3D would kick ass. The original Duke3D had amazing gameplay, even when Quake1/2 had better gfx, Duke3D had awesome arcade-ish gameplay!
Re: Free? posted by anonymous on Apr 13 2003 4:56 AM

Has anyone made free levels, gfx, sounds, so that we can play this without the need for the
proprietary CD or shareware files? The Freedoom project has the right idea. A similar venture for
Duke3D would kick ass. The original Duke3D had amazing gameplay, even when Quake1/2 had
better gfx, Duke3D had awesome arcade-ish gameplay!


The thing is:
Most images,sounds and stuff are in the .grp file.
The original contains a lot more data (images,sound) than the shareware one.
So you'll have to edit the sharware or redraw every gfx (which is lots, lots of work)

You can find lots of levels on the internet
Search in google (duke3d levels) or create with the program called "build"
(it's in the duke3d/buildengine dir)

Hi All I compiled and run duke3d, and everything works fine (and even took me less than a day :) Now, I saw on the Linux duke3d homepage that there is an option to play network games, so I tried duke3d /help to see a list of all the options, and Indeed there is -net run a network game. The problem is, when I just run duke3d -net, the game runs normally (with no networking or multiplayer). So I tried duke3d -net duke3d.cfg, and got errors saying "bogus token" in duke3d.cfg. Has anyone succeeded in running this game in multiplayer (networking) mode ? or knows what the config file should look like ? 10x in Advance, Ynon
Re: duke3d networking posted by anonymous on May 10 2003 11:11 AM
I just tried it, too... I think the file you need is not duke3d.cfg but any other text file containing network information. I tried it with a file named "test" which had just my IP adress in it, but it didn't work either. Icculus says something about "setting up a multiplayer game involves editing text files and filling in IP adresses" on his homepage and I guess that's what he meant. So does anyone know how it works exactly?
Re: duke3d networking posted by anonymous on May 11 2003 2:25 AM
Okay, I just went through the source code ("mmulti.c", to be precise) and found out some interesting things:
The "-net" parameter needs a text file as an argument, which contains the following information:
INTERFACE [IP address] (probably yours, I don't know.)
MODE [SERVER or CLIENT or PEER] (at the moment, only "PEER" works so at this time, the whole line is optional)
ALLOW [IP address] -OR-
BROADCAST [number]
"Allow" will send a greeting message to [IP address] and try to connect to that computer. For more than two players, use more "Allow"-lines and IP addresses.
"Broadcast" will try to find the given number of players, and then (hopefully) start the game.
I couldn't try it out because at the moment I don't have Duke3D installed on another computer and I couldn't get the "fake deathmatch" (with bots) working. If anyone finds out more about this, please post it here.
I hope this information is correct and helpful.
Wansti
It works!! posted by anonymous on May 11 2003 3:32 AM
I tried it with two computers and the settings I mentioned above AND IT WORKED!
It was a bit slower than single player mode but it was playable. A few things to watch:
In the net config file, at least one of the computers had to use the "Allow" command. It worked with both computers using "Allow" plus the IP address of the other one, or with one using "Allow" plus IP and the other using "BROADCAST 1".
On one computer I experienced a bug which prevented the port from being freed, so for the second game I had to change the port number to get a connection. You can use another port number by adding ":[port]" to the IP addresses.
Hope it works for you! Happy dukematching!
Wansti
Re: duke3d networking posted by anonymous on Aug 25 2003 9:22 AM
Correction: It also worked with all computers using the BROADCAST token.
I've never really played Duke Nukem 3D, but I've played lots of RedNeck Rampage which is based on the Duke 3D engine. Has anyone tried getting RedNeck Rampage to work? From what I understand I should just be able to use the game data files, but Rampage does have a few things Duke didn't that could be a problem.
Runs like a charm and plays like in the old days! Go get it :)
It's good to be able to play Duke3D game on Linux now although I DO miss the Multi-Player stuff and the sound is extremly poor , in fact I turned it off because it was hurting my ears (even after experimentation with MixRate). Still , I found it impossible to make the sound work under Windoz too so I guess it's just that the software itself was so outdated that it is just become harder and harder to make it work fully on newer OSes.
Re: good, but not great. posted by anonymous on Apr 18 2004 10:53 AM
Heyy I just saw in earlier posting that with NumBits to 16 you can do some improvement on the sound and as a matter a fact, it's perfect with this modification to DUKE3D.CFG !!

I also see that multiplayer games should be possible now it's going up from GOOD to GREAT :-))

I have tried everything to get music working, but with no success. The sound works sine, just no music!! I wish they would give us a better idea how to set up the config file to play nicely with midi!!
Hi! The build engine & duke3d seemingly compiles from the files downloaded via CVS, I have the Atomic
edition, and the .CON files from CVS, with SDL-1.2.7, and gcc 3.3.2...but the game gives my a SDL parachute...It's noted that
icculus believes that duke3d might work on Solaris Sparc, though he explicitly says on the website that the game works on
Solaris x86...!
Any ideas how to get duke3d working on Solaris Sparc???
Thanks!

sparc% ldd DUKE3D
    libSDL-1.2.so.0 =>     /usr/local/lib/libSDL-1.2.so.0
    libpthread.so.1 =>     /usr/lib/libpthread.so.1
    librt.so.1 =>     /usr/lib/librt.so.1
    libSDL_mixer-1.2.so.0 =>     /usr/local/lib/libSDL_mixer-1.2.so.0
    libsocket.so.1 =>     /usr/lib/libsocket.so.1
    libnsl.so.1 =>     /usr/lib/libnsl.so.1
    libc.so.1 =>     /usr/lib/libc.so.1
    libstdc++.so.5 =>     /usr/local/lib/libstdc++.so.5
    libm.so.1 =>     /usr/lib/libm.so.1
    libdl.so.1 =>     /usr/lib/libdl.so.1
    libX11.so.4 =>     /usr/lib/libX11.so.4
    libXext.so.0 =>     /usr/lib/libXext.so.0
    libgcc_s.so.1 =>     /usr/local/lib/libgcc_s.so.1
    libaio.so.1 =>     /usr/lib/libaio.so.1
    libmd5.so.1 =>     /usr/lib/libmd5.so.1
    libvorbisfile.so.3 =>     /opt/sfw/lib/libvorbisfile.so.3
    libvorbis.so.0 =>     /opt/sfw/lib/libvorbis.so.0
    libogg.so.0 =>     /opt/sfw/lib/libogg.so.0
    libsmpeg-0.4.so.0 =>     /usr/local/lib/libsmpeg-0.4.so.0
    libmp.so.2 =>     /usr/lib/libmp.so.2
    libthread.so.1 =>     /usr/lib/libthread.so.1
    /usr/platform/SUNW,Ultra-2/lib/libc_psr.so.1
    /usr/platform/SUNW,Ultra-2/lib/libmd5_psr.so.1
sparc% ./DUKE3D
                   Duke Nukem 3D v1.4 - Atomic Edition
                   Copyright (c) 1996 3D Realms Entertainment                  

Using Setup file: 'DUKE3D.CFG'
STUB: CONTROL_ClearAssignments (CONTROL_ClearAssignments, control.c:209)
Compiling: 'GAME.CON'.
Including: 'DEFS.CON'.
Fatal signal: Bus Error (SDL Parachute Deployed)
sparc%
sparc% ls
CDROM.INI     DEFS.CON.ORG  DEMO3.DMO     DUKE3D        DUKE3D.GRP    LICENSE.DOC   SETMAIN.EXE   TENGAME.INI   USER.CON.ORG
COMMIT.EXE    DEMO1.DMO     DN3DHELP.EXE  DUKE3D.CFG    GAME.CON      LOOKUP.DAT    SETUP.EXE     ULTRAMID.INI
DEFS.CON      DEMO2.DMO     DUKE.RTS      DUKE3D.EXE    GAME.CON.ORG  MODEM.PCK     TEN           USER.CON

Re: help with Duke Nukem 3d on Solaris S posted by georgie on Jun 18 2004 12:04 AM
Hi! I recompiled the latest SDL libraries with gcc 3.3.2...

  • SDL-1.2.7
  • SDL_mixer-1.2.5
  • SDL_image-1.2.3

It looks like the duke3d binary looks for "lookup.dat" in lowercase...even though it complains for the uppercase one...

sparc% ./DUKE3D
                   Duke Nukem 3D v1.4 - Atomic Edition
                   Copyright (c) 1996 3D Realms Entertainment                  
Using Setup file: 'DUKE3D.CFG'
STUB: CONTROL_ClearAssignments (CONTROL_ClearAssignments, control.c:209)
Compiling: 'GAME.CON'.
Including: 'DEFS.CON'.
Including: 'USER.CON'.
Code Size:64832 bytes(1795 labels).
* Hold Esc to Abort. *
Loading art header.
Checking sound inits.
Checking music inits.
RTS Manager Started.
    Adding DUKE.RTS.
Using .RTS file:DUKE.RTS
Loading palette/lookups.



ERROR: File 'LOOKUP.DAT' not found.sparc%

After renaming "LOOKUP.DAT" to "lookup.dat" and running the binary, the screen blanks, and after pressing the ENTER key a couple time, and back to my screen, and the terminal shows the following output:

sparc% ./DUKE3D
                   Duke Nukem 3D v1.4 - Atomic Edition
                   Copyright (c) 1996 3D Realms Entertainment                  
Using Setup file: 'DUKE3D.CFG'
STUB: CONTROL_ClearAssignments (CONTROL_ClearAssignments, control.c:209)
Compiling: 'GAME.CON'.
Including: 'DEFS.CON'.
Including: 'USER.CON'.
Code Size:64832 bytes(1795 labels).
* Hold Esc to Abort. *
Loading art header.
Checking sound inits.
Checking music inits.
RTS Manager Started.
    Adding DUKE.RTS.
Using .RTS file:DUKE.RTS
Loading palette/lookups.


Map E1L1.map not found!sparc%


I'm using the PC's Atomic edition, and here's my directory...

sparc% ls
CDROM.INI     DEMO3.DMO     DUKE3D.EXE    LOOKUP.DAT    TENGAME.INI
COMMIT.EXE    DN3DHELP.EXE  DUKE3D.GRP    MODEM.PCK     ULTRAMID.INI
DEFS.CON      DUKE.RTS      DUKE3D.OLD    SETMAIN.EXE   USER.CON
DEMO1.DMO     DUKE3D        GAME.CON      SETUP.EXE     lookup.dat
DEMO2.DMO     DUKE3D.CFG    LICENSE.DOC   TEN
sparc%

Am I missing anything? I'm using Icculus' DEFS.COM, GAME.COM, USER.COM, and lowercase lookup.dat... =(

Thanks!



enjoy this as network game ! enjoy the cool , funny spells when you press key 1-10 on your keybard while playing..
is there any way to get music work in soundcards without integrated midi???
Re: What about midi music?? posted by anonymous on Dec 28 2006 9:23 AM
You could probably get it working through TiMIDIty. It's a software MIDI synthesizer. It should be in your distro's package repository.
Quich and dirty binary here: http://www.linuxquake.org/index5.html
Re: Binary posted by stevenaaus on Mar 31 2007 1:47 AM
P.S. If anyone knows much about why the game segfaults sometimes (especially with the devastator) please post at linuxquake.org,

Log in or register to rate this game or post a comment.