Video Games Duke Nukem Forever Source Code Leaked!

Discussion in 'Gaming' started by BakaMattSu, Oct 8, 2003.

  1. BakaMattSu

    BakaMattSu ^__^
    Staff Member

    Joined:
    Feb 16, 2001
    Messages:
    4,871
    Likes Received:
    122
    Head on the heels of the Half-Life 2 leakage, hackers tried to one-up each other, and were able to break into 3D Realm's network and get a copy of the source code to the long-awaited Duke Nukem Forever.

    Here is a RARE LOOK at the entire listing of the source code!!

    here's the actual code:

    Code:
    // #include "build.h"
    // #include "quake.h"
    // #include "quake2.h"
    // #include "prey.h"
    // #include "unreal.h"
    // #include "quake3.h"
    // #include "unrealtournament.h"
    // #include "ut2003.h"
    // #include "ut2004.h"
    #include "hl2.h"
    
    void menu () {
    printf ("Select option:\n");
    printf (" 1) Play Duke Nukem Forever\n");
    printf (" 2) Check internet for updates\n");
    printf (" 3) WHAT THE HELL IS THAT?!?\n");
    printf (" 4) Exit Duke Nukem Forever\n");
    }
    
    int main (void) {
    int i = 0;
    char *build = "4094930"; // increase by 1 with each compile
    
    while (1) {
    printf ("Duke Nukem Forever v1.01a Build %s\n\n", build);
    
    menu ();
    
    scanf ("%d", &i);
    
    if (i == 1)
    printf ("\n\nPlease check the internet for updates first.\n\n");
    
    if (i == 2)
    printf ("\n\nNo internet connection detected!\n\n");
    
    if (i == 3)
    printf ("\n\nOh, thats just the Half-Life 2 source.\n\n");
    
    if (i == 4) {
    printf ("\n\nBuy Max Payne 2!\n\n");
    exit (0);
    }
    }
    } 
    Hehe. Well, so you hafta be a coder to really find this funny, but I did, so :p. ^^

    They've seen quite some progress since some time ago, when the code looked like:

    Code:
    #include <iostream>
    int main()
    {
    // you walk around and shoot stuff and it will be the best game ever
    cout << "Welcome to DNF" ;
    }
    I stole these from here. :D
     
    #1
  2. Nephilim_X

    Nephilim_X New Member

    Joined:
    Sep 19, 2002
    Messages:
    4,477
    Likes Received:
    154
    Dule Nukem Forever: The Diakatana of the new millenium.
     
    #2
  3. Teddz

    Teddz Sexy Swedish Love ♥

    Joined:
    Dec 8, 2002
    Messages:
    3,501
    Likes Received:
    136

    LOL!!! :D
     
    #3
  4. SaberJ2X

    SaberJ2X Moderator
    Staff Member

    Joined:
    Aug 29, 2002
    Messages:
    2,079
    Likes Received:
    114
    LOL!! BUILD ENGINE o_O that is OOOOOLLLLLDDDDD..... like around DOS time
     
    #4
  5. SaberJ2X

    SaberJ2X Moderator
    Staff Member

    Joined:
    Aug 29, 2002
    Messages:
    2,079
    Likes Received:
    114
    10 print "Welcome to DNF!!"
    20 print "Select option"
    30 print "single player"
    31 if "y" goto 70 if "n" goto 40
    40 print "multiplayer"
    41 if "y" goto 80 if "n" goto 50
    50 print "options"
    51 if "y" goto 90 if "n" goto 60
    60 print "exit"
    61 if "y" end
    62 if "n" goto 20
    70 if "31" is "y" goto 100
    .... AAHh good old basic days..
    your brain was the 3d accelerator

    PATCH MY BUGGY BASIC CODE...
    it's open source
     
    #5
  6. BakaMattSu

    BakaMattSu ^__^
    Staff Member

    Joined:
    Feb 16, 2001
    Messages:
    4,871
    Likes Received:
    122
    SYNTAX ERROR: LINE 31 ;)

    Yep, Build is a very ancient engine. But so is the beginning date of DNF development. It's one of those games they were previewing when I was still in high school, but has been delayed so many times it's not funny. :p

    "We'll release Duke Nukem Forever THIS year for sure!

    Honest! We really mean it!

    Stop laughing! It's gonna revolutionize FPS gaming!

    ....

    Well, okay, so we've decided to overhaul the engine...

    ....

    But next year for sure!"
     
    #6

Share This Page