Author Topic: [Linux] nwn diamond (DVD) working with movies 64bit/32bit guide (Ubuntu 12.10)  (Read 716 times)

Legacy_vanquishedangel

  • Newbie
  • *
  • Posts: 19
  • Karma: +0/-0


                I used hipmeastro's post on this forum and copied much of it to make a new guide for use in ubuntu 12.10 64bit, however this should work for 32bit as well. Special thanks to Skildron as I got many of my fixes and such from reading his answers to peoples topics, wolfram who made the original guide, and many other people all over the net, as well as me for my time in trial and error '<img'>.



Some things in this guide are for 64bit (ia-32-libs) but this guide works for 32bit as well. Movies are working in 64bit! See below at bottom!

Also Kingmaker will not work because the one on the disk needs to authenticate on biowares website, that is no longer hosting for Neverwinter Nights, so I skipped those instructions but will update this guide if I find a way.

For some trouble shooting after installation check the bottom of this post under "Other Tweaks that helped me improve performance".

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


1. Install some dependancies that are needed.

Code:
sudo apt-get install libsdl1.2debian libsdl-sound1.2 libsdl-mixer1.2 libsdl-net1.2 libsdl-image1.2 libstdc++5 libx11-dev (ia32-libs ia32-libs-multiarch to if 64bit)


2. 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:
mkdir nwn

cd nwn


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

Code:
unzip /media/cdrom/Data_Shared.zip

unzip /media/cdrom/Data_linux.zip


4. 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:
unzip -o /media/cdrom/data/XP1.zip

unzip -o /media/cdrom/data/XP2.zip


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

Code:
wget http://nwdownloads.b...ientgold.tar.gz

tar -xzf ~/nwclientgold.tar.gz


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

Code:
wget http://nwdownloads.b...ienthotu.tar.gz

tar -xzf ~/nwclienthotu.tar.gz


7. Update to latest version (506 MB).

Code:
wget http://na.llnet.biow...t169_xp2.tar.gz

tar -xzf ~/English_linuxclient169_xp2.tar.gz


8. Run ./fixinstall from the destination directory.

Code:
./fixinstall


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

Code:
./nwn


10. If you get this message:

"nwmain: ../../src/xcb_lock.c:77: _XGetXCBBuffer: Assertion `((int) ((xcb_req) - (dpy->request)) >= 0)' failed.
Aborted"

- - Remove ./lib from LD_LIBRARY_PATH.

Code:
sed -i~ 's|\\./lib:||' nwn


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


1. Install NWMovies v4.0 RC1.

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

tar -xzvf nwmovies-latest.tar.gz



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

Code:
wget http://www.radgameto...kLinuxPlayer.7z

unzip BinkLinuxPlayer.7z

sudo chmod 755 BinkPlayer


3. Modify the 'nwn' startup script.

Code:
sed -i~nwmovies '\\|\\./nwmain|iexport LD_PRELOAD=./nwmovies.so' nwn


4. Optionally enable Screen Flickering at movie beginning/end fix:[/b]

Code:
sed -i '\\|nwmovies|aexport NWMOVIES_GRAB_HACK=1' nwn


5. Run NWN.

Code:
./nwn


6. You get this message:

"NOTICE: NWMovies: INI File written: Now exiting. This is perfectly normal!
NOTICE: Your next run of NWN should be complete, and include movies."

- - Run NWN a second time.

Code:
./nwn


Other Tweaks that helped me improve performance


1. Neverwinter Nights is not multithreaded so dual cores and hyperthreaded processors may cause performance issues as it does for many people. Also access to more memory will help shuddering as well

Solution:
Open your file manager and open the "nwn" folder. Right click "nwnplayer.ini" and select your text editor (mine is leafpad). Copy the text below and paste it under the [Game Options] section.

Client CPU Affinity=1 (hyperthreaded and dual cores + only)

Max Memory Usage=512 (or any amount up to 4096 mb if you have enough ram)


2. Enabling better graphics capabilities that are not always available within the game menu's.

Solution:
Open your file manager and open the "nwn" folder. Right click "nwn.ini" and select your text editor (mine is leafpad). Then choose options you want to enable.

example:(ATI cards only)

Replace the line "Enable Truform=0" under [Video Options] with "Enable Truform=1"to enable a more round appearance on round objects, if that line isn't there then just copy and paste "Enable Truform=1" without the quotes.


3. Possible permissions issues

Solution:
Highlight the "nwn" folder and right click it and select "properties". Select the permissions tab and change all options to "anyone" and click "ok". There will be some errors about symlinks that is normal.


4. Help I cant see my character

