PDA

View Full Version : NeverWinter Nights Sound Issues


dducko3
September 1st, 2005, 01:19 AM
I am haveing issues with NWN and sound, Sound works almost everywhere but in NWN, I have system sounds, I can play music, The Gnome games work fine,. Firefox seems to have issues too, (not so worried about that, just hear for refference).

I followed the tutorials for installing NWN on linux over on the Bioware boards. When I run it, no sound and when I go into the Game options it doesnt appear as if there is even a sound device for it to work with. I have tried different things like "killall esd" before starting it but with no luck. I would appreciate any help I am given.

Artificial Intelligence
September 1st, 2005, 01:43 AM
I don't know what they say on bioware, but when I install NWN I use this site and its programs. Perhaps it helps you :) : http://icculus.org/~ravage/nwn/

art2003
November 27th, 2005, 08:45 AM
I had the same problem and fixed it easily.

The linux client comes with its own sdl library just in case you don't have one.

Well that one didn't work for me but the ubuntu one works fine.

so...
in your neverwinternights folder
open nwn with your favourite editor and replace the text there with 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
# note that I have modified the next line to use the ubuntu sdl library!
export LD_LIBRARY_PATH=:./miles:$LD_LIBRARY_PATH

esdctl off
sleep 2
./nwmain $@
esdctl on



note that in the code the third export line h

blacklantern
January 12th, 2006, 05:20 PM
*bump*

I have the exact same problem that dducko3 had, and I copied the above script into my nwn file. However, I still have no sound, and NWN doesn't recognize any sound device.

AngryKidJoe
June 24th, 2006, 07:43 PM
I get this error with that change:
akj@angry-penguin:~/nwn$ ./nwn
./nwn: line 13: esdctl: command not found
./nwmain: error while loading shared libraries: libSDL-1.2.so.0: cannot open shared object file: No such file or directory
./nwn: line 16: esdctl: command not found

Like a moron, I forgot to make a backup and NWN won't even boot up now.

art2003
June 26th, 2006, 03:56 AM
find where the library is on your system
find / -name libsdl*

and then copy it to your NWN directory and should be fine.

(if there is already a library with that name in your NWN directory overwrite it with the one from your system)

TomPurnell
February 25th, 2007, 05:27 AM
I also had no sound on my 64bit system. Changing the nwn script produced the missing libSDL error, due to the game requiring a 32bit version of the lib. I fixed this by installing the ia32-libs-sdl package, now I have sound :)

gldvxx
March 11th, 2007, 01:00 AM
pasting this text into my nwn script fixed an issue i was having as well. after i installed amarok i kept getting the infamous mcop error when i tried to run nwn! (i'm running gnome)

mcop warning: user defined signal handler found for SIG_PIPE, overriding
Creating link /root/.kde/socket-bobdobalina.
can't create mcop directory

one suggestion had been to set SDL_AUTODRIVER to esd, but that only caused really bad sound degradation after i played neverwinter nights for awhile. i kept having to restart nwn.

the only issue i have with this script is i get this error message:
nwn: line 13: esdctl: command not found
nwn: line 16: esdctl: command not found

but other than that, the game works as well as it did when i first started playing it on ubuntu! yay!

danlee
March 2nd, 2008, 03:49 PM
the only issue i have with this script is i get this error message:
nwn: line 13: esdctl: command not found
nwn: line 16: esdctl: command not found
You need to install the "esound-clients" package.
sudo apt-get install esound-clients
Thanks, this fixed the scratchy audio on my 64bit debian :)

SandmanXC
April 15th, 2008, 03:13 PM
Thanks, the paste did help :D

scrawl
June 22nd, 2008, 12:15 PM
I also get an output like this:
nwn: line 13: esdctl: command not found
nwn: line 16: esdctl: command not found

But nwn starts and everything works fine. Thanks :)

soupmonster
April 10th, 2009, 09:13 PM
Hi guys,

I've tried all the suggested solutions for this problem, and none of them seem to work for me. I'm trying to run NWN on Jaunty Beta, but I do not get any error messages at the console when launching the game.

