It seems that you're using an outdated browser. Some things may not work as they should (or don't work at all).
We suggest you upgrade newer and better browser like: Chrome, Firefox, Internet Explorer or Opera

×
high rated
Neverwinter Nights works fairly well with Wine, but there is also a Linux native implementation.

Download this file:
https://docs.google.com/file/d/0B5kNyXljdFKganEzVDRrNGdKaEk/edit?usp=sharing

Install the game with Wine and unpack the tar.gz in the installation directory.
Go in the installation directory and check the installation files.
./fixinstall
If it succeeded you can play with ./nwn

OLDER METHOD, still available if the new one does not work.

In order to use the native version you should download those four files:
English_linuxclient169_xp2.tar.gz
nwclientgold.tar.gz
nwclienthotu.tar.gz
NWNEnglish1.69HotUUpdate.exe

Once done, follow this how-to. Here is md5sums for reference.
b021f0da3b3e00848521926716fdf487 English_linuxclient169_xp2.tar.gz
0a059d55225fc32f905e86191d88a11f nwclientgold.tar.gz
376cdece07106ea058d42b531f3146bb nwclienthotu.tar.gz
2213f9dae125fcda4196da03ebeedebb NWNEnglish1.69HotUUpdate.exe
9e5aec8eb2a8bea2626a51d36e72d12e setup_nwn_diamond-1.bin
ba9ed46b94eb84870e9e41eeab653859 setup_nwn_diamond-2.bin
5e07fe97815bf329eacd1f0a474128cc setup_nwn_diamond.exe

