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 
 
Problem with Violation Segment

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



Joined: 11 Feb 2009
Posts: 8

PostPosted: Wed Feb 25, 2009 23:19    Post subject: Problem with Violation Segment Reply with quote

i have this problem, and i dont know how can i resolve it , this is the message that terminal give me :


Server: Loading module "cepv22_starter".../nwnstartup.sh: line 19: 5411 ViolaciĆ³n de segmento ./nwserver -publicserver 1 -servername "test w.nls.es" -dmpassword xxxx -oneparty 0 -pvp 2 -difficulty 3 -elc 1 -reloadwhenempty 0 -module "cepv22_starter" -maxclients 50 -servervault 1 -maxlevel 40 -gametype 0 -autosaveinterval 0 "$@"

I tryied a lot of things, and i dont know why is it, the line 19 i think it's

: "$@"

and my nwnstartup.sh looks like tht :

#!/bin/sh
export LD_PRELOAD=./nwnx2.so

./nwserver \
-publicserver 1 \
-servername "test w.nls.es" \
-dmpassword xxxx \
-oneparty 0 \
-pvp 2 \
-difficulty 3 \
-elc 1 \
-reloadwhenempty 0 \
-module "cepv22_starter" \
-maxclients 50 \
-servervault 1 \
-maxlevel 40 \
-gametype 0 \
-autosaveinterval 0 \
"$@"



If someone can help me, thanks
Back to top
View user's profile Send private message
virusman



Joined: 30 Jan 2005
Posts: 1020
Location: Russia

PostPosted: Thu Feb 26, 2009 6:36    Post subject: Reply with quote

What Linux distribution do you use?
32 or 64-bit?
What plugins do you use?
What are the versions of the plugins?
Does this happen without NWNX?
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger
Lobito



Joined: 11 Feb 2009
Posts: 8

PostPosted: Fri Feb 27, 2009 4:06    Post subject: Reply with quote

I use fedora, 32bits
Plugins i'm using funcs, and reset
Plugins have last version (using svn)
And without nwnx it's the same. (had the same violation error)

Well i was searching and trying, and i get it works on my laptop, letter i uploaded all folder nwn, (with haks and data folder) and it worked, i dont know why i had this problem on my server (i have dedicated server)
mabe it could be because of some file in ASCII .

Now i have another problem, when i use NWNReset plugin, server is shouting down, but it dont get up , i dont know why, here is log :

NWNX2lib: Init
NWNX2lib: org SetString() at 0x81f41b4, new SetString() at 0xb80d1d63
NWNX2lib: org GetObj() at 0x81f40bc, new GetObj() at 0xb80d179c
* Parsing configuration...
NWN Extender v2.8-dev
(c) 2004 by the APS/NWNX Linux Conversion Group
(c) 2007-2008 by virusman and Acaos
Based on the Win32 version (c) 2003 by Ingmar Stieger (Papillon)
and Jeroen Broekhuizen
visit us at http://www.avlis.org

* Searching for signatures...
* Loading modules...
RESETPLUGIN plugin registered.
FUNCS plugin registered.
* NWNX2 activated.
Neverwinter Nights Server
Build:8109
Copyright BioWare Corp 1998-2004

Server: Loading...
Server: Running...

Server: Loading module "PUERTA DE BALDUR"..............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
Server: Module loaded
NWNX!INIT enforcement disabled, using 0x082041ec
Server: Exiting...
NWNX2lib: Server exiting.



Well if you know why can it be.. Thanks for your time : )


//PD. I'm working in company hosting nwn servers, if someone are interested! Razz
Back to top
View user's profile Send private message
Fireboar



Joined: 17 Feb 2008
Posts: 323

PostPosted: Fri Feb 27, 2009 16:08    Post subject: Reply with quote

The resetplugin is meant to shut the server down, that's not a bug. You have to start it up again yourself. There are lots of ways you can do this, I prefer having a script running as a cron job, that way you never have to manually boot the server up. Basically, check for a process called nwserver. If it doesn't exist, run nwnstartup.sh. Have that running every minute and you should be okay.
Back to top
View user's profile Send private message
Lobito



Joined: 11 Feb 2009
Posts: 8

PostPosted: Fri Feb 27, 2009 18:28    Post subject: Reply with quote

Thanks for the information Fireboar, do you know if exist some plugin that restart module? i had one on windows, but on linux i dont know if that exist
Back to top
View user's profile Send private message
JeffSheets



Joined: 04 Feb 2009
Posts: 18

PostPosted: Fri Feb 27, 2009 18:51    Post subject: Reply with quote

Lobito wrote:
Thanks for the information Fireboar, do you know if exist some plugin that restart module? i had one on windows, but on linux i dont know if that exist


I don't think there is a module to do it prebuilt, but you can set up a cron job to run every minute like Fireboar suggested, or, you can do what I do. Have your server startup script call itself again a minute after the server shuts down using the at command.

To get ideas on how to do this, type the following into your linux command prompt:

man cron
man at

And read that documentation. Then google "crontab", and "linux at".

The exact method you use will depend on the linux distro you use, and what flavors of cron and atd you have available.
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