I'll also slightly modify it in order to allow the bic files to be backed up on a linux server (just in case a server isn't available and you want to play on another).

Here are the details about all that:

First a few words about vaultster as it worked with NWN1:

When a PC wants to portal, vaultster sends the bic file to the destination server using specific client and server (both are included in the NWNX2 plugin). When the bic file is completely on the distant computer the portalling starts.

Advantages:
- bic files are stored on the server computers (no more corruption due to network or caching problems) ;
- you don't need to mount a drive using netrive or webdrive ;
- the server doesn't need to wait for the content of the GSID folder to be downloaded (if it isn't cached) before it can present the character selection screen ;
- the server doesn't need to wait for the bic file to be downloaded each time a player connects.

Disadvantages:
- vaultster only works with NWNX2 and therefore only with NWN1 ;
- we have no central location where the bic files are stored ;
- when a server is down you can't easily log on another server ;
- when you do that, either you end up with an old version of your PC (if you went through that server) or with no PC at all (if you never went through it).

My solutions to those disadvantages:
1- I'll port vaultster to NWNX4 and therefore NWN2 ;
2- There will be a vaultster server running on a backup computer (I'll call it the backup vaultster server) ;
3- There will also be a vaultster client running on a backup computer (I'll call it the backup vaultster client) ;
4- Each time a PC is saved locally on the server, vaultster will try to upload the bic file to the vault computer using the local client and the backup vaultster server. If the upload fails it will retry in the background until it manages to upload it ;
5- When a server is down, the player will be able to connect to a web page, identify himself and request for his backed up bic file to be sent to another server. This will use the backup vaultster client (tied to some php code) and the vaultster server on the destination server.

What I have so far:

Normal vaultster transfer + the backing up on the backup computer (with a standalone backup vaultster server on linux).

I still need to fix a few little problems but it's functional.

The backup uses an AT for now (like vaultster standard operation).
I.e. you must click on an AT to backup your character.

I'll modify this to use the PC Tools "save character" button.

Now what I need to figure is how I can automatically backup files when a player logs out.
Anyone as an idea about that ?

I suppose it should go in the module "On Client Leave" event but I have never touched at that I think.

Here is the current script I use on the backup AT:

Code:

#include "vaultster_inc"

void main()
{
// check if we are using an AT
object oMyPC = GetClickingObject();
// or if we are trying again to backup
if(!GetIsPC(oMyPC)) oMyPC = OBJECT_SELF;
if(!GetIsPC(oMyPC)) return;

If someone is interested to look at the code it is here:
http://torguet.net/Hialmar/
vaultster.rar: the plugin source for windows (you need the source of NWNX4 to compile it).
vaultster_linux.tgz: the standalone server source for linux.
vaultster_test.rar: a test mod.
xp_vaultster.ini: ini file for the plugin.
xp_vaultster.dll: the plugin for NWNX4.

If you just want the dll without compiling it you will find it here:
http://torguet.net/Hialmar/Vaultster/
You need the dll, the ini file, the nss script that you should import in your module and then read the documentation to build your portalling functions.

Again thanks to Jeroen Broekhuizen for the original version of Vaultster.

Please post here or PM me if you find any bugs.

I'll post here once I have my automatic backup version in case someone is interested._________________Hialmar, A Land Far Away Infrastructure Administrator

Last edited by Hialmar on Wed Mar 11, 2009 22:35; edited 1 time in total

Have you successfully gotten server transfer portals working on NWN2 then? Rumor has been that such doesn't operate properly. Have been attempting to get some actual information on what the deal is there, but so far haven't really had a whole lot of luck getting any hard information on what does and doesn't work.

I first need to finish a few specific features needed for ALFA and then we'll test with 2 beta servers.
I'll post here when this is done._________________Hialmar, A Land Far Away Infrastructure Administrator

Testing I've done has shown that portals aren't working - the game just 'hangs' for the player. I have not had time lately to dig into it and find out how badly/where it's broken._________________Khalidine, a NWN2 persistent world

By the way, I recommend merging in the changes between revisions 22 and 23 of the Win32 NWNX2 repository. After I made those modifications, it became significantly more reliable for CoPaP (better at finding bics and handling errors reported by the receiving side). It's also easier to use, as it adds the capability to run Vaultster on configurable ports (in case you need multiple vaults on the same machine, or multiple vaults behind the same router). I see you've made some changes too; I'll backport those at some point._________________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?

If there are any volunteers to merge more recent code in, it would be much appreciated. In trying to test this the other day, I kept coming up with that 140001 error in initializing the plugin, and no combination of file updates from microsoft (visual runtime libraries, etc) seemed to resolve the issue.

I don't have the tools to recompile it myself at the moment, but it'd be very useful if someone else could take a few minutes to try turning out a new .dll that we can put into testing.

The LETO functionality merge we'd planned on isn't really necessary, and not worth holding up getting a working vaultster plugin for.

Any volunteers out there?_________________Technical Administrator
A Land Far Away, a Persistent World Project