1- Download all the files and check the md5. In this how-to we assume you put them in ~/nwnlinux
2- Set WINEPREFIX to an non-existing directory and XDG_DATA_HOME to "$WINEPREFIX"/env (in this how-to we assume that the wineprefix is ~/wine);
3- execute `winetricks sandbox'. It is not necessary, but if you do you are sure wine won't install anything outside WINEPREFIX (i.e., icons);
4- Using Wine execute the GOG installer and install nwn somewhere (in this how-to we assume c:\nwn). After the installation execute also the official windows 1.69 patch;
5- create the linux installation directory (~/nwn in this how-to);
6- get the game data from NWN Wine installation:
$ cd ~/wine/drive_c/nwn
$ mv ambient chitin.key data dialog.tlk dmvault hak localvault modules music nwm override saves servervault texturepacks xp1.key xp2.key ~/nwn
7- unpack the three tar.gz files you downloaded, follow the order:
$ cd ~/nwn
$ tar xzf ~/nwnlinux/nwclientgold.tar.gz
$ tar xzf ~/nwnlinux/nwclienthotu.tar.gz
$ tar xzf ~/nwnlinux/English_linuxclient169_xp2.tar.gz
8- copy the key.
$ cd ~/wine/drive_c/nwn
$ cp -v nwncdkey.ini ~/nwn
9- Use the Bioware script to fix cases and verify playability.
$ cd ~/nwn
$ ./fixinstall
10- delete WINEPREFIX folder (await a little if you want the toolset)
$ rm -rf "$WINEPREFIX"

It should be it, ./nwn should start the game.
If it does not ensure you have 32 bit verson of libgl, libstdc++5 and
sdl_mixer and that direct rendering is working.

The toolset need to be used via Wine, so copy it too,

cp -vr nwmain.exe nwn.exe nwconfig.exe nwloader.exe nwserver.exe nwtoolset.exe nwupdate.exe Mss32.dll utils ~/nwn

set WINEPREFIX to a subdirectory of ~/nwn; we assume ~/nwn/wine and create the environment.
$ wineboot -b

Make believe you installed NWN in n:\
$ cd nwn/wine/dosdevices
$ ln -s ../../ n:

Create a .reg file with this content (ts.reg):

REGEDIT4

[HKEY_LOCAL_MACHINE\Software\BioWare]
[HKEY_LOCAL_MACHINE\Software\BioWare\NWN]
[HKEY_LOCAL_MACHINE\Software\BioWare\NWN\Neverwinter]
"Flavour"="Retail"
"GUID"="{7C503E58-B2BC-11D5-978A-0050BA84F5F7}"
"InstallType"=dword:00000002
"Language"=dword:00000000
"LastInstalledVersion"=dword:00000003
"Latest Installed XP"=dword:00000002
"Latest Installed XP Name"="Neverwinter Nights: Diamond Edition"
"Location"="N:\\"
"Version"="1.69"

[HKEY_LOCAL_MACHINE\Software\BioWare\NWN\Underdark]
"GUID"="{06C563F3-4403-449C-9D90-B29D755D6927}"
"Location"="N:\\"

[HKEY_LOCAL_MACHINE\Software\BioWare\NWN\Undrentide]
"GUID"="{B81ED410-73E2-471D-99CD-D7542B2F42D1}"
"Location"="N:\\"

Add it to the registry:
$ wine regedit ts.reg

And here it is, the toolset should be work as long you set WINEPREFIX
to that subdirectory. You might want to do a script that sets and executes.

Few more passages are necessary if you want movies or you want using
NWN in a multi user environment with separated settings and savegames.
But I will write about it only if there is request.
Post edited June 25, 2013 by etb
high rated
If someone wants the generic instructions:

1. Download files
2. Install NWN gog.com through wine (in a prefix would be better)
3. Save/backup/write-down cdkey on nwncdkey.ini
3. Unpack files (in order, and replacing overwriting every file)
i. nwclientgold.tar.gz
ii. nwclienthotu.tar.gz
iii. English_linuxclient169_xp2.tar.gz
4. Run fixinstall*
5. Profit

Sound problems? (I couldn't hear anything at all)

The issue is that the sdl library shipped is too old (I believe) so it would fail if your system has pulseaudio (which is almost every system). To overcome this, go and edit the nwn startup script and remove the "./lib:" part:

export LD_LIBRARY_PATH=./miles:$LD_LIBRARY_PATH

(Sed command is: sed -i~ 's|?./lib:||' nwn)

I haven't tried the toolset, but afaik your approach is correct.

* If you are just using the wine prefix installation the path generated will be too long causing the fixinstall script to fail around line 131. As long as the directory is writeable is fine, but if you want to make sure, you can create a symlink (I created one in ~/games/nwn that points to ~/.wine/prefix/gog/drive_c/blablabla)
Post edited November 18, 2011 by pablox_cl
Thank you pablox_cl

I also run Arch linux 64bit. However, I did not have two libraries needed for the game to run after using your instructions:
lib32-sdl
lib32-libpulse
lib32-alsa-plugins (not sure about this one, but it dident hurt installing it too)
Thank you. Works great. For sound one could also simply remove the lib directory.

Please do explain how to install movies too. On Debian I needed to install libsdl-mixer for Bink to work.

Can this be a sticky? I don't know how it works on gog, but if it's related in any way to post rating, Linux threads aren't gonna win any popularity contest around here soon, but they are still useful for some. Hosting the clients if legally possible would be nice too, BioWare looks kinda.. unstable now.

Note: Was going to ask, but I found a solution while editing. ALT+Enter switches between fullscreen and windowed, this allows you to alt+tab out of it.
Post edited January 02, 2012 by neant
BTW, for all Linux players out there, there is two Linux-fixes for the NWN which are worthwhile.

1. nwmouse

Adds hardware-accelerated mouse cursor support to the Linux version. Install if your mouse cursor movement is choppy. This is not so much problem anymore in modern computers, software mouse should be smooth enough. But if you have problems, you can try

[url=http://home.roadrunner.com/~nwmovies/nwmouse]http://home.roadrunner.com/~nwmovies/nwmouse[/url]/

2. nwmovies

Adds movie support to the game, so that all movies will be playing ingame. Great, but the installation & configuration can be little bit tricky.

[url=http://home.roadrunner.com/~nwmovies]http://home.roadrunner.com/~nwmovies[/url]/

Check the nwmovies link, there is also chat logging and per-user settings support fixes available.
Nice to see there are other people who cares about Linux.
I like nwuser from : [url=http://home.roadrunner.com/~nwmovies/nwuser]http://home.roadrunner.com/~nwmovies/nwuser[/url]/

Then you can put the base game in something like /opt/nwn and all your downloaded modules/haks/overrides into a .nwn directory in home. If you want to start fresh just wipe .nwn.
You can also use http://podgorny.cz/moin/UnionFsFuse
Just got it running yesterday, thanks for all the helpful info!

I love it when games run natively...
FWIW: I played the game nicely in the native version (C2D 1.6GHz, 1GB RAM, GMA950, Arch 32bit) until the beginning of chapter 2, where it would always segfault inside the tavern where you start out. Sometimes I could finish quite a number of dialogues before it would crash, sometimes it would crash after leaving the room in which I wake up.

Save games are compatible with the wine version, but the performance is horrible sometimes (mostly when transparency is shown or many people are around). I believe it was already quite bad with the native version.
avatar
johkra: FWIW: I played the game nicely in the native version (C2D 1.6GHz, 1GB RAM, GMA950, Arch 32bit) until the beginning of chapter 2, where it would always segfault inside the tavern where you start out. Sometimes I could finish quite a number of dialogues before it would crash, sometimes it would crash after leaving the room in which I wake up.

Save games are compatible with the wine version, but the performance is horrible sometimes (mostly when transparency is shown or many people are around). I believe it was already quite bad with the native version.
Do you have more information (which 3rd party libraries you were linking in, whether you were using the SDL that comes with it or native SDL)?

A lot of performance and stability problems are caused by using the built in SDL; but if you followed pablox_cl's instructions after "Sound Problems?" then you wouldn't be.
There is also issues with the older versions of nwmovies shipped with the nwlinux_beta.zip package.

I've played through the whole game, expansions, and many fan modules, and while there has been points in the past I've run into consistent seg faults, I'd found solutions for all of them.

Arch 32bit, on a Core 2 Duo with an X1400 using the radeon open source r300g drivers.
I used the system native libraries (no shipped libraries) and since it runs without problems on wine, I just gave up trying to work around the segfaults. What did you do to avoid them?

Performance is similarly bad as KOTOR (Steam/wine), but ultimately still playable and enjoyable. The Intel integrated graphics are simply bad and I don't expect much better performance.
avatar
johkra: I used the system native libraries (no shipped libraries) and since it runs without problems on wine, I just gave up trying to work around the segfaults. What did you do to avoid them?

Performance is similarly bad as KOTOR (Steam/wine), but ultimately still playable and enjoyable. The Intel integrated graphics are simply bad and I don't expect much better performance.
The solutions mentioned in my previous post are the only ones still relevant. Years ago I had to be careful about which versions of the drivers I used, and I sometimes exported particular LIBGL drivers.

For full disclosure, I'm using nwusers, nwlogger, the latest nwmovies, and nwmouse. I also have http://aur.archlinux.org/packages.php?ID=15571 installed but I don't think NWN needs it.

I have anti-aliasing off, at a resolution of 1024x768 with all other graphics options maxed except shiny water.
64bit gentoo user here with troubles

did the following
3. Save/backup/write-down cdkey on nwncdkey.ini
3. Unpack files (in order, and replacing overwriting every file)
i. nwclientgold.tar.gz
ii. nwclienthotu.tar.gz
iii. English_linuxclient169_xp2.tar.gz
replace nwncdkey.ini
4. Run fixinstall*


the menu runs, however if i try to make a new game, i get the following error message : "could not open file because it was using a newer version of the toolset and/or newer game resources"

the game is supposed to be executed with /nwn and not ./nwmain right?
Before unpacking, did you copied

ambient chitin.key data dialog.tlk dmvault hak localvault modules music nwm override saves servervault texturepacks xp1.key xp2.key

from the windows install?