[ Mesaje noi · Membrii · Regulamentului forumului · Cautare · RSS ]
  • Pagina 1 din 1
  • 1
Forum » Game Server » LineAge 2 » Cum instalezi LineAge 2 (Cum instalezi LineAge 2)
Cum instalezi LineAge 2
DanyMD Data: Sâmbătă, 27.02.2010, 20:58 | Mesaje # 1
Glavariu xD !
Mesaje: 68
[ ]
Încălcări:
Offline
Exclamation Instalarea MySQL:
-extrageti fisierul mysql-5.*.x-win.zip intr-o locatie temporara
-Instalati MySQL
Notati parola daca setati una
-dupa instalare restartati calculatorul[/code]

Exclamation Preparati fisierele Serverului
-Extrageti fisierul L2J_Server-unstable.zip in folderul pe care il doriti
-Extrageti fisierul L2J_DataPack-unstable.zip in alt folder

Exclamation Instalarea Navicat
-Rulati fisierul si instalati in locatia dorita.
-Rulati programul
-Selectati "New Connection" si completati campurile ca mai jos. Pe urma dati click pe ok.
[IMG]http://img501.imageshack.us/img501/1417/15wm6.jpg
-dati un singur click pe connection localhost (ar trebui sa devina verde), pe urma click dreapta pe localhost connection, si creati o noua baza de date cu numele l2jdb.
-inchideti programul navicat.

Exclamation Introducerea datelor in baza de date

-cititi fisierul readme din data pack
-rulati database_installer.bat (Windows) sau database_installer.sh (Linux) si urmati pasii afisati
alegeti full install pentru baza de date noua/upgrade pentru baze de date deja existente folositi baza de date creata in pasul anterior

Exclamation Java
Simplu, executati fisierul jdk-1_5_0_04-windows-i586-p.exe pentru a instala componentele java necesare.

Cititi cu atentie ce urmeaza

Instalarea serverelor

Exclamation Instalarea Loginserver
-copiati folderul /login/ din directorul vostru temporar l2j loginserver acolo unde vreti sa rulati loginserver.

Exclamation Instalarea Gameserver

Pentru fiecare gameserver:
-Copiati folderul /gameserver/ din directorul vostru temporar l2j gameserver acolo unde vreti sa rulati gameserver.
-Copiati continutul fisierului l2j datapack in folderul /gameserver/ pe care tocmai l-ati creat.

Exclamation Loginserver Setup

Aveti grija sa nu puneti spatii in plus la capatul liniilor cand terminati de editat.
Urmatorul text este un exemplu de fisier loginserver.properties aflat in folderul vostru loginserver /config.

Pentru loginserverul vostru, deschideti open /login/config/loginserver.properties si schimbati urmatoarele valori:

Cod:
# This is the server configuration file. Here you can set up the connection for your server.
# Usually you have to change the ExternalHostname option to
# - 127.0.0.1 (if you want to play alone / testing purpose)
# - LAN IP* (if you want to play from another computer in the network)
# - WAN IP** (if you want to play with friends over internet)
# - Questions? => http://l2jserver.com
#
# * = If you want to get your LAN IP, simply choose "Start" => "Run..." then type "cmd" => "ipconfig"
# **= If you want to get you WAN IP, visit http://www.whatismyip.com
# ======================================================================
============================

# ================================================================
# General server setting !!! REQUIRED to configure to everyone !!!
# ================================================================

# This is transmitted to the clients connecting from an external network, so it has to be a public IP or resolvable hostname
ExternalHostname=82.28.82.28 <<----YOUR LOGINSERVER WAN IP GOES HERE

# This is transmitted to the client from the same network, so it has to be a local IP or resolvable hostname
InternalHostname=192.168.1.100 <<----YOUR LOGINSERVER LAN IP GOES HERE

# Bind ip of the loginserver, use * to bind on all available IPs
LoginserverHostname=*
LoginserverPort=2106
LoginTryBeforeBan=20
GMMinLevel=100

# The port on which login will listen for GameServers
LoginPort=9014

# If set to true any GameServer can register on your login's free slots
AcceptNewGameServer = False

# If false, the licence (after the login) will not be shown
ShowLicence = True

# Database info
Driver=com.mysql.jdbc.Driver
#Driver=org.hsqldb.jdbcDriver
URL=jdbc:mysql://localhost/l2jdb <<----YOUR LOGINSERVER MYSQL LAN IP AND DATABASE NAME GO HERE
#URL=jdbc:hsqldb:hsql://localhost/l2jdb
Login=root <<----YOUR LOGINSERVER MYSQL LOGIN USERNAME GOES HERE
Password= <<----YOUR LOGINSERVER MYSQL LOGIN PASSWORD GOES HERE
MaximumDbConnections=10

# Useable values: "true" - "false", use this option to choose whether accounts will be created
# automatically or not.
AutoCreateAccounts=true <<--- TRUE = ACCOUNTS ARE CRATED AUTOMATICALLY ON CLIENT LOGIN, FALSE = NEED SOME TOOL TO CREATE ACCOUNTS

# The delay in minutes after which the login updates the gameservers IP's (usefull when their ip is dynamic)
IpUpdateTime=15

# ==============================================================
# Test server setting, shoudnt be touched in online game server
# ==============================================================
<---- LEAVE THIS AS IS UNLESS YOU KNOW WHAT YOU'RE DOING---->
Debug = False
Assert = False
Developer = False

# Enforce GG Authorization from client
# Login server will kick client if client bypassed GameGuard authentication
ForceGGAuth=false

#FloodProtection. time in ms
EnableFloodProtection=True
FastConnectionLimit=15
NormalConnectionTime=700
FastConnectionTime=350
MaxConnectionPerIP=50

Excla mation Setup Gameserver

Aveti grija sa nu puneti spatii in plus la capatul liniilor cand terminati de editat.

Urmatorul text este un exemplu de fisier server.properties(fisier gasit in folderul vostru din gameserver /config).

Pentru fiecare gameserver deschideti /gameserver/config/server.properties si schimbati urmatoarele valori.

Cod:
# This is the server configuration file. Here you can set up the connection for your server.
# Usually you have to change the ExternalHostname option to
# - 127.0.0.1 (if you want to play alone / testing purpose)
# - LAN IP* (if you want to play from another computer in the network)
# - WAN IP** (if you want to play with friends over internet)
# - Questions? => http://l2jserver.com
#
# * = If you want to get your LAN IP, simply choose "Start" => "Run..." then type "cmd" => "ipconfig"
# **= If you want to get you WAN IP, visit http://www.whatismyip.com
# ======================================================================
============================

# ================================================================
# General server setting !!! REQUIRED to configure to everyone !!!
# ================================================================

# Bind ip of the gameserver, use * to bind on all available IPs
GameserverHostname=*
GameserverPort=7777 <<----YOUR GAMESERVER PORT GOES HERE IF USE MULTIPLE GAMESERVERS/IP MUST BE DIFFERENT FOR EACH ONE

# This is transmitted to the clients connecting from an external network, so it has to be a public IP or resolvable hostname
# If this ip is resolvable by Login just leave *
ExternalHostname=82.28.82.28 <<----YOUR GAMESERVER WAN IP GOES HERE

# This is transmitted to the client from the same network, so it has to be a local IP or resolvable hostname
# If this ip is resolvable by Login just leave *
InternalHostname=192.168.1.100 <<----YOUR GAMESERVER LAN IP GOES HERE

# Bind ip of the loginserver, use * to bind on all available IPs
LoginserverHostname=*
LoginserverPort=2106
LoginTryBeforeBan=20

# The Loginserver host and port
LoginPort=9014
LoginHost=127.0.0.1 <<----YOUR LOGINSERVER LAN IP GOES HERE

# This is the server id that the gameserver will request (i.e. 0 is Bartz)
RequestServerID = 0 <<----YOUR GAMESERVER NUMBER GOES HERE
# If set to true, the login will give an other id to the server if the requested id is allready reserved
AcceptAlternateID = True <<--- TRUE = ACCEPT OTHER ID IF SELECTED ONE IS NOT FREE, WILL GENERATE AUTOMATICALLY HEXID,
FALSE = FORCE TO SELECTED ID ONLY

