Author Topic: [Linux] Install Diamond Edition, Original Edition + 1.69 Update + NWMovies  (Read 2828 times)

Legacy_HipMaestro

  • Hero Member
  • *****
  • Posts: 2849
  • Karma: +0/-0


               : 11/16/2008:
This is an updated version of Wolfram's previous guide for Installing Neverwinter Nights Diamond Edition For Linux - revised for the Final v1.69 Update and also including instructions for NWMovies!  Also provided is a link to the procedure to install the 3-disc Original NWN Edition. (2012-01-25)

Editor's Note: Due to the limitations of the message formatting, backslashes have been represented in the following code expressions with a question mark "?".  Please substitute a backslash character (where applicable) at each occurrence before you execute the code.

To install the Diamond Edition (assuming DVDs automatically mount at /media/cdrom):

1. Create a directory where you wish to install Neverwinter Nights (the destination directory). Neverwinter Nights Diamond requires 4.6 GB of free hard disk space.

Code:

[color=#FFFF00]mkdir nwn[/color]
[color=#FFFF00]cd nwn[/color]

2. Unzip Data_Shared.zip from Diamond DVD into the destination directory. Unzip Data_linux.zip from Diamond DVD into the destination directory.

Code:

[color=#FFFF00]unzip /media/cdrom/Data_Shared.zip[/color]
[color=#FFFF00]unzip /media/cdrom/Data_linux.zip[/color]

3. Unzip data/XP1.zip from Diamond DVD into the destination directory (overwriting all). Unzip data/XP2.zip from Diamond DVD into the destination directory (overwriting all).

Code:

[color=#FFFF00]unzip -o /media/cdrom/data/XP1.zip[/color]
[color=#FFFF00]unzip -o /media/cdrom/data/XP2.zip[/color]

4. Download nwclientgold.tar.gz (7.2 MB) and extract it into the destination directory (overwriting all).

Code:

[color=#FFFF00]tar -xzf ~/nwclientgold.tar.gz[/color]

5. Download nwclienthotu.tar.gz (37.7 MB) and extract it into your nwn directory, overwriting all.

Code:

[color=#FFFF00]tar -xzf ~/nwclienthotu.tar.gz[/color]

6. Update to latest version (506 MB).

Code:

[color=#FFFF00]tar -xzf ~/English_linuxclient169_xp2.tar.gz[/color]

7. Run ./fixinstall from the destination directory.

Code:

[color=#FFFF00][b]./fixinstall[/b][/color]

8. To run Neverwinter Nights, run ./nwn or ./dmclient from the destination directory to run the player client or DM client respectively.

Code:

[color=#FFFF00][b]./nwn[/b][/color]

9. If you get this message:

Code:

[color=#FF0000]nwmain: ../../src/xcb_lock.c:77: _XGetXCBBuffer: Assertion `((int) ((xcb_req) - (dpy->request)) >= 0)' failed.[/color]
[color=#FF0000][b]Aborted[/b][/color]

- - Remove ./lib from LD_LIBRARY_PATH.

Code:

[color=#FFFF00]sed -i~ 's|?./lib:||' nwn[/color]

Neverwinter Nights™ Kingmaker Setup

Unfortunately, the premium modules are only available as a Windows installer on the Diamond DVD, so we must use Wine to run it. A registry patch is required to tell the installer where NWN is installed. The installer is linked (or copied) to the NWN directory so it won't try to install the Windows patch which would break the Linux installation of NWN.

1. Install Wine.

Code:

[color=#FFFF00]sudo apt-get install wine[/color]

2. If present, remove (or rename) wine configuration directory.

Code:

[color=#FFFF00]rm -fr ~/.wine[/color]

3. Run winecfg then cancel, to create configuration directory.

Code:

[color=#FFFF00][b]winecfg[/b][/color]

4. Link drive letter to nwn directory (must be current working directory).

Code:

[color=#FFFF00]ln -s $PWD $HOME/.wine/dosdevices/n?:[/color]

5. Create registry patch.

Code:

[color=#FFFF00]cat nwn.reg  nwn.reg[/color]
[color=#FFFF00][b][HKEY_LOCAL_MACHINE?Software?BioWare?NWN?Neverwinter][/b][/color]
[color=#FFFF00][b]"Location"="n:???"[/b][/color]
[color=#FFFF00][b]EOF[/b][/color]

6. Apply registry patch.

Code:

[color=#FFFF00]regedit nwn.reg[/color]

7. Link (or copy) KingmakerSetup.exe to nwn directory.

Code:

[color=#FFFF00]ln -s /media/cdrom/KingmakerSetup.exe [/color]

8. Run KingmakerSetup.exe to install the Premium Modules.

Code:

[color=#FFFF00]wine KingmakerSetup.exe[/color]

9. Remove obsolete files.

Code:

[color=#FFFF00]rm -f KingmakerSetup.exe nwn.reg 'premium/uninst Neverwinter Nights(TM) Kingmaker.exe'[/color]

To install the Original NWN Edition (i.e. the set of 3 CD-Rom discs):

Follow the instructions furnished by Skildron listed below

NWMovies

NWMovies puts the movies back into the Linux client just like they are on the Windows clients.

1. NWMovies v4.0 RC1 depends on libx11-dev - X11 client-side library (development headers). The Bink Video command line Player for x86 GNU/Linux depends on libstdc++5 - The GNU Standard C++ Library v3.

Code:

[color=#FFFF00]sudo apt-get install libstdc++5 libx11-dev[/color]

2. Install NWMovies v4.0 RC1. (Note: Link changed from original post.)

Code:

[color=#FFFF00]wget http://home.roadrunner.com/~nwmovies/nwmovies/nwmovies-latest.tar.gz[/color]
tar -xzvf nwmovies-latest.tar.gz

3. Install the Bink Video command line Player for x86 GNU/Linux.

Code:

wget http://www.radgametools.com/down/Bink/BinkLinuxPlayer.zip
[color=#FFFF00]unzip BinkLinuxPlayer.zip[/color]
[color=#FFFF00]chmod 755 BinkPlayer[/color]

4. Modify the 'nwn' startup script.

Code:

[color=#FFFF00]sed -i~nwmovies '?|?./nwmain|iexport LD_PRELOAD=./nwmovies.so' nwn[/color]

5. Optionally enable Screen Flickering at movie beginning/end fix:

Code:

[color=#FFFF00]sed -i '?|nwmovies|aexport NWMOVIES_GRAB_HACK=1' nwn[/color]

6. Run NWN.

Code:

[color=#FFFF00][b]./nwn[/b][/color]

7. You get this message:

Code:

NOTICE: NWMovies: INI File written: Now exiting. This is perfectly normal!
[color=#FF0000]NOTICE: Your next run of NWN should be complete, and include movies.[/color]

- - Run NWN a second time.

Code:

[color=#FFFF00][b]./nwn[/b][/color]

Tested on Ubuntu.
--
Wolfram Ravenwolf
(Stefan Daniel Schwarz)

NWMovies Issue 01: Skipping movies

A fix furnished by Skildron  on 9/3/2011...

"I switched the kde desktop effects off and through this disabled the composite manager. Lo and behold, the intro movies are playing fine again."
               
               

               


                     Modifié par HipMaestro, 25 janvier 2012 - 08:20 .
                     
                  


            

Legacy_Selene Moonsong

  • Jr. Member
  • **
  • Posts: 86
  • Karma: +0/-0
[Linux] Install Diamond Edition, Original Edition + 1.69 Update + NWMovies
« Reply #1 on: November 02, 2010, 09:08:46 am »


               Cleaned up some and stickied
               
               

               
            

Legacy_cokeCan

  • Newbie
  • *
  • Posts: 22
  • Karma: +0/-0
[Linux] Install Diamond Edition, Original Edition + 1.69 Update + NWMovies
« Reply #2 on: November 07, 2010, 03:05:23 am »


               The link is wrong for installing nwmovies, it should be,

wget http://home.roadrunn...s-latest.tar.gz

tar -xzvf nwmovies-latest.tar.gz



The rest works fine (putting in the backslashes)



Coke

               
               

               
            

Legacy_HipMaestro

  • Hero Member
  • *****
  • Posts: 2849
  • Karma: +0/-0
[Linux] Install Diamond Edition, Original Edition + 1.69 Update + NWMovies
« Reply #3 on: November 13, 2010, 12:03:20 am »


               

cokeCan wrote...
The link is wrong for installing nwmovies, it should be,
wget http://home.roadrunn...s-latest.tar.gz
tar -xzvf nwmovies-latest.tar.gz

The rest works fine (putting in the backslashes)

Coke

Corrected 11/12/2010. Tx.
               
               

               
            

Legacy_Kithera

  • Newbie
  • *
  • Posts: 2
  • Karma: +0/-0
[Linux] Install Diamond Edition, Original Edition + 1.69 Update + NWMovies
« Reply #4 on: November 19, 2010, 09:50:18 pm »


               A few thoughts:

  • First and formost, thank you so much for putting this together. Before I found this, I was only able to find very dated information. This worked extremely well, with only very minor tweeks.
  • On my machine (Asus EEE1015 w/Ubuntu 10.04), the bink movie player would appear to freeze after playing a movie, requiring me to switch to another virtual terminal and kill the process to continue. Removing the local lib directory (./lib) in the nwn script corrected the issue.
  • While I have yet to experiment with the details, the open source 7-zip application can read the Kings Maker installer directly, allowing the install to simply be a series of file extractions. It's a bit easier than messing with wine.
  • I added a "cd /install/directory" to the begining of the nwn script so that it would work nicely when called from anywhere. This allowed me to add it to the menu as an application. I also extracted the icon from the windows exe using IconsExtract www.nirsoft.net/utils/iconsext.html. I then used the Gimp to convert from .ico to .png.
 
               
               

               
            

Legacy_doctoren

  • Newbie
  • *
  • Posts: 2
  • Karma: +0/-0
[Linux] Install Diamond Edition, Original Edition + 1.69 Update + NWMovies
« Reply #5 on: January 31, 2011, 08:06:45 am »


               I'm having a problem with NWMovies. For some reason it will not show every second movie after launch. So I see the Atari and WotC logos and the intro but not the Bioware and Floodgate logos. The movies are playing but the screen just remains black. This I could live with but it seems like none of the movies will play while in game. Starting SoU will just hang at Loading area... screen while the movie is playing. Pressing esc or waiting for the movie to complete will proceed to the game. The same will happend when playing from the movies submenu. The picture and cursor will freeze and will return to normal upon pressing esc or waiting for the movie to complete.

There are some errors in the nwmovies.log but they seem to occuring for all movies.
ERROR: ld.so: object './nwmovies.so' from LD_PRELOAD cannot be preloaded: ignored.
NOTICE: ZoomSurface functions unavailable. The error was: libSDL_gfx.so: cannot open shared object file: No such file or directory

Any ideas?

Just for the record I installed the game and expansions following the instructions available at nwn.bioware.com/downloads/linuxclient.html
               
               

               
            

Legacy_HipMaestro

  • Hero Member
  • *****
  • Posts: 2849
  • Karma: +0/-0
[Linux] Install Diamond Edition, Original Edition + 1.69 Update + NWMovies
« Reply #6 on: January 31, 2011, 06:16:55 pm »


               

doctoren wrote...
I'm having a problem with NWMovies.... etc

This topic was originally created just to port useful "How-to" information over from the legacy forum and has been slightly modified since that event.

I recommend posting this as a separate topic in the Tech forum or it will likely get missed by most of the Linux users.  Also, if the problem is related to drivers and/or hardware, you will need to post your full specs and in that case, this is not the place to resolve those issues.  To emphasize the OS being addressed I recommend using the "[Linux]" prefix in the title.

Should you get a satisfactory clarification/fix for your problem in a separate post, you could edit your original post in this thread if you felt it is directly related to the Linux installation procedure.

In any case, I hope you are able to resolve this issue quickly.
               
               

               


                     Modifié par HipMaestro, 31 janvier 2011 - 06:19 .
                     
                  


            

Legacy_konjad

  • Newbie
  • *
  • Posts: 9
  • Karma: +0/-0
[Linux] Install Diamond Edition, Original Edition + 1.69 Update + NWMovies
« Reply #7 on: February 02, 2011, 12:33:09 am »


               

While I have yet to experiment with the details, the open source 7-zip application can read the Kings Maker installer directly, allowing the install to simply be a series of file extractions. It's a bit easier than messing with wine.




I have tried it but unfortunately even though I have installed modules that way DRM won't let me play them. It says that it cannot be authenticated.
               
               

               
            

Legacy_Skildron

  • Sr. Member
  • ****
  • Posts: 421
  • Karma: +0/-0


               Edit on 2011-07-22: Added in the download links for spanish and italian patch files.

These are the download links for the latest NWN Linux client patches and resource files, since the Bioware servers are still down:

English patch 1.69 for NWN with HotU
English patch 1.69 for NWN with SoU
English patch 1.69 for plain NWN

German patch 1.68 for NWN with HotU
German patch 1.68 for NWN with SoU
German patch 1.68 for plain NWN

French patch 1.68 for NWN with HotU
French patch 1.68 for NWN with SoU
French patch 1.68 for plain NWN

Spanish patch 1.68 for NWN with HotU
Spanish patch 1.68 for NWN with SoU
Spanish patch 1.68 for plain NWN

Italian patch 1.68 for NWN with HotU
Italian patch 1.68 for NWN with SoU
Italian patch 1.68 for plain NWN

Neverwinter Nights resource files v1.29
Be careful, download size is about 1.2 GB!

Linux client Files for plain NWN 1.29

Linux client files for 1.62 international

German resource files for V1.29

French resource files for V1.29

Spanish resource files for V1.29

Italian resource files for V1.29

With this you should be able to download all you need. The 1.69 patch never got released for languages other than English, so you will have to go with the English patch for 1.69 which works flawlessly with the Linux client. Then download the community provided 1.69 dialog.tlk French version, German version or Italian version and replace the English version provided by the 1.69 patch - that's about it.

HTH
Greetings
Skildron
               
               

               


                     Modifié par Skildron, 22 juillet 2011 - 08:01 .
                     
                  


            

Legacy_HipMaestro

  • Hero Member
  • *****
  • Posts: 2849
  • Karma: +0/-0


               Aprecio mucho, Skildron!

I will copy this into the general thread on locating patches so we are covered if/when the admins sticky that one.

Hip
               
               

               
            

Legacy_Djes

  • Newbie
  • *
  • Posts: 2
  • Karma: +0/-0
[Linux] Install Diamond Edition, Original Edition + 1.69 Update + NWMovies
« Reply #10 on: September 05, 2011, 04:03:53 am »


               Good instructions, worked like a charm for me.
               
               

               
            

Legacy_Kjeldo

  • Newbie
  • *
  • Posts: 2
  • Karma: +0/-0
[Linux] Install Diamond Edition, Original Edition + 1.69 Update + NWMovies
« Reply #11 on: September 08, 2011, 12:46:42 pm »


               The latest download of the linux binkplayer seems to include source/header files, will it now be possible to 'kill' the 'last?' nwmovie/nwn bug (music not playing when entering the menu first time after playing the intro)?
Well, I actually don't care (I am 60+), but a lot of younger former win$ users do.
               
               

               


                     Modifié par Kjeldo, 08 septembre 2011 - 04:09 .
                     
                  


            

Legacy_SpaceSimba

  • Newbie
  • *
  • Posts: 2
  • Karma: +0/-0
[Linux] Install Diamond Edition, Original Edition + 1.69 Update + NWMovies
« Reply #12 on: December 23, 2011, 03:22:22 am »


               Just wanna mention, when/if it asks for a cd key, CAPS LOCK IS THE DEVIL.
               
               

               
            

Legacy_Starfire91

  • Newbie
  • *
  • Posts: 4
  • Karma: +0/-0
[Linux] Install Diamond Edition, Original Edition + 1.69 Update + NWMovies
« Reply #13 on: January 09, 2012, 01:58:40 pm »


               where could I find a similar guide for the simple 3 CD installation?
               
               

               
            

Legacy_Skildron

  • Sr. Member
  • ****
  • Posts: 421
  • Karma: +0/-0
[Linux] Install Diamond Edition, Original Edition + 1.69 Update + NWMovies
« Reply #14 on: January 09, 2012, 03:15:16 pm »


               There is no direct way AFAIK to install NWN from the original 3 CD version on a Linux system. One possibility is the use of wine, then move the nwn directory out of ~/.wine to any location you like and install the Linux client into that nwn directory.

The second possibility is to use the Loki installer. You can download it here. Choose the correct version. For download of all other resources, look further up in this thread for the appropriate links.

HTH
Greetings
Skildron