NeverwinterConnections.com

   NeverwinterConnections.com
   Main Topics
   Server Configuration

   Setting up a Linux Server to Host NWN
Pages: 1  
   Author  Topic: Setting up a Linux Server to Host NWN  (Read 161 times)
Moonunit921

Expert Poster


Last On: 03/04/05
View Profile
Message Player

Canada

Posts: 118
Setting up a Linux Server to Host NWN
Return To Top       

As requested, here's a quick how-to on making a server in Linux for NWN.

This assumes that you already have a working distro of Linux and a connection to the internet. As there are many varying distros of Linux out there, I'll explain what I use, which is SuSE 9.0. If there are any variations with other distros, please feel free to add your comments below.


1. Download the Linux client Standalone Server from Bioware. It can be found under 'Downloads' / 'Standalone Server' , follow the link to the bottom where the Linux/Mac client link is.

2. Unpack the file to the folder where you want the server files to be. I used $Home/nwn for mine, so my Home folder had a /nwn folder in it with all the files listed (unlike a Windows install which puts the files in C:\NeverwinterNights\nwn). Really though, you can put the files wherever you want, I just found this easier to find later.

3. Open the Linux binaries file, and extract the contents to the $home/nwn folder (where you installed in 2.)

4. Run ./fixinstall in the shell from the $home/nwn folder. You should get a bunch of diagnostic messages, and then a line saying that you're ready to run NWN.

5. I found it a good idea to edit my nwnplayer.ini file directly with the server options that I want, rather than changing the settings in the server each time I start up.

6. You can start the server itself by typing in shell ./nwserver

7. To directly load a module on startup, in shell type ./nwserver -module MODULENAME where MODULENAME is the name of your mod.

8. Keep in mind that Linux is case-sensitive. I've had bad luck with my module names, and I've had to rename them all lower-case. This is 100% true for hak and tlk files, as the toolset does not recognize captialized hak names (such as FRA_Combo.hak), instead reading them as all lower case (such as fra_combo.hak). So, you will have to rename any haks with upper case letters to lower case or the module won't load. (CEP and PRC are OK, they're all lower case by default).

That's it in a nutshell, nothing too complicated. The performance for a Linux standalone server is staggeringly more efficient than a Windows standalone server. Plus, Linux will let you run multiple versions of the NWServer program, whereas I don't think that Windows will.

I would suggest that you also take a look at APS/NWNX2 and/or NWN-FF for server process monitoring tools, especially if your module will be running for an extended period of time, like a PW. These tools can help aid in tracking your performance, and even restart the server should it get too laggy. All this is available at NWVault. I haven't gotten too far into the Linux versions of each yet, but they don't look too complicated.

I.P. Logged
deathchild

Extreme Poster


Last On: 08/05/09
View Profile
Message Player

United States

Posts: 534

Return To Top       

and here is another one:

1) Select a distribution (such as redhat) that allows you the choice of a minimal install
2) go ahead and unpack the linux server after downloading into a directory (lets call it nwn) and then burn that directory to a CDROM. Make any changes to the nwplayer.ini now before burning
3) install your linux distro
4) login, insert the burned CDROM with the server directory on it into the CDROM drive
5) type mount /mnt/cdrom (for redhat, may be
/cdrom on others)
6) type cp -r /mnt/cdrom/nwn /
to copy the directory over

I.P. Logged
Elenjay

Expert Poster


Last On: 09/27/08
View Profile
Message Player

United Kingdom

Posts: 217
Thanks for the info
Return To Top       

Now if I could just get DRI enabled I could use this. I have only one machine and am trying FC3 for x86_64. I have a sapphire radeon 9000 pro and for some reason just can't get DRI working. Any assistance would be invaluable.

TIA

PS I know DRI is not needed to run the server but rarely will I run a server I won't join.

« Last Edit: on: Feb 10, 2005, 11:34AM » I.P. Logged
Moonunit921

Expert Poster


Last On: 03/04/05
View Profile
Message Player

Canada

Posts: 118

Return To Top       

What's DRI?

I.P. Logged
Elenjay

Expert Poster


Last On: 09/27/08
View Profile
Message Player

United Kingdom

Posts: 217
DRI
Return To Top       

Direct Rendering Interface I think. I'm trying Mandrake 10.1 now. I'll go with a 32bit distro if I can't figure it out soon.

I.P. Logged
deathchild

Extreme Poster


Last On: 08/05/09
View Profile
Message Player

United States

Posts: 534

Return To Top       

I got tired of manually reinstalling NWN server tonight so I created this script to automate the process. Avoids the old CD thing above.

#!/bin/bash
mkdir $HOME/NWN
cd $HOME/NWN
wget -O ./nwnserver.zip http://content.bioware.com/neverwinternights/patch/NWNDedicatedServer1.66.zip
unzip ./nwnserver.zip
tar -xzvf ./linuxdedserver*.tar.gz
chmod ./* 555
chmod ./database 700
chmod ./nwn.ini 700
chmod ./nwnplayer.ini 700
chmod ./nwncdkey.ini 700
chmod ./saves 700
chmod ./localvault 700
chmod ./tempclient 700
chmod ./currentgame 700
chmod ./dmvault 700
./fixinstall

Dump this into a text file save it, then do a: chmod +x textfilename to make it executable and run it. You will have to have the packages wget and unzip installed.
*note* you will have to login as root to move the modules and hakpacks into place. If you install it as root, you will need to change line 8 to read: chmod ./ 755 & change all the numbers below it to 757

« Last Edit: on: Aug 10, 2005, 4:20AM » I.P. Logged
Goddard

Newbie Poster


Last On: 02/08/10
View Profile
Message Player

United States

Posts: 3

Return To Top       

Can you run console commands some how from the nwserver?

I.P. Logged
TymeSage

Forum God


Last On: Today
View Profile
Message Player

Germany

Posts: 940

Return To Top       

on Aug 11, 2009, 3:14 AM, Goddard wrote:
Can you run console commands some how from the nwserver?


yes sure. you can type help while the NWN-server is running and get all commands. very usful is status.

« Last Edit: on: Jun 30, 2010, 3:46PM » I.P. Logged
Pages: 1  
Moderators: Rizzen, Gilaun, Shinji, Garnak, J'Dai Voisin, Lazybones, Ochobee, Eliandi
   NeverwinterConnections.com
   Main Topics
   Server Configuration

   Setting up a Linux Server to Host NWN

 
Copyright © 2002 Shawn Schultz. All rights reserved.
All trademarks are properties of their respective owners. Read our Terms of Use and our Privacy Policy.