# Database info
Driver=com.mysql.jdbc.Driver
#Driver=org.hsqldb.jdbcDriver
URL=jdbc:mysql://localhost/l2jdb <<----YOUR GAMESERVER MYSQL LAN IP AND DATABASE NAME GO HERE
#URL=jdbc:hsqldb:hsql://localhost/l2jdb
Login=root <<----YOUR GAMESERVER MYSQL LOGIN USERNAME GOES HERE
Password= <<----YOUR GAMESERVER MYSQL LOGIN PASSWORD GOES HERE
MaximumDbConnections=10

# Datapack root directory, defaults to current directory from which the server is started
# DatapackRoot = C:/Work/tmp/DataPackC3

# Define character name template
# Example to use only : CnameTemplate=[A-Z][a-z]{3,3}[A-Za-z0-9]*
# will allow names with first capital letter, next three small letters,
# and any (capital or not) letter or number, like ZbigN1eW
# Most rational to have CnameTemplate=[A-Z][a-z]*
# meaning names only of letters with first one capital, like Zbigniew
# Default .* - any namy of any symbols
CnameTemplate=.* <<--- SELF EXPLANATORY
PetNameTemplate=.* <<--- SELF EXPLANATORY

# Maximum number of chars per account - 0 = illimited
CharMaxNumber = 7 <<--- SELF EXPLANATORY

# Define how many players are allowed to play simultaneously on your server.
MaximumOnlineUsers=100 <<--- SELF EXPLANATORY

# Minimum and maximum protocol revision that server allow to connect.
# You must keep MinProtocolRevision <= MaxProtocolRevision.
MinProtocolRevision = 694 <<--- LOWER CLIENT VERSION COMPATIBLE WITH SERVER
MaxProtocolRevision = 709 <<--- HIGHER CLIENT VERSION COMPATIBLE WITH SERVER

Exclamation Inregistrarea Gameserverlor

-pentru fiecare gameserver porniti /login/RegisterGameServer.bat (/login/RegisterGameServer.sh) si selectati numarul pe care vreti sa-l dati gameserverului si pe urma copiati fisierul "hexid(server-x).txt" in directorul /gameserver/config/ al serverului pe care tocmai l-ati inregistrat si schimbati-i numele in hexid.txt.

Exclamation Rulare
-pentru loginserver: porniti start /login/startLoginServer.bat (/login/startLoginServer.sh)
-pentru fiecare gameserver: start /gameserver/startGameServer.bat (/gameserver/startGameServer.sh)

Daca unele din gameservere au acelasi WAN IP trebuie sa folositi porturi diferite pentru acele servere.
Daca vreti sa activati telnet pentru loginserver sau gameserver trebuie sa folositi porturi diferite care nu sunt deja folosite pentru fiecare in parte.
Acum serverul este gata sa ruleze.

Acum porniti loginserver-ul si gameserver-ul.
Daca vreti sa fiti absolut siguri ca functioneaza, uitati-va ca output-ul gameserverului arata similar cu cel de mai jos:

Cod:
Starting L2J Game Server.

loading gameserver config
MLog clients using java 1.4+ standard logging.
Initializing c3p0-0.9.0 [built 08-??????-2005 15:47:30 +0400; debug? false; trac
e: 5]
Initializing c3p0 pool... com.mchange.v2.c3p0.PoolBackedDataSource@5e179a [ conn
ectionPoolDataSource -> com.mchange.v2.c3p0.WrapperConnectionPoolDataSource@4aeb
52 [ acquireIncrement -> 5, acquireRetryAttempts -> 0, acquireRetryDelay -> 500,
autoCommitOnClose -> true, automaticTestTable -> connection_test_table, breakAf
terAcquireFailure -> false, checkoutTimeout -> 0, connectionTesterClassName -> c
om.mchange.v2.c3p0.impl.DefaultConnectionTester, factoryClassLocation -> null, f
orceIgnoreUnresolvedTransactions -> false, identityToken -> 4aeb52, idleConnecti
onTestPeriod -> 60, initialPoolSize -> 3, maxIdleTime -> 0, maxPoolSize -> 10, m
axStatements -> 0, maxStatementsPerConnection -> 100, minPoolSize -> 1, nestedDa
taSource -> com.mchange.v2.c3p0.DriverManagerDataSource@cfec48 [ description ->
null, driverClass -> null, factoryClassLocation -> null, identityToken -> cfec48
, jdbcUrl -> jdbc:mysql://localhost/l2jdb2, properties -> {user=******, password
=******} ], preferredTestQuery -> null, propertyCycle -> 300, testConnectionOnCh
eckin -> true, testConnectionOnCheckout -> false, usesTraditionalReflectiveProxi
es -> false ], factoryClassLocation -> null, identityToken -> 5e179a, numHelperT
hreads -> 3 ]

