Page 1 of 1

Help Anomandari get back IG! (NWN linux)

Posted: Thu May 20, 2010 2:16 pm
by Anomandari
So.
I got myself a new (old) computer. Acer Extensa 5230E - a piece of rubbish that is going to serve me well for another 5-6 years, whether it wants it or not: just like the previous Acer did before it physically fell apart. Since I didn't like the idea of paying extra for an OS I wouldn't have used anyway, there is no Windows (tm) environment on that contraption too.

All what I have here are my old CD keys, the files provided by BioWare and the SoU & HotU archives it takes to install both of the expansion packs. Without a back-up of a Windows installation I'm forced to install NWN from scratch. Not a big deal, I managed to do so on my previous laptop - so I think.

The new computer is:
CPU - Intel Celeron 900, running @ 2.2 GHZ.
RAM - 1 GB.
GFX - Intel GMA X4500M.
That's what you get here for less than 350 $ (280 EUR, 240 GBP) and it's decently cheap. Currency exchange rates suck.
My linux distribution of choice is Xubuntu 10.04.
Kernel version: 2.6.32-22.
Should do.

I follow the manual @ http://nwn.bioware.com/downloads/linuxclient.html

I try to install NWN without the expansion packs first.
I use the following files:
nwresources129.tar.gz
nwclient129.tar.gz
English_linuxclient169_orig.tar.gz
I copy my old nwncdkey.ini and voila, NWN 1.69 up and running. Cool.

I move to install SoU.
I follow the instructions @ http://nwn.bioware.com/downloads/linuxc ... souinstall

Code: Select all

unzip (...)/Data_Shared.zip
unzip (...)/Language_data.zip
unzip (...)/Language_update.zip
unzip (...)/Data_Linux.zip
rm data/patch.bif
rm patch.key
./fixinstall
Now it's where it gets interesting. That's what I get:

Code: Select all

etaoin@shrdlu:~/NWN$ ./fixinstall
Checking for required files

PASSED: ambient directory exists
PASSED: data directory exists
PASSED: music directory exists
PASSED: override directory exists
PASSED: miles directory exists
PASSED: nwm directory exists
PASSED: chitin.key exists
PASSED: dialog.tlk exists
PASSED: nwmain exists
PASSED: xp1.key exists

Fixing case

ambient
....................................................................................................
data
...................................
dmvault
..
hak
.
localvault
.......................
music
................................................................
override
..........
portraits
.

Checking for problem files


Checking for permissions

PASSED: nwn.ini is writable
PASSED: nwnplayer.ini is writable
PASSED: saves is writable
PASSED: localvault is writable
PASSED: tempclient is writable
PASSED: dmvault is writable
PASSED: /home/etaoin/NWN is writable

You are ready to run Neverwinter Nights.

