Team BlueWater Game Online Tutorial's
Bine ati venit la Team-BlueWater!!Tutorial's 4 all Games!

Join the forum, it's quick and easy

Team BlueWater Game Online Tutorial's
Bine ati venit la Team-BlueWater!!Tutorial's 4 all Games!
Team BlueWater Game Online Tutorial's
Would you like to react to this message? Create an account in a few clicks or log in to continue.

[Tutorial] Creating 2 servers on the same login.

Go down

[Tutorial] Creating 2 servers on the same login. Empty [Tutorial] Creating 2 servers on the same login.

Post  Karma Mon Jan 21, 2013 3:55 am

I'll teach guys to create two or more servers on the same PC and the same login.

First thing you have to do is choose a login upgraded to improve the connection.

What is need to have.

1 LoginServer.
2 GameServers.

The GameServers can be different versions.

Step 1.

Configuring the database data, each server must have a database independent so let's create two DBs call:

GameServer 1: l2jdb
GameServer 2: l2jdb2

Create these 2 in navicat.
Now let's set the GameServer 2 which by default turns l2jdb let's switch to l2jdb2.
Va in GameServer / Config open the server.porpieties look for ...

Code:
# Database info
Driver=com.mysql.jdbc.Driver
#Driver=org.hsqldb.jdbcDriver
#Driver=com.microsoft.sqlserver.jdbc.SQLServerDriver
URL=jdbc:mysql://localhost/l2jdb
#URL=jdbc:hsqldb:hsql://localhost/l2jdb
#URL=jdbc:sqlserver://localhost/database=l2jdb/user=sa/password=
Login=root
Password=
MaximumDbConnections=50

Vamos mudar o seguinte URL=jdbc:mysql://localhost/l2jdb para URL=jdbc:mysql://localhost/l2jdb2 não precisa mecher nos arquivos com # eles são apenas comentarios não influenciam na configuração.

Pronto agora o seu GameServer1 funcionara no banco de dados l2jdb e o seu GameServer2 funcionara no banco de dados l2jdb2.

Passo 2

Configurando o arquivo Hexid para GameServer1.
O arquivo Hexid serve para a identificação do servidor quando ele é ligado e identifica a ordem de cada 1.
Vamos na pasta do LoginServer procure o arquivo RegisterGameServer.bat abra-o quando terminar de carregar digite clean e de enter, ira perguntar se você está certo disse digite y e de enter denovo, ira pedir para criar um arquivo Hexid, vamos digitar 1 e dar enter.
Pronto Criamos o arquivos Hexid(server1) renomei-o para Hexid somente, copie o arquivo va na pasta GameServer/Config e cole lá dentro, se pedir para substituir, faça isso.
Pronto criamos o primeiro servidor.

Configurando o arquivo Hexid para GameServer2.
Volte para a pasta LoginServer, casó o arquivo Hexid esteja lá ainda é só deletar para fazermos o outro.
Abra novamente o arquivo RegisterGameServer.bat mas agora não vamos fazer os passos explicados no GameServer1, simplismente depois de carregar digite 2 e ira criar o arquivo Hexid(server2), renomei para Hexid, copie va na pasta do GameServer2/config e cole lá dentro, se pedir para substituir, faça isso.

Passo 3

Configurando a porta do GameServer.
Para se conectar ao game é necessario de uma porta a 7777 vamos definir as portas para os GameServers.

GameServer1: Porta 7777
GameServer2: Porta 7778

Por padrão o GameServer vem na porta 7777 então não precisaremos mudar a porta no GameServer1, vamos alterar somente a do GameServer2.
Va em GameServer/config abra o arquivo server.propieties procure logo no inicio por:
Code:
# Bind ip of the gameserver, use 0.0.0.0 to bind on all available IPs
GameserverHostname=0.0.0.0
GameserverPort=7777

And change GameserverPort = 7777 to 7778 = GameserverPort

Ready door GameServer2 configured.

Step 4

Configuring file L2.ini
By default the file L2.ini comes configured with port 7777, then we do not need it to log into mecher GameServer1, we configure the GameServer2, separate the system and open it with FileEdit and search for:
Code:
EXEName=l2.exe
SaveExt=usa
Port=7777
Class=LineageWarrior.MFighter
Change the line to Port = 7777 Port = 7778 and save with version 413.

Ready all set.

Connect LoginServer and then GameServer1 and GameServer2, the 2 and will carry the message that the servers were recorded.

PS: Is necessary to release the port 7778 on your modem to connect in GameServer2.
Karma
Karma
Admin
Admin

Mesaje : 1092
Data de inscriere : 2011-04-22
Varsta : 33
Localizare : Craiova

https://team-bluewater.forumotion.com

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum