logo logo

 Back to main page

The NWNX Community Forum

 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
NWNX2 Multiple Log File Directories

 
Post new topic   Reply to topic    nwnx.org Forum Index -> Linux technical support
View previous topic :: View next topic  
Author Message
KenquinnTheInsaneOne



Joined: 25 Aug 2009
Posts: 7

PostPosted: Mon Aug 31, 2009 6:02    Post subject: NWNX2 Multiple Log File Directories Reply with quote

Hello right now I am trying to solve a few issues with the NWNX2 setup on a Redhat server.

One Issue I am having is that there are only log files for one of the servers as there are 4 running from the same server folder.

What I am trying to do is to have one log file directory per server. Without having to have 4 separate installs of the server folder.

For Example right now its:

logs.0

I want something like

Server1logs.0
Server2logs.0
etc
etc

I thought I could just create a folder for just the nwnx2 files and direct it to use the server files from the main folder. So I created a folder for just the NWNX2 files.

I did so and NWNX2 starts all the plugins with no issues

But the module ceases to load and the server shuts down.

Now my questions are any idea what I am doing wrong and is there a better way to have one log file directory per server?

Copy of my serverstart shell script
Code:
#!/bin/sh
cd /opt/nwn/HoCSetup
export LD_PRELOAD=./nwnx2.so

/opt/nwn/nwserver \
        -module ***\
        -port 5205 \
        -servername "***" \
        -gametype 0 \
        -maxclients 32 \
        -servervault 1 \
        -pauseandplay 0 \
        -pvp 1 \
        -elc 0 \
        -ilr 0 \
        -oneparty 0 \
        -difficulty 4 \
        -dmpassword *** \
        -autosaveinterval 0 \
Back to top
View user's profile Send private message
Zebranky



Joined: 04 Jun 2006
Posts: 415

PostPosted: Mon Aug 31, 2009 12:08    Post subject: Reply with quote

I don't believe you can run multiple servers properly from the same folder -- certain temp files get created that will interfere with other instances.

Instead, make copies of the server folder, then use the [Alias] section of nwn.ini to point at the folders you want shared (e.g. servervault).

For what it's worth, to save on HD space you can play with symlinks to share the data folder and other big ones.
_________________
Win32 SVN builds: http://www.mercuric.net/nwn/nwnx/

<Fluffy-Kooshy> NWNx plugin is to this as nuclear warheads are to getting rid of fire ants.

<ThriWork> whenever I hear nwn extender, I think what does NWN need a penis extender for?
Back to top
View user's profile Send private message Visit poster's website
KenquinnTheInsaneOne



Joined: 25 Aug 2009
Posts: 7

PostPosted: Mon Aug 31, 2009 17:23    Post subject: Reply with quote

Whats the [Alias] Section of the NWN.ini file never heard of it?

Also the servers have been running quite well for the past 2 weeks since it was swapped to the linux server.

Edit:

Found some info on the [Alias] section:

Code:

[Alias]
HD0=.\
OVERRIDE=D:\NWN\override
TEMP=.\temp
MODULES=.\modules
LOGS=.\logs
LOCALVAULT=D:\NWN\localvault
DMVAULT=.\dmvault
SERVERVAULT=D:\NWN\servervault
TEMPCLIENT=.\tempclient
SAVES=.\saves
CURRENTGAME=.\currentgame
HAK=.\hak
PATCH=.\patch
NWMFiles=D:\NWN\nwm
AMBIENT=D:\NWN\ambient
MOVIES=D:\NWN\movies
MUSIC=D:\NWN\music
DATABASE=.\database


Thank you for the quick reply hopefully I can get something working with this new information. Right now I just need to get the log files working for the server that has the Leto issue.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    nwnx.org Forum Index -> Linux technical support All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group