LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Games
User Name
Password
Linux - Games This forum is for all discussion relating to gaming in Linux.

Notices


Reply
  Search this Thread
Old 02-16-2006, 06:13 PM   #1
TearSyden
LQ Newbie
 
Registered: Feb 2006
Posts: 1

Rep: Reputation: 0
Question Can't get Neverwinter Nights Dedicated Linux Server to Work


Hey everyone, I'm a bit new here so if I'm doing something wrong, PLEASE tell me

Anywho, a friend and I have recently built a server tower with parts from some old computers we had sitting around. Its working great and we have installed Fedora Core 4 on it. This is actually my first Linux platform, but I really want to learn it and I thought along with reading my 'Red Hat Bible', talking to you guys would be great.

So we're trying to install the Neverwinter Nights Dedicated Linux server and we're having a problem. I have followed the instructions (Install game on a windows platform, transfer over necessary folders, run fixinstall) but when I try running nwserver or whatever the filename is, it won't run. I'm wondering if someone could help me.

Running a 600Mhz processor,
384MB of RAM,
GeForce MX 440,
80 gig hard drive,
and a crap-crap monitor.

Help would be much appreciated
 
Old 02-17-2006, 06:06 AM   #2
socks
Member
 
Registered: Oct 2002
Distribution: Slackware 10.0
Posts: 57

Rep: Reputation: 15
Now, I have just started playing NWN so I am not really that familiar with setting up a server. But, I did find this post on the official forums that might be helpful. It starts out a bit complicated, but if you scroll down it get a little easier to understand.

http://nwn.bioware.com/forums/viewto...74903&forum=56
 
Old 02-17-2006, 11:16 AM   #3
Thetargos
Senior Member
 
Registered: Mar 2003
Location: Mexico City
Distribution: Fedora, Ubuntu & Mint
Posts: 1,679

Rep: Reputation: 45
Pretty much it boils down on how did you install FC4 into your server, i.e X or no X? The relevance is mainly the method of installation of the game, really, as there are convenient standalone installers for the program (which require X and GTK+) or you can follow the official instructions and be done with it from the comman line, and then simply run the server with the program 'nwserver'. Here's a simple script I made for the game for me and my friends to be able to play NWN over the Internet on my private server:

Code:
#!/bin/bash

# launcher script for the Neverwinter Nights server for the official campaign.

# Set the path, and other important stuff, like save directories.

NWPATH=~/nwn
SAVE="000001"
MOD=$1
FAKESAVE="000001 - Auto Save"
FULLSAVE="000003 - Official Campaign"
LNKTST=`ls -l "$FAKESAVE" | gawk 'BEGIN {FS = "->"};{print $2}'`
SAVTST=`ls "$FULLSAVE"`
PASS=<change the password here>
SAVINT=<change save interval number here>

# Test to see what chapter to load. The chapter to load is given as an argument.
if [ "$1" == "" ]
then
	MOD="Chapter1"
	echo "Will load Chapter1 module"
else
	echo "Will load $MOD module"
fi

echo

# Test the save paths. And take action.
cd $NWPATH/saves

