|
Post by 4boltmain on Jul 31, 2009 12:58:25 GMT
Players on my server have been complaining that the delete command wasnt working so to save the effort of typing in all the commands I put this script on a conversation node.
#include "fky_chat_inc" void main() { object oPC = GetPCSpeaker(); DelayCommand(1.0,SetCutsceneMode(oPC, TRUE)); ExportSingleCharacter(oPC); DelayCommand(4.0, AssignCommand(GetModule(), DeleteBic(oPC))); DelayCommand(2.0, FloatingTextStringOnCreature(COLOR_RED+LETO_DELETE+COLOR_END, oPC, FALSE)); }
The script does boot the character but doesnt delete the character and i have no idea why.
In the config file I have the correct folder path set....
const string VAULTPATH_CHAT = "C:/Dungeon Crawler/servervault/"; //const string VAULTPATH_CHAT = "C:/NeverwinterNights/NWN/servervault/";//windows sample //const string VAULTPATH_CHAT = "/home/funkyswerve/nwn/servervault/";//linux sample
I noticed that in my folders address bar the / are actually \ (im not using linux)
Im not really sure if that makes a difference in the database or the scripts. I have tried it both ways but I am not able to delete a character.
I created the database with the mod that was included with the Simtools download, other than that I dont know a whole lot about database files. I havent messed with it or changed anything.
Originally I just had players e-mail me or talk to me ingame and I deleted their characters that way and I still continue to do this. If I can get this script to work it will save me a lot of time.
|
|
|
Post by FunkySwerve on Jul 31, 2009 20:37:26 GMT
If the delete command wasn't working, you have the vault path set wrong, most likely. Are you remembering to do a full recompile after you edit the path? Without that it'll still be using the old path. Please post a leto log of a failed deletion attempt using the SIMTools command - you can find the nwnx_leto.txt log in your logs.0 folder.
Funky
|
|
|
Post by 4boltmain on Aug 1, 2009 0:12:14 GMT
Is it supposed to say this? lol! NWNX-Leto module (build 03 - FF) (c) 2004 by David Frauzel (dragonsong), dragon@weathersong.net Information and support: weathersong.infopop.cc* Loading LetoScript.dll... * Failed loading LetoScript.dll! Our bridges are burned! Run away, run away! Edit: I downloaded a newer LetoScript.dll than what I had. I also recompiled the scripts. I will post back when server resets.
|
|
|
Post by FunkySwerve on Aug 1, 2009 0:44:08 GMT
You should be using the dlls included in the SIMTools package.
Funky
|
|
|
Post by 4boltmain on Aug 1, 2009 1:06:02 GMT
I put the newer dll files in the folder and it works now. I didnt even think to check that log file. Thanks for your help. If I remember right I had to use a few different dlls for the 1.69 update. I cant remember what ones though. I dont go messin with it if it works. Have a good weekend.
|
|