Duke Nukem Forever

Duke Nukem Forever

Not enough ratings
Setting Up and Playing DNF 2001 Build (Windows/Linux)
By apple
This guide will teach you how to setup the leaked Duke Nukem Forever 2001 build, so you can go kick alien a*s old-school style!
   
Award
Favorite
Favorited
Unfavorite
Downloading and Extracting the Build
First things first, you need get you hands on the build.

That's easy! Just go here[drive.google.com]

This release of this build is already pre-compiled, so you don't need to extract each folder individualy, all you need to do is extract a single folder contained inside the downloaded .7zip file and apply the patches.

Setting Up (Windows)
Speaking of applying the patches. This is a VERY important step so you better not skip it!

For the patches you are going to need to a different procedure depending on your Windows version.

So let's go over them, from newer to older.

Windows 11, 10 & 8
For Windows 11, 10 and 8 you only need to copy the folders included in the Megapatch main folder, and paste them in the October 26 folder.

If it asks you to replace some files just say "Yes to All".


(The October 26 folder can be found inside the main folder you extracted before.)

KNOWN ISSUE ON WIN 11: Check if game's executable is using your Integrated Graphics instead of your Graphics Card, since the former can cause graphical issues in the game, such as starting to a blank black screen. This issue affects mostly notebook users.

NOTE: If you end up experiencing intense graphical issues and heavy ammounts of acceleration/slowdown on the game, try installing This D3D8 Wrapper[drive.google.com] that was made originally for Postal 2.