I tried removing lib from the LD_LIBRARY_PATH in order to make the game use the Ubuntu library. - Game loads, but no sound.

I tried symlinking the Ubuntu library from within the lib folder of NWN. - Again, game loads, no sound.

I tried copying the Ubuntu library to the lib folder. - Still no luck.

I've also tried apt-getting the libSDL pulseauido plugin, and setting that as the audio driver, but no luck. Other games using libSDL seem to play audio fine.

Not really sure what to try next.

Brian Vaughan
April 7th, 2010, 07:27 PM
NWN worked for me in the past, but I was surprised to find that the sound had stopped working since the last time I tried it (which was probably a year or so ago).

I found I could get the sound working, simply by commenting out the line, "export SDL_AUDIODRIVER=alsa". So, the script is now as follows:
#!/bin/sh

# This script runs Neverwinter Nights from the current directory

export SDL_MOUSE_RELATIVE=0
export SDL_VIDEO_X11_DGAMOUSE=0
#export SDL_AUDIODRIVER=alsa

# If you do not wish to use the SDL library included in the package, remove
# ./lib from LD_LIBRARY_PATH
export LD_LIBRARY_PATH=./miles:$LD_LIBRARY_PATH
./nwmain $@

alexandrius
August 12th, 2010, 01:36 PM
NWN worked for me in the past, but I was surprised to find that the sound had stopped working since the last time I tried it (which was probably a year or so ago).

I found I could get the sound working, simply by commenting out the line, "export SDL_AUDIODRIVER=alsa". So, the script is now as follows:
#!/bin/sh

# This script runs Neverwinter Nights from the current directory

export SDL_MOUSE_RELATIVE=0
export SDL_VIDEO_X11_DGAMOUSE=0
#export SDL_AUDIODRIVER=alsa

# If you do not wish to use the SDL library included in the package, remove
# ./lib from LD_LIBRARY_PATH
export LD_LIBRARY_PATH=./miles:$LD_LIBRARY_PATH
./nwmain $@
dude thanks that worked!

Lady_Dark_Kitten
September 17th, 2010, 04:14 PM
I also have no sound, the autorun menu has sound but the actual game doesn't. I follow that up by saying I did not use the Linux installer, I'm on Ubuntu 10.4 and could not for the life of me get the linux installers (any of them) to work properly. So since my actual dvdrom is not working I created a drive in media linked that to wine and mounted a NWN Diamond iso, the game installed perfectly. Everything else works like a champ but I have no sound. Since I'm not running it with the linux files is there anything I can do or am I stuck looping the audio through my music player?

woodrobin
September 21st, 2010, 02:17 AM
I also have no sound, the autorun menu has sound but the actual game doesn't. I follow that up by saying I did not use the Linux installer, I'm on Ubuntu 10.4 and could not for the life of me get the linux installers (any of them) to work properly. So since my actual dvdrom is not working I created a drive in media linked that to wine and mounted a NWN Diamond iso, the game installed perfectly. Everything else works like a champ but I have no sound. Since I'm not running it with the linux files is there anything I can do or am I stuck looping the audio through my music player?

This should work regardless of the Windows/Linux file use, since the main difference is an alteration to an SDL sound card setting:

http://nectarius.net/2007/08/22/puzzle-pirates-and-nwn-sound/

Here is the code that should be used in place of the existing nwn file (note that the text /GAMEINSTALLPATH/ should be changed to the directory in which you have Neverwinter Nights installed -- this is a convenience fix to allow easier launches, not the sound fix per se):

#!/bin/sh cd /GAMEINSTALLPATH/
# This adds a variable to make sound work properly. NWN doesn't work with
# select() function in the SDL sound library properly.
# I think this means it doesn't know how to choose which sound card to use in
# some setups.
export SDL_DSP_NOSELECT=1
# 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
./nwmain $@This fixed audio for me after an update seemed to cause it to stop working today, and cleared up the error messages I had previously been seeing even on successful runs, as well.