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

Legacy_Starfire91

  • Newbie
  • *
  • Posts: 4
  • Karma: +0/-0
[Linux] Install Diamond Edition, Original Edition + 1.69 Update + NWMovies
« Reply #15 on: January 19, 2012, 05:38:55 pm »


               Right, but it seems bioware has removed the guide that (i'm sure once there was) explained how to install the nwn base pack on linux. Perhaps some "wolfram's" or similar name?
Around the net, all the links towards the official bioware linux installation guide just send to bioware's index.. pretty useless, and I couldn't manage to find the guide anywhere... Pretty annoying.
               
               

               
            

Legacy_HipMaestro

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


               

Starfire91 wrote...
Right, but it seems bioware has removed the guide that (i'm sure once there was) explained how to install the nwn base pack on linux. Perhaps some "wolfram's" or similar name?
Around the net, all the links towards the official bioware linux installation guide just send to bioware's index.. pretty useless, and I couldn't manage to find the guide anywhere... Pretty annoying.

What you see here is all that ever existed about Linux install, simply copied over from Wolfram's original sticky (it's clearly explained in the opening paragraph of this guide) and reformatted to this message board before the legacy knowledge base "rug" was pulled out from under the community.  In addition to that, others have provided updates for resources/links that have disappeared over the months following the transition. AFAIK, Bioware never provided any Linux details... only members from community did (like Wolfram).

Since I am NOT a Linux owner myself and cannot help with getting NWN to operate on it (I just grabbed the info quickly before it went *poof* to post it here), any information which can make the installation and performance more helpful I would be more than happy to edit into the original post.

Since THIS topic was never intended to solve installation problems, I recommend starting a new topic, provide your full system & hardware specs, what you have already tried and a detailed description of the exact problem.  You'll have a better chance of getting a response from other Linux users if you preface the title with the label "[Linux]".
               
               

               


                     Modifié par HipMaestro, 19 janvier 2012 - 06:38 .
                     
                  


            

Legacy_Skildron

  • Sr. Member
  • ****
  • Posts: 421
  • Karma: +0/-0
[Linux] Install Diamond Edition, Original Edition + 1.69 Update + NWMovies
« Reply #17 on: January 19, 2012, 10:37:06 pm »


               

Ok, since I updated the bioware guide on the legacy boards on how to install the linux client from an existing and up to date windows install, I will try to rewrite it. You will only need this if you have the original nwn on three CD-ROM, for the Diamond version look in the first post of this thread.

You can install nwn and both its extensions on any Linux box using wine if you don't have an existing windows install. The guide below works for both an existing windows install of nwn or a fresh one through wine.

To begin with, here is an archived version from www.waybackmachine.org of the original bioware guide to install the NWN Linux client: Click here.

Now to some other files and dirs, in addition to the ones mentioned in the guide above you should copy as well:
database/
docs/
erf/
movies/ (since nwmovies exists)
scripttemplates/
tlk/
utils/ (these can be used with wine)
nwncdkey.ini (saves you the need to enter them anew)
xp1.key
xp2.key
xp2patch.key
NWNHordes_Manual.pdf (move it to the docs folder)

After copying this files and dirs, first you need to make sure some files that may be there are removed:


rm -f patch.key data/patch.bif xp1patch.key data/xp1patch.bif

Next, you will have to download some files if you have not already done so - use the download links below. You can look in this post for further Linux related dowload as well.

You will need:
Linux client Files for plain NWN 1.29
Linux client files for 1.62 international
English patch 1.69 for NWN with HotU (given that you have HotU or both SoU and HotU)

Extract them in this order into your your nwn dir on your Linux system:


tar -xvzf nwclient129.tar.gz
tar -xvzf nwclienthotuintl.tar.gz
tar -xvzf English_linuxclient169_xp2.tar.gz

Next run ./fixinstall

Finally, edit the nwn script in your favorite text editor and remove the ./lib statement from then line that starts with export LD_LIBRARY_PATH= and you should be ready to go.

Greetings
Skildron


               
               

               


                     Modifié par Skildron, 11 mai 2015 - 11:39 .
                     
                  


            

Legacy_AndrzejL

  • Newbie
  • *
  • Posts: 19
  • Karma: +0/-0
[Linux] Install Diamond Edition, Original Edition + 1.69 Update + NWMovies
« Reply #18 on: March 11, 2012, 10:13:57 pm »


               

HipMaestro wrote...
4. Modify the 'nwn' startup script.

Code:


sed -i~nwmovies '?|?./nwmain|iexport LD_PRELOAD=./nwmovies.so' nwn

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

Code:

sed -i '?|nwmovies|aexport NWMOVIES_GRAB_HACK=1' nwn

6. Run NWN.


Hi guys!

When running the sed commands I get errors:

[andrzejl@icsserver NWN]$ sed -i~nwmovies '?|?./nwmain|iexport LD_PRELOAD=./nwmovies.so' nwn
sed: -e expression #1, char 1: unknown command: `?'
[andrzejl@icsserver NWN]$ sed -i '?|nwmovies|aexport NWMOVIES_GRAB_HACK=1' nwn
sed: -e expression #1, char 1: unknown command: `?'
[andrzejl@icsserver NWN]$


But I think I kind of understood what it was suppose to do so I entered the lines manualy and modified the nwn file to look like this:

#!/bin/sh

# This script runs Neverwinter Nights from the current directory

export SDL_MOUSE_RELATIVE=0
export SDL_VIDEO_X11_DGAMOUSE=0

# If you do not wish to use the SDL library included in the package, remove
# ./lib from LD_LIBRARY_PATH
export LD_LIBRARY_PATH=./lib:./miles:$LD_LIBRARY_PATH
export LD_PRELOAD=./nwmovies.so
export NWMOVIES_GRAB_HACK=1

./nwmain $@


and it sort of worked... I can see the videos BUT there is no sound in them... The game itself has the sound working just fine. I get the menu clicks and the gameplay sound works fine too. Only bink vids are not playing sound. Ah I would almost forgot to add that playing videos directly from console using bink player works with sound...

Can someone show me their working (with the Bink videos working with sound) nwn file?

What were the sed commands suppose to do? Is the syntax correct?

I have noticed this:

cokeCan wrote...

The link is wrong for installing nwmovies, it should be,<br />
wget http://home.roadrunn...atest.tar.gz<br />
tar -xzvf nwmovies-latest.tar.gz<br />
<br />
The rest works fine (putting in the backslashes)<br />
<br />
Coke<br />


The rest works fine... ok - what's the story with the backslashes \\?

Thank You in advance for any given help.

Regards.

Andy
               
               

               


                     Modifié par AndrzejL, 12 mars 2012 - 12:29 .
                     
                  


            

Legacy_AndrzejL

  • Newbie
  • *
  • Posts: 19
  • Karma: +0/-0
[Linux] Install Diamond Edition, Original Edition + 1.69 Update + NWMovies
« Reply #19 on: March 12, 2012, 12:10:15 am »


               I think I know what is going on. I think it's the libSDL that's causing the issues:

[andrzejl@icsserver lib]$ ls --full libSDL-1.2.so.0*
lrwxrwxrwx 1 andrzejl andrzejl     19 2011-05-27 16:22:38.322163807 +0100 libSDL-1.2.so.0 -> libSDL-1.2.so.0.0.5*
-rwxr-xr-x 1 andrzejl andrzejl 405239 2003-04-16 20:49:34.000000000 +0100 libSDL-1.2.so.0.0.5*
[andrzejl@icsserver lib]$


What I did was -

I have created new folder inside the lib folder and moved both libSDL files to it.

mkdir ./new\\ folder
mv ./libSDL-1.2.so.0* ./new\\ folder/


I have located the libSDL file in my installation

[andrzejl@icsserver lib]$ locate libSDL | grep lib
/usr/lib/libSDL-1.2.so.0
/usr/lib/libSDL-1.2.so.0.11.3


I have copied the located /usr/lib/libSDL-1.2.so.0.11.3 to the ./lib/ folder

cp /usr/lib/libSDL-1.2.so.0.11.3 ./
ln -s ./libSDL-1.2.so.0.11.3 ./libSDL-1.2.so.0


and when I started the game - the Bink videos were working - with sound... BUT as soon as I reached the game menu - X server crashed '<img'>...

Now I need to see if it was because of the permissions... so I will better post this and try it before X server crashes again... if anything good comes out of it - I will modify this post '<img'>.

EDIT UPDATE 1: No those are not permission issues. After X server crashed and I was taken to KDM I have logged back in and I have started the game - it started with videos working properly and I could play the game as expected. I have rebooted and started the game - it crashed so I logged back into the KDE4 and the game crashed yet again... Weird... Will try investigating... Maybe compiling newer libSDL version... Will see what's the story.

Regards.

Andy
               
               

               


                     Modifié par AndrzejL, 12 mars 2012 - 12:33 .
                     
                  


            

Legacy_AndrzejL

  • Newbie
  • *
  • Posts: 19
  • Karma: +0/-0
[Linux] Install Diamond Edition, Original Edition + 1.69 Update + NWMovies
« Reply #20 on: March 12, 2012, 12:57:42 am »


               Whoa... Removing the libSDL* files from the ./lib folder completely seems to be fixing the issue... no libSDL files, X server not crashing, movies in game are playing with sound...

Go figure... Hehehe...

EDIT:

Ok for some weird reason I wanted the libSDL in the ./lib folder... Don't know why - I just did... Don't ask me...

Please note that this little manual does not installs anything. Please note that this manual does not removes anything from Your installation nor does it modifies anything within it. All You do is compile a certain lib (You do not actually make install it - just compiling as user). Please note that this little manual creates a backup copies of all the files that are being necessary to recover if anything goes wrong. If You are not sure of what is being done - please do not use this manual - yes it's easy and simple but I will not take any responsibility for something that could go wrong. Yes it worked flawlessly here but Your milage may vary. If You do decide to follow this little manual - please think - it does not hurts and may actualy help '<img'>...

Here is what I did:

Downloaded latest available libSDL to my home folder:

Quote
wget -c http://www.libsdl.or...L-1.2.15.tar.gz

Verified the gpg for the file

Quote
wget -c http://www.libsdl.or...2.15.tar.gz.sig

Quote
wget -c http://slouken.libsd...uken-pubkey.asc

Quote
gpg ./slouken-pubkey.asc

Quote
pub  1024D/A7763BE6 2001-01-05 Sam Lantinga <slouken at libsdl.org>
sub  1024g/06F8768C 2001-01-05


Quote
gpg --verify ./SDL-1.2.15.tar.gz.sig ./SDL-1.2.15.tar.gz

Quote
gpg: Signature made Sat 21 Jan 2012 02:41:53 AM GMT using DSA key ID A7763BE6
gpg: Can't check signature: public key not found


Unpacked it:

Quote
tar -zxvf ./SDL-1.2.15.tar.gz

Entered the cd ./SDL-1.2.15 folder.

Quote
cd ./SDL-1.2.15

Ran a few commands to prepare the compilation:

Quote
export PREFIX=`echo /usr/`

Quote
export PATH=$PREFIX/bin:$PATH

Quote
export PKG_CONFIG_PATH=$PREFIX/lib/pkgconfig:$PREFIX/share/pkgconfig

Then I have triggered the autogen script:

Quote
./autogen.sh --prefix=$PREFIX

Which then told me:

Quote
Now you are ready to run ./configure

And so I did:

Quote
./configure --prefix=$PREFIX


After a while it was done and it was 'make' time (You may experience some dependacy issues - solve them by installing the appropriate devel packages for Your system - I had some devels installed as I am compiling stuff sometimes so I had no issues).

Quote
make

Making will take a while... After that You need to locate the newly "made" libSDL file.

Gain root privilages

Quote
su

Quote
root password


Update the base of all files in Your installation

Quote
updatedb

Loose the root's privilages - You no longer need them.

Quote
exit

Locate the file

Quote
locate libSDL-1.2.so.0. | grep home


File was found in:

Quote
/home/andrzejl/SDL-1.2.15/build/.libs/libSDL-1.2.so.0.11.4

Now You can move Yourself to the lib folder in the game directory - in my case /media/games/NWN/lib/ - your milage may vary.

Quote
cd /media/games/NWN/lib/


Create folder that will be a backup folder for old libSDL files

Quote
mkdir ./libSDL_BackUp


Move old libSDL files to the newly created backup folder

Quote
mv ./libSDL-1* ./libSDL_BackUp/


Now copy the compiled libSDL file to the game lib folder

Quote
cp ~/SDL-1.2.15/build/.libs/libSDL-1.2.so.0.11.4 ./


And make symlink to it called libSDL-1.2.so.0 (just like it was called previously).

Quote
ln -s ./libSDL-1.2.so.0.11.4 ./libSDL-1.2.so.0


Now try playing the game - start it the way You always do.

If it worked for You - great - enjoy the movies with sound in the game.

Regards.

Andy
               
               

               


                     Modifié par AndrzejL, 12 mars 2012 - 02:47 .
                     
                  


            

Legacy_HipMaestro

  • Hero Member
  • *****
  • Posts: 2849
  • Karma: +0/-0
[Linux] Install Diamond Edition, Original Edition + 1.69 Update + NWMovies
« Reply #21 on: March 12, 2012, 03:02:52 am »


               

AndrzejL wrote...
The rest works fine... ok - what's the story with the backslashes ?

It's the way these boards translate a backslash character.

When a member types one in, the final post will display 2 of them, duplicating it for some reason, I guess it's the way the forum code is compiled.  If you type in 2 backslashes, it will display 4, etc.  There is no work-around ,unfortunately ,so I used a character that doesn't USUALLY get used in shell commands (the "?") and instructed potential Linux users to make the subsitution before they ran the code.  This was never an issue on the legacy boards (i.e. no weirdo control characters) but it is here.  Most digital editors and word processors provide a reather straight-forward way to make a global substituion of this kind so should be manageable.

Incidentally, I myself do not now and never have owned a Linux OS.  I just felt the instructions were important enough to grab and copy over when the legacy boards shut down before they when *poof*.  Apparently, it was worth the effort. '<img'>
               
               

               
            

Legacy_Skildron

  • Sr. Member
  • ****
  • Posts: 421
  • Karma: +0/-0
[Linux] Install Diamond Edition, Original Edition + 1.69 Update + NWMovies
« Reply #22 on: March 12, 2012, 09:22:40 am »


               

AndrzejL wrote...

Ok for some weird reason I wanted the libSDL in the ./lib folder... Don't know why - I just did... Don't ask me...


You did a lot of work - the easy way out would have been to change the line

export LD_LIBRARY_PATH=./lib:./miles:$LD_LIBRARY_PATH


in you nwn script to this:

export LD_LIBRARY_PATH=./miles:$LD_LIBRARY_PATH


Then nwn would have used your system's libSDL because ldd, the dynamic linker, would not know anything about another version of libSDL shipped with nwn.

Greetings
Skildron
               
               

               


                     Modifié par Skildron, 12 mars 2012 - 09:24 .
                     
                  


            

Legacy_AndrzejL

  • Newbie
  • *
  • Posts: 19
  • Karma: +0/-0
[Linux] Install Diamond Edition, Original Edition + 1.69 Update + NWMovies
« Reply #23 on: March 12, 2012, 01:44:26 pm »


               

HipMaestro wrote...

AndrzejL wrote...
The rest works fine... ok - what's the story with the backslashes ?


It's the way these boards translate a backslash character.

When
a member types one in, the final post will display 2 of them,
duplicating it for some reason, I guess it's the way the forum code is
compiled.  If you type in 2 backslashes, it will display 4, etc.  There
is no work-around ,unfortunately ,so I used a character that doesn't
USUALLY get used in shell commands (the "?") and instructed potential
Linux users to make the subsitution before they ran the code.  This was
never an issue on the legacy boards (i.e. no weirdo control characters)
but it is here.  Most digital editors and word processors provide a
reather straight-forward way to make a global substituion of this kind
so should be manageable.

Incidentally, I myself do not now and
never have owned a Linux OS.  I just felt the instructions were
important enough to grab and copy over when the legacy boards shut down
before they when *poof*.  Apparently, it was worth the effort. '<img'>


Hehe ok - I understand now - all I had to do is replace ? with \\ in the command?

EDIT: DUH! It works...

Thanks for "grabbing" the copy of the instructions. It was annoying to not to be able to find them...

Btw... You don't own Linux OS... It's the Linux OS that owns You '<img'> hehehe that's the beauty of it.

Regards.

Andy

Skildron wrote...

AndrzejL wrote...

Ok for some weird reason I wanted the libSDL in the ./lib folder... Don't know why - I just did... Don't ask me...


You did a lot of work - the easy way out would have been to change the line

export LD_LIBRARY_PATH=./lib:./miles:$LD_LIBRARY_PATH

in you nwn script to this:

export LD_LIBRARY_PATH=./miles:$LD_LIBRARY_PATH

Then
nwn would have used your system's libSDL because ldd, the dynamic
linker, would not know anything about another version of libSDL shipped
with nwn.

Greetings
Skildron


Ah yes - but when I did that - the game kept crashing on me '<img'> (plus there are some other links in the lib folder I have in the link to the miles folder and the libmss file) so I took the longer route to have the game + the movies working perfect... '<img'>. Time well spent my friend '<img'> - plus since I used slightly different method of installation I can now make a crossover bottle out of the game and move it easily between my machines '<img'>.

Regards.

Andy
               
               

               


                     Modifié par AndrzejL, 12 mars 2012 - 02:43 .
                     
                  


            

Legacy_Kato -

  • Hero Member
  • *****
  • Posts: 747
  • Karma: +0/-0
[Linux] Install Diamond Edition, Original Edition + 1.69 Update + NWMovies
« Reply #24 on: March 22, 2012, 10:44:02 pm »


               Excellent infos here, TYVM! By the way, what would be the best Linux distro for speed and stability, knowing that I use my comp to write modules + host and sometimes play the game? I'm new to Linux and looking at some forums I have just discovered Puppy Linux wich is apparently the fastest distro, but I'm wondering if it has what it takes?

Thank you!

Kato
               
               

               
            

Legacy_HipMaestro

  • Hero Member
  • *****
  • Posts: 2849
  • Karma: +0/-0
[Linux] Install Diamond Edition, Original Edition + 1.69 Update + NWMovies
« Reply #25 on: March 23, 2012, 01:29:23 am »


               

Kato_Yang wrote...
Excellent infos here, TYVM! By the way, what would be the best Linux distro for speed and stability, knowing that I use my comp to write modules + host and sometimes play the game? I'm new to Linux and looking at some forums I have just discovered Puppy Linux wich is apparently the fastest distro, but I'm wondering if it has what it takes?

Thank you!

Kato

I'm glad it helped you manage NWN on the Linux OS.  Though I haven't migrated to Linux yet myself, my new machine will likely have it installed so I hope this thread is still available when that happens.  It has lots of valuable How-to info.

However, this is probably not an appropriate topic to answer your concerns about distro preferences or other app-specific Linux issues.  We used to have a Linux-specific subforum that never made it over from the legacy boards but you may get faster answers to questions like this by posting it in the Persistent World/Multiplayer subforum because a lot of the hosters run Linux platforms.  Another option would be to post your own topic here with an appropriate title that would attract attention.  Wherever you do post it, use the prefix [Linux] to clearly label the context.   We have some regular Linux users that pop in occasionally, but be patient.

I wish you luck and a speedy resolution to your inquiry!
               
               

               
            

Legacy_Kato -

  • Hero Member
  • *****
  • Posts: 747
  • Karma: +0/-0
[Linux] Install Diamond Edition, Original Edition + 1.69 Update + NWMovies
« Reply #26 on: March 23, 2012, 05:01:54 pm »


               Okay, I'll try your suggestions, thank you HipMaestro '<img'>

Kato
               
               

               
            

Legacy_AndrzejL

  • Newbie
  • *
  • Posts: 19
  • Karma: +0/-0
[Linux] Install Diamond Edition, Original Edition + 1.69 Update + NWMovies
« Reply #27 on: April 04, 2012, 04:39:54 pm »


               Kato_Yang...

The best distro is the one that works for You and supports Your hardware in the best possible way.

For me - it's PCLinuxOS. Your mileage may vary.

Regards.

Andy
               
               

               
            

Legacy_Knight_Shield

  • Hero Member
  • *****
  • Posts: 812
  • Karma: +0/-0
[Linux] Install Diamond Edition, Original Edition + 1.69 Update + NWMovies
« Reply #28 on: April 04, 2012, 09:14:13 pm »


               Kato_Yang

I use Linux Ubuntu 11.04 server to host but I defininitely dont use Ubuntu 11.04 desktop.
Linux nwserver client very easy to use.

Desktop I have 10.04 Ubuntu.I installed game using wine.I have yet to do a working install of the linux game client on the desktop.Maybe its just me .
               
               

               
            

Legacy_Kato -

  • Hero Member
  • *****
  • Posts: 747
  • Karma: +0/-0
[Linux] Install Diamond Edition, Original Edition + 1.69 Update + NWMovies
« Reply #29 on: April 08, 2012, 06:37:30 am »


               Thank you for the infos! '<img'>


Kato