View previous topic :: View next topic |
Author |
Message |
Drakken05
Joined: 12 Jun 2006 Posts: 3
|
Posted: Fri Jun 30, 2006 19:43 Post subject: deletechar plugin - crashes server |
|
|
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 |
|
|
Energia
Joined: 05 Jun 2006 Posts: 19
|
Posted: Sun Sep 20, 2009 8:35 Post subject: |
|
|
Me too.
It's happens when there are more of 50 bic in the folder. |
|
Back to top |
|
|
ShaDoOoW
Joined: 20 Aug 2005 Posts: 584
|
Posted: Mon Sep 21, 2009 22:52 Post subject: |
|
|
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 |
|
|
Zebranky
Joined: 04 Jun 2006 Posts: 415
|
Posted: Tue Sep 22, 2009 1:12 Post subject: |
|
|
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. _________________ 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 |
|
|
Energia
Joined: 05 Jun 2006 Posts: 19
|
Posted: Tue Sep 22, 2009 8:34 Post subject: |
|
|
Zebranky wrote: | Could someone email me the plugin? |
Your e-mail, please. I'll send you. |
|
Back to top |
|
|
Energia
Joined: 05 Jun 2006 Posts: 19
|
Posted: Tue Sep 22, 2009 8:36 Post subject: |
|
|
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 |
|
|
Zebranky
Joined: 04 Jun 2006 Posts: 415
|
Posted: Tue Sep 22, 2009 9:43 Post subject: |
|
|
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 |
|
|
ShaDoOoW
Joined: 20 Aug 2005 Posts: 584
|
Posted: Tue Sep 22, 2009 10:50 Post subject: |
|
|
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 |
|
|
Energia
Joined: 05 Jun 2006 Posts: 19
|
Posted: Tue Sep 22, 2009 19:18 Post subject: |
|
|
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 |
|
|
ShaDoOoW
Joined: 20 Aug 2005 Posts: 584
|
Posted: Tue Sep 22, 2009 22:08 Post subject: |
|
|
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 |
|
|
Energia
Joined: 05 Jun 2006 Posts: 19
|
Posted: Wed Sep 23, 2009 8:42 Post subject: |
|
|
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 |
|
|
Gryphyn
Joined: 20 Jan 2005 Posts: 431
|
Posted: Wed Sep 23, 2009 9:19 Post subject: |
|
|
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 |
|
|
Energia
Joined: 05 Jun 2006 Posts: 19
|
Posted: Wed Sep 23, 2009 12:18 Post subject: |
|
|
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 |
|
|
ShaDoOoW
Joined: 20 Aug 2005 Posts: 584
|
Posted: Wed Sep 23, 2009 13:39 Post subject: |
|
|
Energia wrote: | today I tried in Windows XP. | And whats the result? _________________ Community Patch / NWNX Patch / NWNX Files / NWNX Connect |
|
Back to top |
|
|
Energia
Joined: 05 Jun 2006 Posts: 19
|
Posted: Wed Sep 23, 2009 15:24 Post subject: |
|
|
ShaDoOoW wrote: | Energia wrote: | today I tried in Windows XP. | And whats the result? |
Same result. |
|
Back to top |
|
|
|