Link de monde avec transfert de fichier BIC - Final

Répondre
Partager Rechercher
http://nwvault.ign.com/Files/other/d...41871000.shtml

la version finale vient juste de sortir...

ce logiciel permet de transferer un fichier bic (fichier de personnage) automatiquement entre des mondes qui sont liés... ce qui evite d'avoir un serveur de vault commun entre les modules d'un monde...
(chaque monde gere son serveurvault en local, et au moment du changement de monde, c'est le fichier bic du perso qui est uploader dans le serveur vault du nouveau monde au moment ou le perso franchit un portail... tous les mondes doivent avoir le logiciel VaultSTER qui tourne en tache de fond )

pour ceux qui veulent liés des modules sans se faire suer, un must !

Citation :
aultSTER uses zlib
Copyright (C) 1995-2002 Jean-loup Gailly and Mark Adler
And VaultSTER uses BlowFish

1. Welcome
2. What is VaultSTER
3. Installation & Configuration
4. Demo NWScript
5. End marks


1. Welcome

Thanks for using this software product on your NWN server. In this
readme file I will explain in short what this software is and how
to configure it to run properly on your system. At the end I will
show a general approach on how to add a portal to another server
that triggers this software product.

2. What is VaultSTER

The NWN server has some troubles sending over the character files
(BIC files) to another server via the internet. Here is where
VaultSTER comes in. With this product you can easily, fast and
secure transfer the character files to any NWN server that also
runs the VaultSTER software.

3. Installation & Configuration

The rar file contains two sections. The source section contains all
source code of the VaultSTER software. The other section 'runtime'
contains the precompiled and configuration files needed to run
the VaultSTER software. Place these files in the root of the NWN
directory (same directory as you placed the nwnx2 executable in).

The next step is modifying the configuration file to you support
your own system. Below here I will explain the different options
available in the ini file:

Port = This is the port the VaultSTER software will use to
accept any incomming requests from other VaultSTER
instances (default 5100).
Path = Place here the root directory of the servervault.
Key = Use this key to initialize your encryption engine. For
encryption the VaultSTER software uses BlowFish.
Password = For the handshaking protocol a password is neccessary.
It should have a length of exactly 8 characters.
AutoStart= This option is only usefull if you have more than one
instances of the same NWNX executable running on one
machine. Set it to 0 if you don't want every instance
of the NWN server to start up the VaultSTER software.
To start up the VaultSTER software from your module
you should call the STARTSRV command.

For example you can type this in your OnLoad script:
SetLocalString (GetModule(), "NWNX!SEND!STARTSRV", "start");

The Link part is not yet in use.

4. Demo NWScript

In this part I will supply two little demo scripts. The first script
shows how you can send a file to another server:

void main()
{
// build up the job description (server | player | character)
string sJob = "10.10.1.2|Nather Aylown|HollisKler.bic";
// trigger the VaultSTER software to send the file
SetLocalString (GetModule(), "NWNX!SEND!SEND", sJob);
// wait till the server is ready (check loop)
DelayCommand (1.0f, ExecuteScript ("checkStatus", GetEnteringObject()));
}

First you have to build up the job description string. It consists of
the server name (or IP), the player name and the character file name
like the example above. Then you can trigger the VaultSTER software
to perform the job (send the file). Finaly you have to wait till
VaultSTER is ready sending the file to the other server. This is done
by the last line. The 'checkStatus' script is displayed below. It polls
the VaultSTER software and asks if the file is transmitted already.

void main()
{
object oModule = GetModule();
// retreive the current status from VaultSTER
SetLocalString(oModule, "NWNX!SEND!STATUS", GetLocalString(oModule, "NWNX!ODBC!SPACER"));
string sStatus = GetLocalString(oModule, "NWNX!SEND!STATUS");
int status = StringToInt (sStatus);


if (status == 0) {
// portal has successfully transfered character file
}
else if (status == 1) {
// the transmission wasn't finish, so wait some more time
if (iStatus > 0) DelayCommand (1.0f, ExecuteScript ("checkStatus", OBJECT_SELF));
}
else { // status == 2
// there was an error, see the logfile send.txt for an error message
}
}

5. End marks

All named products (NWScript, NWServer, ZLib, ect) besides VaultSTER
are NOT written by me and their developer has all rights. Also I am not
responsible for any damage/loss of data the VaultSTER software, or
any library that it depends on, does to your system. You use this
software on your own risc. The source code is made publicly under
the GNU license as the rest of NWNX is.

If you are going to use this product, please let me know, as I am realy
curious how many people are using VaultSTER.

Have fun!

With regards
JeroenB
je sais pas, mais dans la mesure ou la base de FF est une evolution de nwnx2, je pense (speculation) qu'il y a de grande chance... mais tiens nous au courant si tu as des news la dessus...
Sympa, mais pas compatible linux...
Pour ceux qui rejoignent le réseau de Nuits de Toril, j'ai un système similaire qui ne nécessite pas nwnx2, mais l'installation d'un serveur FTP et de perl. Il est compatible Linux et Win32.
Citation :
Publié par Sherazade
Sais-tu s'il est compatible avec NwN-MySQL de FF ?

Remarque, je peux poser la question à FF si personne ne sait .
l'auteur de vaulsteer dit que ce n'est pas compatible.. il faut obligatoirement nwnx2 ..
Salut,
Ce programme parait intéressant mais je cherche le moyen de récupérer le nom du fichier bic d'un joueur, existe t'il une fonction pour cela ?
Merci pour votre aide
Répondre

Connectés sur ce fil

 
1 connecté (0 membre et 1 invité) Afficher la liste détaillée des connectés