View previous topic :: View next topic |
Author |
Message |
14G_RavenWolf
Joined: 05 Sep 2008 Posts: 12
|
Posted: Thu Nov 13, 2008 20:17 Post subject: linking 2 ServerVaults |
|
|
OK I am not sure if I am posting this in the right place so forgive me if I am not. I have 2 servers running not networked together, my question is and help i need is How can i link the 2 server vaults so players can go from one server to another and have the same toons with out having to make a new one on second second server. I was thinking on the lines of a server portal but i rather not have to so that and notsure if that would work. Please help. |
|
Back to top |
|
|
Zebranky
Joined: 04 Jun 2006 Posts: 415
|
Posted: Thu Nov 13, 2008 20:42 Post subject: |
|
|
That's what NWNX Vaultster is for. It transfers the character files between servers before you use NWN's ActivatePortal function. _________________ 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 |
|
|
14G_RavenWolf
Joined: 05 Sep 2008 Posts: 12
|
Posted: Fri Nov 28, 2008 20:53 Post subject: |
|
|
ok i got the vaultster but i am getting an error 126 not loading the module i put in the erf file it come with and add the the incluse on my mod load event.. now the ini file is a bit confusing to me no sure if i am to put the path path to the servervault for the server im running the vaulster on or the path to the server i want to servault to save too same for the ip . can someone give me an example of there settup. and am i missing something more in the mode for the error i am getting ?? thanks
here is my nwnx log
Code: | WN Extender V.2.6.1
(c) 2005 by Ingmar Stieger (Papillon) and Jeroen Broekhuizen
visit us at http://www.nwnx.org
* Loading plugins...
* Plugin chat is loaded.
* Plugin leto is loaded.
* Plugin odbc is loaded.
* Plugin resetplugin is loaded.
* An error occured while loading extension vaultster (126: The specified module could not be found. )
* NWNX2 activated.
|
|
|
Back to top |
|
|
Disco
Joined: 06 Dec 2006 Posts: 152
|
Posted: Sun Nov 30, 2008 13:29 Post subject: |
|
|
You want to run two instances of the server on one computer? |
|
Back to top |
|
|
14G_RavenWolf
Joined: 05 Sep 2008 Posts: 12
|
Posted: Sun Nov 30, 2008 23:20 Post subject: |
|
|
ok i got 2 servers with different IP's server1 i have in the nwnx ini file set up like this Code: |
[VAULTSTER]
Port = 5100
Path = C:\NWNDedicatedServer1.69\servervault
Key =xxxx
Password =xxxx
Startserver = 1
Validateclient = 1
Count = 1
Server1 = 68.209.130.228
|
then on server 2 do i do the same thing onl y change the servervault path and the ip to the server1 ??
like so ?
Code: |
[VAULTSTER]
Port = 5100
Path = E:\NWNDedicatedServer1.69\servervault
Key =xxxxx
Password =xxxxx
Startserver = 1
Validateclient = 1
Count = 1
Server1 =75.151.87.211
|
is this correct if not can you help me correct it.
this is the log i have on the server1 nwnx_vaultster log Code: |
NWNX2 Vaultster version 1.4.6 for Windows.
Copyright 2004-2005 (C) Jeroen Broekhuizen
o Using WinSock 2.2.
o Loading in 1 known servers.
o Loaded: 68.209.130.228
o Server started on port 5100.
|
|
|
Back to top |
|
|
Zebranky
Joined: 04 Jun 2006 Posts: 415
|
Posted: Mon Dec 01, 2008 19:19 Post subject: |
|
|
That looks right. _________________ 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 |
|
|
14G_RavenWolf
Joined: 05 Sep 2008 Posts: 12
|
Posted: Thu Dec 11, 2008 2:46 Post subject: |
|
|
ok ive been trying to figure what is wrong here but i have no idea ? as u seen in my last post the Vaultster is loading same with server 2 but it is still not transfering the servervualts.. is there a script i need to add also to make this happen that is the only thing else i can think of , and if so, can you post the script for me.
thank you. |
|
Back to top |
|
|
Zebranky
Joined: 04 Jun 2006 Posts: 415
|
Posted: Fri Dec 12, 2008 20:34 Post subject: |
|
|
Yes, you need to call NWNX!VAULTSTER!SEND. This is the wrapper we use, which I just edited to remove some of the world-specific stuff. Not sure if it still compiles, but perhaps.
http://hades.mercuric.net/portal_nwnx_inc.nss _________________ 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 |
|
|
14G_RavenWolf
Joined: 05 Sep 2008 Posts: 12
|
Posted: Fri Dec 12, 2008 21:16 Post subject: |
|
|
thanks ill try that does it need to go in my client leave event ? |
|
Back to top |
|
|
Fireboar
Joined: 17 Feb 2008 Posts: 323
|
Posted: Sat Dec 13, 2008 0:07 Post subject: |
|
|
It goes at whatever point you need to send the data. But why not use the PortalPC method to send the PCs between servers instead?
Or direct symlinks/hardlinks. That's another possibility. |
|
Back to top |
|
|
14G_RavenWolf
Joined: 05 Sep 2008 Posts: 12
|
Posted: Sat Dec 13, 2008 8:16 Post subject: |
|
|
I could do that, and have thought about that. but my servers are 1800 miles apart and if one is down due power outage. or something of that sort internet troubles, the other server would have an acurate bic in the players servervault. this way if i set it up to where when the player leaves the server, it will send that current bic to the other servers vault. The other way PortalPc if the player doesnt play on server b for a few days and
he logs in, then any thing that player did to improve his toon would not be on server b. |
|
Back to top |
|
|
Zebranky
Joined: 04 Jun 2006 Posts: 415
|
Posted: Sat Dec 13, 2008 12:30 Post subject: |
|
|
For your situation, the script can be much simpler, since you don't need to guarantee that their bic has transferred before performing another action, though you may want to have a couple retries. But yes, Vaultster makes sense in this case.
@Fireboar, I think this may have been based on the original script before someone wrote PortalPC for release. Either way works. _________________ 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 |
|
|
14G_RavenWolf
Joined: 05 Sep 2008 Posts: 12
|
Posted: Sun Dec 21, 2008 6:00 Post subject: |
|
|
ok Zebranky ive look at your script post and i get losted im a new scripter so still takeing baby steps to alot. so i tred useing BanedonSkyRider script he posted
Code: |
#include "vaultster_inc"
void main ()
{
object oPC = GetEnteringObject();
string sIP = GetLocalString(OBJECT_SELF, "IP");
int ret = PortalPC (oPC, sIP);
if (ret == VAULTSTER_OK) {
SendMessageToPC (oPC, "Portalling...(" + sIP + ")");
DelayCommand (1.0f, ExecuteScript ("CheckStatus", oPC));
}
else
SendMessageToPC (oPC, "Failure with portalling.");
}
|
now iget some action out this one but i get errors on connection before i was just useing the valutster_inc straight out and it would port the bic but crash me after and or break leto i like for this to work on player exit/ leave on mod events is that possible and if so ho do i make it possible here is my set on my nwnx.ini
server 2
Code: |
[VAULTSTER]
Port = 5100
Path = C:\NWNDedicatedServer1.69\servervault\
Key =mykey
Password =mykey
Startserver = 1
Validateclient = 0
Count = 1
Server1 = 75.151.87.211
|
server1
Code: |
[VAULTSTER]
Port = 5100
Path = C:\NWNDedicatedServer1.69\servervault\
Key =mykey
Password =mykey
Startserver = 1
Validateclient = 0
Count = 1
Server1 = 68.209.130.228
|
with this script it will find the bic and attempt to move it to the other server but then i get an error on connection but i know the ports are open
so any info or maybe take the info from my ini and help make it work with your script would be find as well
thanks |
|
Back to top |
|
|
Baaleos
Joined: 02 Sep 2007 Posts: 830
|
Posted: Wed Apr 15, 2009 1:34 Post subject: realise this is a dead topic |
|
|
Realise this is an old topic, but I notice that if you are attempting to transfer bic files from server vaults on the same machine to eachother.
(Im assuming im addressing the right person)
Then surely one of the Vaultsters needs to have a different server port?
You cannot have both of them operating on the same port on the same machine. At least, Thats what I was always lead to believe.
I might be wrong, but maybe having 5101 and 5100 would work? |
|
Back to top |
|
|
|