etc....

etc....

etc....

Cod:
IdFactory: Free ObjectID's remaining: 1878992804
GameServer Started, free memory 175 Mb of 512 Mb
Connecting to login on 127.0.0.1:9014
Maximum Numbers of Connected Players: 100
Telnet server is currently disabled.
GameServer listening on all available IPs on Port 7777
Registered on login as Server 0 : Bartz

Pentru a face setari avansate intrati in

Cod:
gameserve/config
si editati

Cod:
altsettings.properties
command-privileges.properties
extensions.properties
GMAccess.properties
idfactory.properties
l 2jdp-version.properties
l2j-version.properties
olympiad.properties
options.properties
other.properties
pvp.properties
rates.properties
server.properties
sevensigns.properties
siege.properties
telnet.properties

Deschideti LineageII.exe si lasati sa se updateze.
O idee buna este sa dati pe "Check Files button" pentru a asigura un update complet.
Dupa ce ati updatat o data folositi L2.exe in directorul /system pentru a rula jocul. Faceti un shortcut la acest fisier si stergeti-l pe cel deja existent pe desktop.

Cat timp jocul este updatat este o idee buna sa editati fisierul hosts

Fisierul se gaseste intr-o locatie diferita in functie de sistemul vostru de operare.

Cod:
Windows XP = /windows/system32/drivers/etc
Windows 2K = /winnt/system32/drivers/etc
Win 98ME = /windows

In fisierul hosts va trebui sa editati ultima linie astfel incat sa arate ca:

123.123.123.123 L2authd.lineage2.com

Introduceti IP-ul serverului acolo unde este 123.123.123.123 .

Daca folositi clientul PTS(Public Test Server) trebuie sa inlocuiti L2authd.lineage2.com cu L2testauthd.lineage2.com.

Trebuie sa folositi IP-ul de lan sau 127.0.0.1 daca jucati pe server.

Aici este o copie dupa un fisier hosts: http://www.microsoft.com/technet/images/pr...rd/wildca27.gif

Tot ce treceti in fisier trebuie sa fie de forma:
adresaip numelehost-ului

de exemplu:

Cod:
192.168.1.1 L2authd.lineage2.com

Adresa IP trebuie sa fie din cifre . Numele Host-ului nu trebuie sa contina simboluri de genul /,http://, etc.
Puteti folosi semnul # pentru a face comentarii.

Daca aveti instalat MSN messenger cautati fisierul hosts.msn si daca exista editati-l pe acesta in locul celui default de la Windows.

Daca aveti probleme cand va conectati la server aveti grija cum scrieti account-ul si parola.

Daca tot nu va conectati in command prompt tastati "ping L2authd.lineage2.com". Daca vedeti "Pinging L2authd.lineage2.com [206.127.151.66] with 32 bytes of data:" atunci va conectati la NCSoft. Daca vedeti "Pinging L2authd.lineage2.com [Server_IP] with 32 bytes of data:" atunci va conectati la serverul vostru.
Vedeti ca in fisierul hosts sa apara o linie cu "Server_IP L2authd.lineage2.com" si numai o referire la "L2authd.lineage2.com". Verificati ca nu cumva sa fi creat un fisier hosts.txt ci doar hosts fara nici o extensie.
Aveti grija sa aveti programe anti-spyware instalate. Deschideti Regedit si cautati "HKEY_LOCAL_MACHINE/SYSTEM/Current/ControlSet/Services/Tcpip/Parameters". Verificati ca "DataBasePath" sa contina urmatoarele date "%SystemRoot%/System32/drivers/etc".
In command prompt scrieti "ipconfig /flushdns" si pe urma incercati sa va conectati.

Daca tot primiti eroare faceti din nou fisierul hosts.

Sursă

Medalii
Pentru Crearea site-ului
Forum » Game Server » LineAge 2 » Cum instalezi LineAge 2 (Cum instalezi LineAge 2)
  • Pagina 1 din 1
  • 1
Căutare: