Shaiya PServer /\ Linked Server

01/12/2011 22:01 SaphiraGaming#1
In German:

In English:
01/12/2011 22:23 Bаne#2
please post in english...most devs here do not speak german so we can't help you

-Bane
01/13/2011 14:52 [Dev]Ansem#3
yeah bane is right, this is an german / english forum, in shaiya section most ppl speak english..

poste am besten eine übersetzung als spoiler, etc
01/13/2011 18:57 SaphiraGaming#4
#Push
02/16/2011 03:02 blackmerk#5
Hi!
You are not alone it its trouble, Angel.
I want 2 servers & linked BattleZone too, help us Pleeezzz.
02/16/2011 03:41 Linxis172#6
This would be epic to have on servers ;)
02/16/2011 21:39 blackmerk#7
I don't think so. But who knows... I want to try to have an EXP :)
02/16/2011 21:56 Alladrios#8
Credits to whoever posted this on former ShaiyaDevTeam forums

Quote:
First off, you need two computers, one with Sql Server and Shaiya Private Server(I used Windows XP Pro, Sql Server 2005 Standard, and Shaiya Private Server EP4), and one computer with just the private server. I will refer to the computer with the Sql Server and Shaiya
Private Server as Server 1 and the other computer as Server 2. Server 1 is going to be the main server because Server 2 will tie into the Sql database. First u have to change the .ini
files in the SHAIYA_SERVER\PSM_Client\Bin\Config\. Just so we're clear, we are in Server 2.
In the ps_dbAgent.ini file, change only the ip address to point to the Server 1's lan or wireless connection. In ps_game.ini you need to change all database ip's to match Server 1's lan, and change the public ip to match Server 2's lan ip. In ps_gameLog.ini, change the ip to
Server 1's ip. In ps_gamewar, don't mess with the ip there, unless you know what you're doing. But, on the bottom of that file, should be something like this:


[GAMESERVERS]
// Game01 = name, Mapping ServerID, Mapping DB ID(use prev server id), GameServer IP, DBAgent IP, GameLog IP
GameServerCount=1
Game01=Gaia, 1, 1, 127.0.0.1, 127.0.0.1, 127.0.0.1

Make it look like this, but add you're Server 1's ip to the Game02 and change the names of course:


[GAMESERVERS]
// Game01 = name, Mapping ServerID, Mapping DB ID(use prev server id), GameServer IP, DBAgent IP, GameLog IP
GameServerCount=2
Game01=Gaia, 1, 1, 127.0.0.1, 127.0.0.1, 127.0.0.1
Game02=Teos, 2, 2, 192.168.1.1, 192.168.1.1, 192.168.1.1


Now, in ps_login, we need to change the file to look like this


[GAMESERVERS]
// Game01 = name, Mapping ServerID, Mapping DB ID(use prev server id)
GameServerCount=2
Game02=Teos, 2, 2

Use the same mapping server and database id's as the ps_gamewar.ini file and change any ip's here to your Server 1's ip.

In ps_session, change the ip and the Game01=Gaia to Game02=Yourname under [GAMESERVERS]. Leave the GameServerCount at 1.

And, finally, in ps_userlog, change the ip to Server 1's ip.

That's just Server 2 files.
Now we move on to Server 1.

There's not really much to do here, just add your server 2 GameName in a couple of files.

In ps_gamewar.ini, add the line like above posted under gamewar, only change the ip's to match your Sql Server ip.

In ps_login.ini, add the line like above posted under login.

In ps_session.ini, change the [GAMESERVERS] to look like this:


[GAMESERVERS]
GameServerCount=2
Game01=Gaia
Game02=Teos

One other thing, to get it to show up in the PSM_Server Manager, add these lines in the PSMServer_Config.ini
in your PSM_Server\Config directory.

[Login_002]
<sv_maxuser> = 5000
<ip_login> = Server 2 lan ip


[GameGroup_002]

Copy the [GameGroup_001] lines here and change the ip's for public ip, ip game, dbagent, and gamelog to Server 2's ip,
leave the db ip's set your Sql Server ip.
I hope it helps.
02/19/2011 05:26 blackmerk#9
second serv have a "close" state in login servers list
servers has no error messages in logs... started correctly..

[Only registered and activated users can see links. Click Here To Register...]

[Only registered and activated users can see links. Click Here To Register...]

"main" serv

[Only registered and activated users can see links. Click Here To Register...]

"slave" serv

any ideas?
was 10000000 times check every string - everything is ok.
but i can't log to the second game server cos it "close"

yours
"nubodeveloper"
02/20/2011 20:12 TumbsUp#10
hi is there a way with only 1 Computer?
02/21/2011 00:46 Xx.LaMin.xX#11
No you can't. The server files is made for 1 computer only.
02/21/2011 02:11 Alladrios#12
You could if you are running the second server on a virtual machine, i wouldnt recommend it on a live server though.
02/21/2011 02:29 shinru2004#13
running both on the same server would double the amount of ram used. because it would have to load all player items into memory for both servers
02/21/2011 16:32 TumbsUp#14
Cheers,

It helps 2 Servers r great but 2 Servers? (costs alot of money :( )