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

×
low rated
jero puta
avatar
kilobug:
First thank you for the script, I’ll test it shortly and upload it if it works here as it works for you ;)

And *big* thanks for what is a good sample code for options management, that will allow me to get rid of $PREFIX, $COMPRESSION & $CHECKSUM for more user-friendly switches (--prefix='/some/path', --compression='none|gzip|xz' & --checksum='md5|none' or something like this).
instructions for the Spanish version of the game:

1. Download the script, then put in a same directory the script and the GOG .exe installer (setup_nwn_diamond_spanish_2.0.0.15.exe, setup_nwn_diamond_spanish_2.0.0.15-1.bin & setup_nwn_diamond_spanish_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
nwclienthotuintl.tar.gz
Spanish_linuxclient168_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 --lang=es
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.
To add movies support to the Linux client, you first need to install the following packages:
_32-bit system: gcc, libelf-dev, libsdl1.2-dev
_64-bit system: gcc, gcc-multilib, libelf-dev:i386, libsdl1.2-dev

In addition to the archives listed in step 2. of the instructions in the first post, download the following one:
nwmovies-mpv.tar.gz

Then, add the adequate option to the command given in step 4.:
sh ./play-neverwinter-nights_gog-2.0.0.15.sh --with-nwmovies
Post edited August 04, 2015 by vv221
I've just check the new additions to the script.

It works well with videos and Spanish version.

Thanks.
avatar
DebianLinuxero:
That’s nice to know, especially as the Spanish version is the less tested on my side (I understand well only English and French).

Now to work on the editor support… It might not be added before a little while, I’m currently working on rewriting my old script to put them to the same quality level than the NWN one. And there’s quite a lot of them ;)

Plus I’m working on scripts for a very well-known turned-based strategy games series in a fantasy universe…
Well, let’s say it’s a time-consuming project, but seeing you people using the results and enjoying them is a great reward!
Just tested the new script on Ubuntu MATE 15.04 and it works beautifully. Having the movies is really nice and makes the game feel a lot more polished. It might be worth mentioning that mpv by default binds escape to come out of fullscreen view. So if you want to skip the movies you need to use q not esc.

Apart from that it's absolutely brilliant. thanks!
avatar
BezZeMad: It might be worth mentioning that mpv by default binds escape to come out of fullscreen view. So if you want to skip the movies you need to use q not esc.
That’s right. I’m going to play a bit with nwmovies, and maybe make my own custom build that could support multiple media players (mpv, mplayer & vlc come to mind) with more "intuitive" key bindings.
avatar
BezZeMad: Apart from that it's absolutely brilliant. thanks!
The nwmovies implementation has been done by kilobug, he’s the one deserving your thanks ;)
Post edited August 06, 2015 by vv221
Thank you for your time helping the Linux community. I tried running your script on a fresh install of Linux Mint 17.2 64bit and am getting the following error:

nwn@nwn-LinuxMint-17 ~/NWN $ sh ./play-neverwinter-nights_gog-2.0.0.15.sh
Checking dependencies…

Warning:
Movies handling disabled; add --with-nwmovies to enable it.

Game language set to: en
Checksum method set to: md5sum
Compression method set to: none
Installation prefix set to: /usr/local

Looking for target files…
./play-neverwinter-nights_gog-2.0.0.15.sh: 574: ./play-neverwinter-nights_gog-2.0.0.15.sh: realpath: not found
Using
./play-neverwinter-nights_gog-2.0.0.15.sh: 144: ./play-neverwinter-nights_gog-2.0.0.15.sh: realpath: not found
Using
./play-neverwinter-nights_gog-2.0.0.15.sh: 145: ./play-neverwinter-nights_gog-2.0.0.15.sh: realpath: not found

Error:
/home/nwn/NWN/setup_nwn_diamond_2.0.0.15-1.bin: file not found.
It must be located in the same directory than setup_nwn_diamond_2.0.0.15.exe for this script to find it

However everything appears to be in the correct directory:
nwn@nwn-LinuxMint-17 ~/NWN $ ls -l
total 3298128
-rw-r--r-- 1 nwn nwn 506025948 Sep 15 10:48 English_linuxclient169_xp2.tar.gz
-rw-r--r-- 1 nwn nwn 15933440 Sep 15 10:42 nwclientgold.tar.gz
-rw-r--r-- 1 nwn nwn 39611339 Sep 15 10:42 nwclienthotu.tar.gz
-rwxr-xr-x 1 nwn nwn 324902344 Sep 15 10:59 nwnenglish1.69hotuupdate.exe
-rw-r--r-- 1 nwn nwn 26558 Sep 15 10:41 play-neverwinter-nights_gog-2.0.0.15.sh
-rw-r--r-- 1 nwn nwn 1565205888 Sep 15 10:26 setup_nwn_diamond_2.0.0.15-1.bin
-rw-r--r-- 1 nwn nwn 924749183 Sep 15 10:25 setup_nwn_diamond_2.0.0.15-2.bin
-rwxr-xr-x 1 nwn nwn 802176 Sep 15 10:22 setup_nwn_diamond_2.0.0.15.exe

Do you have any suggestions of what may be causing the problem?
Post edited September 15, 2015 by mveloz
avatar
mveloz: (…)
Looks like the 'realpath' command is not available on you system. On Debian it is provided by the 'coreutils' package, but it seems that it’s not the case on your system.

Try the following command, and if it actually installs a package give another try to the script afterwards:
sudo apt-get install realpath
avatar
mveloz: (…)
avatar
vv221: Looks like the 'realpath' command is not available on you system. On Debian it is provided by the 'coreutils' package, but it seems that it’s not the case on your system.

Try the following command, and if it actually installs a package give another try to the script afterwards:

sudo apt-get install realpath
avatar
vv221:
That was it. I haven't completed the full install since I was testing on a VM at work but it got to the point of requesting the CD keys so I think I am really close. I'll confirm once I can install at home and update this post.

Thank you!
I got a chance to complete the install at home and everything seems to be working great! Thank you for you work and assistance on this. As a possible future enhancement, might be nice to have an option to install CEP? :)

Anyway, thank you very much!
Post edited September 16, 2015 by mveloz
avatar
mveloz: As a possible future enhancement, might be nice to have an option to install CEP? :)
A nice idea, I’ll see if I can do something about it ;)
avatar
vv221: version française

-----

This script will only work on Debian and other .deb-based distributions (Ubuntu, Linux Mint, SteamOS, etc.). For a general purpose archive you should try the one built by Ganni1987.

-----

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
avatar
vv221:  
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!
Thank you very much!

I really love this game, and to finally be able to run it in linux without wine really makes me happy :D. I also saw your instruction for Heroes of Might and Magic III, definitely going to try that later.

Cheers..!!
avatar
janet_ulung: (…)
You’re welcome!

Please come back to share your thoughts after trying these scripts. User feedback is my only way to improve them ;)