etaoin@shrdlu:~/NWN$ ./nwn
*** glibc detected *** ./nwmain: free(): corrupted unsorted chunks: 0x0f550738 ***
======= Backtrace: =========
/lib/tls/i686/cmov/libc.so.6(+0x6b591)[0x396591]
/lib/tls/i686/cmov/libc.so.6(+0x6cde8)[0x397de8]
/lib/tls/i686/cmov/libc.so.6(cfree+0x6d)[0x39aecd]
./nwmain(__builtin_delete+0x22)[0x858c286]
./nwmain(__builtin_vec_delete+0x1b)[0x858c2af]
./nwmain[0x8526ea5]
./nwmain[0x8523582]
./nwmain[0x8523f76]
./nwmain[0x84f4ac4]
./nwmain[0x84f4785]
./nwmain[0x84f297e]
./nwmain[0x846e59c]
./nwmain[0x84808de]
./nwmain[0x84814ac]
./nwmain[0x84d861f]
./nwmain[0x84d6ee7]
./nwmain[0x8483473]
./nwmain[0x84834d8]
./nwmain[0x84888b8]
./nwmain[0x81b3659]
./nwmain[0x8053b67]
./nwmain(SDL_SetVideoMode+0x468)[0x804fb24]
/lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xe6)[0x341bd6]
./nwmain(AIL_WAV_info+0x35)[0x804f811]
======= Memory map: ========
00110000-00111000 rwxp 00000000 00:00 0 
00111000-0011f000 r-xp 00000000 08:03 386453     /usr/lib/libXext.so.6.4.0
0011f000-00120000 r-xp 0000d000 08:03 386453     /usr/lib/libXext.so.6.4.0
00120000-00121000 rwxp 0000e000 08:03 386453     /usr/lib/libXext.so.6.4.0
00121000-00123000 r-xp 00000000 08:03 386449     /usr/lib/libXdamage.so.1.1.0
00123000-00124000 r-xp 00001000 08:03 386449     /usr/lib/libXdamage.so.1.1.0
00124000-00125000 rwxp 00002000 08:03 386449     /usr/lib/libXdamage.so.1.1.0
00125000-00129000 r-xp 00000000 08:03 386455     /usr/lib/libXfixes.so.3.1.0
00129000-0012a000 r-xp 00003000 08:03 386455     /usr/lib/libXfixes.so.3.1.0
0012a000-0012b000 rwxp 00004000 08:03 386455     /usr/lib/libXfixes.so.3.1.0
0012b000-00148000 r-xp 00000000 08:03 139347     /lib/libgcc_s.so.1
00148000-00149000 r-xp 0001c000 08:03 139347     /lib/libgcc_s.so.1
00149000-0014a000 rwxp 0001d000 08:03 139347     /lib/libgcc_s.so.1
0014a000-00151000 r-xp 00000000 08:03 164175     /lib/tls/i686/cmov/librt-2.11.1.so
00151000-00152000 r-xp 00006000 08:03 164175     /lib/tls/i686/cmov/librt-2.11.1.so
00152000-00153000 rwxp 00007000 08:03 164175     /lib/tls/i686/cmov/librt-2.11.1.so
00153000-00157000 r-xp 00000000 08:03 386493     /usr/lib/libXxf86vm.so.1.0.0
00157000-00158000 r-xp 00003000 08:03 386493     /usr/lib/libXxf86vm.so.1.0.0
00158000-00159000 rwxp 00004000 08:03 386493     /usr/lib/libXxf86vm.so.1.0.0
00159000-0015a000 rwxp 00000000 00:00 0 
0015a000-0015e000 r-xp 00000000 08:03 386451     /usr/lib/libXdmcp.so.6.0.0
0015e000-0015f000 r-xp 00003000 08:03 386451     /usr/lib/libXdmcp.so.6.0.0
0015f000-00160000 rwxp 00004000 08:03 386451     /usr/lib/libXdmcp.so.6.0.0
00160000-00162000 rwxp 00000000 00:00 0 
00162000-0016b000 r-xp 00000000 08:03 386665     /usr/lib/libesd.so.0.2.39
0016b000-0016c000 r-xp 00008000 08:03 386665     /usr/lib/libesd.so.0.2.39
0016c000-0016d000 rwxp 00009000 08:03 386665     /usr/lib/libesd.so.0.2.39
00171000-00179000 r-xp 00000000 08:03 386447     /usr/lib/libXcursor.so.1.0.2
00179000-0017a000 r-xp 00007000 08:03 386447     /usr/lib/libXcursor.so.1.0.2
0017a000-0017b000 rwxp 00008000 08:03 386447     /usr/lib/libXcursor.so.1.0.2
0017b000-00183000 r-xp 00000000 08:03 386475     /usr/lib/libXrender.so.1.3.0
00183000-00184000 r-xp 00007000 08:03 386475     /usr/lib/libXrender.so.1.3.0
00184000-00185000 rwxp 00008000 08:03 386475     /usr/lib/libXrender.so.1.3.0
00185000-00200000 rwxp 00000000 00:00 0 
00200000-0020a000 r-xp 00000000 00:15 3424267    /home/etaoin/NWN/miles/msssoft.m3d
0020a000-0020c000 rwxp 00009000 00:15 3424267    /home/etaoin/NWN/miles/msssoft.m3d
0020c000-00210000 rwxp 00000000 00:00 0 
00210000-00218000 rwxs 122d5b000 00:05 2448      /dev/dri/card0
00222000-00287000 r-xp 00000000 00:15 3424274    /home/etaoin/NWN/miles/libmss.so.6.5.2
00287000-00292000 rwxp 00064000 00:15 3424274    /home/etaoin/NWN/miles/libmss.so.6.5.2
00292000-002c2000 rwxp 00000000 00:00 0 
002c2000-002d8000 r-xp 00000000 00:15 3424266    /home/etaoin/NWN/miles/mssmp3.asi
002d8000-002df000 rwxp 00015000 00:15 3424266    /home/etaoin/NWN/miles/mssmp3.asi
002df000-002e6000 rwxp 00000000 00:00 0 
002e6000-002f5000 r-xp 00000000 00:15 3424265    /home/etaoin/NWN/miles/mssdsp.flt
002f5000-002f9000 rwxp 0000e000 00:15 3424265    /home/etaoin/NWN/miles/mssdsp.flt
002f9000-002fa000 rwxp 00000000 00:00 0 
002fa000-00302000 r-xp 00000000 08:03 139332     /lib/libdrm_intel.so.1.0.0
00302000-00303000 r-xp 00008000 08:03 139332     /lib/libdrm_intel.so.1.0.0
00303000-00304000 rwxp 00009000 08:03 139332     /lib/libdrm_intel.so.1.0.0
00305000-00329000 r-xp 00000000 08:03 164153     /lib/tls/i686/cmov/libm-2.11.1.so
00329000-0032a000 r-xp 00023000 08:03 164153     /lib/tls/i686/cmov/libm-2.11.1.so
0032a000-0032b000 rwxp 00024000 08:03 164153     /lib/tls/i686/cmov/libm-2.11.1.so
0032b000-0047e000 r-xp 00000000 08:03 164145     /lib/tls/i686/cmov/libc-2.11.1.so
0047e000-0047f000 ---p 00153000 08:03 164145     /lib/tls/i686/cmov/libc-2.11.1.so
0047f000-00481000 r-xp 00153000 08:03 164145     /lib/tls/i686/cmov/libc-2.11.1.so
00481000-00482000 rwxp 00155000 08:03 164145     /lib/tls/i686/cmov/libc-2.11.1.so
00482000-00485000 rwxp 00000000 00:00 0 
00485000-004a7000 r-xp 00000000 08:03 386523     /usr/lib/libaudiofile.so.0.0.2
004a7000-004a8000 r-xp 00021000 08:03 386523     /usr/lib/libaudiofile.so.0.0.2
004a8000-004aa000 rwxp 00022000 08:03 386523     /usr/lib/libaudiofile.so.0.0.2
004be000-004d6000 r-xp 00000000 08:03 387335     /usr/lib/libxcb.so.1.1.0
004d6000-004d7000 r-xp 00017000 08:03 387335     /usr/lib/libxcb.so.1.1.0
004d7000-004d8000 rwxp 00018000 08:03 387335     /usr/lib/libxcb.so.1.1.0
004d8000-004fc000 r-xp 00000000 08:03 139340     /lib/libexpat.so.1.5.2
004fc000-004fe000 r-xp 00024000 08:03 139340     /lib/libexpat.so.1.5.2
004fe000-004ff000 rwxp 00026000 08:03 139340     /lib/libexpat.so.1.5.2
00559000-0055b000 rwxp 00000000 00:00 0 
0055b000-00674000 r-xp 00000000 08:03 386436     /usr/lib/libX11.so.6.3.0
00674000-00675000 r-xp 00118000 08:03 386436     /usr/lib/libX11.so.6.3.0
00675000-00677000 rwxp 00119000 08:03 386436     /usr/lib/libX11.so.6.3.0
00677000-00678000 rwxp 00000000 00:00 0 
00678000-0073b000 r-xp 00000000 08:03 386513     /usr/lib/libasound.so.2.0.0
0073b000-0073f000 r-xp 000c2000 08:03 386513     /usr/lib/libasound.so.2.0.0
0073f000-00740000 rwxp 000c6000 08:03 386513     /usr/lib/libasound.so.2.0.0
00740000-00755000 r-xp 00000000 08:03 164171     /lib/tls/i686/cmov/libpthread-2.11.1.so
00755000-00756000 r-xp 00014000 08:03 164171     /lib/tls/i686/cmov/libpthread-2.11.1.so
00756000-00757000 rwxp 00015000 08:03 164171     /lib/tls/i686/cmov/libpthread-2.11.1.so
00757000-00759000 rwxp 00000000 00:00 0 
0082e000-0082f000 rwxp 00000000 00:00 0 
0082f000-00918000 r-xp 00000000 08:03 387237     /usr/lib/libstdc++.so.6.0.13
00918000-00919000 ---p 000e9000 08:03 387237     /usr/lib/libstdc++.so.6.0.13
00919000-0091d000 r-xp 000e9000 08:03 387237     /usr/lib/libstdc++.so.6.0.13
0091d000-0091e000 rwxp 000ed000 08:03 387237     /usr/lib/libstdc++.so.6.0.13
0091e000-00925000 rwxp 00000000 00:00 0 Aborted
I'm not a big unix/linux specialist, and that console output told me little.
The interesting point is that when I install only HotU and no SoU, NWN is doing just fine.
When I install HotU and then SoU, errors return.

Of course, the "erase & try again" approach didn't work.
Trying to *cough* overwrite the nwmain executable from the broken NWN+SoU installation with the HotU one ends up in a "Fatal signal: Segmentation Fault (SDL Parachute Deployed)".

Yay.
So far I've been unable to google out a solution either.
Linux NWN users: any suggestions?

Re: Help Anomandari back IG! (NWN linux)

Posted: Thu May 20, 2010 2:25 pm
by kthxbye
I think your problem may be related to the install order. You mentioned NWN+HotU worked, so I guess HotU installation runs fine enough. You did mention tho that you tried to install NWN, then HotU, then SoU: the correct install order is NWN, SoU and finally HotU. Let me know if that fixes anything, as I haven't checked the long log you attached.

Re: Help Anomandari back IG! (NWN linux)

Posted: Thu May 20, 2010 3:52 pm
by Anomandari
The installation fails at SoU no matter which order I follow, whether
the correct one: NWN (ok) then SoU (error) then HotU (error)
or
the wrong one: NWN (ok) then HotU (ok) then SoU (error).

Re: Help Anomandari back IG! (NWN linux)

Posted: Thu May 20, 2010 4:43 pm
by Nighthawk4
Have you tried a search on this Forum?

I am pretty sure there used to be issues with some versions of libc, for which there was an alternative provided by the NWN site. It's been a long time since I ran NWN in Linux - now a confirmed Mac User.

