PDA

View Full Version : Problem running GNU/Linux port of Duke 3D


HTH
08-24-2005, 02:54 PM
As the subject line already tells I have a problem running Duke 3D (“Atomic Edition”) via the GNU/Linux port from “icculus.org” (http://icculus.org/duke3d/). I was able to build the binary without encountering any problems, but when I try to run it, BUILDSDL tells me it fails to “set 0x0 video mode”. The entire output is:

Duke Nukem 3D v1.4 - Atomic Edition
Copyright (c) 1996 3D Realms Entertainment

STUB: CONTROL_ClearAssignments (CONTROL_ClearAssignments, control.c:218)
Compiling: 'GAME.CON'.
Including: 'DEFS.CON'.
Including: 'USER.CON'.
Code Size:64840 bytes(1794 labels).
* Hold Esc to Abort. *
Loading art header.
Checking sound inits.
open /dev/sequencer: No such device
Checking music inits.
RTS Manager Started.
Loading palette/lookups.
BUILDSDL: Failed to set 0x0 video mode!
BUILDSDL: SDL_Error() says [Invalid width or height].

Any idea, anyone?


hth,
HTH

TerminX
08-24-2005, 03:42 PM
Not sure what the problem would be, but icculus' Duke code hasn't been touched in forever. You're really a lot better off applying the Linux sound patch to JFDuke and using that instead. If I had to take a guess as to the cause of the current problem, however, I would guess that the version of Duke in icculus' CVS is expecting a different version of the SDL library.

kevingpo
08-24-2005, 03:58 PM
I get exactly the same too!

Except I also got:

Fatal signal: Floating Point Exception (SDL Parachute Deployed)

between the Checking sound inits. & Checking music inits. lines.

I also got after exactly the same output from yours:

*** glibc detected *** double free or corruption: 0x0850d6f0 ***
Aborted



Looks like something about incompatibility with the new C99 standards. I'll need more time to debug the code to find out what's wrong.

kevingpo
08-24-2005, 04:24 PM
OK! I got Duke3D to work (using icculus.org very first Duke3D source port that is cross-platformable to any platform).

Somehow it didn't read the Duke3d.cfg file properly. It didn't parse the screen width and height, and hence the chosen width and height is both 0, 0.

If you copied DUKE3D.CFG file directly to ~/.duke3d/ settings folder then it won't open it. This is linux/unix world and letter casing is senstive. Rename this to duke3d.cfg (mv DUKE3D.CFG duke3d.cfg). Then run again.

Enjoy http://forums.3drealms.com/ubbthreads/images/graemlins/wink.gif


PS: Erm... let me know if you get key controls work... :S