(Might not work on other Windows versions that don't support Vulkan DXVK)

All of this information was pointed out on this guide:
https://gtm.steamproxy.vip/sharedfiles/filedetails/?id=2806453906
Windows 7 & Vista
For Windows 7 and Vista the setup is almost the same, the only difference is that you might need to remove some files after applying the Megapatch for it to work properly.

Those files being:
  1. d3d8.dll
  2. d3d8.on12.dll
  3. d3d8.wine.dll (only if removing the previous files didn't help)

(These files after being applied can be found on your System folder, which is inside the October 26 folder.)

After removing these files, you will need to download the latest version of WineD3D For Windows[fdossena.com]

Now just extract d3d8.dll and wined3d.dll in the System folder, the same one you just removed the previous files from.

Windows xp
Again the setup on xp is pretty similar to the one on 7, the only difference is that you HAVE to remove the files I mentioned above after applying the Megapatch, if you don't the game will have graphical issues that make it unplayable.

These files are again:
  1. d3d8.dll
  2. d3d8.on12.dll
  3. d3d8.wine.dll (you have to remove this one too)

(Again the files after applied can be found on your System folder, which is inside the October 26 folder.)

Now just download the last verison of WineD3D For Windows xp[fdossena.com], and just extract d3d8.dll, libwine.dll and wined3d.dll to the game's System folder.

NOTE: Even with said files removed you might still experience intense graphical issues and a heavy ammount of acceleration/slowdown on the game depending on your setup.

Windows 2000, ME & 98
For these older versions of Windows you shouldn't need to apply any patches for the game to work, however if you experience any issues try applying the Megapatch, and then remove the files I mentioned above.

Bugs, Fixes and Corrections
If you experience any issues or found fixes for the methods I showed above, post them on the comments and I will make sure to include them in this guide, while crediting you.
Setting Up (Linux)
Setting up and playing on Linux is a bit more complex, but once it is done it involves almost the same steps as before.

Wine Installation (Skip if you already have it)
First off, you are going to need to install Wine on your system, if you don't have that already. And that differs from distribution to distribution.

So here are the commands to install it on a wide range of distros.
Excute them in sequence.

Arch and Derived:
sudo pacman -S wine sudo pacman -S wine-mono wine-gecko

Ubuntu and Derived:
sudo dpkg --add-architecture i386 wget -nc https://dl.winehq.org/wine-builds/winehq.key sudo apt-key add winehq.key sudo add-apt-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ focal main' sudo apt-get update sudo apt-get install --install-recommends winehq-stable

Fedora Linux:
sudo dnf -y install dnf-plugins-core sudo dnf config-manager --add-repo https://dl.winehq.org/wine-builds/fedora/35/winehq.repo

Debian
sudo dpkg --add-architecture i386 wget -nc https://dl.winehq.org/wine-builds/winehq.key sudo apt-key add winehq.key deb https://dl.winehq.org/wine-builds/debian/ buster main sudo apt-get update sudo apt-get install --install-recommends winehq-stable

Ubuntu and Debian Wine installation guide[www.tecmint.com]
Fedora Wine installation guide[computingforgeeks.com]

Applying the Patch and Known Issues
Before you can launch the game you need to apply the Megapatch as stated in the Windows setup. Just copy the files from the Megapatch folder and put them on the October 26 folder.

When you first launch the game you are going to notice that the mouse input is behaving weirdly and has an intense acceleration making it impossible to play and navigate the menus. To fix that you will need to download a 32 bit .dll file.

This file is named dinput8.dll, and can be found here[www.dll-files.com]

REMEMBER TO DOWNLOAD THE 32 BIT VERSION OF THE FILE, IT SHOULD BE THE SECOND DOWNLOAD LINK ON THE WEBSITE

After downloading the .zip file, extract the .dll file on the System folder located at /October 26/System/

BUT WAIT! WE ARE NOT DONE YET!

So you extracted the .dll, now we have to install Lutris, if you have it already you can skip this step, but for those who don't, here it is.

First get Lutris[lutris.net]
Simply follow the installation steps for your distribuiton of choice.

Now you are going to add DNF as a new Lutris game, and configure the wine prefix.
Just follow the steps shown in this video:

Huge thanks to Xpander69 for the video tutorial.

At last just launch the game through Lutris, and you should be good to go.
Changing Resolutions and Other Configurations
If you already played around with the in-game options menu you probably noticed that changing some aspects like resolution makes the game crash.

What do we do to get around that? In this part we will teach you how!

The DukeForever.ini File
To get any big changes applied in the game you will need to get confortable messing around in this file.

Ok, but where is it?

It can be found on the Duke folder, inside the Players folder, which in turn is inside the October 26 folder.

So /October 26/Players/Duke/DukeForever.ini

Changing Resolutions and Fullscreen
Two lines needs to be changed so that you can set the game to your prefered resolution.

These lines are:
FullscreenViewportX=1920 FullscreenViewportY=1080

Or if you want to play in Windowed Mode:
WindowedViewportX=1920 WindowedViewportY=1080

To set the game permanently on fullscreen simply change this line:
From this: StartupFullscreen=False To this: StartupFullscreen=True

All of these lines are found on the [Engine.WindowsClient] section of the file.

For anything else just poke around the file and see what you can change!

The Default.ini File
Default.ini is a file similar to DukeForever.ini, the only different between the two is that changes made to it are applied to all profiles and not just the Duke profile.

So if for some reason you want to make changes to all your DNF profiles just use this file. It can be found found on /October 26/System/Default.ini

However this is not necessary, and for basic configuration changes you can just stick to the DukeForever.ini file or just use the developer console.
Console Commands and Cheats
To open the console in game simply press F12.

And for the cheats here is a list with all of them:

  • god - Godmode
  • allammo - Gives all weapons and ammo
  • ghost - Noclip
  • fly - Makes you fly

If you reached this part of the guide, you are ready to go and play this amazing piece of gaming history.

But above all else you are ready to:

KICK SOME A*S AND CHEW BUBBLE GUM, AND YOU ARE ALL OUT OF GUM!
Suggestions and Corrections
As mentioned before, if you have any suggestions, fixes or corrections, don't be afraid to put them in the comments bellow!
2 Comments
apple  [author] 19 Jun, 2023 @ 9:28pm 
Verify if you have any controllers or joyticks plugged in, unplug them if so.

In case you don't, try changing the compatibility mode settings in the wine configuration tool.
Setting it to Windows xp or 98 compatibility should work.

As a last ditch effort remove the D3D8Wrapper files and just keep the Megapatch and dinpunt8.dll files.

Hope that helps :)
Meteor Maniac 10 Jun, 2023 @ 1:23pm 
I am having a issue with dnf on wine. When I launch the game it just gives me the error "Failed to create DirectInput Keyboard device 80040111". Already added "dinput8.dll" and D3D8Wrapper, so I don't know...