I'll see what I can find :wink:



Edit - It does say here that there is a problem with the Linux install scripts for SoU. Did you follow the instructions from the NWN site?

Also, did you download and install the SDL libraries? I seem to recall that some Linux installations required this and some didn't. Perhaps yours does :?

Re: Help Anomandari back IG! (NWN linux)

Posted: Thu May 20, 2010 5:11 pm
by Grunt

Re: Help Anomandari back IG! (NWN linux)

Posted: Thu May 20, 2010 7:50 pm
by Anomandari
@ Grunt: following the link you provided and adding the
export MALLOC_CHECK_=0
line to the nwn script (= what they suggest to do to fix glibc (over)sensitivity issues) causes nwn to go blackscreen. Background apps are working (at least the music player), so the OS is up and operational, but I somehow get stuck in a pitch black X I can't leave.

@ NH4:
I used BioWare's web page & forums instructions, not their broken install scripts.
Using the SDL libs that come with NWN ends up in "Aborted" error. In other words:
export LD_LIBRARY_PATH=./lib:./miles:$LD_LIBRARY_PATH
leads to
etaoin@shrdlu:~/NWN$ ./nwn
(memory map dump blahblah)
[vdso]Aborted

Using the SDL libs that come with Ubuntu 10.04 (I think they do o.O) ends up in a "Segmentation fault" error. In other words:
export LD_LIBRARY_PATH=./miles:$LD_LIBRARY_PATH
leads to
etaoin@shrdlu:~/NWN$ ./nwn
Segmentation fault



I'm reading that there's a way to force a NWN installation through Wine. I also have a Windows 98 CD somewhere, but I'd rather not dual boot if I can help it.

Re: Help Anomandari back IG! (NWN linux)

Posted: Thu May 20, 2010 8:05 pm
by Calzier
Just FYI - I now play windows version of NWN on my Mac using 'Crossover games'; there's a linux version, I think. Wont run the toolset, though, so have to boot Windows for that.

Not quite the answer to your immediate problem, but might be a way to get up and running?

