Slashdot Mirror


Quake 2 Source Code Released Under The GPL

Masem (and many others) writes: "The source code for Quake 2 is now available until the GPL license. The .plan file for John Carmack has the details." The Id Software site is of course slammed with demand for the code. Hopefully other mirrors will be available.

13 of 371 comments (clear)

  1. Merry Christmas to all Programmers by Hangtime · · Score: 5, Informative

    I admit, I'm not a good programmer. I am a code monkey who is working to be a good programmer. One of the ways you become one is looking at good code. I have peaked at both Doom and Quake to just see what goes on in the head of one of the best programmers in the world. In doing so I have picked a few pointers without even realizing it until I did it. So thanks Mr. Carmack, you have given me a Christmas present, the gift of better programming.

  2. I have the source by thekernel32 · · Score: 5, Informative

    Go to my box at linuxhost.ccand you can download the quake2.zip file containing the source.

    I got it before the slashdot story hit...

  3. And its now in cvs by _generica · · Score: 5, Informative

    You can find the code in the quakeforge cvs:

    cvs -d :pserver:anonymous@cvs.quakeforge.net:/cvsroot/qua ke login (just hit enter)

    cvs -d :pserver:anonymous@cvs.quakeforge.net:/cvsroot/qua ke co quake2

  4. um, ok posted it to edonkey as a mirror :) by linzeal · · Score: 4, Informative
    quake2.zip

    If you don't already have Edonkey its got linux clients as well. :)

  5. Re:Wow, already!? by hexix · · Score: 4, Informative

    heh, actually I think you still do. Doesn't ID just open the source code to the 3D engines but keep the levels only available by buying the game. I thought that was the deal.

  6. QuakeSrc.org - shameless plug. by Ndr_Amigo · · Score: 5, Informative

    Ever since the Quake1 source release two years ago, a lot of intresting (and a lot of unintresting mind you) ports of the Quake engine have shown up. www.quakesrc.org reports on these new engines, as well as hosting some projects and a large set of tutorials. If anyone is intrested in coding off a quake-based engine, this is a good place to start. No Quake2 content yet, but give it a few days... www.open-quake.com is also a good site reporting on news in the Quake engine scene. End plug :)

  7. Re:Lint by Oily+Tuna · · Score: 5, Informative

    To be fair, if you drop the warning level back down to 3 (the VC default) you get

    quake2.exe - 0 error(s), 8 warning(s)

    lots of level 4 warnings occur in Microsoft's own headers (yes ... I think this is crap, it makes warning level 4 useless. MS - fix your SDK!)

    --
    Mmmmmmm ... sushi.
  8. Re:3.16 -vs- 3.20 by GiMP · · Score: 3, Informative

    I am pretty sure Zoid was working on Quake after 3.16, who has since left iD Software. I do not know any details, but this may be related to why the source is older..

    Doesn't matter much anyway, after it gets hacked for a month or two.. it will have the current bugs fixed, and of course a bunch of new ones to worry about :)

  9. Hey, every other company in the world, take notes! by GrouchoMarx · · Score: 5, Informative

    THIS is how a company makes money producing Free Software. Don't, at least not at the beginning. I'm sure RMS would have my head for this, but it's the truth.

    Consumer-oriented retail software and GPL code are simply incompatble as a business model. If Id released the source for RtCW today, they wouldn't make a penny on their retail sales. Somone would get the source code, edit one line, stick it on an FTP server, and make it available to the world free (as in beer), and most people would get it from there. There would be no legal reason to stop them, and every financial reason for them to do so. That goes for any consumer-targeted application, game, utility, or whatever. You just can't make money with consumers that way. (Consumers aren't interested in "selling support". If they need you to support it, then it was a bad program to start with in their minds.)

    Now here comes Id. They develop excellent code, and sell it and license it commercially like any other company. Then, once they've made their money back with a nice comfortable profit and moved on to bigger and better things, they open source the code. They're not doing anything more with it, so why should they prevent others from enjoying it? It's the original idea behind copyright in the first place! Author(s) get limited monopoly for a limited time so that they can make a living producing content, then it goes to the public domain. (OK, that would be more BSD license than GPL, that's a minor issue.)

    For the FSF and its supporters, economics aren't the issue, it's all principle and philosophy and idealism. That's all well and good, I agree with their ideals for the most part. But idealism must be tempered by reality to produce pragmatism sometimes. The Id model is the best way I've seen to make money in the consumer space while still supporting Free Software / Open Source (take your pick).

    Unless someone else has a better suggestion on how to make money in the consumer space with FS/OS code (remember, after the cash register the consumer doesn't want to ever have to talk to you), we should all bug companies to follow Id's excellent example. If they balk at the "lost revenue", just show them Carmak's twin Lamborginis. ;-)

    --

    --GrouchoMarx
    Card-carrying member of the EFF, FSF, and ACLU. Are you?

  10. Makefile fix -- compiling under linux by XoXus · · Score: 5, Informative

    Here's a patch to get the source to compile under linux -- Carmack forgot to use cl_newfx.c!

    http://members.optushome.com.au/davidsymonds/q2m ak efile.diff

  11. Re:optimization or beauty by Cryptnotic · · Score: 3, Informative

    Perhaps there used to be some other code there in a previous version that needed to be skipped over.

    By the way, the standard POSIX way of handling an interrupted system call is like this:

    again:
    status = select(....);
    if (errno == EINTR)
    goto again;

    Sometimes you don't want to screw around with a while loop.

    Another example is when searching for something:

    while (x) {
    for (i=0; iA; i++)
    for (j=0; jB; j++)
    for (k=0; kC; k++)
    if (something[i][j][k] == somethingelse)
    goto found_one;

    found_one:
    }

    The other way of doing it that I know is making an "int found=0;", then adding "&& (!found)" to each of those for loops and replacing the "goto" with a "found=1". But that's a pain in the ass. It's too much typing.

    Cryptnotic

    --
    My other first post is car post.
  12. Re:Responsible and Generous by HeUnique · · Score: 3, Informative

    Got a short memory, eh?

    Back then when Quake 3 was out for Linux, 3D graphics on Linux was laughable at best! there was barely any DRI implementation and there was XFree 3.3.6 (and no Xv extensions, no Xinerama, etc)

    John Carmack was among the guys who helped developed 3D drivers for Linux thanks to Matrox releasing specs. The trick that you had to do in order to reserve DMA with kernel booting... history...

    So he is more then just a game programmer, and he intend to help further when the next Doom will be out.

    --
    Hetz (Heunique)
  13. Re:Thanks by raduffy · · Score: 4, Informative

    3.21 Will be out soon, Timothee located it and repacked the zip. Should be up soon.

    robert...