[SOLVED] Unable to load a module under Ubuntu.
Japualtah
Member Posts: 165
Ok, not giving up, so started from scratch thanks to Sherincall information (thx mate).
This is the step by step process I followed to install the linux server (success) and host a module (failure so far)
1° # Download NWN dedicated package
mkdir ~/nwn && cd ~/nwn
wget https://nwnx.io/nwnee-dedicated-8166.zip
unzip nwnee-dedicated-8166.zip -d .
# Run it once to create the user directory
cd bin/linux-x86 && ./nwserver-linux
# Link to user directory for easier access
ln -s ~/.local/share/Neverwinter\ Nights/ ~/nwn/userdir
2° Copy my testmod to the modules directory, you can see it's there with full permissions
thierry@AltheaServer:~/nwn/userdir/modules$ ls -l
total 20
-rwxrwxr-x 1 thierry thierry 20373 mai 15 16:39 testmod
3° Start the server
Neverwinter Nights Server
Build:8166
Copyright BioWare Corp 1998-2004
Registering crash signal handlers.
Server: Loading...
Working Directory For Game Install Is: /home/thierry/nwn
Working Directory For Your Resources Is: /home/thierry/.local/share/Neverwinter Nights
Server: Running...
Server: Loading module "testmod"
Server: Unable to load module
Server: Exiting...
Just for information, here's my nwn.ini file
[Alias]
HD0=/home/thierry/.local/share/Neverwinter Nights
MODULES=/home/thierry/.local/share/Neverwinter Nights/modules
etc.
and the directories permissions:
thierry@AltheaServer:~/nwn/userdir$ ls -l
total 64
drwx------ 2 thierry thierry 4096 mai 15 16:30 ambient
drwx------ 2 thierry thierry 4096 mai 15 16:30 database
drwx------ 2 thierry thierry 4096 mai 15 16:30 dmvault
drwx------ 2 thierry thierry 4096 mai 15 16:30 hak
drwx------ 2 thierry thierry 4096 mai 15 16:30 localvault
drwxrwxr-x 2 thierry thierry 4096 mai 15 16:30 logs.0
drwx------ 2 thierry thierry 4096 mai 15 16:39 modules
drwx------ 2 thierry thierry 4096 mai 15 16:30 movies
drwx------ 2 thierry thierry 4096 mai 15 16:30 music
-rw-rw-r-- 1 thierry thierry 1180 mai 15 16:30 nwn.ini
-rw-rw-r-- 1 thierry thierry 1090 mai 15 16:42 nwnplayer.ini
drwx------ 2 thierry thierry 4096 mai 15 16:30 override
drwx------ 2 thierry thierry 4096 mai 15 16:30 portraits
drwx------ 2 thierry thierry 4096 mai 15 16:30 servervault
drwxrwxr-x 2 thierry thierry 4096 mai 15 16:30 temp
drwx------ 2 thierry thierry 4096 mai 15 16:30 tlk
I hope this is more clear ;-)
This is the step by step process I followed to install the linux server (success) and host a module (failure so far)
1° # Download NWN dedicated package
mkdir ~/nwn && cd ~/nwn
wget https://nwnx.io/nwnee-dedicated-8166.zip
unzip nwnee-dedicated-8166.zip -d .
# Run it once to create the user directory
cd bin/linux-x86 && ./nwserver-linux
# Link to user directory for easier access
ln -s ~/.local/share/Neverwinter\ Nights/ ~/nwn/userdir
2° Copy my testmod to the modules directory, you can see it's there with full permissions
thierry@AltheaServer:~/nwn/userdir/modules$ ls -l
total 20
-rwxrwxr-x 1 thierry thierry 20373 mai 15 16:39 testmod
3° Start the server
Neverwinter Nights Server
Build:8166
Copyright BioWare Corp 1998-2004
Registering crash signal handlers.
Server: Loading...
Working Directory For Game Install Is: /home/thierry/nwn
Working Directory For Your Resources Is: /home/thierry/.local/share/Neverwinter Nights
Server: Running...
Server: Loading module "testmod"
Server: Unable to load module
Server: Exiting...
Just for information, here's my nwn.ini file
[Alias]
HD0=/home/thierry/.local/share/Neverwinter Nights
MODULES=/home/thierry/.local/share/Neverwinter Nights/modules
etc.
and the directories permissions:
thierry@AltheaServer:~/nwn/userdir$ ls -l
total 64
drwx------ 2 thierry thierry 4096 mai 15 16:30 ambient
drwx------ 2 thierry thierry 4096 mai 15 16:30 database
drwx------ 2 thierry thierry 4096 mai 15 16:30 dmvault
drwx------ 2 thierry thierry 4096 mai 15 16:30 hak
drwx------ 2 thierry thierry 4096 mai 15 16:30 localvault
drwxrwxr-x 2 thierry thierry 4096 mai 15 16:30 logs.0
drwx------ 2 thierry thierry 4096 mai 15 16:39 modules
drwx------ 2 thierry thierry 4096 mai 15 16:30 movies
drwx------ 2 thierry thierry 4096 mai 15 16:30 music
-rw-rw-r-- 1 thierry thierry 1180 mai 15 16:30 nwn.ini
-rw-rw-r-- 1 thierry thierry 1090 mai 15 16:42 nwnplayer.ini
drwx------ 2 thierry thierry 4096 mai 15 16:30 override
drwx------ 2 thierry thierry 4096 mai 15 16:30 portraits
drwx------ 2 thierry thierry 4096 mai 15 16:30 servervault
drwxrwxr-x 2 thierry thierry 4096 mai 15 16:30 temp
drwx------ 2 thierry thierry 4096 mai 15 16:30 tlk
I hope this is more clear ;-)
Post edited by Japualtah on
0
Comments
No clue why, we've been working for hours without success, went to eat, showing my SO what a shit all of this is, firing the server, typing 'load module testmod' and got "module loaded".
Don't know why, will never know.
Don't know whether to be happy or disgruntled.
The module file has to be named "yourmod.mod" and launched with the parameter "-module yourmod" without the ".mod" suffix.
If you omit the ".mod" after your module name in the "modules" directory, the server will not launch it.
One day wasted on that, so goes life!
The old Stand-alone linux server was looking also into nwm/.
This new version seems don't recognize this method.