: 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 SetupUnfortunately, 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.
NWMoviesNWMovies 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 moviesA 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 .