if [ -h "$FAKESAVE" ]
then
	# Test if we are using the right save path.
	echo "echo 1"
	if [ "$LNKTST" == " $FULLSAVE" ]
	then
		# Test if the save path is whether empty or has a save file within it.
		if [ "$SAVTST" == "" ]
		then
			echo "echo 2"
			cd ..	
			./nwserver -module "$MOD" -maxclients 4 -pvp 1\
			-servervault 1 -elc 1 -oneparty 1 -difficulty 2\
			-servername NWN-OC -playerpassword $PASS -autosaveinterval $SAVINT\
			-quiet &
		else
			echo "echo 3"
			cd ..
			./nwserver -load $SAVE -module "$MOD" -maxclients 4 -pvp 1\
			-servervault 1 -elc 1 -oneparty 1 -difficulty 2\
			-servername NWN-OC -playerpassword $PASS -autosaveinterval $SAVINT\
			-quiet &
		fi
	else
		echo "echo 4"
		rm -f "$FAKESAVE"
		if [ -d "$FULLSAVE" ]
		then
			echo "echo 5"
			ln -s "$FULLSAVE" "$FAKESAVE"
			if [ "$SAVTST" != "" ]
			then
				echo "echo 6"
				cd ..
				./nwserver -load $SAVE -module "$MOD" -maxclients 4\
				-pvp 1 -servervault 1 -elc 1 -oneparty 1 -difficulty 2\
				-servername NWN-OC -playerpassword $PASS\
				-autosaveinterval $SAVINT -quiet &
			else
				echo "echo 7"
				cd ..
				./nwserver -module "$MOD" -maxclients 4\
				-pvp 1 -servervault 1 -elc 1 -oneparty 1 -difficulty 2\
				-servername NWN-OC -playerpassword $PASS\
				-autosaveinterval $SAVINT -quiet &
			fi
		else
			echo "echo 8"
			mkdir "$FULLSAVE"
			ln -s "$FULLSAVE" "$FAKESAVE"
			cd ..
			./nwserver -module "$MOD" -maxclients 4 -pvp 1\
			-servervault 1 -elc 1 -oneparty 1 -difficulty 2\
			-servername NWN-OC -playerpassword $PASS\
			-autosaveinterval $SAVINT -quiet &
		fi
	fi
else
	echo "echo 9"
	if [ -d "$FULLSAVE" ]
	then
		# Test if the save path is whether empty or has a save file within it.
		echo "echo 10"
		if [ `ls "$FULLSAVE"` != "" ]
		then
			echo "echo 11"
			ln -s "$FULLSAVE" "$FAKESAVE"
			cd ..
			./nwserver -load $SAVE -module "$MOD" -maxclients 4 -pvp 1\
			-servervault 1 -elc 1 -oneparty 1 -difficulty 2\
			-servername NWN-OC -playerpassword $PASS -autosaveinterval $SAVINT\
			-quiet &
		fi
	else
		echo "echo 12"
		mkdir "$FULLSAVE"
		ln -s "$FULLSAVE" "$FAKESAVE"
		cd ..
		./nwserver -module "$MOD" -maxclients 4 -pvp 1 -servervault 1\
		-elc 1 -oneparty 1 -difficulty 2 -servername NWN-OC\
		-playerpassword $PASS -autosaveinterval $SAVINT -quiet &
	fi
fi
The relevant stuff here are the lines which contain ./nwserver (which are pretty much the same in the various cases of "if [ blah, blah, blah ]". If you are interested I solved in a rather un-sexy way a problem with the saves when using autosaving, and when you will be playing more than one type of module (i.e official campaign and other more multiplayer centric modules, for instance) to not intermingle their data.

Last edited by Thetargos; 02-17-2006 at 11:18 AM.
 
Old 02-20-2006, 07:23 AM   #4
tnandy
Member
 
Registered: Oct 2003
Location: Tennessee
Distribution: Devuan 3.0 (Beowulf)
Posts: 217

Rep: Reputation: 18
Would you post the error message you receive? Start a terminal session and try to start your dedicated server. When it fails, copy the entire contents of the terminal session, and paste it into a post here.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
NeverWinter Nights GML3G0 Linux - Games 8 06-27-2006 01:08 PM
Is there a Linux demo for Neverwinter Nights? Nebetsu Linux - Games 6 12-17-2005 05:43 PM
Neverwinter Nights Linux installation BroX Linux - Games 6 12-02-2005 01:11 PM
Neverwinter Nights for Linux released today moses Linux - Software 8 06-21-2003 01:21 AM
NeverWinter Nights Linux Release! MasterC Linux - Software 10 04-10-2003 02:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Games

All times are GMT -5. The time now is 06:29 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration