www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/02/28/13:25:23

Date: Sat, 1 Mar 1997 02:12:25 +0800 (GMT)
From: Orlando Andico <orly AT gibson DOT eee DOT upd DOT edu DOT ph>
To: Alan Wilson <alan DOT wilson AT wilshire DOT com>
cc: KaRNaGE <dlydiard AT linknet DOT kitsap DOT lib DOT wa DOT us>, djgpp AT delorie DOT com
Subject: Re: Quake Source Code
In-Reply-To: <2.2.32.19970228171722.006c7aa4@delilah>
Message-ID: <Pine.SGI.3.93.970301020541.2890A-100000@gibson.eee.upd.edu.ph>
MIME-Version: 1.0

On Fri, 28 Feb 1997, Alan Wilson wrote:

> I got that quake source.  What needs to be done for me to compile it under
> djgpp v2.01???

I am sorry to say, A LOT  8(
I also got that code, and it compiles perfectly, out of the
illegal-product-box, on my Linux PC. It uses X, unfortunately.. a big
problem. However, I checked the Makefile, and there's an option to make an
`squake' executable -- I suppose this is the one for SVGAlib. I haven't
had the time to check it out yet, but if that Makefile option is
functional, all you have to do is get a copy of SVGAlib for DJGPP.. and
you're (mostly) done!

Another problem is gonna be the sound -- the Linux quake binary forks off
a sound server and talks to it using Unix Domain Sockets to give commands.
Since DJGPP don't have a working fork or sockets, you'll have to integrate
the sound server code into the main binary.

Another problem (ick) is that Linux presents a uniform programming
interface to the sound card (the wave DAC is /dev/audio and you set
sampling rate, bit length, etc using ioctl()). Since DOS/DJGPP don't have
that, you'll have to hack together some sound code.. maybe you can recycle
some Allegro code here, I don't know..

The moral of the story (if you're using DOS) is: There ain't no free ride
:)

However, if like me you have a Linux box, and you have the Quake CD, you
can play all the levels on your Linux box, with sound, etc. The speed is
acceptable on a 16MB Pentium/100 (all I had for testing). And that's
running under X.

.-----------------------------------------------------------------.
| Orlando Andico                email: orly AT gibson DOT eee DOT upd DOT edu DOT ph |
| IRC Lab/EE Dept/UP Diliman   http://gibson.eee.upd.edu.ph/~orly |
|  "through adventure we are not adventuresome" -- 10000 Maniacs  |
`-----------------------------------------------------------------'

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019