View previous topic :: View next topic |
Author |
Message |
cadderly
Joined: 05 Dec 2007 Posts: 8
|
Posted: Sat Jan 12, 2008 0:52 Post subject: [HOWTO] NWNX4+NWN2 on a *nix server without GUI |
|
|
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 |
|
|
Master_Prince
Joined: 09 Sep 2006 Posts: 17
|
|
Back to top |
|
|
Anvoreth
Joined: 08 Mar 2012 Posts: 5
|
Posted: Thu Mar 19, 2015 21:40 Post subject: |
|
|
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 |
|
|
Mythyzyn
Joined: 27 Feb 2015 Posts: 9
|
|
Back to top |
|
|
|