Solution:
Disable Creature environment mapping in "options->video options>advanced video options" in game or change "Enable CreatureEnvironmentMapping=1" to "Enable CreatureEnvironmentMapping=0" in the nwn.ini file inside you nwn folder. I don't have this issue but some people do


5. Missing gui layout file error

Solution
The data files off the disk were not fully copied, you will need to redo step 4 of installing nwn


6. Other sound options if sound doesn't work

export SDL_AUDIODRVERS=alsa

export SDL_AUDIODRVERS=pulse



Movies in 64bit!

1. You need to make sure you have the appropriate 32bit libs then try to symlink them in the nwn folder (see below if there is an error)

Code:
cd /home/user_name/nwn

ln -s /usr/lib/i386-linux-gnu/libX11.so.6 libX11.so. (32 bit will have to find where libX11.so.6 is located)

ln -s /usr/lib32/i386-linux-gnu/libSDL_gfx.so libSDL_gfx.so (32bit will have to find where libSDL_gfx.so is located)


2. Now you need to edit your nwn.ini.

Open your file manager and open the folder nwn, then right click the nwn.ini folder and pick your text editor. Under [Display Options] change the line "FullScreen=0" to "FullScreen=1" or add the line "FullScreen=1" if the option isn't there. Also add the line "AllowWindowedMode=0"


3. Now you need to edit your nwmovies.pl

Open your file manager and open the folder nwn and then nwmovies. Right click nwmovies.pl and pick you text editor. you will need to put a "#" symbol infront of the lines ENV{"BINK_SCALE"} = 1;, ENV{"BINK_SMOOTH"} = 1;, and ENV{"BINK_NOPERF"} = 1; so they look like this

#$ENV{"BINK_SCALE"} = 1;
#$ENV{"BINK_SMOOTH"} = 1;
#$ENV{"BINK_NOPERF"} = 1;

and add these lines if you are using a resolution of 1024x768 in game so the movies will be at same resolution.

#$ENV{"BINK_WIDTH"} = $1024;
#$ENV{"BINK_HEIGHT"} = $768;


4. You need to make sure that "binklib.so" is in your nwmovies folder.

Open your file manager and go to your nwn folder, then open your nwnmovies folder and make sure it is in there. If it isn't then you will need to download BinkLinuxPlayer.7z, decompress it and copy the file binklib.so to your /nwn/nwmovies folder.


5. If there was an error when trying to symlink the libSDL_gfx.so file then you need to download getlibs-all (not in repository, 64bit only!))

Code:
wget http://usablesoftwar...ibs-all-deb.pdf

Then delete the .pdf extension, it isnt a pdf, that is because wordpress didn't allow the .deb extension. Right click the resulting .deb file and install. Then you will need to install the libSDL_gfx.so file

Code:
getlibs -l libSDL_gfx.so

That will install the appropriate file and then you may symlink it. If it complains of permissions use sudo.
               
               

               


                     Modifié par vanquishedangel, 13 novembre 2012 - 06:59 .
                     
                  


            

Legacy_vanquishedangel

  • Newbie
  • *
  • Posts: 19
  • Karma: +0/-0
[Linux] nwn diamond (DVD) working with movies 64bit/32bit guide (Ubuntu 12.10)
« Reply #1 on: November 13, 2012, 06:19:55 am »


               My system specs are:

Computer: hpdc5750
Operating System: Lubuntu 12.10 64bit
Processor: amd 4800+ 2.5ghz dual core processor
Memmory: 8gigs ram
Graphics card: Saffire ATI Radeon HD 6450, 1gig vram

All software I have is from the repositories already in ubuntu, I have no added ones. I only have getlibs from the download mentioned above, my graphics are proprietary ones from the repositories.

My original guide is posted at http://ubuntuforums.....php?p=12346558 and I will update it with new things when I can.
               
               

               
            

Legacy_SciFiDude79

  • Newbie
  • *
  • Posts: 2
  • Karma: +0/-0
[Linux] nwn diamond (DVD) working with movies 64bit/32bit guide (Ubuntu 12.10)
« Reply #2 on: February 14, 2013, 10:23:25 pm »


               Thanks a lot for posting this guide.  I've been trying off and on for the past few years to get this working using the instructions in the sticky thread.  However, I could never get the videos to work until yesterday. Previously, I just ran the game in Windows because of the video issue, but I recently did away with Windows entirely, so that wasn't an option.  I followed your instructions and now the whole game works for me in Linux Mint 14 KDE 64-bit, including the videos. '<img'>

IMHO, this thread should be sticky because it's more comprehensive than the one that is sticky.
               
               

               


                     Modifié par SciFiDude79, 14 février 2013 - 10:25 .