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 
 
[HOWTO] NWNX4+NWN2 on a *nix server without GUI

 
Post new topic   Reply to topic    nwnx.org Forum Index -> Technical support
View previous topic :: View next topic  
Author Message
cadderly



Joined: 05 Dec 2007
Posts: 8

PostPosted: Sat Jan 12, 2008 0:52    Post subject: [HOWTO] NWNX4+NWN2 on a *nix server without GUI Reply with quote

Debian/Ubuntu Howto for NWN2 + NWNX standalone server

*connect with ssh to your remote server. Use ssh -X user@server. The -X is needed later to redirect the grafical output to your local machine
* create a user for the nwnserver (useradd nwserver)
* install wine latest version (we use 0.9.49~winehq0)
* apt-get install wine
* copy the necessary server files into the home directory of the newly created user.
* Download vcredist_x86.exe and place it into home of the nwnuser.
* switch to nwnuser.
* redirect the display output to your local *nix machine.
* run winecfg and set the operating system to windows XP
* Maybe you want to set the directory settings there too but thats up to you.
* run wine vcredist_x86.exe and answer all questions with yes
* get the nwnx installfiles and follow the instructions provided by the nwnxteam.
* get Yorliks altered nwnxhook and put the files into the directory where your nwnx files reside.
* Link: http://nwvault.ign.com/View.php?view=NWN2Other.Detail&id=163
* install xvfb, xfonts-utils and xfonts-base packages.
* insert the following code into /etc/init.d/nwserver
Code:

#!/bin/sh
#
#

SCRIPT="xvfb-run -a wine NWNX4_EXP_GUI.exe"
SUCMD="sudo -u nwnserver "
pidfile=/tmp/.nw2pid

case "$1" in
        'start')
                if test -e /tmp/.nw2pid; then
                        echo "pidfile ${pidfile} exists."
                fi
                cd /home/nwnserver/
                $SUCMD env -i HOME=/home/nwnserver $SCRIPT >/dev/null 2>&1 &
                echo $? > ${pidfile}
                ;;
        'stop')
                kill -TERM `ps -ef|grep -E 'wine-preload|Xvfb|wineserver'|grep -v grep|awk '{ print \$2 ; }'`
                echo "waiting for shutdown ..."
                for x in 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9; do
                        sleep 1 ; netstat -na |grep '^udp.*:512'
                done
                kill -9 `ps -ef|grep -E 'wine-preload|Xvfb|wineserver'|grep -v grep|awk '{ print \$2 ; }'`
                for x in 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9; do
                        sleep 1 ; netstat -na |grep '^udp.*:512'
                done
                kill -9 `ps -ef|grep -E 'wine-preload|Xvfb|wineserver'|grep -v grep|awk '{ print \$2 ; }'`
                rm -f ${pidfile}
                ;;
        'restart')
                $0 stop
                $0 start
                ;;
        'reload'|'force-reload')
                $0 restart
                ;;
        'status')
                ;;
        *)
                echo "Usage: $0 start|stop|restart|reload|force-reload"
                exit 1;
                ;;
esac


* For security reasons I would recommend to turn off the shell for this user when you are finished (chsh /bin/true).
* dont forget to edit the nwnx and nwnplayer ini files so that the server starts the module automalically
Back to top
View user's profile Send private message
Master_Prince



Joined: 09 Sep 2006
Posts: 17

PostPosted: Tue Sep 03, 2013 10:06    Post subject: Reply with quote

Hello,

Thanks for your tutorial, I'm near to success but it seems that it misses some specials NWNX files that are no more available on Nwvault

http://www.lyncya.fr/images/upload/1378194971nwnix.jpg

http://www.lyncya.fr/images/upload/1378195089nwnix1.jpg

Can someone tell me more ?
Back to top
View user's profile Send private message Visit poster's website
Anvoreth



Joined: 08 Mar 2012
Posts: 5

PostPosted: Thu Mar 19, 2015 21:40    Post subject: Reply with quote

Hi,

I have the same problem. It seems that both mckillroy's modified nwn4x files and nwn4x sources are no longer available at url's placed throughout forum (I've checked files archived on neverwintervault.org, also without any luck). Could somebody place them on some sharing service / github / send me through an e-mail? In some topic mckillroy described what to change in nwnx files to get working version manually, but without sources it's impossible.
Back to top
View user's profile Send private message
Mythyzyn



Joined: 27 Feb 2015
Posts: 9

PostPosted: Wed Oct 21, 2015 11:59    Post subject: Reply with quote

UP Confused
_________________
NwN2 Action PW : http://www.lyncya.fr
NeverList : http://neverlist.nwn2.fr
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    nwnx.org Forum Index -> 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