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
/!\: This thread is not kept up-to-date anymore, please go to the following one to get the latest links and instructions, or for any kind of feedback on the scripts:
[./play.it] Install the Neverwinter Nights games on Linux

-----

Hello fellow Debian users, Ubuntu lovers and Mint freaks!

Here you’ll find a script allowing you to turn your .exe installer of Neverwinter Nights Diamond into a .deb package, allowing to install it through DPKG and remove it through any APT front-end (apt-get, aptitude, synaptic, etc.).
The game installed via this package will not use WINE but the official Bioware Linux client.

First thing first, here you can download the script:
GOG release 2.0.0.15: http://www.dotslashplay.it/scripts/play-neverwinter-nights_gog-2.0.0.15.sh
(updated on 2015-08-03)

Following instructions are for the English version of the game. For installers of other languages, go to the dedicated post.

1. Download the script, then put in a same directory the script and the GOG .exe installer (setup_nwn_diamond_2.0.0.15.exe, setup_nwn_diamond_2.0.0.15-1.bin & setup_nwn_diamond_2.0.0.15-2.bin);

2. In the same directory, download the following archives that will provide the script with the necessary files to build the Linux client:
nwclientgold.tar.gz
nwclienthotu.tar.gz
English_linuxclient169_xp2.tar.gz

3. Check the script dependencies. To run, this script needs the following packages to be installed on your system:
fakeroot, innoextract, icoutils

4. Open a terminal in the directory containing the script, then run it via the following command:

sh ./play-neverwinter-nights_gog-2.0.0.15.sh
 
That’s it! The script will take a couple minutes to work its magic, and end by giving you the commands to launch as root to install the freshly built .deb package.

-----

advanced usage
language selection
movies support

-----

Any return, be it a bug report, a suggestion, a request, a demand for clarification, an insult or a simple "thank you" is welcome in this thread. Requests for similar scripts for other GOG games should go via the chat or in the dedicated thread:
https://www.gog.com/forum/general/linux_todays_debian_game_compatible_with_ubuntu_mint_steamos_etc

I hope you’ll enjoy these scripts as much as I enjoy writing and tweaking them ;)

-----

Here you go for more supported games!

-----

2015-08-03: movies support added as an option
Thanks to kilobug who wrote the code for this option!
options management done via switches (--prefix=) instead of variables (PREFIX=), based on kilobug’s code
a new option has been added: '--help'

2015-07-30: support for the Spanish version of the game added
Thanks to DebianLinuxero for requesting it!
script’s target checksums for .exe/.bin files updated
Thanks to BezZeMad for pointing out the silent update of the GOG installers!
Post edited September 02, 2018 by vv221
If you renamed your GOG installer, the script will not find it automatically. You have to give it the path to the archive as an argument in order for it to work. This can allow you to run the script without the need to copy the installer around.
Here is an example:
sh ./play-neverwinter-nights_gog-2.0.0.15.sh ~/Downloads/setup_nwn_diamond_2.0.0.15.exe
 
You can set different options while running these scripts to define some of its behaviours. Here comes the list of these options, with the default option in bold characters.

--checksum=md5,none
By default, the script will check the installer integrity through md5sum. If you want to bypass this check for any reason, set this option to 'none' while launching the script:
sh ./setup_nwn_diamond_2.0.0.15.exe --checksum=none
 
--compression=none,gzip,xz
By default, the final .deb package is built without compression to speed up the process. You can use gzip or xz compression by setting this option to the adequate value.
Example to build a xz-compressed .deb package:
sh ./setup_nwn_diamond_2.0.0.15.exe --compression=xz
 
--prefix=/usr/local,any absolute path
By default, the .deb package will install the game data under '/usr/local'. If you want to install it under another path, you can by setting this option to the relevant path. Only an absolute path can be defined this way.
Example to install the game under '/opt/nwn':
sh ./setup_nwn_diamond_2.0.0.15.exe --prefix=/opt/nwn
 
To read a summary of these options, just launch the following command:
sh ./setup_nwn_diamond_2.0.0.15.exe --help
Post edited August 03, 2015 by vv221
It would be great if the installer supports Spanish version.
avatar
DebianLinuxero:
I’m going to give it a try. I’ll keep you tuned to my progress ;)

EDIT: I found the Spanish Linux client, so it is now just a matter of a couple days before I release a fully tested version of this script adapted to a Spanish game.
Post edited July 30, 2015 by vv221
I've just tried your script and I'm getting MD5 errors on all of the GoG files. As it's an issue with all of them (and not the Bioware Clients) I assume that the installers have changed somehow since you made the script (either that or I'm really unlucky!). I've contacted GoG to see whether they can give me the md5 sums for the current installers.

I do have one query about the script: Is it possible to enter a custom CD key and get that to work with the premium modules? (I've got a spare boxed copy and it would be nice to install it on my other machine to do mufti-player games with friends).

Thanks for taking the time to make this, I'm eagerly anticipating playing NWN natively on my Linux machine.
avatar
BezZeMad: I've just tried your script and I'm getting MD5 errors on all of the GoG files. As it's an issue with all of them (and not the Bioware Clients) I assume that the installers have changed somehow since you made the script (either that or I'm really unlucky!). I've contacted GoG to see whether they can give me the md5 sums for the current installers.
I’m going to check this. You can bypass the check by launching the script like this:

CHECKSUM=none sh ./play-neverwinter-nights_gog-2.0.0.15.sh
Are you using the English 2.0.0.15 installers? The script don’t recognize the other versions yet.

EDIT: You’re right, the NWN installers have seen a silent update, here are the new md5 sums:
2b6bec0df8d2f1755876407069f6ae43 setup_nwn_diamond_2.0.0.15-1.bin
db2c1e75b087e43fa5895bcc70fca8b9 setup_nwn_diamond_2.0.0.15-2.bin
e7d063a2c892519dc431fc84c3611a65 setup_nwn_diamond_2.0.0.15.exe
I’ll update the script and post here when it’s done. Meanwhile you can use it with the "CHECKSUM=none" tweak, or edit the values the script is checking against (lines 55, 57 & 59 of the script).

EDIT-2: Script updated with the new target checksums.

-----
avatar
BezZeMad: I do have one query about the script: Is it possible to enter a custom CD key and get that to work with the premium modules? (I've got a spare boxed copy and it would be nice to install it on my other machine to do mufti-player games with friends).
You can change the keys the game will use by editing the file ~/.config/neverwinter-nights/nwncdkey.ini (this file will be created when you launch the game for the first time).
avatar
BezZeMad: Thanks for taking the time to make this, I'm eagerly anticipating playing NWN natively on my Linux machine.
You’re welcome, it’s a pleasure to write these scripts, as is sharing them ;)
Post edited July 30, 2015 by vv221
Script’s target checksums for .exe/.bin files updated.
Thanks to BezZeMad for poiting out the silent update to the GOG installers!
avatar
DebianLinuxero:
Support for the Spanish version of the game has been added to the script.
That was quick!
Thanks for checking that, the only way I could see of doing so would be to download the files again. As my internet connection is really slow it takes me over 3 hours to download the 1.5gb installer! I assume the update's due to support for Windows 10, strange that they've kept the same version number though.

EDIT: Just installed and it boots and runs fine. Thank you!
I have 1 more little query about the game though. Did Bioware ever release the Toolkit for Linux? If so where can I find it?
Post edited July 31, 2015 by BezZeMad
avatar
BezZeMad: I have 1 more little query about the game though. Did Bioware ever release the Toolkit for Linux? If so where can I find it?
They didn’t. I’m going to think of a way for my script to build two packages instead of one:
_the game, playable through the native client
_the editor, runnable through WINE

Of course, I’ll send you a PM once it’s done ;)
I've just tried the script with the Spanish version.

It works very well.

Thanks for doing all this.









PS : Is there any package I could install to get videos work?
avatar
DebianLinuxero: Is there any package I could install to get videos work?
You can try Sude’s build of NWMovies rebuilt to use mpv instead of BinkPlayer:
https://www.gog.com/forum/neverwinter_nights_series/modern_patch_for_neverwinter_nights_native_linux_version/post6

Install it under ~/.local/share/games/neverwinter-nights and you should be good to go.

I plan to add a way to automatically install it with a single command from the package built by my script, I’ll send you a chat message when it’s done ;)
avatar
vv221: I plan to add a way to automatically install it with a single command from the package built by my script, I’ll send you a chat message when it’s done ;)
That would be a brilliant addition to the script. I'm not too fussed about the Toolset personally, it was great fun, but not having it isn't the end of the world. If you do find a way of adding perhaps you could make it an option in the script? That way those who don't want any WINE on their system could just get the native game working.
avatar
BezZeMad: If you do find a way of adding perhaps you could make it an option in the script? That way those who don't want any WINE on their system could just get the native game working.
There’s actually no need to provide an option here (but I could add one anyway): the script will build both packages, but if you just want to play the game there’s no need to install the toolset package. Of course, only the toolset package would depend of WINE, not the game one. (none of them needs WINE during the building process)

nwmovies support has the priority on my list by the way ;)
Post edited July 31, 2015 by vv221
avatar
vv221: nwmovies support has the priority on my list by the way ;)
I made a first shot of the script with nwmovies support, for the French version only (will port it to the English version once it's validated). It's on http://kilobug.net/gog/play-neverwinter-nights_gog-2.1.0.19.sh

Here are a few key points on my version :

1. It uses the mpv version, not the binkplayer version.

2. Movie support is disabled by default, you've to add --with-nwmovies to enable it. If not present it'll display a warning.

3. The script doesn't download the archive automatically (as with other archives).

4. You need a working gcc toolchain for i386 in order to build it, I added a quick check of some dependencies if --with-nwmovies is enabled, but I might have forgotten some of the dependencies.