Re: Help Anomandari back IG! (NWN linux)

Posted: Thu May 20, 2010 8:21 pm
by Nighthawk4
Calzier wrote:Just FYI - I now play windows version of NWN on my Mac using 'Crossover games'; there's a linux version, I think. Wont run the toolset, though, so have to boot Windows for that.

Not quite the answer to your immediate problem, but might be a way to get up and running?
That is exactly how I run NWN on my Mac. I copied the installation folders from my Windows installation to a folder on the Mac and then manually setup a Wine bottle to run the NWmain.exe. Updating the Crossover version after this has resulted in an error about the version of NWN whenever I run the NWN.exe (for DM Client) and I can't use shortcuts to add the '-dmc' option for the DM Client. However, I have aliases (shortcuts) on the Desktop to call NWMain.exe and NWN.exe, both of which work fine apart from the error message (which does not prevent NWN from running). It loads Crossover automatically as EXE files are associated with this Application. Of course, you don't need to run the routine to convert to lowercase with this method.

This might be worth a try - check the Crossover website here. It does allow a free trial and it does work with Linux as well as Mac. You need the Crossover for Games version for this.

Another idea, which I have not tried is Wineskin. I am now running Star Trek Online (which is Windows only) on my Mac using Wineskin and a setup file I got from a fellow player on STO. Maybe this could be done for NWN, although I don't know where you would get the config file. Perhaps you could configure it yourself? :?

Re: Help Anomandari get back IG! (NWN linux)

Posted: Thu May 20, 2010 8:29 pm
by Anomandari
First - thanks for all your help and suggestions.

A day or two days more to find a solution for the linux client, then I'll dual-boot with Windows 98 ;-) Learning to fix things in linux sure is attractive, but I'd rather spend my free time IG.

From what I read - CrossOver Games is effectively a somewhat altered Wine, and some people from the NWN Linux boards have successfully installed NWN launching its exe files via Wine. It seems that both: CrossOver Games (40$) and Wine (0$) will require the Windows files anyway. I'll give the COG trial and Wine a try once I get back to my place (on the road atm), I should still have some old NWN disks somewhere there.

Re: Help Anomandari get back IG! (NWN linux)

Posted: Thu May 20, 2010 8:44 pm
by Nighthawk4
I have had some success in the past with Wine and Windows games. This was a while ago and Wine has improved a lot since then.

As Wine and Wineskin are both free, it is definitely worth trying those first. Good luck :wink:

Re: Help Anomandari back IG! (NWN linux)

Posted: Thu May 20, 2010 9:24 pm
by Calzier
Nighthawk4 wrote:
Calzier wrote:Just FYI - I now play windows version of NWN on my Mac using 'Crossover games'; there's a linux version, I think. Wont run the toolset, though, so have to boot Windows for that.

Not quite the answer to your immediate problem, but might be a way to get up and running?
That is exactly how I run NWN on my Mac. I copied the installation folders from my Windows installation to a folder on the Mac and then manually setup a Wine bottle to run the NWmain.exe.
Not sure all that manual stuff is necessary (except for the haks). Pretty sure you can just stick the NWN installation disk into the drive, and have CXG set up the bottle and install everything. You'll have to use the CXG interface to open the bottle and copy across the various haks, and anything else custom (portraits etc.) - just as you would with any fresh installation.

The only thing I found necessary to make NWN work was to disable the intro movies - but that's not an issue for multiplayer, as you probably click through those (I always did) to get to the login screen(s). Not tried logging in a a DM - so can't comment on possible issue there - as no-one's let me loose on the player base as yet! :)

Good luck. If a windows game can be made to run on a Mac without going near a Windows installation, I"m sure you'll find a solution on Linux. (Mac snow leopard is essentially linux with an interface).

Re: Help Anomandari get back IG! (NWN linux)

Posted: Thu May 20, 2010 10:12 pm
by Trole
I'm no linux person..but i always thought with any nwn install you had to install the game, all it's expansions, then update to 1.69. then install haks..have you tired it that way? Ignore this if you have :)

Re: Help Anomandari get back IG! (NWN linux)

Posted: Thu May 20, 2010 10:27 pm
by GrayKing
My backup machine runs ubuntu 9 and Wine with NWN and its all good.

Just an fyi.

Gray :D

Re: Help Anomandari get back IG! (NWN linux)

Posted: Fri May 21, 2010 2:42 am
by tindertwiggy
Where do you live that stuff that old is that expensive?

Re: Help Anomandari get back IG! (NWN linux)

Posted: Fri May 28, 2010 9:46 pm
by Anomandari
I'M BACK :twisted:

Thanks for all the good advice and PMs I got.

I officially love Wine.
Now I only have to actually apply the 1.69 instead of faking it's there. I'd love the textures and cloaks back. But that's a minor issue.

EDIT: 1.69 fixed. ]:-)

Re: Help Anomandari get back IG! (NWN linux)

Posted: Fri May 28, 2010 10:15 pm
by Speedracer
Yay!

Now we can chain you to the forge again. Our storage is full of your damn rods and ingots!

Plus we have missed you at the rumbles.....

Re: Help Anomandari get back IG! (NWN linux)

Posted: Sat May 29, 2010 12:54 am
by Xiaou
I recently had to set up nwn on my linux system again (Ubuntu 10.4 LTS), the bioware instructions worked flawlessly. In fact, installing the haks and portraits took probably 3 times longer.

Re: Help Anomandari get back IG! (NWN linux)

Posted: Sat May 29, 2010 1:15 am
by Anomandari
@ X:

Now that's strange.
...or maybe not, considering how many things can differ within two U 10.04 installs on two different machines.
I'd had high hopes for the recent glibc update, but it just didn't work. So I just have pushed the game through Wine and now it works like a charm.


@ Speedy:

I'm on it :evil:
And I'm on it :twisted:

Re: Help Anomandari get back IG! (NWN linux)

Posted: Thu Jul 01, 2010 7:41 am
by teresa412009
Anomandari wrote:@ X:

Now that's strange.
...or maybe not, considering how many things can differ within two U 10.04 installs on two different machines.
I'd had high hopes for the recent glibc update, but it just didn't work. So I just have pushed the game through Wine and now it works like a charm.


@ Speedy:

I'm on it :evil:
And I'm on it :twisted:
yeah, a little strange i have to say

Re: Help Anomandari get back IG! (NWN linux)

Posted: Thu Jul 01, 2010 12:34 pm
by Xiaou
http://nwn.bioware.com/forums/viewtopic ... 1&forum=72

These are the ones I meant so..yeah. Maybe "bioware supplied" isnt as accurate as "Bioware forum supplied"

Re: Help Anomandari get back IG! (NWN linux)

Posted: Thu Jul 01, 2010 2:42 pm
by S_N
Yay, another linux player! :)

I have a dual (wine and native client) setup for nwn, with a shared data directory set up for being able to run the toolset sometimes.

Also for the native client I made a resolution override, so that you can pick any resolution in windowed mode. It exists as a stickie on bioware linux forums.

However, what textures and cloaks are missing? I think might be fixable w/o too much effort.

Re: Help Anomandari get back IG! (NWN linux)

Posted: Thu Jul 01, 2010 3:04 pm
by Anomandari
I might give the native linux client another prod sometime soon, been tweaking (= repeatedly breaking and trying to fix) my Lucid for quite a moment now.
I've had the cloaks & textures issue on my previous Karmic laptop as well. Some of the "cloth" (or was it "leather"?) textures on outfits and cloaks are all coloured metallic, sometimes also almost pitch black (but still metallic once highlighted). On the other hand, some of the area textures and placeables are stark white. Both of my computers run on cheap Intel gfx chips, and I think it's some driver issue. Nothing really painful, merely a minor annoyance. *Digs for the screenshots*

Re: Help Anomandari get back IG! (NWN linux)

Posted: Sat Jul 03, 2010 12:58 am
by S_N
libs3tc fix (most) texture related problems on linux, here it solved some, but not all.

Google for "s3tc library" to find some links about it.
also since most drivers support decompression but not compression due to retarded patents, you can just add the force_s3tc_enable=true variable when starting nwmain. I do this since Fedora don't have that library in their repository.

By the way... my start script is getting pretty long now, don't you think? ^_^

Code: Select all

LD_PRELOAD=nwmouse.so:vidmode.so force_s3tc_enable=true ./nwmain $@