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 
 
deletechar plugin - crashes server
Goto page 1, 2  Next
 
Post new topic   Reply to topic    nwnx.org Forum Index -> General Discussion
View previous topic :: View next topic  
Author Message
Drakken05



Joined: 12 Jun 2006
Posts: 3

PostPosted: Fri Jun 30, 2006 19:43    Post subject: deletechar plugin - crashes server Reply with quote

Has anyone else experienced the occasion server crash when someone uses the deletechar plugin? I don't see anything posted on this and was curious if others are experiencing the same thing.

I have an NPC conversation where people can go up and delete their own characters. Works most of the time. It seems as though the characters that crash the server don't get deleted either.

BTW - what happened to the oringal information on the Deletechar plugin?

Drakken

www.wrathofzero.com
Back to top
View user's profile Send private message Visit poster's website
Energia



Joined: 05 Jun 2006
Posts: 19

PostPosted: Sun Sep 20, 2009 8:35    Post subject: Reply with quote

Me too.

It's happens when there are more of 50 bic in the folder.
Back to top
View user's profile Send private message
ShaDoOoW



Joined: 20 Aug 2005
Posts: 584

PostPosted: Mon Sep 21, 2009 22:52    Post subject: Reply with quote

The possible explanation is that deletechar plugin check character name from game and file to see what delete. So it have to loop through all files in folder, open them, read them and compare FirstName + LastName with the ingame name, that could be very very slow (and unrealiable too) and maybe thats why it crash. I suggest to use nwnx_system if linux or my NWNX Files, but that have disadvantage that you have to get the file name to delete yourself then.
_________________
Community Patch / NWNX Patch / NWNX Files / NWNX Connect
Back to top
View user's profile Send private message
Zebranky



Joined: 04 Jun 2006
Posts: 415

PostPosted: Tue Sep 22, 2009 1:12    Post subject: Reply with quote

Could someone email me the plugin? I'll see if it's possible to fix the crash with a small hack to the DLL (without source, it's unlikely, but not impossible). Otherwise, it shouldn't be too hard to reimplement from scratch, but my todo list is long. Smile
_________________
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
Energia



Joined: 05 Jun 2006
Posts: 19

PostPosted: Tue Sep 22, 2009 8:34    Post subject: Reply with quote

Zebranky wrote:
Could someone email me the plugin?


Your e-mail, please. I'll send you.
Back to top
View user's profile Send private message
Energia



Joined: 05 Jun 2006
Posts: 19

PostPosted: Tue Sep 22, 2009 8:36    Post subject: Reply with quote

ShaDoOoW wrote:
my NWNX Files, but that have disadvantage that you have to get the file name to delete yourself then.


I don't kwnow this metod. Where can I read the documentation?
Thank you very much.
Back to top
View user's profile Send private message
Zebranky



Joined: 04 Jun 2006
Posts: 415

PostPosted: Tue Sep 22, 2009 9:43    Post subject: Reply with quote

Oh, right, it's not on my profile here. andrew@mercuric.net
_________________
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
ShaDoOoW



Joined: 20 Aug 2005
Posts: 584

PostPosted: Tue Sep 22, 2009 10:50    Post subject: Reply with quote

Energia wrote:
ShaDoOoW wrote:
my NWNX Files, but that have disadvantage that you have to get the file name to delete yourself then.


I don't kwnow this metod. Where can I read the documentation?
Thank you very much.

LINK
_________________
Community Patch / NWNX Patch / NWNX Files / NWNX Connect
Back to top
View user's profile Send private message
Energia



Joined: 05 Jun 2006
Posts: 19

PostPosted: Tue Sep 22, 2009 19:18    Post subject: Reply with quote

Using nwnx_files I wrote this:

#include "nwnx_files"
#include "nwnx_funzioni"

void main()
{
int Ret;
object oPC = GetPCSpeaker();

string pname = "servervault/"+GetPCPlayerName(oPC);
string cname = GetBicFileName(oPC)+".bic";
DelayCommand(1.0,BootPC(oPC));
ActionWait(2.0);
Ret = FileDeleteFile(cname,pname);
if (!Ret) SendMessageToAllDMs("ERROR: Il pg non e' stato cancellato");
}

In nwnx.txt I read this:
* Loading plugins...
* Plugin files is loaded.
* Plugin resetplugin is loaded.
* NWNX2 activated.

And in nwnx_files.txt:
* Request to delete file: servervault/Energia/michele.bic.
> File suceesfully deleted.

Howewer file is not deleted! (I'm using Windows Vista)
Back to top
View user's profile Send private message
ShaDoOoW



Joined: 20 Aug 2005
Posts: 584

PostPosted: Tue Sep 22, 2009 22:08    Post subject: Reply with quote

Energia wrote:
Howewer file is not deleted! (I'm using Windows Vista)

Im sorry, you are the first person reporting issue. From the logs I can't see the reason why its not deleted and Im not familiar with Vista too. Please try to set up administrator privilegies to the nwnx_files.dll or something similar, it may be the rules/privilegies related. Otherwise Im for no help.
_________________
Community Patch / NWNX Patch / NWNX Files / NWNX Connect
Back to top
View user's profile Send private message
Energia



Joined: 05 Jun 2006
Posts: 19

PostPosted: Wed Sep 23, 2009 8:42    Post subject: Reply with quote

ShaDoOoW wrote:
Im not familiar with Vista too. Please try to set up administrator privilegies to the nwnx_files.dll or something similar, it may be the rules/privilegies related.


I'll try with Windows XP
(NWNX.exe was already running with administrative privilege)
Back to top
View user's profile Send private message
Gryphyn



Joined: 20 Jan 2005
Posts: 431

PostPosted: Wed Sep 23, 2009 9:19    Post subject: Reply with quote

Energia wrote:
ShaDoOoW wrote:
Im not familiar with Vista too. Please try to set up administrator privilegies to the nwnx_files.dll or something similar, it may be the rules/privilegies related.


I'll try with Windows XP
(NWNX.exe was already running with administrative privilege)


Where did you install NWN?
If it's under "/Program Files" and you'll have issues. (deleting 'secure' items) other folders don't have this issue.

Either that or turn off UAC

You could also check to see if you have 'previous versions' of the file.
No good deleting the latest version if a previous one is then used.
Back to top
View user's profile Send private message
Energia



Joined: 05 Jun 2006
Posts: 19

PostPosted: Wed Sep 23, 2009 12:18    Post subject: Reply with quote

Gryphyn wrote:
Where did you install NWN?

C:\neverwinternights\....

Gryphyn wrote:
Either that or turn off UAC

today I tried in Windows XP.

Gryphyn wrote:

You could also check to see if you have 'previous versions' of the file.
No good deleting the latest version if a previous one is then used.

I downloaded the version you linked yesterday in this topic.
Back to top
View user's profile Send private message
ShaDoOoW



Joined: 20 Aug 2005
Posts: 584

PostPosted: Wed Sep 23, 2009 13:39    Post subject: Reply with quote

Energia wrote:
today I tried in Windows XP.
And whats the result?
_________________
Community Patch / NWNX Patch / NWNX Files / NWNX Connect
Back to top
View user's profile Send private message
Energia



Joined: 05 Jun 2006
Posts: 19

PostPosted: Wed Sep 23, 2009 15:24    Post subject: Reply with quote

ShaDoOoW wrote:
Energia wrote:
today I tried in Windows XP.
And whats the result?


Same result. Sad
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    nwnx.org Forum Index -> General Discussion All times are GMT + 2 Hours
Goto page 1, 2  Next
Page 1 of 2

 
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